/* --- Global Styles & Extended Palette Brand Design --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand-purple: #aa82ad;       
    --brand-navy: #12183a;         
    --brand-sage: #7da08d;         
    --brand-terracotta: #c96939;   
    --bg-cream: #faf7f2;           
    --bg-light-purple: #f3edf4;
    --bg-light-grey: #f5f4f8;
    
    --white: #ffffff;
    --border-subtle: #eae3ec;
    --overlay: rgba(18, 24, 58, 0.55); 
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-cream);
    color: var(--brand-navy);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* --- Cross-Page Animation Reveals --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Universally Transparent Navigation Header --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(18, 24, 58, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 30px;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    flex-shrink: 0;
}

.logo span {
    color: var(--brand-purple);
}

/* Playful Hamburger Menu Icon Trigger button */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
    order: 1;
    z-index: 110;
}

/* Structured Hamburger Bars Layout */
.hamburger-box {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2.5px;
    background-color: currentColor;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Transformation animations when active menu opens up */
.menu-toggle-btn.is-active .hamburger-inner:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle-btn.is-active .hamburger-inner:nth-child(2) {
    opacity: 0;
}
.menu-toggle-btn.is-active .hamburger-inner:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
    order: 2;
    margin-left: auto;
    margin-right: 25px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--brand-purple);
}

.cart-container-item {
    order: 3;
    display: flex;
    align-items: center;
    z-index: 110;
}

.cart-anchor-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--white);
}

.cart-icon-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--brand-terracotta);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Hero Layout Engines & Subtle Staggered Letters --- */
/* --- Hero Containers (HTML Image Mode) --- */
.hero-large, .hero-small {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden; /* Prevents large images from spilling out */
}

.hero-large {
    height: 80vh;
}

.hero-small {
    height: 40vh;
}

/* The Secret Sauce: Stretches your HTML img tag to act as a full canvas background */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the graphic scales beautifully without stretching weirdly */
    object-position: center;
    z-index: 0; /* Pushes the picture behind your text */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
    z-index: 1; /* Sits on top of the image to keep text highly readable */
}

.hero-content {
    position: relative;
    z-index: 2; /* Keeps the typography floating completely on top */
    padding: 60px 20px 0 20px;
    max-width: 800px;
}

.stagger-title {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-large .stagger-title { font-size: 3.5rem; margin-bottom: 20px; }
.hero-small .stagger-title { font-size: 2.2rem; margin-bottom: 12px; }

.stagger-title span {
    display: inline-block;
}
.stagger-title span:nth-child(3n+1) { transform: translateY(-3px) rotate(-1deg); }
.stagger-title span:nth-child(3n+2) { transform: translateY(2px) rotate(1deg); }
.stagger-title span:nth-child(3n+3) { transform: translateY(-1px) rotate(-0.5deg); }

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.95;
}

/* --- Clean Buttons --- */
.btn-cute {
    display: inline-block;
    background-color: var(--brand-purple);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(170, 130, 173, 0.25);
    transition: all 0.2s ease;
}

.btn-cute:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(170, 130, 173, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--brand-navy);
    border: 1px solid var(--brand-purple);
    box-shadow: 0 4px 12px rgba(18, 24, 58, 0.03);
}

.btn-secondary:hover {
    background-color: var(--light-lavender);
}

/* --- Structural Padding & Layout Blocks --- */
.home-section {
    padding: 100px 0; 
}

.home-section.bg-white-zone {
    background-color: var(--white);
}
.home-section.bg-sage-zone {
    background-color: #f1f5f3; 
    border-top: 1px solid rgba(125, 160, 141, 0.1);
    border-bottom: 1px solid rgba(125, 160, 141, 0.1);
}
.home-section.bg-terracotta-zone {
    background-color: #fbf6f3; 
    border-top: 1px solid rgba(201, 105, 57, 0.08);
    border-bottom: 1px solid rgba(201, 105, 57, 0.08);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.interior-content-space {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Dedicated modifier specifically for product listing views to prevent squishing */
.product-detail-layout-padding {
    padding-top: 140px; 
    padding-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- About Us Layout --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
    object-fit: cover;
    height: 400px;
}

.about-text {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-text p {
    color: #4f546d;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* --- Playful Crooked Stats Component --- */
.stats-banner {
    color: var(--brand-navy);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.stat-item {
    background: var(--white);
    padding: 25px 45px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 15px rgba(18, 24, 58, 0.02);
    transform: rotate(calc(var(--stat-tilt, 1) * 1.5deg));
}
.stat-item:nth-child(1) { --stat-tilt: -1.2; }
.stat-item:nth-child(2) { --stat-tilt: 1; }
.stat-item:nth-child(3) { --stat-tilt: -0.8; }

.stat-item h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-purple);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5d6486;
}

/* --- Clean Professional Product Cards Matrix --- */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(18, 24, 58, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(170, 130, 173, 0.1);
    border-color: var(--brand-purple);
}

.product-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

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

.product-info {
    padding: 12px 2px 2px 2px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
}

.product-price {
    font-weight: 700;
    color: var(--brand-purple);
    font-size: 1rem;
}

/* --- Playful Crooked Reviews Layout --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transform: rotate(calc(var(--rev-tilt, 1) * 1.5deg));
}
.review-card:nth-child(3n+1) { --rev-tilt: -1.2; }
.review-card:nth-child(3n+2) { --rev-tilt: 0.8; }
.review-card:nth-child(3n+3) { --rev-tilt: -0.5; }

.review-card p {
    font-style: italic;
    font-size: 1.05rem;
    color: #3f445e;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--brand-purple);
}

/* --- Filter Side Panel --- */
/* --- Filter Section Container & Badges --- */
.filter-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.active-filter-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    color: #2d3748;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-badge button {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.filter-badge button:hover {
    color: #e11d48;
}

/* --- Compact Side Filter Panel (Mobile & Laptop) --- */
/* --- Slight Backdrop Blur Overlay --- */
.filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.15); /* Soft transparent dim */
    backdrop-filter: blur(4px);            /* Slight background blur */
    -webkit-backdrop-filter: blur(4px);    /* Safari support */
    z-index: 1004;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- Compact & Fits-Content Side Filter Panel --- */
.side-panel {
    position: fixed;
    top: 20px;                     /* Float slightly below top edge */
    right: -280px;                 /* Hidden off-screen */
    width: 240px;                  /* Slightly narrower width */
    max-width: 55vw;               /* Compact on mobile */
    height: auto;                  /* Shrinks to length of content */
    max-height: calc(100vh - 40px);/* Prevents clipping on small screens */
    
    background-color: #ffffff;
    z-index: 1005;
    border-radius: 12px;           /* Clean rounded card corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: right 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 24px 18px;
    overflow-y: auto;
    box-sizing: border-box;
}

.side-panel.open {
    right: 20px;                   /* Padding from right edge when open */
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.side-panel-header h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
    margin: 0;
}

.close-panel {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-purple, #6b46c1);
    line-height: 1;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #6a708c;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    padding-bottom: 4px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-group input[type="radio"] {
    accent-color: var(--brand-purple, #6b46c1);
    width: 14px;
    height: 14px;
}

/* --- Multi-Photo Detail Layout --- */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 20px;
}

.gallery-showcase {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-display-frame {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.main-display-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-carousel-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.thumb-item:hover, .thumb-item.active {
    opacity: 1;
    border-color: var(--brand-purple);
}

.detail-meta {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 6px 20px rgba(0,0,0,0.01);
}

.detail-meta h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.detail-price {
    font-size: 1.6rem;
    color: var(--brand-purple);
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-desc {
    margin-bottom: 30px;
    color: #4f546d;
    font-size: 1.05rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.form-group input[type="text"], .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--brand-purple);
}

.review-item {
    background: var(--bg-light-grey);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* --- Blog Architecture View Cards --- */
.blog-summary-card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-summary-info {
    padding: 35px;
}

.blog-summary-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-layout {
    max-width: 800px;
    margin: 0 auto;
}

.blog-meta {
    font-size: 0.9rem;
    color: #717799;
    margin-bottom: 20px;
    font-weight: 500;
}

.blog-content p {
    margin-bottom: 20px;
}

/* --- Shopping Cart UI --- */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items-list {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.checkout-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    height: fit-content;
}

/* --- Corporate Multi-Column Footer Layout --- */
footer {
    background-color: var(--brand-navy);
    color: var(--white);
    padding: 60px 30px 30px 30px;
    margin-top: 100px;
    border-top: 4px solid var(--brand-purple);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto 40px auto;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--brand-purple);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
}

.social-links a:hover {
    background: var(--brand-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Sleek, Full-Width White Mobile Menu --- */
@media (max-width: 768px) {
    .logo {
        display: none !important;
    }
    
    /* Ensure toggle button sits ABOVE the menu drawer and is visible */
    .menu-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 1;
        position: relative;
        z-index: 1002; /* Keeps icon above the menu layer at all times */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .hamburger-box {
        width: 24px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    /* Standard Hamburger Bars - WHITE when menu is closed */
    .hamburger-inner {
        width: 24px;
        height: 3px;
        background-color: #ffffff !important; /* White icon */
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }

    /* --- "X" ICON ANIMATION WHEN ACTIVE (Turns dark so it shows on white background) --- */
    .menu-toggle-btn.is-active .hamburger-inner:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
        background-color: #2d3748 !important; /* Dark color for the "X" */
    }

    .menu-toggle-btn.is-active .hamburger-inner:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-btn.is-active .hamburger-inner:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
        background-color: #2d3748 !important; /* Dark color for the "X" */
    }

    /* --- SHRINKWRAPPED NAV DROPDOWN --- */
    .nav-links {
        display: none; 
        flex-direction: column;
        
        width: 75vw;             /* Takes up 75% of screen width */
        max-width: 300px;        /* Cap width on tablets */
        height: auto;            /* Automatic height: cuts off immediately after last link */
        
        position: absolute;      /* Positions relative to the parent header */
        top: 0;          
        left: 0;
        z-index: 1000;
        
        background: #ffffff;
        border-right: 1px solid #e2e8f0;            
        border-bottom: 1px solid #e2e8f0;           /* Soft border along bottom cutoff edge */
        border-bottom-right-radius: 8px;            /* Optional: rounded corner at the bottom right */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Shadow beneath and to the right */
        
        /* Reduced top padding so content wraps tightly below header */
        padding: 60px 24px 16px 24px;
        gap: 0;
        margin: 0;
        list-style: none;
        box-sizing: border-box;
    }
    
    .nav-links.mobile-open {
        display: flex;
        animation: menuSlideInLeft 0.25s ease-out forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 600;
        color: #2d3748;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        
        display: flex;
        align-items: center;
        justify-content: flex-start;
        
        padding: 14px 0;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .cart-container-item {
        order: 3;
        margin-left: auto;
        position: relative;
        z-index: 1002; 
    }
}

@keyframes menuSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Updated entrance animation to slide in from the left */
@keyframes menuSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    .hero-large { height: 65vh; }
    .hero-small { height: 35vh; }
    
    .hero-large .stagger-title { font-size: 2.3rem; }
    .hero-small .stagger-title { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 20px; }
    .hero-content { padding-top: 40px; }

    .about-split, .cart-layout, .product-detail-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .main-display-frame { height: 320px; }
    .about-img { height: 280px; }
    .about-text { padding: 25px; }
    
    .home-section { padding: 60px 0; }
    .container { padding: 0 15px; }
    .interior-content-space { padding-top: 30px; padding-bottom: 40px; }
    
    /* Dedicated adjustment ensures custom product pages shift smoothly on mobile without a hero banner */
    .product-detail-layout-padding {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .section-title { font-size: 1.6rem; margin-bottom: 30px; }
    
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }


@keyframes menuPopIn {
    0% { opacity: 0; transform: translateY(-10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* --- Updated Card Info Area --- */
.product-info {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr auto; /* Title on the left, Price on the right */
    gap: 10px;
    align-items: start;
    position: relative;
}

/* --- Clean, Non-Overlapping Add to Cart Button --- */
.quick-add-btn {
    grid-column: 1 / -1; /* Forces the button to take up its own row underneath the title/price */
    margin-top: 8px;
    
    background: none;
    color: var(--brand-purple, #aa82ad);
    border: none;
    font-family: var(--font-body), sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns the text beautifully to the right side */
    width: 100%;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover effects */
.quick-add-btn:hover {
    transform: translateX(-3px); /* Subtle shift left to show it's active */
    color: var(--brand-terracotta, #e06d53);
}

.quick-add-btn:active {
    transform: scale(0.98);
}
/* ==========================================================================
   HERO LAYOUT ENGINE (Large, Medium, and Responsive Layouts)
   ========================================================================== */

/* --- Base Structural Hero Defaults --- */
.hero-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-color: var(--brand-cream, #fdfbf7);
    overflow: hidden;
}

/* --- 1. Large Hero (Perfect for Homepage Entry points) --- */
.hero-wrapper.large-hero {
    min-height: 75vh;
    padding-top: 100px;
    padding-bottom: 80px;
}
.hero-wrapper.large-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-wrapper.large-hero .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 650px;
}

/* --- 2. Medium Hero (Ideal for Shop Catalog, Blog Feed, & Reviews Pages) --- */
.hero-wrapper.medium-hero {
    min-height: 40vh; /* Noticeable presence, but gets users straight to content quickly */
    padding-top: 120px; /* Generous top breathing room to clear your sticky navigation */
    padding-bottom: 45px;
    /* Removed the dashed border-bottom from here */
}
.hero-wrapper.medium-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero-wrapper.medium-hero .hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 550px;
    color: #555;
}

/* --- Content Spacer Layouts (Ensures clean grid layout offsets) --- */
.main-content-section {
    padding: 60px 0;
}
/* --- Support Rules for Heroes with Image Backgrounds --- */
.hero-wrapper #shop-hero-banner {
    position: relative;
}

/* Forces the background image to perfectly cover the medium hero area */
.hero-wrapper .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Darkens the image slightly so your crisp white text pops beautifully */
.hero-wrapper .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust 0.4 up or down to change darkness */
    z-index: 2;
}

/* Forces text content elements to stack beautifully on top of the graphics layer */
.hero-wrapper .hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff; /* Makes your text white against the dark overlay */
}

/* Ensures the subtitle color matches when placed over an image background */
.hero-wrapper.medium-hero .hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}
/* Ensure quick-add button background stays neutral on click/active states */
.quick-add-btn:active,
.quick-add-btn:focus {
    background-color: transparent !important; /* or keep your normal button background color */
}
/* Mobile-only: Force staggered hero title onto a single line */
@media (max-width: 600px) {
  .hero-content .stagger-title {
    display: flex !important;
    flex-wrap: nowrap !important; /* Prevents flex children (letters) from wrapping */
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    white-space: nowrap !important;
  }

  .hero-content .stagger-title span {
    letter-spacing: 0 !important;
  }
}