/* ==================================== */
/* 1. CSS VARIABLES (Color Palette & Typography) */
/* ==================================== */
:root {
    /* Colors */
    --color-primary: #1f1f21;         /* Black - for text/structure */
    --color-accent: #D5CBA1;          /* Platinum Gold - for accents/buttons */
    --color-background: #FFFFFF;      /* Pure White - dominant background */
    --color-error: #E74C3C;           /* Red for warnings/low stock */
    --color-subtle-error: #FBEFEF;    /* Light red background for subtle warning */

    /* Typography (Manrope Only) */
    --font-sans: 'Manrope', sans-serif; 

    /* Spacing/Structure */
    --header-height: 60px;
    --content-max-width: 1200px;
}

/* ==================================== */
/* 2. BASE & TYPOGRAPHY STYLES */
/* ==================================== */

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

/* Global Body Styles (Light Theme) */
body {
    background-color: var(--color-background);
    color: var(--color-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden; 
}

/* All Headers now use Manrope (sans-serif) */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    /* REDUCED WEIGHT: Applied 500 to general headers */
    font-weight: 500;
}
/* Default Header Sizing (Reduced and Proportional) */
h1 { font-size: 2.0rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

/* Standard link styles */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Utility Class for preventing scroll when mobile menu is open */
body.nav-open {
    overflow: hidden;
}

/* Standard Padding */
.py-24 {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Re-use the site-container for content that needs centering/max-width */
.site-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================== */
/* 3. HEADER & NAVIGATION STYLES (Sleek Logo and X-Transition) */
/* ==================================== */

/* --- Header & Logo --- */
.site-header {
    background-color: var(--color-background);
    color: var(--color-primary);
    position: sticky;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: var(--header-height);
    padding: 0 20px;
}

.logo {
    /* FINAL SLEEK LOGO STYLE */
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 1010;
}

/* --- Hamburger Button & X-Transition --- */
.menu-toggle {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}

.menu-toggle[aria-expanded="true"] .bar-top {
    transform: rotate(45deg) translateY(-1px);
    width: 120%;
}
.menu-toggle[aria-expanded="true"] .bar-mid {
    opacity: 0;
    transform: translateX(10px);
}
.menu-toggle[aria-expanded="true"] .bar-bottom {
    transform: rotate(-45deg) translateY(1px);
    width: 120%;
}

/* --- Mobile Navigation --- */
.main-nav {
    position: absolute;
    top: var(--header-height); 
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-background);
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    z-index: 1005;
    overflow-y: auto; 
}

.main-nav.is-open {
    transform: translateX(0);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column; 
    gap: 15px;
    padding-left: 0;
}

.main-nav a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
}

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

/* --- Utility Nav (Cart) --- */
.utility-nav {
    display: flex;
    align-items: center;
    z-index: 1010;
}

.cart-link {
    position: relative;
    font-size: 1.5rem;
}

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

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--color-accent); 
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .menu-toggle {
        display: none; 
    }
    .main-nav {
        position: static;
        transform: translateX(0); 
        height: auto;
        width: auto;
        padding: 0;
        overflow-y: visible;
    }
    .main-nav ul {
        display: flex;
        flex-direction: row; 
        gap: 30px;
    }
    .main-nav a {
        font-size: 0.85rem;
        padding: 10px 0;
        border-bottom: none;
        position: relative;
    }
    
    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: width 0.3s ease;
    }
    .main-nav a:hover::after {
        width: 100%;
    }
    #content {
        padding-top: 0;
    }
}


/* ==================================== */
/* 4. FOOTER STYLES */
/* ==================================== */

.site-footer {
    background-color: var(--color-background);
    color: var(--color-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px; 
    margin-bottom: 30px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-links,
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact-info a {
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact-info a:hover {
    color: var(--color-accent);
}

.site-copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    .site-footer {
        padding: 60px 20px 30px;
    }
}


/* ==================================== */
/* 5. HOME PAGE & UTILITY STYLES */
/* ==================================== */

#content {
    padding-top: 0;
}

.home-content-wrapper {
    padding-top: 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.section-main-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.text-dim {
    color: rgba(31, 31, 33, 0.8);
}


/* --- Buttons --- */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.btn-lg {
    font-size: 1rem;
    padding: 12px 25px;
}

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

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-accent);
    padding: 5px 0;
    border-bottom: 1px solid var(--color-accent);
}
.read-more-link:hover {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}


/* ==================================== */
/* 6. HERO SLIDER STYLES */
/* ==================================== */

.hero-full-width {
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 450px; 
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.current-slide {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--color-background);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem; 
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.1rem; 
    margin-bottom: 25px;
    font-weight: 400;
}

.slide-overlay-dark-text {
    background: rgba(255, 255, 255, 0.7);
}

.hero-content-dark {
    color: var(--color-primary); 
}

.nav-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
}

.active-dot {
    background-color: var(--color-accent) !important;
    width: 12px;
    height: 12px;
}

@media (min-width: 1024px) {
    .slide-container {
        height: 600px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}


/* ==================================== */
/* 7. ABOUT CTA SECTION STYLES */
/* ==================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-image-wrapper img {
    border: 2px solid var(--color-accent);
}


/* ==================================== */
/* 8. FEATURED PRODUCTS (Grid Redesign) */
/* ==================================== */

/* Header flow: Stacks on mobile, flows horizontally on desktop */
.section-header {
    display: block; 
    margin-bottom: 30px;
    padding: 0 20px; 
}

.view-all-link {
    display: block; 
    text-align: left;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 0.85rem;
}

.view-all-link:hover {
    color: var(--color-accent);
}

.product-grid {
    display: grid;
    /* Explicitly set to 2 columns on mobile */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; 
    padding: 0 15px; 
}

.card-base {
    background-color: var(--color-background);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-base:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.product-card {
    text-align: center;
    padding-bottom: 15px;
}

.product-img-wrapper {
    margin-bottom: 10px;
}

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

.product-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-price {
    color: rgba(31, 31, 33, 0.7);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.stock-status {
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--color-error);
    background-color: var(--color-subtle-error);
}

.out-of-stock {
    /* Kept for consistency, but styling is above */
}

.product-rating {
    margin-top: 5px;
    margin-bottom: 10px;
}

.stars {
    color: var(--color-accent);
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.7rem;
    color: rgba(31, 31, 33, 0.7);
    display: block;
}

.btn-quick-view {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 6px 0;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    width: 90%;
    margin: 10px auto 0;
    transition: background-color 0.3s;
}

.btn-quick-view:hover {
    background-color: var(--color-accent);
}


/* ==================================== */
/* 9. CATEGORY BANNERS STYLES */
/* ==================================== */

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.category-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    transition: background 0.3s;
}

.category-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.category-title {
    font-size: 2rem; 
    color: var(--color-background);
    margin-bottom: 15px;
    font-weight: 700;
}

.btn-outline-inverted {
    background-color: transparent;
    color: var(--color-background);
    padding: 10px 20px;
    border: 2px solid var(--color-background);
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-inverted:hover {
    background-color: var(--color-accent); 
    color: var(--color-primary);
    border-color: var(--color-accent);
}


/* ==================================== */
/* 10. TESTIMONIALS & VALUE PROPOSITIONS */
/* ==================================== */

.testimonials-section {
    background-color: #f8f8f8;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars-full {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.testimonial-quote {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.average-rating-summary {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.value-props-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.prop-icon {
    /* Icon Patch Applied */
    font-size: 1.5rem;
    font-weight: 700;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 10px; 
}


/* Media Query for Desktop Layouts (768px+) */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .featured-product-grid {
        /* Revert to 4 columns on desktop */
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Desktop header layout */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    .view-all-link {
        display: inline;
        margin-top: 0;
    }
}