/* ============================================
   DESIGN SYSTEM - EDIT COLORS & FONTS HERE
   ============================================ */

   :root {
    /* Color Palette - Brown and Off-White Theme */
    --bg-color: #FAF8F3;         /* Off-white background */
    --primary-color: #A0824B;   /* Darker golden-brown for buttons */
    --accent-color: #D4C19A;    /* Light golden-brown for header */
    --text-color: #6B4B3E;      /* Brown text (replacing grey) */
    --text-white: #FFFFFF;         /* White text */
    --text-off-white: #FAF8F3;   /* Off-white */
    --highlight-color: #F5F0E8;  /* Light off-white for sections */
    --white: #FFFFFF;
    --off-white: #FAF8F3;        /* Off-white */
    
    /* Fonts - Modern Sans-Serif */
    --font-primary: 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Lato', Arial, sans-serif;    /* Headers */
    --font-secondary: 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Lato', Arial, sans-serif;  /* Body text */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

body {
    font-family: var(--font-secondary);
    color: var(--text-color); /* Brown text */
    background-color: var(--bg-color); /* Off-white background */
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color); /* Brown */
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

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

/* ============================================
   TOP BANNER
   ============================================ */

.top-banner {
    background: linear-gradient(135deg, #6B9F78 0%, #8BC34A 100%);
    color: var(--white);
    padding: 0.75rem var(--spacing-sm);
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.top-banner p {
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.top-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
    margin-left: 0.25rem;
}

.top-banner a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.top-banner-close {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.top-banner-close:hover {
    opacity: 1;
}

.top-banner.hidden {
    display: none;
}

/* Same-Day Delivery Banner */
.delivery-banner {
    background: linear-gradient(135deg, #6B9F78 0%, #8BC34A 100%);
    color: var(--white);
    padding: 1rem var(--spacing-sm);
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.delivery-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.delivery-banner p {
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.delivery-banner strong {
    font-weight: 700;
    font-size: 1.05rem;
}

.delivery-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
}

.delivery-banner a:hover {
    opacity: 0.9;
    text-decoration: none;
}

@media (max-width: 768px) {
    .top-banner {
        font-size: 0.85rem;
        padding: 0.6rem var(--spacing-sm);
    }
    
    .top-banner-content {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .delivery-banner {
        font-size: 0.85rem;
        padding: 0.85rem var(--spacing-sm);
    }
    
    .delivery-banner-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-banner-close {
        right: 0.5rem;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: #D4C19A; /* Light golden-brown header */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 120px;      /* Fixed roomy height on all pages (desktop) */
    padding: 0;         /* No extra vertical padding */
    margin: 0;
    line-height: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm); /* Horizontal only */
    margin: 0;
    height: 100%;                 /* Fill navbar height */
    min-height: 0;
    line-height: 0;
}

.nav-brand {
    line-height: 0;
    margin: 0;
    padding: 0;
    height: auto;
}

.nav-brand a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    height: auto;
}

.brand-icon {
    height: 150px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
    border: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    align-items: flex-start;
    line-height: 1;
    height: auto;
}

.nav-menu a {
    color: var(--text-color); /* Brown */
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.05rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color); /* Darker golden-brown on hover */
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
    height: auto;
    line-height: 0;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin: 0;
    display: inline-block;
    vertical-align: top;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color); /* Brown */
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-input {
    width: 200px;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid var(--highlight-color);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(160, 130, 75, 0.2);
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--highlight-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    min-width: 300px;
}

.search-results.active {
    display: block;
}

.search-results-header {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--highlight-color);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-results-section {
    padding: var(--spacing-xs) 0;
}

.search-results-section-title {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-item {
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--highlight-color);
}

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

.search-result-item:hover {
    background-color: var(--highlight-color);
}

.search-result-item.product {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-result-item.product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-item.product .result-info {
    flex: 1;
}

.search-result-item.product .result-name {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.search-result-item.product .result-scent {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

.search-result-item.product .result-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.search-result-item.menu-item {
    color: var(--text-color);
    font-weight: 500;
}

.search-result-item.menu-item:hover {
    color: var(--primary-color);
}

.search-no-results {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-container {
        order: -1;
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
    
    .search-input {
        width: 100%;
        flex: 1;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .search-results {
        left: 0;
        right: 0;
        min-width: auto;
    }
    
    .nav-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color); /* Darker golden-brown #A0824B */
    color: var(--text-white); /* White text */
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #8B6F3A; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white); /* White text */
    border: 2px solid var(--text-white);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

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

.btn-large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(107, 75, 62, 0.4), rgba(107, 75, 62, 0.3)); /* Brown overlay instead of black */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-sm);
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white); /* White text */
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-white); /* White text */
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-white); /* White text */
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color); /* Brown */
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-sm);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background-color: var(--off-white); /* Off-white background */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--highlight-color);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-availability {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-availability.in-stock {
    background-color: rgba(160, 130, 75, 0.9);
    color: var(--off-white);
}

.product-availability.out-of-stock {
    background-color: rgba(107, 75, 62, 0.9);
    color: var(--off-white);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.product-info {
    padding: 0.75rem;
}

.product-info .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    margin-top: 0.5rem;
}

.product-name {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.product-scent {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
    opacity: 0.8;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   FEATURED PRODUCTS
   ============================================ */

.featured-products {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--off-white); /* Off-white background */
}

.featured-products .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
    justify-items: center;
}

@media (max-width: 900px) {
    .featured-products     .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-image {
        height: 280px;
    }
    
    .brand-icon {
        height: 110px;
    }
}

@media (max-width: 600px) {
    .featured-products     .products-grid {
        grid-template-columns: 1fr;
    }
    
    
    .brand-icon {
        height: 85px;
    }
    
    .contact-image-text h3 {
        font-size: 1.25rem;
    }
    
    .contact-image-text p {
        font-size: 0.9rem;
    }
}

/* ============================================
   WHY CHOOSE US
   ============================================ */

.why-choose {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--off-white); /* Off-white background */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.feature-icon img {
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.feature-card h3 {
    color: var(--text-color); /* Brown */
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-sm);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: var(--spacing-sm);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.newsletter-form button {
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--highlight-color);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   SHOP PAGE
   ============================================ */

.shop-filters {
    padding: var(--spacing-md) var(--spacing-sm);
    background-color: var(--white);
    border-bottom: 1px solid var(--highlight-color);
}

.filter-controls {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--highlight-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    color: var(--accent-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-controls label {
    font-weight: 500;
}

.sort-controls select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--highlight-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    font-family: var(--font-secondary);
}

.shop-products {
    padding: var(--spacing-lg) var(--spacing-sm);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail {
    padding: var(--spacing-lg) var(--spacing-sm);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.product-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.product-detail .product-image {
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.product-detail .product-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.breadcrumb {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-color);
}

.breadcrumb a {
    color: var(--primary-color);
}

.product-info h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-weight: 400;
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    font-weight: 400;
    font-weight: 400;
}

.ingredients {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: none;
    font-family: var(--font-secondary);
}

.ingredients h3 {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.ingredients p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.scent-notes-under-image {
    width: 100%;
    max-width: 450px;
    margin-top: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--off-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.scent-notes-under-image h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    font-weight: 400;
}

.scent-notes-under-image .notes-grid {
    justify-items: center;
    gap: var(--spacing-sm);
}

.scent-notes-under-image .note-item {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.scent-notes-under-image .note-item strong {
    font-weight: 400;
    font-family: var(--font-secondary);
}


.product-description-combined {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    padding: var(--spacing-md);
    background-color: var(--off-white);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
}

.product-description-combined p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.product-description-combined .scent-story {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--highlight-color);
}

.product-description-combined .scent-story p {
    font-style: normal;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.scent-notes h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    font-family: var(--font-secondary);
    font-weight: 400;
}


.notes-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.note-item {
    display: flex;
    gap: var(--spacing-sm);
}

.note-item strong {
    min-width: 120px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--highlight-color);
    background-color: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background-color: var(--highlight-color);
}

#productQty {
    width: 60px;
    text-align: center;
    padding: var(--spacing-xs);
    border: 1px solid var(--highlight-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.add-to-cart-section {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}


.related-products {
    padding: var(--spacing-lg) var(--spacing-sm);
    background-color: var(--bg-color);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.story-section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.story-text h2 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.why-amber-section {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--off-white); /* Off-white background */
}

.amber-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.reason-card {
    background-color: var(--off-white); /* Off-white background */
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.reason-icon img {
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.reason-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.mission-section {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--bg-color);
}

.mission-content h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.value-item {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.value-item h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.process-section {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--off-white); /* Off-white background */
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
    padding: var(--spacing-lg) var(--spacing-sm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-md);
}

.contact-image-text {
    margin-top: var(--spacing-lg);
    text-align: center;
    max-width: 500px;
}

.contact-image-text h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.contact-image-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.contact-info h2 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.info-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.social-contact {
    margin-top: var(--spacing-md);
}

.social-contact .social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.social-contact .social-links a {
    color: var(--accent-color);
    font-size: 1rem;
}

.contact-form-container {
    background-color: var(--off-white); /* Off-white background */
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.contact-form-container h2 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--highlight-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.policies-section {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--bg-color);
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.policy-card {
    background-color: var(--off-white); /* Off-white background */
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.policy-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.policy-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.policy-detail h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.policy-detail h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.policy-detail h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.policy-list {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

.policy-list li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

.policy-list ol {
    list-style-type: decimal;
}

.policy-list ul {
    list-style-type: disc;
}

.policies-section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.candle-care-section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.care-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   BLOG PAGE
   ============================================ */

.blog-section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.blog-card {
    background-color: var(--off-white); /* Off-white background */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-category {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--accent-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.blog-content h2 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.blog-date {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.read-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   CART SIDEBAR
   ============================================ */

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--off-white); /* Off-white background */
    box-shadow: -2px 0 10px rgba(107, 75, 62, 0.2); /* Brown shadow instead of black */
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--highlight-color);
}

.cart-header h2 {
    color: var(--accent-color);
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color); /* Brown */
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.empty-cart {
    text-align: center;
    color: var(--text-color); /* Brown */
    padding: var(--spacing-lg);
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--highlight-color);
    margin-bottom: var(--spacing-sm);
    align-items: flex-start;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    word-wrap: break-word;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.cart-item-qty {
    font-size: 0.9rem;
    color: var(--text-color);
    min-width: 50px;
}

.cart-item-total {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0.25rem 0;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--text-color);
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--highlight-color);
}

.cart-total {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--accent-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 75, 62, 0.6); /* Brown overlay instead of black */
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ============================================
   NEWSLETTER POPUP
   ============================================ */

.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.newsletter-popup.active {
    display: flex;
}

.popup-content {
    background-color: var(--off-white); /* Off-white background */
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color); /* Brown */
    line-height: 1;
}

.popup-content h2 {
    color: var(--text-color); /* Brown */
    margin-bottom: var(--spacing-sm);
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.popup-form input {
    padding: var(--spacing-sm);
    border: 1px solid var(--highlight-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.skip-link {
    display: block;
    margin-top: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    text-decoration: underline;
}

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

@media (max-width: 768px) {

    /* On mobile, let the navbar height be flexible */
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar .container {
        height: auto;
        padding: 0.5rem var(--spacing-sm);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .hero-content {
        padding: var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-image-container {
        order: 2;
        margin-top: var(--spacing-md);
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .hero {
        min-height: auto;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    .hero-buttons {
        margin-top: 0.75rem;
    }

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

    .hero-tagline {
        font-size: 1.2rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-detail .product-image {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .product-detail .product-image img {
        max-height: 450px;
        width: 100%;
        object-fit: contain;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

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

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    h1 {
        font-size: 2rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 280px;
        min-height: 280px;
    }
    
    .product-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-detail .product-image {
        max-width: 100%;
        width: 100%;
    }
    
    .product-detail .product-image img {
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }
}

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        max-width: 100%;
        padding: 0 var(--spacing-xs);
    }
    
    .product-image {
        height: 250px;
        min-height: 250px;
    }
    
    .product-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-detail .product-image {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .product-detail .product-image img {
        max-height: 350px;
        width: 100%;
        object-fit: contain;
    }

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