/* ------------------ Base & Typography ------------------ */
@font-face {
    font-family: 'Hello Paris';
    src: url('../fonts/helloparisserif-bold-webfont.woff2') format('woff2'),
         url('../fonts/helloparisserif-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

:root {
    /* Colors extracted directly from your images */
    --primary-color: #EAE0D7;     /* Soft Muted Rose/Tan (Hero BG, Section BG) */
    --accent-color: #A98E82;      /* Deeper Rose/Brown (CTA Button, Highlights) */
    --background-light: #F8F4F2; /* Very Light Cream (Body/Navbar BG) */
    --footer-bg: #7A968E;         /* Dusty Slate/Green (Footer BG) */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --font-logo-display: 'Playfair Display', serif;
    --font-logo-main: 'Hello Paris', var(--font-logo-display);
    --font-logo: var(--font-logo-display);
    --font-body: 'Montserrat', sans-serif;
    --border-color: #DCDCDC; /* Added light gray for borders */
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* Base Resets & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ADDED for smooth scrolling */
html {
     scroll-behavior: smooth;
     font-size: 14px; /* Base font size for mobile */
}

@media (min-width: 768px) {
    html {
        font-size: 16px; /* Base font size for desktop */
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    /* ADDED to remove default spacing */
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: var(--font-logo);
    margin-bottom: 0.75em; /* Slightly increased margin */
    font-weight: 700;
    line-height: 1.3; /* Added line-height */
}
/* Optional: Define more heading sizes */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }


/* ADDED default paragraph spacing */
p {
    margin-bottom: 1em;
}


a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* FIXED: Consistent padding on all screens */
    padding: 0 15px;
}

/* ------------------ Announcement Ribbon (Updated Width/Spacing) ------------------ */

.announcement-ribbon {
    background-color: var(--accent-color);
    color: var(--text-light);
    text-align: center;
    padding: 0.6rem 1rem; /* Slightly more vertical padding */
    font-size: 0.85rem; /* Slightly larger text */
    font-weight: 500;
    width: 100%; /* Full width on mobile */
    margin: 0; /* Ensure no extra space around it */
}

@media (min-width: 768px) {
    .announcement-ribbon {
        max-width: 60%; /* Constrain width on desktop */
        margin: 0 auto; /* Center it */
        border-radius: 0 0 8px 8px; /* Optional: adds rounded bottom corners */
    }
}

/* ------------------ Navigation Bar (FIXED Sticky & Mobile Layout) ------------------ */

.navbar {
    background-color: var(--background-light);
    padding: 0.8rem 0; /* Slightly reduced padding */
    border-bottom: 1px solid var(--border-color); /* Use variable */
    position: sticky; /* Make Navbar Sticky */
    top: 0;
    z-index: 100; /* Ensure it stays above other content */
    transition: box-shadow 0.3s; /* Add smooth shadow transition */
} 
/* Optional: Add shadow when scrolled (requires JS or Intersection Observer) */
body.scrolled .navbar {
     box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between; /* Pushes logo left, icons right */
    align-items: center;
    position: relative; /* Needed for absolute positioning of icons on mobile */
    min-height: 50px; /* Ensure minimum height */
}

/* Logo Styling (Keep your specific logo styles) */
.logo {
    font-family: var(--font-logo);
    letter-spacing: normal;
    text-transform: uppercase;
    display: flex; /* Allows 'SIRAJ' and 'CANDLES' to sit side-by-side */
    align-items: baseline; /* Aligns CANDLES to the bottom of SIRAJ */
    gap: 0.5rem; /* Small space between the two words */
    color: var(--text-dark); /* Default black/dark text */
}

.logo-siraj {
    font-family: var(--font-logo-main);
    font-size: 2.2rem; /* Slightly smaller mobile logo */
    font-weight: 700;
    color: #000000; /* Black */
    letter-spacing: 0.05em;;
}

.logo-candles {
    font-family: var(--font-logo-main);
    font-size: 1.3rem; /* Smaller size */
    font-weight: bold; /* Lighter font weight */
    color: #C6A29C; /* A specific muted pink/rose color for CANDLES */
    letter-spacing: 0.15em; /* Adjusted spacing */
    white-space: nowrap;
    padding-bottom: 0.3rem; /* Adjusted offset for better visual alignment */
}

/* --- Navigation Links (Mobile-First) --- */
.nav-links {
    display: none; /* 1. HIDE desktop links on mobile */
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}
.nav-links a:hover { color: var(--accent-color); }

/* --- Navigation Icons (Mobile-First) --- */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between icons */
    position: static; /* Let flexbox handle positioning */
}
.nav-icons button {
    background: none;
    border: none;
    font-size: 1.3rem; /* Slightly larger icons */
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.3rem; /* Smaller padding */
    position: relative; /* For cart count positioning */
    line-height: 1; /* Prevent extra space */
}
.nav-icons button:hover { color: var(--accent-color); }

/* --- Cart Count Badge (Mobile-First) --- */
.cart-count {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-radius: 50%;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: -5px;   /* Position relative to button */
    right: -8px;
    min-width: 18px; /* Ensure circle shape for single digit */
    text-align: center;
    line-height: 1.1;
    transition: opacity 0.2s, visibility 0.2s;
    /* JS will set visibility/opacity */
    visibility: hidden; /* Start hidden */
    opacity: 0;
}

/* --- Mobile Menu (Hamburger) --- */
.mobile-menu-toggle {
    display: flex; /* Show hamburger on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101; /* Above sticky nav */
    flex-shrink: 0; /* Stops the logo from squishing it */
    margin-right: 15px; /* Adds space between button and logo */
}
.mobile-menu-toggle .icon-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle.active .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile Menu Panel (Slide from left) --- */
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--background-light);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    z-index: 1001; /* Above overlay */
    transform: translateX(-100%); /* Hidden off-screen */
    transition: transform 0.3s ease-in-out;
}
.mobile-nav-menu.active {
    transform: translateX(0); /* Slides in */
}
.mobile-nav-menu a {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Mobile Menu Overlay --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Just below the menu */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}
body.mobile-menu-open::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
}

/* Desktop Styles */
@media (min-width: 992px) { /* Adjusted breakpoint */
    /* .mobile-menu-toggle { display: none; } */ /* Hide hamburger */

    .logo-siraj {
        font-size: 3.2rem; /* Even bigger on desktop */
    }
    .logo-candles {
        font-size: 1.5rem; /* Slightly larger on desktop */
    }

    .nav-links {
        display: flex; /* Show links */
        gap: 2rem;
        position: static; /* Put links back in normal flow */
        transform: none; /* Remove centering transform */
         /* Optionally re-center links if needed for wide screens */
         /* position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); */
    }

    /* .nav-icons rule doesn't need override as it's static by default */

     /* Ensure container keeps space between logo and icons */
     .navbar .container {
         justify-content: space-between;
     }
}
/* ------------------ Dropdown Cart & Search Modal ------------------ */

.cart-dropdown {
    position: absolute;
    right: 1rem;
    top: 60px;
    width: 90%;
    max-width: 300px;
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem;
    display: none; /* Controlled by JS */
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #eee;
    font-size: 0.9rem; /* Slightly smaller text */
}

/* Added style for empty message */
.empty-cart-message {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 1rem 0;
}

.cart-summary {
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 244, 242, 0.98); /* Slightly more opaque */
    padding: 2rem;
    display: none; /* Controlled by JS */
    justify-content: center; /* Center content horizontally */
    align-items: flex-start; /* Align content to top */
    z-index: 1001;
}

.search-content {
    width: 100%; /* Take full width on mobile */
    max-width: 600px;
    margin-top: 10vh; /* Position down from top */
    position: relative;
}

#search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
}

/* Added close button style */
.close-search {
    position: absolute;
    top: -30px; /* Position above the input */
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}
.close-search:hover {
    color: var(--accent-color);
}

.search-results {
    margin-top: 1rem;
    background: white;
    border-radius: 5px;
    max-height: 60vh; /* Limit height and allow scrolling */
    overflow-y: auto;
    border: 1px solid #eee; /* Add subtle border */
}
.search-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.search-result-item:hover {
     background-color: #f9f9f9; /* Add hover effect */
}
.search-item-title {
     font-weight: 500;
}
.search-item-price {
     color: #555;
}

/* ------------------ Cart Quantity Controls (FIXED) ------------------ */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.quantity-btn {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
    color: var(--text-dark);
}

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

.quantity-btn:active {
    transform: scale(0.95);
}

.item-quantity-input {
    width: 60px !important;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    background: white;
}

/* ------------------ Cart Message Styles ------------------ */
.cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    z-index: 10000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ------------------ Improved Cart Item Display ------------------ */
.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.cart-item-name {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.cart-item-total {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    white-space: nowrap;
    margin-left: 10px;
}

/* ------------------ Hero Section (Updated with Background Image) ------------------ */

.hero-section {
    background-image: url('../images/hero-background.jpg'); /* ADJUST PATH AS NEEDED */
    background-size: cover;
    background-position: center center; /* More specific centering */
    background-repeat: no-repeat;
    padding: 5rem 1rem; /* Increased padding for better image display */
    text-align: center;
    position: relative; /* For overlay positioning */
    color: var(--text-light); /* Make default text white */
    overflow: hidden; /* Prevent potential overlay bleed */
}

/* Overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay (30% opacity) - adjust as needed */
    z-index: 1; /* Place overlay behind text */
}

/* Ensure Text/Button elements inside hero are above overlay */
.hero-section h1,
.hero-section p,
.hero-section .shop-now-btn {
    position: relative;
    z-index: 2; /* Ensure text/buttons are above the ::before overlay */
}

/* Keep button styles - they should work on the overlay */
.shop-now-btn, .checkout-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 0.75rem 1.8rem; /* Slightly more padding */
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 600;
    text-align: center;
    border: none; /* Ensure no border */
    font-size: 1rem; /* Match base font size */
    margin-top: 1rem; /* Add space above button */
}

.shop-now-btn:hover, .checkout-btn:hover {
    background-color: #8C756B; /* Keep hover color */
}

/* ------------------ Category & Product Sections (Updated) ------------------ */

.category-section, .bestsellers-section, .related-products-section {
    padding: 3rem 0; /* Use container padding */
    text-align: center;
}
.related-products-section h3 { /* Style for related products heading */
    margin-bottom: 2rem;
}

/* ------------------ Related Products Section Fix ------------------ */
.related-products-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.related-products-section h3 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Ensure the related products grid matches the bestsellers styling */
.product-grid.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .product-grid.related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Hide any duplicate related products sections */
.related-products-section:not(#related-products-main) {
    display: none !important;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.category-card-item {
    display: block; /* Make the link a block */
    text-align: center;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}
.category-image-wrapper { /* Style if using images */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.8rem; /* Space below image */
    background-color: #eee; /* Placeholder bg */
}
.category-image { /* Style actual category image */
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.category-name {
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
}

/* --- Product Grid (FIXED Mobile 2x2 Layout) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 1rem; /* Reduced gap for mobile */
    margin-top: 1.5rem;
}
/* Product grid buttons */
.product-card-wrapper {
    position: relative;
}

.product-grid-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.add-to-cart-grid-btn,
.buy-now-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.add-to-cart-grid-btn {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.buy-now-btn {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: 1px solid var(--accent-color);
}

.add-to-cart-grid-btn:hover {
    background-color: #8C756B;
}

.buy-now-btn:hover {
    background-color: #D6CCC5;
}

/* Mobile responsiveness for grid buttons */
@media (max-width: 768px) {
    .product-grid-actions {
        flex-direction: row;
        gap: 5px;
    }
    
    .add-to-cart-grid-btn,
    .buy-now-btn {
        flex: 1;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}
/* FIXED: All product grids now 2 columns on mobile */
.product-grid.bestsellers-grid,
.product-grid.related-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for main products */
        gap: 2rem;
    }
    
    .product-grid.bestsellers-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 columns for bestsellers */
    }
    
    .product-grid.related-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for related */
    }
}

.product-card {
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: left;
    transition: transform 0.2s ease-out;
    display: block;
}
.product-card:hover {
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 0.8rem;
    background-color: #eee;
    border-radius: 3px;
}

.product-info-minimal {
    padding: 0 0.2rem;
}

.product-title {
    font-family: var(--font-body);
    font-size: 0.85rem; /* Smaller for mobile 2-column layout */
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 2);
}

.product-price {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8rem; /* Smaller for mobile */
    margin-bottom: 0;
    font-family: var(--font-body);
}

/* Remove old button style if it existed */
.view-product-btn {
    display: none;
}
.product-name-bold {
    display: none;
}

/* ------------------ Product Page Filters (FIXED Mobile Layout) ------------------ */

.filter-controls-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: none;
    background: var(--primary-color);
    border-radius: 8px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.filter-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.filter-select {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.85rem;
    width: 100%;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%2712%27%20viewBox%3D%270%200%2012%2012%27%3E%3Cpath%20fill%3D%27%23333%27%20d%3D%27M10.293%203.293L6%207.586%201.707%203.293%200.293%204.707%206%2010.414%2011.707%204.707z%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 10px;
}

@media (min-width: 768px) {
    .filter-controls-group {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
        background: transparent;
        padding: 0;
    }
    
    .filter-item {
        width: auto;
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
    }
    
    .filter-select {
        width: auto;
        font-size: 0.9rem;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
    }
}

/* ------------------ Single Product Page (FIXED Layout) ------------------ */

.product-detail-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.product-image-area-new {
    width: 100%;
}

.main-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    margin: 0 auto;
    max-width: 500px;
}

.thumbnail-image {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    opacity: 1;
    border-color: var(--accent-color);
}

.product-info-area-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title-main {
    font-size: 1.8rem;
    margin-bottom: 0.1rem;
    font-family: var(--font-logo);
    line-height: 1.3;
}

.product-category-subtle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.product-price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

/* FIXED: Responsive product actions grid */
.product-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    width: 100%;
}

.quantity-selector-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
    background-color: #fff;
    width: 100%;
    max-width: 130px;
    align-self: flex-start;
}

.action-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: none;
    padding: 0 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 46px;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

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

.quantity-input-box {
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    height: 100%;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    background-color: transparent;
    color: var(--text-dark);
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input-box::-webkit-outer-spin-button,
.quantity-input-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-add-to-cart-btn,
.action-buy-now-btn {
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.action-add-to-cart-btn {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.action-add-to-cart-btn:hover {
    background-color: #8C756B;
}

.action-buy-now-btn {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: 1px solid var(--accent-color);
}

.action-buy-now-btn:hover {
    background-color: #D6CCC5;
}

.action-add-to-cart-btn.out-of-stock-btn,
.action-add-to-cart-btn:disabled,
.action-buy-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666;
    border-color: #ccc;
}

.cart-icon {
    font-size: 1.1em;
    margin-right: 8px;
    color: inherit;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.product-description-section,
.product-attributes-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.formatted-description-box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

.product-attributes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attribute-chip {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    border: 1px solid #DCDCDC;
}

.attribute-icon {
    margin-right: 6px;
    font-size: 1em;
}

.attribute-label {
    font-weight: 600;
    margin-right: 4px;
}

.stock-status {
    font-weight: 600;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stock-status.in-stock {
    color: #28a745;
}

.stock-status.out-of-stock {
    color: #dc3545;
}

.shipping-returns-new {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #555;
}

.shipping-returns-new h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.shipping-returns-new ul {
    list-style: disc;
    padding-left: 20px;
}

.product-specs-group,
.basic-description {
    display: none !important;
}

.related-products-section:not(#related-products-main) {
    display: none !important;
}

.related-products-section#related-products-main {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* FIXED: Mobile responsiveness for product actions */
@media (max-width: 768px) {
    .product-actions-grid {
        align-items: center;
    }
    
    .quantity-selector-box {
        max-width: 100%;
        align-self: center;
    }
    
    .action-add-to-cart-btn,
    .action-buy-now-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .product-actions-grid {
        gap: 8px;
    }
    
    .action-add-to-cart-btn,
    .action-buy-now-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .product-title-main {
        font-size: 1.5rem;
    }
    
    .product-price-main {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .product-detail-grid-new {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    /* Desktop layout for product actions */
    .product-actions-grid {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 12px;
    }
    
    .action-buy-now-btn {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 10px;
    }
}

/* ------------------ FIXED: Product Specifications Section (Original Table Layout) ------------------ */
.product-specifications-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-specifications-section h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.specifications-table th,
.specifications-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specifications-table th {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.specifications-table tr:hover {
    background-color: #f9f9f9;
}

/* Mobile responsiveness for specifications table */
@media (max-width: 767px) {
    .product-specifications-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .specifications-table {
        display: block;
        overflow-x: auto;
    }
    
    .specifications-table th,
    .specifications-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* ------------------ NEW: Product Options Section ------------------ */
.product-options-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-options-section h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.option-selector {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.option-selector:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(169, 142, 130, 0.1);
}

.option-selector:hover {
    border-color: var(--accent-color);
}

.option-selector:required:invalid {
    border-color: var(--error-color);
}

.option-selector option {
    padding: 0.5rem;
}

/* Mobile responsiveness for options */
@media (max-width: 767px) {
    .product-options-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .options-container {
        gap: 1rem;
    }
    
    .option-selector {
        max-width: 100%;
    }
}

/* ------------------ NEW: Bundle Items Section ------------------ */
.bundle-items-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

.bundle-items-section h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.bundle-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bundle-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.bundle-selector-group:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bundle-selector-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.scent-selector {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.scent-selector:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(169, 142, 130, 0.1);
}

.scent-selector:hover {
    border-color: var(--accent-color);
}

.scent-selector:required:invalid {
    border-color: var(--error-color);
}

/* Mobile responsiveness for bundle items */
@media (max-width: 767px) {
    .bundle-items-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .bundle-items-container {
        gap: 1rem;
    }
    
    .bundle-selector-group {
        padding: 0.75rem;
    }
}

/* ------------------ Bundle Customization Styles ------------------ */

.bundle-customization-section {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px dashed var(--accent-color);
    background-color: var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.customization-prompt {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
}

.bundle-selector-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    width: 100%;
    gap: 0.3rem;
}

.bundle-selector-group label {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    word-wrap: break-word;
    line-height: 1.3;
}

.scent-selector {
    padding: 0.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: white;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* FIX: Mobile-specific bundle layout */
@media (max-width: 767px) {
    .bundle-customization-section {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .bundle-selector-group {
        margin-bottom: 0.8rem;
    }
    
    .bundle-selector-group:last-child {
        margin-bottom: 0;
    }
    
    .scent-selector {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* FIX: Ensure bundle section doesn't break product layout */
    .product-info-area-new .bundle-customization-section {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* FIX: Desktop bundle layout */
@media (min-width: 768px) {
    .bundle-customization-section {
        padding: 1.2rem;
    }
    
    .bundle-selector-group {
        margin-bottom: 0.8rem;
    }
}

/* ------------------ Cart Page Styles (FIXED) ------------------ */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* FIXED: Mobile responsive cart table */
@media (max-width: 767px) {
    .cart-table, 
    .cart-table thead, 
    .cart-table tbody, 
    .cart-table th, 
    .cart-table td, 
    .cart-table tr {
        display: block;
    }
    
    .cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cart-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
        background: white;
    }
    
    .cart-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
        padding: 0.5rem 1rem 0.5rem 50%;
        border-bottom: 1px solid #eee;
    }
    
    .cart-table td:last-child {
        border-bottom: none;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 1rem;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
    }
    
    /* FIXED: Cart summary stays visible when scrolling */
    .cart-summary-box {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        z-index: 100;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        max-width: none;
    }
}

.cart-table th, .cart-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.cart-table th {
    background-color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
}

.cart-product-col {
    display: flex;
    align-items: center;
}

.cart-product-col a {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-product-col a:hover {
    color: var(--accent-color);
}

/* FIXED: Remove button styles */
.remove-item-btn {
    background: none;
    border: none;
    color: #CC0000;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.remove-item-btn:hover {
    background-color: #ffebee;
    color: #a00000;
    transform: scale(1.1);
}

.cart-summary-box {
    max-width: 400px;
    margin-left: auto;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 4px;
}

.cart-summary-box h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.cart-summary-box p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.cart-summary-box .cart-total-final {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.empty-cart-message-full {
    text-align: center !important;
    font-size: 1.2rem;
    padding: 3rem 0 !important;
    color: #666;
}

.cart-customization-detail {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.3rem;
}

.cart-summary-box .checkout-btn {
     margin-top: 1.5rem;
     width: 100%;
}

.continue-shopping-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.continue-shopping-btn:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* FIXED: Cart content layout for desktop */
@media (min-width: 768px) {
    .cart-content-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .cart-summary-box {
        position: sticky;
        top: 100px;
        max-width: 400px;
    }
}

/* ------------------ Checkout Page Styles ------------------ */
.checkout-grid {
    display: block;
    padding: 2rem 0;
}

.checkout-section h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkout-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 0;
    background-color: #fff;
}

.checkout-form textarea {
    min-height: 80px;
}

.order-summary-box {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.order-summary-box h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.checkout-item-list {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.checkout-item span {
    font-weight: 400;
    color: #555;
}

.checkout-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.checkout-summary-line span {
    font-weight: 600;
}

.final-total {
    font-size: 1.3rem;
    font-weight: 700 !important;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.payment-options input[type="radio"] {
    margin-right: 0.75rem;
}

.payment-options input[type="radio"]:checked + label {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.payment-options label:hover {
    border-color: #aaa;
}

#place-order-btn {
    width: 100%;
    margin-top: 1.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

#place-order-btn:hover {
    background-color: #8C756B;
}

#place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .checkout-grid {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
    }
    
    .order-summary-box {
        margin-top: 0;
        position: sticky;
        top: 100px;
    }
}

/* ------------------ Footer ------------------ */

.footer {
    background-color: var(--footer-bg);
    color: #F8F8F8;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.social-links a {
    color: #F8F8F8;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

.pagination-controls {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination-button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-dark);
    transition: color 0.2s;
}

.pagination-button:hover:not(.active) {
    color: var(--accent-color); 
}

.pagination-button.active {
    color: var(--footer-bg);
    pointer-events: none; 
}

/* ------------------ Desktop/Tablet Styles ------------------ */
@media (min-width: 768px) {
    .logo-siraj {
        font-size: 3.2rem;
    }
    .logo-candles {
        font-size: 1.5rem;
    }
    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
        position: static;
        transform: none;
    }
    .nav-icons {
        position: static;
        transform: none;
    }
    .navbar .container {
        justify-content: space-between;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

/* ------------------ Mobile Navigation Menu ------------------ */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    flex-shrink: 0;
    margin-right: 15px;
}

.mobile-menu-toggle .icon-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--background-light);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-menu a {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

body.mobile-menu-open::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        transform: none;
        gap: 2rem;
        align-items: center;
    }
    
    .mobile-nav-menu {
        display: none;
    }
    
    body::before {
        display: none;
    }
}/* ------------------ Checkout Cart Items Styles ------------------ */
.checkout-cart-items {
    margin-bottom: 2rem;
}

.checkout-cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    gap: 1rem;
}

.checkout-item-image {
    flex-shrink: 0;
}

.checkout-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

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

.checkout-item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.checkout-item-price {
    color: #666;
    font-size: 0.9rem;
}

.checkout-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkout-item-total {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 80px;
    text-align: right;
}

.cart-management-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .checkout-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .checkout-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .checkout-item-image {
        align-self: center;
    }
    
    .cart-management-section {
        margin-top: 1rem;
    }
}

/* Enhanced quantity controls for better mobile experience */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.quantity-btn {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
    color: var(--text-dark);
}

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

.quantity-btn:active {
    transform: scale(0.95);
}

.item-quantity-input {
    width: 60px !important;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    background: white;
}

/* Improved remove button */
.remove-item-btn {
    background: none;
    border: none;
    color: #CC0000;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.remove-item-btn:hover {
    background-color: #ffebee;
    color: #a00000;
    transform: scale(1.1);
}

/* Cart message animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    z-index: 10000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

/* Empty state styles */
.empty-cart-message-full {
    text-align: center !important;
    font-size: 1.2rem;
    padding: 3rem 0 !important;
    color: #666;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}
/* ------------------ Cart Dropdown Quantity Controls ------------------ */
.cart-dropdown .cart-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.cart-dropdown .cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.cart-dropdown .cart-item-name {
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
}

.cart-dropdown .cart-item-total {
    margin: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-color);
    white-space: nowrap;
    margin-left: 10px;
}

.cart-dropdown .cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.cart-dropdown .quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
}

.cart-dropdown .quantity-btn {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s;
    color: var(--text-dark);
    padding: 0;
}

.cart-dropdown .quantity-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cart-dropdown .item-quantity-input {
    width: 40px !important;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0.25rem;
    font-size: 0.8rem;
    background: white;
    height: 24px;
}

.cart-dropdown .remove-item-btn {
    background: none;
    border: none;
    color: #CC0000;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cart-dropdown .remove-item-btn:hover {
    background-color: #ffebee;
    color: #a00000;
}

.cart-dropdown .cart-customization-detail {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.2rem;
    font-style: italic;
}

/* Ensure cart dropdown has enough width for controls */
.cart-dropdown {
    min-width: 280px;
    max-width: 350px;
}

.cart-dropdown .dropdown-header {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ------------------ NEW: Enhanced Responsive Design ------------------ */
@media (max-width: 480px) {
    .product-specifications-section,
    .product-options-section,
    .bundle-items-section {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .specification-item {
        padding: 0.75rem;
    }
    
    .option-selector,
    .scent-selector {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* ------------------ NEW: Loading and Error States ------------------ */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--error-color);
    background-color: #ffe6e6;
    border: 1px solid var(--error-color);
    border-radius: 4px;
    margin: 1rem 0;
}

.no-products-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ------------------ NEW: Utility Classes ------------------ */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ------------------ NEW: Focus States for Accessibility ------------------ */
button:focus-visible,
.option-selector:focus-visible,
.scent-selector:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ------------------ NEW: Print Styles ------------------ */
@media print {
    .navbar,
    .footer,
    .cart-dropdown,
    .search-modal,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .product-specifications-section,
    .product-options-section,
    .bundle-items-section {
        break-inside: avoid;
    }
}