/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Calm, Soothing & Natural */
    --primary-color: #A491D3;
    /* Calming Lavender */
    --primary-dark: #8A7AB8;
    /* Darker Lavender */
    --primary-light: #C1B7E3;
    /* Lighter Lavender */
    --secondary-color: #D1CFCB;
    /* Muted Stone Gray */
    --accent-color: #8FB9A8;
    /* Soft Muted Green */
    --accent-hover: #7AA896;
    /* Darker Muted Green */

    /* Gradient Colors (Updated with new palette) */
    --gradient-primary: linear-gradient(135deg, #A491D3 0%, #C1B7E3 100%);
    --gradient-accent: linear-gradient(135deg, #8FB9A8 0%, #A8D1C4 100%);
    --gradient-warm: linear-gradient(135deg, #7AA896 0%, #A491D3 100%);
    --gradient-hero: linear-gradient(135deg, rgba(164, 145, 211, 0.85), rgba(209, 207, 203, 0.75));

    /* Backgrounds & Text (Neutral grays for a clean look) */
    --bg-white: #FFF8E7;
    --bg-light: #F8F9FA;
    --bg-cream: #F1F3F5;
    /* Renamed from cream, but a good neutral */
    --text-dark: #343A40;
    /* Dark Slate Gray */
    --text-gray: #6C757D;
    /* Neutral Medium Gray */
    --text-light: #ADB5BD;
    /* Light Gray */

    /* Status Colors (Standard) */
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;
    --info: #17A2B8;

    --border-light: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
}

/* ===================================
   PRELOADER
   =================================== */
body.preloader-active {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: all;
}

#preloader.done {
    pointer-events: none;
}

.preloader-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #dfaa6c;
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 2;
    overflow: hidden;
}

/* Subtle noise texture on panels */
.preloader-half::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(196, 168, 130, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.preloader-left {
    left: 0;
}

.preloader-right {
    right: 0;
}

#preloader.done .preloader-left {
    transform: translateX(-100%);
}

#preloader.done .preloader-right {
    transform: translateX(100%);
}

.preloader-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: opacity 0.4s ease;
}

#preloader.done .preloader-content {
    opacity: 0;
}

/* Warm ambient glow behind preloader content */
.preloader-content::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.22) 0%, transparent 70%);
    pointer-events: none;
    animation: preloaderGlow 3s ease-in-out infinite alternate;
}

@keyframes preloaderGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* SVG Root Drawing */
.preloader-root {
    width: 160px;
    height: auto;
    /* margin-bottom: 0rem; */
    filter: drop-shadow(0 0 6px rgba(46, 93, 58, 0.12));
}

/* Gentle glow pulse after root draws in */
@keyframes rootGlow {
    0% { filter: drop-shadow(0 0 4px rgba(46, 93, 58, 0.08)); }
    100% { filter: drop-shadow(0 0 12px rgba(46, 93, 58, 0.25)); }
}

.root-line {
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* Trunk draws first */
.root-trunk {
    animation: drawRoot 2.2s ease-out 0.3s forwards;
}

/* Branches stagger in */
.root-branch-1 { animation: drawRoot 1.2s ease-out 0.9s forwards; }
.root-branch-2 { animation: drawRoot 1.2s ease-out 1.2s forwards; }
.root-branch-3 { animation: drawRoot 1.2s ease-out 1.0s forwards; }
.root-branch-4 { animation: drawRoot 1.2s ease-out 1.3s forwards; }
.root-branch-5 { animation: drawRoot 1.2s ease-out 1.5s forwards; }
.root-branch-6 { animation: drawRoot 1.2s ease-out 1.7s forwards; }

/* Sub-branches come last */
.root-sub-1 { animation: drawRoot 0.8s ease-out 1.6s forwards; }
.root-sub-2 { animation: drawRoot 0.8s ease-out 1.8s forwards; }
.root-sub-3 { animation: drawRoot 0.8s ease-out 1.9s forwards; }
.root-sub-4 { animation: drawRoot 0.8s ease-out 2.0s forwards; }

@keyframes drawRoot {
    to { stroke-dashoffset: 0; }
}

/* Ornamental Golden Divider */
.preloader-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C4A882, transparent);
    margin: 0.1rem 0 0.3rem;
    opacity: 0;
    animation: dividerIn 0.7s ease-out 2.5s forwards;
}

@keyframes dividerIn {
    to { opacity: 0.7; }
}

/* Brand Image (replacing text) */
.preloader-brand {
    width: 500px;
    height: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    animation: brandImageIn 1s cubic-bezier(0.23, 1, 0.32, 1) 2.7s forwards;
    mix-blend-mode: multiply;
    filter: contrast(1.05);
}

@keyframes brandImageIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Preloader responsive — mobile */
@media (max-width: 768px) {
    .preloader-brand {
        width: 280px;
    }
    .preloader-root {
        width: 120px;
    }
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Match the soil color */
    z-index: 10000;
    /* Above everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

#preloaderVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide the rest of the page while preloader is active */
body.loading {
    overflow: hidden;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

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

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

.logo img {
    height: 60px;
    width: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cart-link {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.cart-link:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* ===================================
   HERO SECTION — Static with video bg
   =================================== */
.hero {
    position: relative;
    height: calc(100vh - 72px);
    display: block;
    background: transparent;
    color: var(--text-dark);
    overflow: hidden;
    padding: 0;
}

.hero-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    opacity: 0.75;
    transform: scale(1.08);
    position: absolute;
    top: 0;
    left: 0;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.45) 0, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(139, 115, 85, 0.45) 0, transparent 60%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-audio-toggle {
    position: absolute;
    right: 1.75rem;
    bottom: 1.75rem;
    z-index: 2;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(0, 0, 0, 0.52);
    color: #f8f9fa;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.hero-audio-toggle i {
    font-size: 1rem;
}

.hero-audio-toggle.is-active {
    background: rgba(248, 249, 250, 0.9);
    color: #343a40;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    max-width: 900px;
    /* Increased width to prevent the line break */

    /* Glass Effect */
    background: rgba(0, 0, 0, 0.3);
    /* Translucent dark overlay */
    backdrop-filter: blur(12px);
    /* Premium frost effect */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Soft highlight on the edge */
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--bg-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Specific fix for the "your" line break on Desktop */
.hero h1 span.static-text {
    white-space: nowrap;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

/* --- Smooth, Premium Word Transition --- */
.hero-changing-word {
    display: inline-block;
    color: var(--primary-light);
    /* Using your lavender for emphasis */
    font-weight: 700;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* Premium "Ease-Out" curve */
    opacity: 0;
    transform: translateY(20px);
    /* Slide up from bottom */
}

.hero-changing-word.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-changing-word.is-exiting {
    opacity: 0;
    transform: translateY(-20px);
    /* Slide out toward top */
}

/* --- Mobile Responsiveness (Critical) --- */
@media (max-width: 768px) {
    .hero-content {
        max-width: 92%;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2rem;
        /* Scaled down for mobile readability */
        white-space: normal;
        /* Allows text to wrap naturally on small screens */
    }

    /* Force the changing word to stay centered and clear on mobile */
    .hero-changing-word {
        display: block;
        margin-top: 0.5rem;
        min-width: auto;
    }

    .hero-bg-video {
        filter: blur(8px) brightness(0.7);
        /* Darken video slightly on mobile for better contrast */
    }
}

.hero .btn {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

/* Legacy animation keyframes kept for other uses */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* --- Brand Story Section --- */
.premium-reel-section {
    padding: 6rem 0;
    overflow: hidden;
}

.reel-container {
    display: flex;
    gap: 40px;
    padding: 0 25%;
    /* Huge padding to allow centering */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* height: 70vh; */
    align-items: center;
}

.reel-card {
    flex: 0 0 400px;
    /* Fixed width like the video reference */
    height: 100%;
    scroll-snap-align: center;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    transform: scale(0.85);
    /* Inactive cards are smaller */
    opacity: 0.5;
    /* Inactive cards are faded */
}

.reel-card.active {
    transform: scale(1.05);
    /* Active card pops up */
    opacity: 1;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for cleaner look */
    gap: 10px;
    margin: 1rem 0;
    list-style: none;
}

.product-list li {
    font-size: 1rem;
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.btn-social {
    background: white;
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    justify-content: flex-start;
}

.btn-social:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-google i {
    color: #DB4437;
}

.btn-facebook i {
    color: #4267B2;
}

/* ===================================
   SECTION STYLES
   =================================== */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--bg-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-content {
    padding: 1rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-signature {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
}

/* ===================================
   PRODUCT GRID
   =================================== */
.products {
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    border: 1px solid rgba(164, 145, 211, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(164, 145, 211, 0.15);
    border-color: rgba(164, 145, 211, 0.2);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Product Badges Container (top-right stack) */
.product-badge-container {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 2;
}

/* Base Product Badge */
.product-badge {
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: inline-block;
    transition: var(--transition);
}

/* Elegant Gradients for Badges */
.product-badge.bestseller {
    background: linear-gradient(135deg, #c9956b, #a47a50);
    box-shadow: 0 4px 12px rgba(164, 120, 70, 0.25);
}

.product-badge.new {
    background: linear-gradient(135deg, #8fb9a8, #6d9383);
    box-shadow: 0 4px 12px rgba(109, 147, 131, 0.25);
}

.product-badge.founders-choice {
    background: linear-gradient(135deg, #a491d3, #7e6ba8);
    box-shadow: 0 4px 12px rgba(126, 107, 168, 0.25);
}

/* Product Detail Badges styling */
.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card.out-of-stock .product-image img {
    filter: grayscale(60%) brightness(0.85);
}

.product-card.out-of-stock::before {
    content: 'Out of Stock';
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .product-badge-container {
        top: 10px;
        right: 8px;
        gap: 4px;
    }
    .product-badge {
        padding: 3px 8px;
        font-size: 0.55rem;
    }
    .product-card.out-of-stock::before {
        top: 10px;          /* Moves it slightly closer to the corner */
        left: 5px;         
        padding: 3px 5px;  /* Reduces the bulkiness of the badge */
        font-size: 0.5rem; /* Scales down the text */
    }
}

.product-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info .btn,
.product-info .btn-interested {
    margin-top: auto;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.product-description {
    color: var(--text-gray);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.price-mrp {
    text-decoration: line-through;
    color: #a19282;
    font-size: 0.9rem;
    font-weight: 400;
}

.price-discount {
    color: #4a7c59;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(74, 124, 89, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-interested {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f8f0ff, #f0e8ff);
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-light);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-interested:hover {
    background: linear-gradient(135deg, #efe4ff, #e6d9ff);
    transform: translateY(-1px);
}

.btn-interested.sent {
    background: var(--bg-light);
    color: var(--success);
    border-color: var(--success);
    cursor: default;
}

/* ===================================
   PRODUCT DETAIL PAGE
   =================================== */
.product-detail-section {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, var(--bg-light) 0%, white 300px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    width: 100%;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    background: var(--bg-light);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail-item {
    width: 100%;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.thumbnail-item:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(164, 145, 211, 0.25);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: 0.5rem 0;
}

.product-detail-name {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-detail-description {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-details-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-detail-section-box {
    background: linear-gradient(135deg, rgba(164, 145, 211, 0.04), rgba(143, 185, 168, 0.04));
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(164, 145, 211, 0.1);
}

.product-detail-section-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.product-detail-section-box p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

.ingredients-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-gray);
}

.ingredients-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-options-top {
    margin: 1.5rem 0;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-display {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 30px;
    text-align: center;
}

.size-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 0.65rem 1.5rem;
    text-align: center;
    border: 2px solid var(--border-light);
    background: white;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 14px rgba(107, 79, 158, 0.3);
}

.price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(164, 145, 211, 0.06), rgba(143, 185, 168, 0.06));
    border-radius: 14px;
    border: 1px solid rgba(164, 145, 211, 0.12);
}

.price-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

.display-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 10px 14px;
    background: rgba(46, 204, 113, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(46, 204, 113, 0.12);
}

.delivery-info i {
    color: var(--success);
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.88rem;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.feature-item i {
    color: var(--success);
    font-size: 0.8rem;
}

.oos-overlay {
    background: linear-gradient(135deg, #fff5f5, #ffeef0);
    border: 1.5px solid #fdd;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.oos-overlay h4 {
    color: var(--error);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.oos-overlay p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.oos-interest-btn {
    padding: 12px 28px;
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.oos-interest-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.oos-interest-btn.sent {
    background: var(--bg-light);
    color: var(--success);
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* ===================================
   AUTH PAGES
   =================================== */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 4rem 0;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 480px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-switch {
    text-align: center;
    color: var(--text-gray);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   CART PAGE
   =================================== */
.cart-section {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    justify-content: center;
    align-items: center;
}

.empty-cart i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-cart h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cart-item-size {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.remove-btn {
    color: var(--error);
    cursor: pointer;
    padding: 0.5rem;
}

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

.cart-item-price {
    text-align: right;
}

.cart-item-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.continue-shopping:hover {
    color: var(--primary-dark);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1.8rem;
    color: var(--text-light);
}

.cart-wrapper.cart-empty {
    grid-template-columns: 1fr;
}

.cart-wrapper.cart-empty .cart-items-container {
    display: flex;
    justify-content: center;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ===================================
   ORDERS PAGE
   =================================== */
.orders-section {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.order-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;

    /* Hardware acceleration & paint optimization for smooth scrolling */
    content-visibility: auto;
    contain-intrinsic-size: 300px;
    transform: translateZ(0);
    will-change: transform;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.order-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-delivered {
    background: #e6f4ea;
    color: var(--success);
}

.status-shipping {
    background: #e8f0fe;
    color: var(--info);
}

.status-pending {
    background: #fef7e0;
    color: var(--warning);
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.order-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.order-item-details p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.order-item-price {
    font-weight: 700;
    color: var(--text-dark);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
}

.order-total strong {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    gap: 1rem;
}

.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 16px;
}

.empty-orders i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-orders h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-orders p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 5rem 0;
    margin-top: 4rem;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-section h3 {
    font-size: 2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 400px;
    font-size: 1.05rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-image-container {
        height: 400px;
    }

    .product-details-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .product-features {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }

    .nav-right {
        gap: 1.2rem;
    }

    .cart-link {
        color: var(--text-dark);
    }

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

    .nav-links li {
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .product-detail-images {
        position: static;
        top: auto;
    }

    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .order-header {
        flex-direction: column;
        gap: 1rem;
    }

    .order-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-actions {
        flex-direction: column;
    }

    .auth-box {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .product-detail-name {
        font-size: 2rem;
    }

    .display-price {
        font-size: 1.5rem;
    }

    #addToCartBtn {
        padding: 1.2rem;
        font-size: 1.2rem;
        margin-top: 1rem;
    }
}

/* ===================================
   TOAST NOTIFICATION SYSTEM
   =================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    pointer-events: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(120%);
    opacity: 0;
    animation: toastSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    max-width: 380px;
    line-height: 1.4;
}

.toast.toast-removing {
    animation: toastSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast-success {
    background: linear-gradient(135deg, #5C8A6E, #7AA896);
}

.toast-error {
    background: linear-gradient(135deg, #B85C5C, #C76D6D);
}

.toast-info {
    background: linear-gradient(135deg, #6B7FA0, #8A9BB8);
}

.toast i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0 0 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: white;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: 100%;
    }
}

.loader-container {
    grid-column: 1 / -1;
    /* Spans across the whole grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#user-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.address-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.address-card h4 {
    margin-bottom: 10px;
}

.address-card p {
    margin: 3px 0;
    color: #666;
}

.select-address {
    margin-top: 15px;
    width: 100%;
}

.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.address-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-modal-content input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.selected-address-box {
    background: #f9f7ff;
    border: 1px solid #e4dcff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.selected-address-box h3 {
    margin-bottom: 10px;
}

.default-badge {
    background: #efe9ff;
    color: #6b4ce6;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 600;
}

.address-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.address-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.address-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 14px;
}

.section-divider {
    height: 1px;
    background: #eee;
    margin: 25px 0;
}

.checkout-title {
    margin-top: 30px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.add-address-btn {
    margin-top: 20px;
}

.address-grid {
    margin-top: 20px;
    gap: 22px;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.checkout-logo {
    height: 80px;
}

.secure-text {
    font-size: 16px;
    color: #666;
}

.payment-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.proceed-payment-btn {
    padding: 14px 28px;
    font-size: 16px;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-paid {
    background: #e8f7ee;
    color: #2ecc71;
}

.status-pending {
    background: #fff4e5;
    color: #f39c12;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.order-shipping {
    max-width: 60%;
    font-size: 14px;
    color: #666;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    gap: 40px;
}

.shipping-block {
    flex: 2;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.summary-block {
    flex: 1;
    text-align: right;
}

.summary-block strong {
    font-size: 20px;
    color: #9b87d3;
}

.summary-block h4,
.shipping-block h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.reorder-btn {
    background: #9b87d3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.reorder-btn:hover {
    background: #7f6bbf;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: white;
    padding: 28px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#confirmStatus {
    background: #6C5CE7;
    color: white;
}

#cancelStatus {
    background: #eee;
}

.order-timeline {
    margin-top: 25px;
    position: relative;
}

.timeline-bar {
    width: 100%;
    height: 4px;
    background: #e5e5e5;
    border-radius: 4px;
    position: relative;
}

.timeline-progress {
    height: 4px;
    background: #1DBF73;
    border-radius: 4px;
    transition: width .4s ease;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.timeline-step {
    text-align: center;
    flex: 1;
    font-size: 12px;
    color: #aaa;
}

.timeline-step .dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 6px auto;
}

.timeline-step.done {
    color: #1DBF73;
    font-weight: 600;
}

.timeline-step.done .dot {
    background: #1DBF73;
}

/* ===================================
   PROMO RIBBON & TESTIMONIALS (NEW)
   =================================== */
.promo-ribbon {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    white-space: nowrap;
}

.ribbon-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ribbon-marquee-track {
    display: flex;
}

.ribbon-marquee-content {
    display: flex;
    flex-shrink: 0;
    animation: ribbonScroll 20s linear infinite;
}

.ribbon-message {
    padding: 0 30px;
    display: inline-block;
}

.promo-ribbon strong {
    color: #FFD700;
}

@keyframes ribbonScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Rolling Testimonials */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.marquee-track {
    display: flex;
}

.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    animation: scroll 20s linear infinite;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin: 0 15px;
    min-width: 350px;
    white-space: normal;
    border: 1px solid rgba(138, 122, 184, 0.1);
    flex-shrink: 0;
}

.testimonial-card.image-review {
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    width: 280px;
    min-width: 280px;
    height: 500px;
}

.review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 0.85rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        padding: 20px;
    }
}

/* Interactive Review System */
.reviews-container {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-item-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-item-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.review-item-stars i {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-item-text {
    margin-top: 10px;
    color: var(--text-dark);
    line-height: 1.5;
}

.review-form-container {
    background: var(--bg-cream);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
}

.review-form-container h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.star-rating-input {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #FFD700;
    cursor: pointer;
}

.star-rating-input i {
    transition: transform 0.2s;
}

.star-rating-input i:hover {
    transform: scale(1.2);
}

#reviewComment {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    resize: vertical;
}

#reviewComment:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Dynamic Product Rating Display */
.product-rating-dynamic {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-rating-dynamic .rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-rating-dynamic .rating-stars i {
    color: #FFD700;
    font-size: 1.05rem;
}

.product-rating-dynamic .rating-stars i.empty {
    color: #e0d6cc;
}

.product-rating-dynamic .rating-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-left: 4px;
}

.product-rating-dynamic .rating-count {
    font-size: 0.92rem;
    color: var(--text-gray);
}

.product-rating-dynamic .no-reviews {
    font-size: 0.92rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Review Login Gate Prompt */
.review-login-gate {
    background: linear-gradient(135deg, #f8f0ff, #f0e8ff);
    border: 1.5px dashed var(--primary-light);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin-top: 10px;
}

.review-login-gate i.gate-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
    opacity: 0.75;
}

.review-login-gate .gate-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.review-login-gate .gate-sub {
    font-size: 0.88rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.review-login-gate .gate-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.review-login-gate .gate-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 145, 211, 0.35);
}

/* ===================================
   MOBILE: PRODUCT GRID ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image {
        height: 160px;
        /* Reduced height for smaller cards */
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .product-badge-container {
        top: 10px;
        right: 8px;
        gap: 4px;
    }

    .product-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }

    .btn-full {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* CART MOBILE OPTIMIZATION */
    .cart-section {
        padding: 2rem 0;
    }

    .cart-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-item {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        flex: 1;
        min-width: calc(100% - 110px);
        /* Leaves space for 80px image + 1rem gap */
        display: flex;
        flex-direction: column;
    }

    .cart-item-name {
        font-size: 1.15rem;
        margin-bottom: 0.2rem;
    }

    .cart-item-size {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .cart-item-price {
        width: 100%;
        text-align: right;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
        margin-top: 0.5rem;
    }

    .cart-item-price-value {
        font-size: 1.2rem;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .cart-summary {
        padding: 1.5rem;
    }

    /* PRODUCT DETAIL MOBILE OPTIMIZATION */
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-images {
        position: relative;
        top: 0;
    }

    .main-image-container {
        height: 350px;
    }

    .thumbnail-item {
        height: 70px;
    }

    .product-detail-name {
        font-size: 2rem;
    }

    .display-price {
        font-size: 1.6rem;
    }

    /* ORDERS PAGE MOBILE OPTIMIZATION */
    .order-card {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .reorder-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .order-item {
        gap: 0.8rem;
    }

    .order-item img {
        width: 60px;
        height: 60px;
    }

    .order-item-details h4 {
        font-size: 1rem;
    }

    .order-timeline {
        margin-top: 30px;
        padding-bottom: 10px;
    }

    .timeline-steps {
        gap: 5px;
    }

    .timeline-step .label {
        font-size: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.2;
    }

    .order-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .shipping-block,
    .summary-block {
        width: 100%;
    }

    .summary-block {
        background: var(--bg-light);
        padding: 1rem;
        border-radius: 8px;
    }
}