/* Variable Definitions */
:root {
    --bg-cream: #FFFDF5;
    --text-brown: #3E2723;
    --accent-gold: #D4AF37;
    --soft-shadow: 0 4px 20px rgba(62, 39, 35, 0.08);
    /* slightly browner shadow */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --header-height: 60px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-cream);
    font-family: var(--font-sans);
    color: var(--text-brown);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFFDF5;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
    border: 2px solid #FFFDF5;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}

/* Premium Animations */

/* 3D Reveal Animation */
@keyframes rotateUp {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(15deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Ken Burns Effect */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Base Reveal Class */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Reveal Variant */
.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) translateY(50px) rotateX(20deg);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-3d.active {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0);
}

/* Stagger Logic */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* Magnetic Button (JS Hook) */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    display: inline-block;
}


/* Sticky Header (Reset for Wrapper) */
.site-header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header Actions (Left & Right) */
.header-left,
.header-right,
.header-center {
    display: flex;
    align-items: center;
    flex: 1;
    /* Equal width distribution */
}

.header-left {
    justify-content: flex-start;
    gap: 15px;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
    gap: 20px;
}

/* Brand Logo (New Location) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-brown);
}

.brand-logo-icon {
    width: 28px;
    height: 28px;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Global Announcement Bar */
.announcement-bar {
    background-color: #3E2723;
    /* Consistent brown */
    color: #D4AF37;
    /* Gold */
    font-size: 0.8rem;
    padding: 8px 0;
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
    /* Hide scrollbar */
    position: relative;
    z-index: 2000;
}

.announcement-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    /* Slightly smaller for elegance */
}

.separator {
    margin: 0 40px;
    opacity: 0.6;
    font-size: 1.2em;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .desk-only {
        display: none !important;
    }

    .site-header {
        justify-content: space-between;
        /* Ensure flex spacing */
        position: relative;
        /* For absolute centering context */
        padding: 0 15px;
        /* Adjust padding */
    }

    /* Force Centering */
    .brand-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        display: flex;
        align-items: center;
        gap: 5px;
        z-index: 10;
        margin: 0 !important;
        /* Remove any auto margins */
    }

    /* Keep Menu Left */
    .header-left {
        justify-content: flex-start;
        width: 60px;
        /* Limit width */
        flex: 0 0 60px;
    }

    /* Keep Cart Right */
    .header-right {
        justify-content: flex-end;
        width: 60px;
        flex: 0 0 60px;
    }

    .brand-name {
        /* Professional Premium Gold */
        background: linear-gradient(to right, #B8860B, #FFD700, #FDB931, #D4AF37, #B8860B);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        animation: shineMove 6s linear infinite;
        /* Slow, elegant shimmer */
        font-weight: 800;
        font-size: 1.5rem;
        display: inline-block;
        letter-spacing: 1.5px;
        filter: drop-shadow(0 2px 2px rgba(62, 39, 35, 0.2));
        /* Subtle depth */
    }

    .brand-logo-icon {
        /* Optional: Animate icon too or keep gold */
        color: #D4AF37;
        fill: #D4AF37;
        /* If SVG supports fill */
        animation: pulseIcon 2s infinite ease-in-out;
    }
}

@keyframes shineMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Auth Links */
.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    text-decoration: none;
    color: var(--text-brown);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--accent-gold);
}

.auth-divider {
    color: #ccc;
}

/* Helper Classes */
.desk-only {
    display: none !important;
}

/* Professional Icon Button */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    /* Touch target size */
    border-radius: 50%;
    /* Circular hover */
    color: #5D4037;
    /* Brand Brown */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background-color: rgba(93, 64, 55, 0.08);
    /* Subtle circular bloom */
    transform: scale(1.05);
    /* Tactile feedback */
    color: #D4AF37;
    /* Gold accent on hover */
}

.icon-btn svg {
    width: 26px;
    /* Slightly larger for visibility */
    height: 26px;
}

/* Mobile First Adjustments */


/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    /* Half screen / Drawer Width */
    max-width: 320px;
    /* Professional max width */
    height: 100vh;
    /* Use vh to ensure viewport cover */
    background-color: #FAF3E0 !important;
    /* Explicit background-color */
    background-image: none !important;
    opacity: 1 !important;
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother drawer animation */
    padding: 20px 0;
    /* Remove side padding from container, add to items */
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(62, 39, 35, 0.2);
    /* Deep shadow */
    border-radius: 0 16px 16px 0;
    /* Rounded corners on right side */
    overflow-y: auto;
    /* Allow scrolling if content is long */
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}



/* Adjust overlay to be visible with half-screen menu */
.mobile-sidebar.active~.mobile-overlay,
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Removed sidebar-header styles */

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #5D4037;
    z-index: 2002;
    transition: transform 0.2s;
    line-height: 0.5;
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    /* Start from top */
    padding: 0;
    /* Remove horizontal padding from container */
    height: auto;
    margin-top: 50px;
    /* Space for close button */
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    /* Comfortable touch area */
    text-decoration: none;
    color: #5D4037 !important;
    /* Deep Brown/Maroon - Important prevents global overrides */
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(93, 64, 55, 0.08);
    /* Even softer separator */
    transition: all 0.3s ease;
    opacity: 0;
    /* Initial state for animation */
    transform: translateY(20px);
}

/* Accordion Styles */
.menu-accordion-header {
    width: 100%;
    padding: 15px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    /* Match other links */
    font-weight: 700;
    color: #5D4037;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    /* Match section style */
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(93, 64, 55, 0.05);
}

.menu-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(0, 0, 0, 0.02);
    /* Slight dim for depth */
}

.menu-accordion-content.active {
    max-height: 2500px;
    overflow-y: auto;
    /* Allow localized scrolling if list gets massive */
    -webkit-overflow-scrolling: touch;
    /* Add native iOS mobile scroll momentum */
    /* High enough to fit all categories and packages safely */
    transition: max-height 0.6s ease-in-out;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #D4AF37;
}

.menu-accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* Adjust sub-link styles for inside accordion */
/* Adjust sub-link styles for inside accordion */
.menu-accordion-content {
    padding: 5px 15px 15px 15px;
    /* Add padding to container */
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Space between cards */
}

.sidebar-link.sub-link {
    font-size: 0.95rem;
    padding: 12px 15px;
    background-color: transparent;
    /* Blend with background */
    border: none;
    border-bottom: 1px solid rgba(93, 64, 55, 0.05);
    /* Softer line */
    border-radius: 0;
    color: #5D4037 !important;
    display: flex;
    justify-content: space-between;
    /* Text left, arrow right */
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link.sub-link span {
    text-align: left;
    flex: 1;
    padding-right: 15px;
}

.sidebar-link.sub-link .sub-arrow {
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.sidebar-link.sub-link:hover {
    padding-left: 18px;
    /* Slight indent on hover */
    background-color: rgba(93, 64, 55, 0.03);
    /* Subtle highlight */
}

.sidebar-link.sub-link:hover .sub-arrow {
    opacity: 1;
    transform: translateX(3px);
    /* Arrow moves right */
    color: #D4AF37;
}

/* Premium Mobile Auth & Cart Buttons */
.btn-login:hover,
.btn-register:hover,
.btn-cart:hover {
    background-color: rgba(212, 175, 55, 0.08);
    /* Soft Gold Background */
    color: #D4AF37 !important;
    /* Gold Text */
    padding-left: 30px;
    /* Indent */
}

.btn-login:hover .link-icon svg,
.btn-register:hover .link-icon svg,
.btn-cart:hover .link-icon svg {
    stroke: #D4AF37;
}

.btn-logout {
    color: #e53935 !important;
    /* Warning Red */
    font-weight: 700;
}

.btn-logout:hover {
    background-color: rgba(229, 57, 53, 0.08);
    /* Soft Red Background */
    color: #c62828 !important;
    /* Darker Red Text */
}

.btn-logout:hover .sub-arrow {
    color: #c62828;
}

/* Slide In Animation for Links */
.mobile-sidebar.active .sidebar-link {
    animation: slideInSidebar 0.5s forwards;
}

/* Staggered delays */
.mobile-sidebar.active .sidebar-link:nth-child(n) {
    animation-delay: 0.1s;
}

.sidebar-link:hover {
    background-color: rgba(93, 64, 55, 0.05);
    /* Subtle bg hover */
    color: #5D4037;
    padding-left: 15px;
    /* Slight movement */
    border-bottom-color: rgba(93, 64, 55, 0.2);
}

.sidebar-link.sub-link:hover {
    padding-left: 25px;
    /* More indent on hover */
    color: #D4AF37;
}

@keyframes slideInSidebar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    width: 20px;
}

/* Specific text alignment for items without icons */
.sidebar-link.has-arrow {
    justify-content: flex-start;
}

.link-arrow {
    margin-left: 5px;
    width: 16px;
    height: 16px;
    color: #5D4037;
}

/* Install App Button */
.sidebar-btn.install-app-btn {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(93, 64, 55, 0.05);
    border: 1px solid rgba(93, 64, 55, 0.2);
    border-radius: 8px;
    /* Slightly rounded box */
    color: #5D4037 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    /* Full width */
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-sidebar.active .sidebar-btn.install-app-btn {
    animation: slideInSidebar 0.5s forwards 0.5s;
    /* Delay after links */
}

/* Social Media Row */
.sidebar-socials {
    margin-top: auto;
    /* Push to bottom if flex-col takes height, or just defined space */
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    border-top: 1px solid rgba(93, 64, 55, 0.05);
    /* Separtor */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Desktop Navigation (Tablets & Desktop) */
@media (min-width: 768px) {
    .site-header {
        padding: 15px 40px 0 40px;
        height: auto;
        flex-wrap: wrap;
    }

    .header-left,
    .header-right {
        flex: 1 1 50%;
    }

    .header-right {
        justify-content: flex-end;
    }

    .header-center {
        flex: 0 0 100%;
        order: 3;
        margin-top: 15px;
        padding: 15px 0;
        border-top: 1px solid rgba(93, 64, 55, 0.08);
        /* Premium separator line */
        display: flex;
        justify-content: center;
    }

    .desk-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
        /* Vertical and horizontal gap */
        align-items: center;
        max-width: 100%;
        /* Ensure it doesn't overflow parent */
    }

    .nav-link {
        text-decoration: none;
        color: var(--text-brown);
        font-family: var(--font-sans);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
        position: relative;
        padding: 5px 0;
        transition: color 0.3s;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-gold);
        transition: width 0.3s ease;
    }

    .nav-link:hover, .nav-link.active {
        color: var(--accent-gold);
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #fff;
        min-width: 200px;
        box-shadow: 0 10px 30px rgba(62, 39, 35, 0.1);
        border-radius: 12px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1100;
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-item {
        display: block;
        padding: 12px 20px;
        text-decoration: none;
        color: var(--text-brown);
        font-size: 0.9rem;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        text-align: left;
    }

    .dropdown-item:hover, .dropdown-item.active {
        background-color: rgba(212, 175, 55, 0.05);
        color: var(--accent-gold);
        font-weight: 700;
    }

    /* Keep old classes for backwards compatibility */
    .dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .dropdown-link {
        display: block;
        padding: 12px 20px;
        text-decoration: none;
        color: var(--text-brown);
        font-size: 0.9rem;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        text-align: left;
    }

    .dropdown-link:hover {
        background: var(--bg-cream);
        color: var(--accent-gold);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    /* Reduced viewport height for visibility of content below */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: calc(-1 * var(--header-height));
    /* Pull up behind header if transparent, or just to ensure full coverage */
    /* Note: Since header has background, let's keep it clean. 
       If we want header ON TOP of hero, we need header position sticky (already set) and Z-index high. 
       To make hero START at top of page, we effectively just place it there. 
       But header occupies space. We'll make hero 100vh and let header sit on top. 
    */
    padding-top: var(--header-height);
    /* Ensure content isn't hidden behind header */
}

/* Background Image with Parallax/Zoom */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/andhra_sweets_hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: gentleZoom 20s infinite alternate;
    /* Slow zoom effect */
}

/* Overlay for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    /* Richer, darker editorial gradient */
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Cinematic shadow */
    font-weight: 700;
    line-height: 1.3;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    /* Ensures the content is not revealed until the animation */
    border-right: 3px solid var(--accent-gold);
    /* The typwriter cursor */
    white-space: nowrap;
    /* Keeps the content on a single line */
    margin: 0 auto;
    /* Gives that scrolling effect as the typing happens */
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    font-weight: 300;
    font-size: 0.8em;
    font-style: italic;
    max-width: fit-content;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-gold);
    }
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 14px 34px;
    /* Larger pill */
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-brown);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    /* Gold glow */
}

.btn-primary:hover {
    background-color: #c5a028;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
    /* Stronger hover glow */
}

.btn-outline {
    background-color: rgba(62, 39, 35, 0.85);
    /* Dark Brown Semi-transparent */
    color: #D4AF37;
    /* Gold */
    border-color: #D4AF37;
    backdrop-filter: blur(5px);
    /* Frosted effect */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background-color: #D4AF37;
    color: #3E2723;
    /* Brown text on Gold bg */
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    /* Gold glow */
}

/* Button Mobile Styles */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-cart,
    .btn-update,
    .btn-remove {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .btn-primary {
        min-width: 120px;
    }

    .btn-cart {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .add-cart-main {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile Buttons */
@media (max-width: 480px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-cart,
    .btn-update,
    .btn-remove {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .add-cart-main {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes gentleZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hp-welcome {
        padding: 15px !important;
    }

    .welcome-title {
        font-size: 2rem !important;
        margin: 20px 0 15px !important;
    }

    .welcome-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* Desktop Adjustments for Hero */
@media (min-width: 1024px) {
    .hp-hero {
        height: 55vh;
        min-height: 450px;
        /* Don't force full height on ultrawide, reduced banner size */
        border-radius: 0 0 20px 20px;
        /* Stylish bottom curve for desktop */
        margin-bottom: 20px;
    }

    .hero-content {
        max-width: 1000px;
        /* Keep text readable */
    }

    .hero-title {
        font-size: 4rem;
        /* Larger on desktop */
        margin-bottom: 30px;
    }
}

/* Welcome Section */
.hp-welcome {
    padding: 20px;
    background-color: var(--bg-cream);
}

.welcome-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin: 40px 0 20px;
    text-align: center;
    color: var(--text-brown);
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

.welcome-text {
    text-align: center;
    max-width: 800px;
    /* Wider slightly on desktop */
    margin: 0 auto;
    line-height: 1.8;
    color: #5D4037;
    font-size: 1.15rem;
}

/* Desktop Adjustments for Welcome */
@media (min-width: 1024px) {
    .hp-welcome {
        padding: 60px 20px;
        /* More breathing room */
    }

    .welcome-title {
        font-size: 3.5rem;
        /* Larger and more editorial */
    }

    .welcome-text {
        font-size: 1.3rem;
    }
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 40px 20px;
    background-color: var(--bg-cream);
    scrollbar-width: none;
    max-width: 1200px;
    /* Desktop centering */
    margin: 0 auto;
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
}

.category-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Circle */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.1);
    /* Soft premium shadow */
    border: 3px solid var(--bg-cream);
    /* Premium ring effect */
    position: relative;
    background-color: #eee;
    transition: all 0.4s ease;
}

/* Dynamic Shine Effect for Categories */
.category-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 10;
    pointer-events: none;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-img {
    transform: scale(1.15);
    /* Slightly more zoom for dynamic feel */
}

.category-item:hover .category-img-wrapper {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
    /* Gold glow effect */
    border-color: #fff;
}

.category-item:hover .category-img-wrapper::after {
    left: 150%;
}

.category-label {
    font-size: 0.85rem;
    color: var(--text-brown) !important;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    margin-top: 5px;
}

/* Mobile label adjustment */
@media (max-width: 768px) {
    .category-label {
        font-size: 0.8rem;
        color: #3E2723 !important;
        /* Force brown on mobile */
    }
}

.product-section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-left: 20px;
    /* Align with scroll padding */
    color: var(--text-brown);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 20px 40px 20px;
    /* Bottom padding for shadow/hover space */
    scrollbar-width: none;
    max-width: 1200px;
    /* Desktop centering */
    margin: 0 auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
}

/* Unified Sticky Wrapper */
.sticky-main-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 253, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--soft-shadow);
    transition: all 0.3s ease;
}

/* Health Sub-Navigation (Inside Wrapper) */
.sweets-subnav {
    position: relative;
    /* Stacks naturally */
    top: auto;
    /* Reset sticky top */
    z-index: 1;
    background-color: transparent;
    /* Blends with wrapper */
    margin-top: 0;
    /* Clean stack */
    border-top: 1px solid rgba(62, 39, 35, 0.05);
    /* Separator */
    border-bottom: none;
    width: 100%;
}

.subnav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* Horizontal scroll on mobile */
    scrollbar-width: none;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    white-space: nowrap;
    justify-content: center;
    /* Center on desktop */
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
}

.subnav-container::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .subnav-container {
        justify-content: flex-start;
        /* Start align for scroll on mobile */
        padding: 10px 15px;
        gap: 12px;
    }

    .subnav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

.product-card {
    /* Rounder, modern app card */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.06);
    /* Premium deep soft shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    /* Clean look */
    display: flex;
    flex-direction: column;
    position: relative;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
}

/* Shine Effect Overlay */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 10;
    pointer-events: none;
}

.product-card:hover::after {
    left: 150%;
}

.product-card:hover {
    transform: perspective(1000px) translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: -5px 25px 50px rgba(62, 39, 35, 0.15);
}

.product-image-wrapper {
    height: 220px;
    /* Taller image area */
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    /* Slower, smoother zoom */
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
    position: relative;
    z-index: 2;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    /* Larger title */
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-brown);
    letter-spacing: -0.5px;
}

.product-price {
    font-size: 1rem;
    color: var(--accent-gold);
    /* Gold price */
    font-weight: 700;
    margin-bottom: 0;
    /* Remove bottom margin so it aligns nicely with the button */
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    /* Ensure spacing between price and button */
    flex-wrap: wrap;
    /* Allow wrapping if totally squished, though we want them together */
}

.add-btn {
    background-color: transparent;
    color: var(--text-brown);
    border: 1px solid var(--text-brown);
    padding: 6px 15px;
    /* Adjust padding slightly */
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    /* Center horizontally relative to footer */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Reduce tracking slightly so it fits better */
    white-space: nowrap;
    /* Prevent wrapping */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.add-btn:hover {
    background-color: var(--text-brown);
    color: #fff;
}

/* Desktop Adjustments */
@media (min-width: 1024px) {
    .product-scroll-container {
        gap: 30px;
        padding-left: 40px;
        /* Match container padding */
        padding-right: 40px;
    }

    .product-section-title {
        padding-left: 40px;
        font-size: 2.2rem;
    }

    .product-card {
        flex: 0 0 280px;
        /* Slightly larger cards on desktop */
    }

    .product-image-wrapper {
        height: 240px;
    }
}

/* Mobile Adjustments for Product Cards */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 160px;
        /* Smaller, more mobile-friendly */
        width: 160px;
        margin: 0 auto;
        /* Center cards */
    }

    .product-image-wrapper {
        height: 140px;
        /* Shorter for mobile */
    }

    .product-info {
        padding: 12px;
        /* Less padding on mobile */
    }

    .product-name {
        font-size: 1rem;
        /* Smaller title */
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .add-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .product-card {
        flex: 0 0 140px;
        width: 140px;
    }

    .product-image-wrapper {
        height: 120px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.85rem;
    }
}

/* Signature Sweets Section */
.signature-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    /* Light grey/cream background */
    margin-top: 40px;
}

.signature-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-brown);
    margin-bottom: 5px;
}

.signature-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 50px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.signature-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.06);
    /* Match product cards */
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
    padding-bottom: 25px;
}

.signature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.signature-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.signature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.signature-card:hover .signature-img {
    transform: scale(1.05);
}

.signature-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    padding: 0 15px;
}

.signature-emotion {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #888;
    padding: 0 15px;
}

/* Signature Grid Mobile */
@media (max-width: 768px) {
    .signature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }

    .signature-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .signature-subtitle {
        padding: 0 15px;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile Grids */
@media (max-width: 480px) {
    .signature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .signature-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .signature-subtitle {
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Famous Origins Section */
.origin-section {
    padding: 30px 0 50px 0;
    overflow: hidden;
}

.origin-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-brown);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.origin-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 20px 20px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.origin-scroll-container::-webkit-scrollbar {
    display: none;
}

.origin-card {
    flex: 0 0 160px;
    /* Small width */
    height: 200px;
    /* Vertical aspect */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 10px 25px rgba(62, 39, 35, 0.08);
    /* Premium shadow */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.15);
    /* Hover shadow */
}

.origin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.origin-card:hover .origin-img {
    transform: scale(1.1);
}

.origin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 10px 10px 10px;
    color: #fff;
    text-align: center;
}

.origin-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}



/* Health Collection Styles */
.health-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    text-align: center;
    color: var(--text-brown);
    margin-bottom: 10px;
    margin-top: 30px;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.health-card {
    background-color: #F7F9F8;
    /* Soft green/white tint */
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.health-card:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    transform: translateY(-5px);
    border-color: #E0E0E0;
}

.health-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
    padding: 5px;
    /* Inner border feeling */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.health-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.health-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-brown);
    margin-bottom: 5px;
    font-weight: 700;
}

.health-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .health-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .health-card {
        padding: 30px 20px;
    }
}

/* Mobile Nav & Header Adjustments */
@media (max-width: 767px) {

    /* Hide specific header elements on mobile */
    .brand-center,
    .search-btn {
        display: none !important;
    }

    /* Move Bottom Nav to BOTTOM */
    .mobile-bottom-nav {
        top: auto;
        bottom: 20px;
        width: 95%;
        /* Wider to prevent wrapping */
        max-width: 380px;
        padding: 12px 15px;
        background-color: #F8F1E7;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

    /* Ensure Header space is strictly for Menu and Profile */
    .site-header {
        justify-content: space-between;
        padding: 0 20px;
        height: 60px;
        /* Reduced height for minimal feel */
    }

    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 90px;
    }
}

/* Original Mobile Bottom Nav Styles */
.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F8F1E7;
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1500;
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    text-decoration: none;
    color: #4A342E;
    font-size: 0.85rem;
    /* Slightly smaller to fit */
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    /* Prevent wrapping */
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.bottom-nav-item:hover {
    color: var(--accent-gold);
}

/* Ensure content isn't hidden behind bottom nav */
@media (max-width: 1023px) {}

/* Footer Styles */
.site-footer {
    background-color: #3E2723;
    color: #FFFDF5;
    padding: 40px 20px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-brand .brand-name {
    font-size: 1.8rem;
    color: #D4AF37;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #FFFDF5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #D4AF37;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .footer-brand {
        margin-bottom: 10px;
    }

    .footer-brand .brand-name {
        font-size: 1.2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-link {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile Footer */
@media (max-width: 480px) {
    .footer-content {
        padding: 15px;
    }

    .footer-brand .brand-name {
        font-size: 1.1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }
}

/* Product Detail Page Styles */
.pd-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.pd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

/* Product Detail Page Mobile */
@media (max-width: 768px) {
    .pd-hero {
        height: 50vh;
    }

    .pd-container {
        margin: -30px auto 0 auto;
        padding: 0 15px;
    }

    .pd-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .pd-price {
        font-size: 1.5rem;
    }

    .pd-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .variant-section {
        padding: 15px;
    }

    .variant-grid {
        gap: 10px;
    }

    .variant-card {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Product Detail */
@media (max-width: 480px) {
    .pd-hero {
        height: 40vh;
    }

    .pd-container {
        margin: -20px auto 0 auto;
        padding: 0 10px;
    }

    .pd-title {
        font-size: 1.6rem;
    }

    .pd-price {
        font-size: 1.3rem;
    }

    .variant-section {
        padding: 10px;
    }
}

.pd-header {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
}

.pd-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-brown);
    margin-bottom: 10px;
}

.origin-pill {
    display: inline-flex;
    align-items: center;
    background: #F8F1E7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-brown);
    margin-bottom: 15px;
}

.origin-icon {
    margin-right: 5px;
}

.pd-description {
    color: #666;
    line-height: 1.6;
}

.pd-section {
    margin-bottom: 40px;
}

.pd-section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-brown);
    margin-bottom: 20px;
}

.variant-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.variant-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.variant-card.selected {
    border-color: var(--accent-gold);
    background-color: #FFFDF5;
}

.variant-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
}

.variant-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.variant-weight {
    font-weight: 700;
    color: var(--text-brown);
}

.variant-price {
    color: #888;
    font-size: 0.9rem;
}

.variant-save {
    font-size: 0.75rem;
    color: #2E7D32;
    /* Green */
    font-weight: 700;
}

.variant-check {
    display: none;
}

.variant-card.selected .variant-check {
    display: block;
}

.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.gallery-item {
    flex: 0 0 140px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px;
    text-align: center;
}

/* Inline Actions */
.inline-actions {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px 10px;
}

.qty-btn-main {
    width: 30px;
    height: 30px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-brown);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qty-val-main {
    margin: 0 15px;
    font-weight: 700;
    font-family: var(--font-sans);
}

.add-cart-main {
    background-color: var(--accent-gold);
    color: var(--text-brown);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    flex-grow: 1;
    margin-left: 20px;
    transition: transform 0.2s;
}

.add-cart-main:hover {
    transform: translateY(-2px);
}

/* Hide Sticky Action Bar on desktop if inline actions are used */
.sticky-action-bar {
    display: none;
}

/* ------------------------------------------- */
/* Product Detail Page Styles (Premium) */
/* ------------------------------------------- */

.pd-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Immersive half-screen */
    overflow: hidden;
    margin-top: -80px;
    /* Pull behind sticky header if transparent/glass */
    padding-top: 80px;
}

.pd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: gentleZoom 20s infinite alternate;
}

.pd-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-cream) 0%, transparent 100%);
    pointer-events: none;
}

.pd-container {
    max-width: 800px;
    /* Editorial reading width */
    margin: -80px auto 0;
    /* Overlap hero */
    position: relative;
    padding: 0 20px 120px;
    /* Bottom padding for sticky bar */
    z-index: 10;
}

.pd-header {
    text-align: center;
    margin-bottom: 40px;
}

.pd-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-brown);
    margin-bottom: 15px;
    line-height: 1.1;
}

.origin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.pd-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5D4037;
    max-width: 600px;
    margin: 0 auto;
}

.pd-section {
    margin-bottom: 50px;
}

.pd-section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-brown);
    border-left: 3px solid var(--accent-gold);
    padding-left: 15px;
}

/* Variant Cards */
.variant-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.variant-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.variant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.variant-card.selected {
    border-color: var(--accent-gold);
    background: #fffbf0;
    /* Light gold tint */
}

.variant-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.variant-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.variant-weight {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-brown);
}

.variant-price {
    color: #666;
    font-size: 0.95rem;
}

.variant-save {
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 700;
    margin-top: 2px;
}

.variant-check {
    width: 24px;
    height: 24px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.variant-card.selected .variant-check {
    opacity: 1;
    transform: scale(1);
}

/* Sticky Action Bar */
.inline-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 900;
    animation: slideUp 0.5s ease-out 0.5s backwards;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 30px;
}

.qty-btn-main {
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-brown);
    width: 20px;
    display: flex;
    justify-content: center;
}

.qty-val-main {
    font-weight: 700;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.add-cart-main {
    flex-grow: 1;
    background: var(--text-brown);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-cart-main:hover {
    background: var(--accent-gold);
    color: var(--text-brown);
}

/* Gallery Scroll */
.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-img {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.gallery-caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Sweets Sub-Navigation */
.sweets-subnav {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: var(--header-height);
    /* Stick below main header */
    z-index: 990;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.subnav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Hide scrollbar */
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
}

.subnav-container::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .subnav-container {
        justify-content: flex-start;
        padding: 12px 14px;
        gap: 14px;
    }

    .subnav-link {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

.subnav-link {
    text-decoration: none;
    color: var(--text-brown);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.subnav-link:hover,
.subnav-link.active {
    opacity: 1;
    color: var(--accent-gold);
}

.subnav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

/* Famous Origins Section */
.origins-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-brown);
    margin-bottom: 20px;
    padding-left: 5px;
}

.origins-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    /* Space for shadow */
    -webkit-overflow-scrolling: touch;
    /* Smooth swipe */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.origins-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.origin-card-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
    /* Do not shrink/grow */
}

.origin-card {
    width: 200px;
    height: 260px;
    /* Fixed height for consistency */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.08);
    /* Soft shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(62, 39, 35, 0.12);
}

.origin-img-wrapper {
    width: 100%;
    height: 160px;
    /* Fixed image height */
    background-color: #f0f0f0;
}

.origin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.origin-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    /* Fill remaining space */
    text-align: center;
}

.origin-place {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-brown);
    margin-bottom: 5px;
}


/* Featured Slider Section */
/* Featured Slider Section */
.featured-slider-section {
    position: relative;
    width: 100%;
    max-width: 1300px;
    /* Slightly wider */
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0d0d0d;
    /* Deep black bg */
    height: 520px;
    /* Optimal height */

    /* Premium Border & Glow */
    border: 2px solid #d4af37;
    /* Metallic Gold */
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.1),
        /* Inner Glow Ring */
        0 15px 45px rgba(0, 0, 0, 0.4);
    /* Softer Deep Drop Shadow */
}

/* Mobile height adjustment */
@media (max-width: 768px) {
    .featured-slider-section {
        height: auto;
        min-height: 500px;
    }
}

.featured-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    animation: fadeSlide 0.5s ease-in-out;
}

.featured-slide.active {
    display: flex;
    align-items: center;
}

@keyframes fadeSlide {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

.featured-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.featured-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.featured-content-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 60px;
}

.featured-text-content {
    max-width: 50%;
    color: #fff;
}

.featured-badge {
    border: 1px solid #c5a028;
    color: #c5a028;
    padding: 5px 15px;
    border-radius: 20px;
    /* Pill shape for badge */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.featured-title {
    font-family: 'Playfair Display', serif;
    /* Use Google font directly or var if defined */
    font-size: 3rem;
    color: #eebb4d;
    /* Matches the gold in the image */
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.featured-divider {
    width: 100px;
    height: 3px;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="3" viewBox="0 0 100 3" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 1.5H100" stroke="%23C5A028" stroke-width="1"/></svg>');
    /* Simple gold line */
    background-color: #c5a028;
    /* Fallback */
    margin-bottom: 20px;
}

.featured-features {
    list-style: none;
    margin-bottom: 30px;
}

.featured-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #eee;
    font-family: var(--font-sans);
}

.featured-features li::before {
    content: '•';
    color: #fff;
    position: absolute;
    left: 0;
    top: 0;
}

.featured-btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--text-brown);
    padding: 14px 34px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-sans);
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    /* Gold glow */
}

.featured-btn:hover {
    background-color: #c5a028;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
    /* Stronger hover glow */
}

/* Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.slider-arrow:hover {
    color: #fff;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .featured-slider-section {
        height: auto;
        min-height: auto;
        aspect-ratio: auto;
    }

    .featured-slide {
        height: auto;
        min-height: 400px;
    }

    .featured-content-container {
        flex-direction: column;
        justify-content: flex-end;
        text-align: center;
        padding: 60px 20px 80px 20px;
        height: 100%;
    }

    .featured-text-content {
        max-width: 100%;
        margin-top: auto;
    }

    .featured-bg-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.95) 100%);
    }

    .featured-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .featured-features {
        display: inline-block;
        text-align: left;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .featured-features li {
        margin-bottom: 6px;
    }

    .slider-dots {
        bottom: 20px;
    }
}

/* =========================================
   ADMIN DASHBOARD STYLES (PREMIUM)
   ========================================= */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #F8F9FA;
    /* Softer White/Grey */
}

/* Sidebar Gradient & Texture */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #3E2723 0%, #23120B 100%);
    /* Premium Dark Gradient */
    color: #FFFDF5;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
}

.admin-sidebar-header {
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.admin-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #D4AF37;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 16px;
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    padding: 24px 12px 12px;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5px;
}

/* User Profile in Sidebar */
.sidebar-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D4AF37;
    color: #3E2723;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info-mini h4 {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
}

.user-info-mini p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2D2D2D;
    margin: 0;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar {
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    width: 300px;
    border: 1px solid #eee;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 0.95rem;
    color: #555;
    background: transparent;
}

.icon-btn-header {
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #5D4037;
}

/* Search Bar Mobile */
@media (max-width: 768px) {
    .search-bar {
        width: 100%;
        max-width: 280px;
        padding: 8px 16px;
        margin: 10px 0;
    }

    .search-bar input {
        font-size: 0.9rem;
        margin-left: 8px;
    }

    .icon-btn-header {
        width: 40px;
        height: 40px;
    }
}

/* Extra Small Mobile Search */
@media (max-width: 480px) {
    .search-bar {
        max-width: 250px;
        padding: 6px 12px;
    }

    .search-bar input {
        font-size: 0.85rem;
        margin-left: 6px;
    }

    .icon-btn-header {
        width: 36px;
        height: 36px;
    }
}

.icon-btn-header {
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #eee;
    position: relative;
}

.icon-btn-header:hover {
    transform: translateY(-2px);
    color: #D4AF37;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #e53935;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Stats Cards (Premium) */
.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Premium Soft Shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #D4AF37, #F1C40F);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.stat-trend {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D2D2D;
    line-height: 1;
}

.stat-label {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Product Form Styles (Professional) */
.form-section {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.btn-admin {
    background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
    box-shadow: 0 8px 20px rgba(62, 39, 35, 0.25);
    border-radius: 50px;
    /* Pillow shape for premium feel */
    padding: 14px 28px;
    letter-spacing: 1px;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 0;
        transform: translateX(-100%);
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }
}

/* =========================================
   PROFESSIONAL USER PROFILE STYLES
   ========================================= */

/* Global Page Wrapper (Cart, Checkout, Profile) */
.page-wrapper {
    background-color: #F9F9F9;
    /* Very light grey for contrast against white cards */
    min-height: calc(100vh - 120px);
    /* Fill screen minus header/footer */
    padding: 40px 20px;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
pr#modalBody::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

/* Stylish Bottom Close Button */
.btn-modal-close {
    padding: 12px 35px;
    background: #f5f5f5;
    color: #555;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-close:hover {
    background: #ffebee;
    color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.15);
}

.profile-sidebar {
    background: #fff;
    border-radius: 16px;
    /* Softer corners */
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.05);
    /* Premium Shadow */
    padding: 40px 25px;
    position: sticky;
    top: 100px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.profile-user-info {
    margin-bottom: 40px;
}

.profile-avatar-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FAF3E0 0%, #FFF8E1 100%);
    color: #D4AF37;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid #D4AF37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.profile-user-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-brown);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-user-email {
    font-size: 0.9rem;
    color: #8D8D8D;
    font-weight: 500;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.profile-nav-link {
    padding: 14px 20px;
    text-decoration: none;
    color: #5D4037;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 3px solid transparent;
}

.profile-nav-link i {
    width: 20px;
    text-align: center;
    color: #A1887F;
    transition: color 0.3s;
}

.profile-nav-link:hover {
    background-color: #FFFDF5;
    color: var(--accent-gold);
    transform: translateX(5px);
}

.profile-nav-link.active {
    background-color: #FFFDF5;
    color: var(--text-brown);
    border-left-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
}

.profile-nav-link:hover i,
.profile-nav-link.active i {
    color: var(--accent-gold);
}

.logout-link {
    margin-top: 20px;
    color: #C62828 !important;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
}

.logout-link:hover {
    background-color: #FFEBEE !important;
    color: #B71C1C !important;
    border-left-color: transparent !important;
}

.logout-link i {
    color: #EF5350;
}

/* Content Area Styles */
.profile-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(62, 39, 35, 0.03);
    padding: 50px;
    min-height: 500px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.profile-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    scroll-margin-top: calc(var(--header-height) + 120px);
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-brown);
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.tab-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.tab-subtitle {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.tab-subtitle a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.tab-subtitle a:hover {
    text-decoration: underline;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info h4 {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-brown);
}

/* Tables */
.clean-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.clean-table th {
    text-align: left;
    padding: 15px 10px;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.clean-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #f9f9f9;
    color: #555;
    font-size: 0.95rem;
}

.clean-table tr:hover td {
    background-color: #fafafa;
}

.text-gold {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
}

.text-muted {
    color: #aaa;
    text-align: center;
    font-style: italic;
    margin-top: 20px;
}

.btn-text {
    color: var(--text-brown);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--accent-gold);
}

/* Orders List (Full) */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item-card {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: background 0.3s;
}

.order-item-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.order-item-card:hover::before {
    background: #D4AF37;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.order-id {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-brown);
    margin-right: 20px;
}

.order-date {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status-badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #FFF8E1;
    color: #FFA000;
}

.status-completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.order-total-price {
    font-size: 1.1rem;
    color: var(--text-brown);
}

/* Forms */
.profile-form {
    max-width: 650px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-brown);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: #FAFAFA;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
}

.form-input:focus {
    background: #fff;
    border-color: #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    outline: none;
}

.form-input:disabled {
    background: #f0f0f0;
    color: #999;
    border-color: #e0e0e0;
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Form Mobile Styles */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .form-input:focus {
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
    }

    .textarea-input {
        min-height: 100px;
    }

    .btn-save {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile Forms */
@media (max-width: 480px) {
    .form-input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .btn-save {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

.btn-save:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-brown);
    color: var(--text-brown);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--text-brown);
    color: #fff;
    border-color: var(--text-brown);
}

/* Premium Action Button */
.btn-action-view {
    padding: 6px 14px;
    background: #fff;
    color: #3E2723;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-action-view:hover {
    background: #3E2723;
    color: #fff;
    border-color: #3E2723;
    box-shadow: 0 4px 10px rgba(62, 39, 35, 0.2);
    transform: translateY(-1px);
}

/* Modal Receipt Style */
.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.receipt-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
}

.receipt-total {
    margin-top: 15px;
    text-align: right;
    font-size: 1.2rem;
    color: #D4AF37;
    font-weight: 800;
}

/* Dashboard Stats Mobile */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .stat-card {
        padding: 15px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile Dashboard */
@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

/* ===== HAMBURGER BUTTON (mobile only) ===== */
.sidebar-hamburger {
    display: none;
}

@media (max-width: 900px) {
    .sidebar-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        position: fixed;
        bottom: 24px;
        right: 20px;
        z-index: 1100;
        background: #3E2723;
        border: none;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        cursor: pointer;
        align-items: center;
        box-shadow: 0 6px 20px rgba(62, 39, 35, 0.45);
        transition: background 0.3s;
    }

    .sidebar-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #D4AF37;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .sidebar-hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .sidebar-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== SIDEBAR CLOSE BUTTON (mobile only) ===== */
.sidebar-close-btn {
    display: none;
}

/* ===== MOBILE RESPONSIVE OVERRIDES ===== */
@media (max-width: 900px) {

    body.sidebar-open {
        overflow: hidden;
    }

    .page-wrapper {
        padding: 20px 0 0 0;
        background: #f5f5f5;
    }

    .profile-container {
        display: block;
        margin: 0;
        padding-bottom: 80px;
        box-shadow: none;
        border: none;
    }

    /* ---- DRAWER SIDEBAR ---- */
    .profile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 280px;
        background: #fff;
        z-index: 1100;
        padding: 0;
        border-radius: 0 16px 16px 0;
        box-shadow: 4px 0 30px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .profile-sidebar.active {
        transform: translateX(0);
    }

    /* Close X button inside drawer */
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background: none;
        border: none;
        color: #aaa;
        font-size: 1.3rem;
        cursor: pointer;
        padding: 16px 20px 8px;
        align-self: flex-end;
        transition: color 0.2s;
    }

    .sidebar-close-btn:hover {
        color: #3E2723;
    }

    .profile-user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 25px 20px;
        border-bottom: 1px solid #f0e6d2;
        gap: 10px;
    }

    .profile-avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 auto;
        border: 2px solid #D4AF37;
        background: linear-gradient(135deg, #FFF8E1, #FFECB3);
        color: #5D4037;
        box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
    }

    .profile-user-name {
        font-size: 1.05rem;
        font-weight: 800;
        color: #2c1a16;
        margin: 0;
    }

    .profile-user-email {
        font-size: 0.78rem;
        color: #999;
    }

    /* Vertical nav links inside drawer */
    .profile-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 15px 12px;
        overflow-x: unset;
        position: static;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        flex: 1;
    }

    .profile-nav-link {
        flex-shrink: unset;
        padding: 13px 18px;
        font-size: 0.95rem;
        font-weight: 600;
        background: transparent;
        border: none;
        border-radius: 10px;
        border-left: 3px solid transparent;
        color: #5D4037;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .profile-nav-link:first-child { margin-left: 0; }
    .profile-nav-link:last-child  { margin-right: 0; }

    .profile-nav-link:hover {
        background: #FFFDF5;
        color: #3E2723;
        transform: translateX(4px);
    }

    .profile-nav-link.active {
        background: #FFF8E1;
        color: #3E2723;
        border-left-color: #D4AF37;
        box-shadow: none;
        transform: none;
        font-weight: 700;
    }

    .profile-nav-link i {
        width: 20px;
        text-align: center;
    }

    .logout-link {
        margin-top: auto;
        color: #d32f2f !important;
        background: #fff5f5 !important;
        border-left-color: #d32f2f !important;
    }

    /* CONTENT AREA */
    .profile-content {
        padding: 25px 16px;
        background: #fff;
        min-height: calc(100vh - 120px);
        border-radius: 0;
    }

    .tab-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .row-group {
        grid-template-columns: 1fr !important;
    }

    .clean-table th,
    .clean-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 0;
    }

    .profile-container {
        gap: 0;
        margin: 0;
    }

    .dashboard-stats {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 15px;
    }
}

/* Cart Table Mobile Styles */
@media (max-width: 768px) {
    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
    }

    .cart-table .product-col {
        width: 40%;
        text-align: left;
    }

    .cart-table .qty-col {
        width: 25%;
    }

    .cart-table .total-col {
        width: 20%;
    }

    .cart-table .action-col {
        width: 15%;
    }

    .cart-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .c-img {
        width: 50px;
        height: 50px;
    }

    .c-name {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .c-price {
        font-size: 0.8rem;
        color: #666;
    }

    .qty-input {
        width: 50px;
        padding: 5px;
        font-size: 0.9rem;
    }

    .mobile-label {
        display: block;
        font-size: 0.75rem;
        color: #666;
        margin-bottom: 3px;
        font-weight: 500;
    }
}

/* Cart Summary Mobile */
@media (max-width: 768px) {
    .summary-card {
        margin-top: 20px;
        padding: 15px;
    }

    .summary-row {
        flex-direction: column;
        gap: 8px;
    }

    .summary-row div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .summary-row .total-row {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent-gold);
        border-top: 2px solid #eee;
        padding-top: 10px;
        margin-top: 10px;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 20px;
        margin: 20px;
        border-radius: 8px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* Extra Small Mobile Modals */
@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 15px;
        margin: 10px;
    }

    .close-modal {
        font-size: 20px;
    }
}

/* Homepage Responsive Section Ordering */
.home-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.order-section {
    width: 100%;
}

/* --------- Desktop View Order (Default) --------- */
.hp-hero {
    order: 1;
}

.hp-categories {
    order: 2;
}

.hp-welcome {
    order: 3;
}

.hp-banners {
    order: 4;
}

.hp-bestsellers {
    order: 5;
}

.hp-signatures {
    order: 6;
}

.hp-origins {
    order: 7;
}

/* --------- Mobile View Order --------- */
@media (max-width: 768px) {
    .hp-categories {
        order: 1;
        position: relative;
        z-index: 10;
        background: var(--bg-cream);
    }

    .hp-hero {
        order: 2;
    }

    .hp-welcome {
        order: 3;
    }

    .hp-banners {
        order: 4;
    }

    .hp-bestsellers {
        order: 5;
    }

    .hp-signatures {
        order: 6;
    }

    .hp-origins {
        order: 7;
    }
}

/* Product Variant Buttons (Jaggery / Sugar) */
.variant-button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.variant-btn {
    position: relative;
    cursor: pointer;
    flex: 1;
}

.variant-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.variant-btn span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background-color: #fafafa;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.variant-btn:hover span {
    border-color: #cf995f;
    background-color: #fff;
    color: #cf995f;
    box-shadow: 0 4px 8px rgba(207, 153, 95, 0.1);
}

/* Checked styling */
.variant-btn input[type="radio"]:checked+span, .variant-btn.active span {
    border-color: #cf995f;
    background-color: #fdfaf5;
    color: #d4af37;
    box-shadow: 0 4px 12px rgba(207, 153, 95, 0.15);
}

/* Optional: Add a subtle checkmark icon on checked state via pseudo-element */
.variant-btn input[type="radio"]:checked+span::before, .variant-btn.active span::before {
    content: "✓";
    display: inline-block;
    margin-right: 6px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Product Details Accordion */
.pd-accordion-wrapper {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pd-accordion-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fdfaf5;
    color: #cf995f;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Lato', sans-serif;
}

.pd-accordion-toggle:hover {
    background: #f9f1e6;
}

.pd-accordion-toggle svg {
    transition: transform 0.3s ease;
}

.pd-accordion-toggle.active svg {
    transform: rotate(180deg);
}

.pd-accordion-content {
    max-height: 2000px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.pd-accordion-content.collapsed {
    max-height: 0;
}

.pd-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.pd-accordion-item:last-child {
    border-bottom: none;
}

.pd-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: none;
    font-weight: 700;
    color: #4a4a4a;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: 'Lato', sans-serif;
}

.pd-accordion-header:hover {
    background: #fafafa;
    color: #cf995f;
}

.pd-accordion-header svg {
    transition: transform 0.3s ease;
}

.pd-accordion-header.active svg {
    transform: rotate(180deg);
}

.pd-accordion-body {
    padding: 0 20px 18px 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.pd-accordion-body.open {
    display: block;
}/