/* LE MIRAL - Luxury Cosmetics Style Refined */
:root {
    --bg-cream: #FDFBF7;
    --bg-beige: #F5F0E6;
    --gold: #C9A862;
    --gold-dark: #B08D55;
    --black: #1A1A1A;
    --gray-text: #666666;
    --gray-light: #999999;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--black);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Helpers */
.text-gold-italic {
    color: var(--gold);
    font-style: italic;
    font-family: var(--font-heading);
}

.text-serif {
    font-family: var(--font-heading);
}

.text-sans {
    font-family: var(--font-body);
}

/* HEADER */
header {
    background: var(--bg-cream);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

header.home-header {
    position: absolute;
    background: transparent;
    border-bottom: none;
    width: 100%;
}

header.home-header .nav-links a,
header.home-header .nav-icon,
header.home-header .mobile-menu-btn,
header.home-header .logo-main {
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


header.home-header .nav-links a:hover {
    color: var(--gold);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #ffffff 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    
    border-radius: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 33px;
    width: auto;
    display: block;
    object-fit: cover;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background-color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--black);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--black);
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-icon {
    color: var(--black);
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.nav-icon:hover {
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(201, 168, 98, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   FULLSCREEN HERO SECTION - PRO EDITION
   ============================================ */
.fullscreen-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Removed padding to let background fill the top */
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-beige) 100%);
}

/* Background layer - Smaller with curved corners */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0;
    /* Full screen background */
    overflow: hidden;
    box-shadow: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-hero:hover .hero-bg-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.2) 70%,
            rgba(0, 0, 0, 0.35) 100%);
    z-index: 2;
}

/* Corner accents on image */
.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.4);
    border-style: solid;
    z-index: 3;
    pointer-events: none;
}

.hero-background::before {
    top: 30px;
    left: 30px;
    border-width: 1px 0 0 1px;
    border-radius: 20px 0 0 0;
}

.hero-background::after {
    bottom: 30px;
    right: 30px;
    border-width: 0 1px 1px 0;
    border-radius: 0 0 20px 0;
}

/* Floating badge */
.hero-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 4;
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Content layer - Centered over image */
.hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 700px;
    text-align: center;
}

/* Glass Hero Card Upgrade */
.glass-hero-card {
    background: rgba(0, 0, 0, 0.45);
    /* Much darker for maximum legibility */
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 40px;
    position: relative;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.title-underline {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 25px auto;
}

.hero-content-wrapper .hero-title {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content-wrapper .hero-title .text-gold-italic {
    color: #E8D5B7;
    font-style: italic;
}

.hero-content-wrapper .hero-desc {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    margin: 0 auto 30px;
    max-width: 500px;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Decorative Elements */
.deco-leaf {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
    filter: brightness(1.5) sepia(0.5);
}

.deco-leaf-1 {
    top: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    transform: rotate(-30deg);
    animation: floating-leaf 12s ease-in-out infinite;
}

.deco-leaf-2 {
    bottom: 20%;
    right: 5%;
    width: 150px;
    height: 150px;
    transform: rotate(150deg);
    animation: floating-leaf 15s ease-in-out infinite reverse;
}

@keyframes floating-leaf {

    0%,
    100% {
        transform: translate(0, 0) rotate(-30deg);
    }

    50% {
        transform: translate(20px, -30px) rotate(-15deg);
    }
}

.deco-gold-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(201, 168, 98, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
    animation: drift-dust 60s linear infinite;
}

@keyframes drift-dust {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 500px 500px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--black);
    /* Changed to black for visibility on white divider */
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Values Strip */
.values-strip {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--bg-beige);
}

.values-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.value-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v-label {
    font-size: 10px;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.v-text {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--black);
    letter-spacing: 1px;
}

.v-separator {
    width: 1px;
    height: 30px;
    background: var(--bg-beige);
}

/* Reveal Animations */
.fade-in-up {
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.section-reveal {
    opacity: 1;
    transform: translateY(0);
}

.section-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(201, 168, 98, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}


.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* PRO Button Styles */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow:
        0 8px 24px rgba(197, 160, 89, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(197, 160, 89, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-background {
        width: 85%;
    }
}

@media (max-width: 992px) {
    .fullscreen-hero {
        padding: 120px 40px 80px;
    }

    .hero-background {
        width: 100%;
        height: 60vh;
        border-radius: 40px;
    }

    .glass-messenger-bubble {
        padding: 48px 40px;
    }

    .bubble-content .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .fullscreen-hero {
        padding: 100px 24px 60px;
    }

    .hero-background {
        height: 50vh;
        border-radius: 30px;
    }

    .glass-messenger-bubble {
        padding: 36px 28px;
        border-radius: 24px;
    }

    .bubble-content .hero-title {
        font-size: 32px;
    }

    .bubble-content .hero-desc {
        font-size: 15px;
    }

    .btn-pill {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        top: 24px;
        right: 24px;
        padding: 10px 20px;
        font-size: 10px;
    }
}

.btn-pill {
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
    border-radius: 50px;
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.btn-outline {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--bg-beige);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-blob {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #F5F0E6 0%, rgba(253, 251, 247, 0) 70%);
    border-radius: 50%;
    position: absolute;
    z-index: -1;
}

/* RITUALS SECTION */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 80px;
}

.section-title-large {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto;
}

.section-sub {
    color: var(--gray-text);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.rituals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.ritual-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid transparent;
}

.ritual-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 98, 0.2);
}

.ritual-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--gold);
    font-size: 24px;
}

.ritual-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.ritual-desc {
    font-size: 13px;
    color: var(--gray-text);
    font-family: var(--font-body);
}

/* PRODUCT GRID REFINED */
.products-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.product-card-luxury {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.product-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.prod-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.prod-image-container {
    background: var(--bg-beige);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.prod-image-container img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.product-card-luxury:hover .prod-image-container img {
    transform: scale(1.08);
}

.prod-details {
    padding: 25px;
    text-align: center;
    background: var(--white);
}

.prod-cat {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-light);
    margin-bottom: 10px;
    display: block;
}

.prod-title {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.prod-desc-short {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 15px;
    line-height: 1.5;
    height: 40px;
    /* limit height */
    overflow: hidden;
}

.prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.prod-price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--black);
}

.btn-add-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--white);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.btn-add-circle:hover {
    background: var(--gold);
    color: var(--white);
}

/* Ensure all add-to-cart buttons are always clickable */
.add-to-cart-btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* PRODUCT DETAIL */
.product-detail {
    display: flex;
    gap: 80px;
    margin: 80px 0;
    align-items: start;
}

.product-gallery {
    flex: 1;
    position: sticky;
    top: 100px;
}

.product-gallery img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
}

.product-info-detail {
    flex: 1;
    padding-top: 40px;
}

.product-info-detail h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.price-large {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 40px;
    display: block;
    font-weight: 300;
}

.description {
    margin-bottom: 40px;
    color: #555;
    font-size: 16px;
    line-height: 2;
}

/* CART & CHECKOUT */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 60px 0;
}

.cart-table th {
    text-align: left;
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
}

.cart-table td {
    padding: 30px 20px;
    border-bottom: 1px solid #f9f9f9;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.qty-input {
    width: 60px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-family: inherit;
}

.remove-btn {
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #ff0000;
}

.cart-summary {
    background: var(--gray-light);
    padding: 50px;
    width: 400px;
    margin-left: auto;
    border-radius: 4px;
}

.checkout-container {
    display: flex;
    gap: 60px;
    margin: 60px 0;
}

.checkout-form {
    flex: 2;
}

.checkout-summary {
    flex: 1;
    background: var(--bg-beige);
    padding: 40px;
    height: fit-content;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    background: #fdfbf7;
    font-family: inherit;
    border-radius: 6px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    background: var(--white);
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* FOOTER */
footer {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 30px;
    margin-top: 120px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #888;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 
   ============================================
   ADMIN PANEL STYLES
   ============================================
*/
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--black);
    color: var(--white);
    padding: 30px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 60px;
    display: block;
    text-align: center;
    letter-spacing: 2px;
}

.sidebar-menu {
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: #888;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(198, 168, 94, 0.1);
    color: var(--gold);
}

.admin-content {
    flex: 1;
    background: #f4f6f8;
    padding: 40px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--black);
    font-family: var(--font-heading);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 15px 10px;
    text-align: left;
}

.admin-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.form-row {
    display: flex;
    gap: 20px;
}

/* PRODUCT PAGE LAYOUT */
.product-page-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--black);
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    color: var(--gray-text);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--gold);
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 10px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 13px;
}

.product-list-main {
    flex: 1;
}

/* ADMIN CHARTS LAYOUT */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.charts-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    margin-bottom: 0;
    overflow: hidden;
    /* Ensure chart doesn't overflow */
}

.chart-container {
    position: relative;
    width: 100%;
    /* height: auto;  Let Chart.js handle height */
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .product-page-layout {
        flex-direction: column;
    }

    .sidebar-filters {
        width: 100%;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-blob {
        width: 100%;
        height: 400px;
    }

    .rituals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        flex-direction: column;
        gap: 40px;
    }

    .product-gallery {
        position: static;
        width: 100%;
    }

    .product-info-detail {
        padding-top: 0;
        width: 100%;
    }

    .checkout-container {
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
        margin: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* ADMIN CHARTS RESPONSIVE */
    .charts-row,
    .charts-row-2 {
        grid-template-columns: 1fr;
        /* Stack charts */
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* HEADER MOBILE - Ensure sticky works on all mobile devices */
    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 15px 0;
    }

    .navbar {
        padding: 0 10px;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--black);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-cream);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        gap: 20px;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .logo-image {
        width: 45px;
        height: auto;
    }

    /* HERO MOBILE */
    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-pill {
        justify-content: center;
        width: 100%;
    }

    /* GRIDS */
    .rituals-grid {
        grid-template-columns: 1fr;
    }

    .products-grid-luxury {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    /* CART MOBILE */
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        padding: 15px;
        border-radius: 8px;
        background: var(--white);
    }

    .cart-table td {
        padding: 10px 0;
        border: none;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        font-size: 12px;
        color: #999;
        text-transform: uppercase;
    }

    .cart-product {
        width: 100%;
    }

    /* ADMIN MOBILE */
    .admin-layout {
        flex-direction: column;
        padding-bottom: 70px;
    }

    /* Add padding for bottom nav */
    .sidebar {
        display: none;
    }

    /* Hide sidebar on mobile */
    .admin-content {
        padding: 15px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* MOBILE BOTTOM NAV */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        justify-content: space-around;
        padding: 15px 10px;
        z-index: 1000;
        border-top: 1px solid #f0f0f0;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #999;
        font-size: 10px;
        gap: 5px;
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-item.active {
        color: var(--gold);
    }

    /* ADMIN TABLE MOBILE (CARD VIEW) */
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        padding: 20px;
        border-radius: 12px;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }

    .admin-table td {
        padding: 10px 0;
        border: none;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f9f9f9;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: bold;
        font-size: 11px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    /* Add labels via data-label if needed, but for admin we often have distinct columns. 
       We can assume simple stacking or use nth-child pseudo selectors if we can't add data-labels easily to dynamic tables. 
       However, adding data-labels to the JS/PHP is better. For now, let's just make them stack nicely. */

    .card {
        overflow-x: visible;
    }

    /* Remove scroll, use stack */

    /* ADMIN GRIDS MOBILE */
    .admin-grid-2-1 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .mobile-bottom-nav {
        display: none;
    }
}

/* ============================================
   🫧 CART BUBBLE & DRAWER
   ============================================ */

/* --- Cart Bubble (Floating Trigger) --- */
.cart-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cart-bubble:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--gold-dark);
}

.cart-bubble:active {
    transform: translateY(-1px) scale(0.97);
}

.cart-bubble-icon {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.cart-bubble:hover .cart-bubble-icon {
    transform: scale(1.08);
}

/* Badge on bubble */
.cart-bubble-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(201, 168, 98, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* State: pulse animation (item added) */
@keyframes cartBubblePulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(201, 168, 98, 0.5);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 14px rgba(201, 168, 98, 0);
    }

    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(201, 168, 98, 0);
    }
}

.cart-bubble--pulse {
    animation: cartBubblePulse 0.6s ease-out;
}

/* State: shake animation (error/attention) */
@keyframes cartBubbleShake {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-6px) rotate(-4deg);
    }

    30% {
        transform: translateX(5px) rotate(3deg);
    }

    45% {
        transform: translateX(-4px) rotate(-2deg);
    }

    60% {
        transform: translateX(3px) rotate(1deg);
    }

    75% {
        transform: translateX(-2px);
    }
}

.cart-bubble--shake {
    animation: cartBubbleShake 0.6s ease-in-out;
}

/* State: glow (attention) */
@keyframes cartBubbleGlow {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(220, 80, 80, 0);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 20px 4px rgba(220, 80, 80, 0.35);
    }
}

.cart-bubble--glow {
    animation: cartBubbleGlow 1.2s ease-in-out 2;
}

/* Badge pop animation */
@keyframes badgePop {
    0% {
        transform: scale(0.5);
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.cart-bubble-badge--pop {
    animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Cart Drawer Overlay --- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9991;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Cart Drawer Panel --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9992;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-cream);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
}

.cart-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.cart-drawer-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cart-drawer-title svg {
    color: var(--gold);
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.cart-drawer-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

/* Drawer Body */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.cart-drawer-body::-webkit-scrollbar {
    width: 4px;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

/* Empty state */
.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    gap: 16px;
    text-align: center;
}

.cart-drawer-empty p {
    color: var(--gray-light);
    font-size: 15px;
    margin: 0;
}

.cart-drawer-shop-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 28px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cart-drawer-shop-btn:hover {
    background: var(--gold-dark);
    color: var(--white);
}

/* Cart items list */
.cart-drawer-items {
    padding: 0;
}

.cart-drawer-item {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    animation: drawerItemSlideIn 0.3s ease forwards;
    opacity: 0;
}

@keyframes drawerItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-drawer-item:hover {
    background: rgba(0, 0, 0, 0.015);
}

.cart-drawer-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-beige);
    flex-shrink: 0;
}

.cart-drawer-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.cart-drawer-item-name {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-drawer-item-meta {
    font-size: 12px;
    color: var(--gray-light);
}

.cart-drawer-item-price {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-dark);
}

.cart-drawer-item-remove {
    align-self: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-drawer-item-remove:hover {
    background: rgba(220, 80, 80, 0.08);
    color: #dc5050;
}

/* Drawer Footer */
.cart-drawer-footer {
    padding: 24px 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    background: var(--white);
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-drawer-total span:first-child {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--black);
}

.cart-drawer-total-amount {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-dark);
}

.cart-drawer-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.cart-drawer-btn:last-child {
    margin-bottom: 0;
}

.cart-drawer-btn-primary {
    background: var(--black);
    color: var(--white);
}

.cart-drawer-btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.cart-drawer-btn-secondary {
    background: transparent;
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.cart-drawer-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* --- Responsive: Cart Bubble & Drawer --- */
@media (max-width: 768px) {
    .cart-bubble {
        bottom: 90px;
        /* Above mobile bottom nav */
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .cart-bubble-icon {
        width: 22px;
        height: 22px;
    }

    .cart-bubble-badge {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
    }
}

/* Hide body scroll when drawer is open */
body.cart-drawer-open {
    overflow: hidden;
}

@media (max-width: 768px) {

    .deco-leaf,
    .deco-gold-dust {
        display: none;
    }

    .glass-hero-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .hero-content-wrapper .hero-title {
        font-size: 32px;
    }
}