/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

/* Import Variables */
@import 'variables.css';

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.mt-2 {
    margin-top: var(--spacing-md);
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    /* Pillow shape for premium feel */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Mobile Menu Hidden on Desktop */
.mobile-menu-btn,
.mobile-side-drawer,
.mobile-bottom-bar,
.mobile-overlay,
.btn-mobile-explore {
    display: none;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    /* Reduced padding on wrapper */
    display: block;
    /* Let container handle flex */
    z-index: 100;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    /* Match Grid */
    padding: 0 40px;
    /* Match Grid Padding */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-center-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
}

/* Desktop Nav Right Side */
.nav-desktop {
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    align-items: center;
    gap: 30px;
    flex: 1;
    /* Take up remaining space */
}

/* Logo (Left Side) */
.nav-logo-desktop {
    display: block;
    flex: 1;
    /* Take up left space */
}

.nav-logo-desktop img {
    height: 40px;
}

.nav-desktop .logo img {
    height: 40px;
    /* Adjust size as needed */
}

/* Right Side Nav (Icons + Links) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-icons {
    display: flex;
    gap: 15px;
    order: 2;
    /* Move to right of links */
}

.nav-icons a {
    color: var(--color-white);
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.25rem;
    text-transform: capitalize;
    /* "Shop" "Contact" */
}

/* Login Button Specifics */
.btn-login {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ... */

/* Shop Navbar Override */
.shop-nav {
    position: relative;
    /* Fixes overlap by occupying space */
    background-color: var(--color-primary);
    /* "Accent Cyan" (Sage Green) */
    padding: 10px 8%;
    /* Using % to keep it proportional 8% ~ 150px on 1920px */
}

/* ... */

/* Shop Hero */
.shop-hero {
    height: 45vh;
    /* Increased height for better proportions */
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-end !important;
    /* Restore left alignment */
    justify-content: center;
    color: var(--color-secondary);
    padding-top: 160px;
    /* Significant clearance for navbar */
    padding-bottom: 40px;
    /* Added spacing between title and filter */
    text-align: left !important;
    /* Restore left alignment */
}

/* Solid Navbar for subpages */
.navbar-solid {
    background-color: var(--color-primary);
    position: absolute;
    /* Keep absolute but with BG */
}


.nav-center-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.navbar nav a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

.navbar nav a:hover {
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* Glow effect */
}


/* HERO SECTION */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary) 85%, transparent 100%);
    z-index: 10;
}

/* Initial Background (Sage Green) - Fades out index 1 */
.hero-bg-color {
    display: none;
    /* Replaced by #hero background */
}

/* Video/Image Background - The "Gate" */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: url('../images/placeholder_2.jpg') no-repeat center center/cover;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
    transition: all 1.5s ease;
}

/* Main Text Animation */
/* Main Text Animation */
.hero-text {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--color-white);
    font-weight: bold;
    opacity: 0;
    filter: blur(20px);
    animation: blurIn 2s forwards ease-out;
    /* Removed absolute positioning constraint to allow container to control it */
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: auto;
    transition: all 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes blurIn {
    0% {
        opacity: 0;
        filter: blur(30px);
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Phase 2: "Cinematic Gate" & Text Drop */
#hero.animate-phase-2 .hero-text-container {
    top: 85%;
    /* Move down to bottom area reliably */
    transform: translate(-50%, -50%) scale(0.4);
    /* Keep centered anchor, scale down */
    opacity: 0.9;
}

#hero.animate-phase-2 .hero-text {
    filter: blur(0);
}

/* Needle & Thread Animation */
.hero-text {
    position: relative;
    /* Ensure absolute children are relative to text */
    display: inline-block;
}

.thread-svg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    z-index: -1;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeInThread 1s forwards 2s;
}

.needle-wrapper {
    position: absolute;
    top: -20%;
    /* Match SVG viewBox alignment roughly */
    left: -10%;
    width: 120%;
    height: 140%;
    z-index: 2;
    pointer-events: none;
}

.needle {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #fff, #aaa);
    position: absolute;
    offset-path: path("M 30,120 C 30,120 100,20 300,20 C 500,20 570,120 570,120");
    offset-distance: 0%;
    animation: sewAnimation 3s ease-in-out infinite;
    opacity: 0;
}

.sparkle {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, white 0%, transparent 70%);
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px var(--color-primary-light);
    offset-path: path("M 30,120 C 30,120 100,20 300,20 C 500,20 570,120 570,120");
    offset-distance: 0%;
    animation: sewAnimation 3s ease-in-out infinite, sparklePulse 0.5s linear infinite;
    opacity: 0;
}

@keyframes fadeInThread {
    to {
        opacity: 1;
    }
}

/* --- Product Rankings --- */
.product-ranking-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.badge-rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e1e7ec;
    background: #fdfdfd;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2b3a42;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.badge-rank.bestsellers i {
    color: #f59e0b;
}
.badge-rank.category-top i {
    color: #f59e0b; /* User's image had both icons in yellow/gold */
}

@keyframes sewAnimation {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes sparklePulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.5) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Adding a momentary blur during transition handled by transition property? 
   CSS transitions interpolate filter, so if we add a mid-state class it works, 
   but simplistic transition matches user request for "smooth". 
*/

/* The selector was missing here */
#hero.animate-phase-2 .hero-video {
    opacity: 1;
    /* The Gate Effect: scale down slightly or inset */
    top: 110px;
    /* Increased desktop spacing */
    left: 50px;
    width: calc(100% - 100px);
    height: calc(100% - 150px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

#hero.animate-phase-2 .hero-content {
    opacity: 1;
    /* IMPORTANT: Keep the X centering (-50%) and animate Y from offset to centered vertically (-40%) */
    transform: translate(-50%, -40%);
    transition-delay: 1s;
}

/* Content revealed after animation */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Start slightly lower for "fade up" effect, but keep X centered */
    transform: translate(-50%, -30%);
    text-align: center;
    color: var(--color-white);
    z-index: 20;
    opacity: 0;
    width: 80%;
    /* Transition for opacity is handled by the class add, 
       but we want a specific "fill space" animation when phase-2 triggers */
}

/* Specific animations for Title/Subtitle when parent has opacity 1 */
#hero.animate-phase-2 .hero-content h1 {
    animation: expandTitle 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 2.2s;
    /* Increased delay */
    opacity: 0;
    /* Start hidden */
}

#hero.animate-phase-2 .hero-content p {
    animation: expandSubtitle 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 2.5s;
    opacity: 0;
}

@keyframes expandTitle {
    0% {
        opacity: 0;
        transform: scale(0.8);
        letter-spacing: -5px;
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: normal;
        filter: blur(0);
    }
}

@keyframes expandSubtitle {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 5px;
        /* Start wide and come together? Or start small? User said "fill space" */
        /* Let's try standard fade up but keeping with the expanding theme */
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}


/* Needle & Thread Animation */
.hero-text {
    position: relative;
    display: inline-block;
}

.thread-svg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeInThread 1s forwards 0.5s;
    /* Start earlier (0.5s instead of 2s) */
}

/* Content revealed after animation */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Start slightly lower for "fade up" effect, but keep X centered */
    transform: translate(-50%, -30%);
    text-align: center;
    color: var(--color-white);
    z-index: 20;
    opacity: 0;
    transition: all 1s ease;
    width: 80%;
}

.hero-content h1 {
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


/* DETAILS SECTION */
#details {
    padding: 100px 20px;
    background: var(--color-primary);
    /* Continue the colored theme? Or White? 
       User said: "Initial hero cyan background... video gets cropped... logo inherit page background". 
       Let's keep Body Sage Green or White? 
       If Gate reveals Sage Green borders, then Body should be Sage Green.
    */
    background-color: var(--color-white);
}

#details h2 {
    font-size: 6rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

#details p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-light);
}


/* SECTION CONNECTOR (The Thread) */
.section-connector {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Increased z-index */
    margin-top: -30px;
    /* More overlap */
    margin-bottom: -30px;
    pointer-events: none;
    /* Let clicks pass through */
}

.section-connector svg {
    height: 100%;
    width: 200px;
    /* Width of the weave */
    opacity: 0.8;
    /* Increased opacity */
    overflow: visible;
    /* Ensure stroke isn't clipped */
}

.section-connector path {
    stroke: rgba(255, 255, 255, 0.5);
    /* Whiter stroke */
    stroke-width: 3px;
    /* Thicker stroke */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    /* Glow effect */
}

/* STYLISH CAROUSEL */
.featured-carousel,
#featured-carousel {
    padding: 80px 0;
    width: 100%;
    background-color: transparent;
    /* Changed from white to show body gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-split {
    display: flex;
    width: 80%;
    /* 10% gap on either side = 80% width */
    max-width: none;
    /* Override any max-width if inherited */
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    /* Gradient: Left (Sage) -> Right (Light Gray for depth) */
    background: linear-gradient(to right, var(--color-primary) 50%, #d7dada 50%);
}

.carousel-split.reverse {
    flex-direction: row-reverse;
    /* Gradient: Right (Sage) -> Left (Light Gray) to match the flip */
    background: linear-gradient(to left, var(--color-primary) 50%, #d7dada 50%);
}

.carousel-left {
    width: 50%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: var(--color-white);
    position: relative;
}

.carousel-text-area {
    width: 100%;
    text-align: center;
}

.carousel-text-area h3 {
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: -2px;
}

.carousel-text-area p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.carousel-right {
    width: 50%;
    background: transparent;
    /* Seamless */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Soften the edges with larger gaps (10% of container ~ 5% of total) */
    mask-image: linear-gradient(to right, transparent 0%, transparent 10%, black 25%, black 75%, transparent 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 10%, black 25%, black 75%, transparent 90%, transparent 100%);
}

/* External Footer Content */
.carousel-footer p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Card Stack - Full Height Logic */
.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.carousel-card {
    position: absolute;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1;
}

/* Gallery */
.product-gallery {
    /* Container to control size if needed */
    position: relative;
    max-width: 500px;
    /* Constrain max width */
    margin: 0 auto;
    /* Center in grid cell */
    width: 100%;
}

.product-gallery img {
    width: 100%;
    /* Enforce 3:4 Aspect Ratio like product cards */
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #f9f9f9;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Will crop less now that container is landscape */
}

/* Active Card (Center) */
.carousel-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    /* Slightly larger */
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Previous Card (Left) */
.carousel-card.prev {
    opacity: 0.5;
    /* Move left */
    transform: translate(calc(-50% - 300px), -50%) scale(0.85);
    z-index: 5;
    filter: blur(3px);
}

/* Next Card (Right) */
.carousel-card.next {
    opacity: 0.5;
    /* Move right */
    transform: translate(calc(-50% + 300px), -50%) scale(0.85);
    z-index: 5;
    filter: blur(3px);
}

/* FOOTER */
#contact {
    /* Updated background to sync with page theme (Sage Green gradient) */
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 60px 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.footer-links a {
    color: var(--color-white);
    opacity: 0.7;
    margin-left: 20px;
    font-size: 1rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary-light);
}

.footer-links i {
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-text {
        font-size: 3.5rem;
        /* Reduced from 8rem for better fit */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Balanced with hero text */
    }

    /* Fix needle overshooting text on mobile by scaling down the CSS path coordinates */
    .needle,
    .sparkle {
        offset-path: path("M 13,53 C 13,53 44,9 132,9 C 220,9 251,53 251,53");
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    #details {
        padding: 60px 20px;
        /* Standardized mobile padding */
    }

    #details h2 {
        font-size: 2.5rem;
        /* Reduced from 6rem */
    }

    .carousel-text-area h3 {
        font-size: 2rem;
        /* Consistent hierarchy */
        margin-bottom: 15px;
    }

    .carousel-text-area p {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.5;
    }

    .carousel-left {
        padding: 60px 20px;
        /* Matched with #details padding */
    }

    #hero.animate-phase-2 .hero-video {
        top: 170px;
        /* Moved down significantly to clear 2-row navbar */
        width: 90%;
        left: 5%;
        height: 60%;
        /* Reduced height to fit better */
    }

    .carousel-split,
    .carousel-split.reverse {
        flex-direction: column;
        background: var(--color-primary);
        height: auto;
    }

    .carousel-left,
    .carousel-right {
        width: 100%;
    }

    .carousel-right {
        height: 400px;
        background: inherit;
    }

    .carousel-card {
        height: 70%;
        width: 60%;
    }

    /* Mobile Navbar (2-Row Grid) targeting the Container */
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo brand icons"
            "nav nav nav";
        align-items: center;
        gap: 15px 0;
        width: 100%;
    }

    /* Mobile Menu Hidden on Desktop */
    .mobile-menu-btn,
    .mobile-side-drawer,
    .mobile-bottom-bar,
    .mobile-overlay {
        display: none;
    }

    .navbar {
        padding: 15px 20px;
        background: var(--color-primary);
        position: relative;
        z-index: 100;
    }

    .navbar .logo {
        grid-area: logo;
    }

    .nav-center-brand {
        /* Using same class as desktop but relative now */
        position: relative;
        left: auto;
        transform: none;
        grid-area: brand;
        display: block;
        text-align: center;
        font-size: 1.5rem;
    }

    /* Force Right Content (Links) to Row 2 */
    .nav-right {
        grid-area: nav;
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Icons positioned absolutely top-right for Row 1 */
    .nav-icons {
        position: absolute;
        top: 25px;
        right: 20px;
        display: flex;
        gap: 15px;
    }

    .nav-icons a {
        font-size: 1.2rem;
        color: var(--color-white);
    }

    .nav-right a {
        margin: 0;
        font-size: 0.9rem;
        text-transform: uppercase !important;
        font-weight: 500 !important;
        letter-spacing: 1px;
        color: var(--color-white) !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Override specific button classes if needed for uniformity */
    .nav-right .btn {
        background: transparent !important;
        color: var(--color-white) !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

}

/* Mobile styles removed */



/* --- SHOP PAGE STYLES --- */

/* Shop Navbar Override */
/* Shop Navbar Override */
/* Shop Navbar Override */
.shop-nav {
    position: relative;
    /* Fixes overlap by occupying space */
    background-color: var(--color-primary);
    /* "Accent Cyan" (Sage Green) */
    padding: 10px 0;
    /* Vertical padding only, let container handle horizontal */
    display: flex;
    justify-content: center;
    /* Center the inner container */
}

.shop-nav-container {
    width: 100%;
    max-width: 1600px;
    /* Match Grid */
    padding: 0 40px;
    /* Match Grid Padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* For absolute centering of brand */
}

.nav-center-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-white);
    pointer-events: none;
    /* Let clicks pass through if needed */
    z-index: 10;
}

.nav-center-brand a {
    pointer-events: auto;
    color: inherit;
    text-decoration: none;
}

/* Hide centered brand on smaller screens to prevent overlap */
/* 1200px media query moved to responsive.css */


/* ... */

.shop-hero {
    height: 10vh;
    /* Reduced from 30vh */
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: var(--color-secondary);
    margin-top: 80px;
    padding-left: 0;

    /* Align with content */
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    /* Match .shop-layout padding */
    width: 100%;
}

.shop-hero .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
}

.shop-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    text-align: left;
    /* Ensure left alignment */
}

.shop-hero p {
    font-size: 1rem;
    color: var(--color-text-light);
}

.shop-layout {
    display: block;
    /* No more grid sidebar */
    padding: 20px 40px 60px 40px;
    /* Reduced side padding */
    max-width: 1600px;
    /* Increased max-width */
    margin: 0 auto;
}

/* New Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 10px 0;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-label {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-right: 10px;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 5px;
    border: 1px solid #eee;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--color-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
}

.custom-dropdown:hover .dropdown-content {
    display: block;
}

/* Sort & Count */
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-wrapper label {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.sort-wrapper select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-secondary);
    cursor: pointer;
}

#result-count {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Product Grid - Centered */
/* Product Grid - Centered */
.product-grid {
    display: grid;
    /* Large cards: min 340px */
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    /* Increased gap */
    margin: 0 auto;
    width: 100%;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Context for absolute badge */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    padding-top: 133%;
    /* 3:4 Aspect Ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.badge.sale {
    background: #e74c3c;
}

.add-to-cart-btn {
    position: absolute;
    bottom: -50px;
    /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--color-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: bottom 0.3s ease, background 0.3s ease;
    z-index: 3;
    width: 80%;
}

.product-card:hover .add-to-cart-btn {
    bottom: 20px;
    /* Slide up on hover */
}

.add-to-cart-btn:hover {
    background: var(--color-primary);
    color: white;
}

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

.product-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-secondary);
    font-weight: 600;
}

.rating {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rating .count {
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}

.final-price {
    color: var(--color-primary-dark);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 1.2rem;
}


/* Responsive Shop */

/* --- SEARCH OVERLAY STYLES --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    /* Almost solid white for clean look */
    z-index: 2000;
    /* Highest priority */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    /* Space from top */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
}

#site-search-input {
    width: 100%;
    border: none;
    font-size: 1.5rem;
    padding: 10px 0;
    background: transparent;
    font-family: var(--font-heading);
    /* Stylish */
    color: var(--color-secondary);
}

#site-search-input:focus {
    outline: none;
}

#close-search-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-secondary);
    cursor: pointer;
    margin-left: 10px;
}

.search-results {
    width: 90%;
    max-width: 600px;
    margin-top: 40px;
    overflow-y: auto;
    max-height: 70vh;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background 0.2s;
}

.search-item:hover {
    background: #f9f9f9;
}

.search-item-img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 20px;
}

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

.search-item-info h4 {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.search-item-price {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.no-results {
    text-align: center;
    color: #999;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* --- CART PAGE STYLES --- */
.cart-page-container {
    padding-top: 100px;
    padding-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 77vh;
    /* Pushes footer down */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin: 0;
}

.continue-shopping {
    color: var(--color-secondary);
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.3s;
}

.continue-shopping:hover {
    color: var(--color-primary);
}

/* Cart Grid Labels */
.cart-labels {
    display: grid;
    grid-template-columns: 120px 2fr 1fr 1fr;
    /* Image, Details, Qty, Total */
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.label-product {
    grid-column: 1 / 3;
    /* Span Image and Details */
    text-align: left;
}

.label-qty {
    text-align: left;
    /* Aligned with box below */
}

.label-total {
    text-align: right;
}

/* Cart Item Row */
.cart-item {
    display: grid;
    grid-template-columns: 120px 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 100%;
    /* Fill the 120px col */
    max-width: 100px;
    /* Limit size */
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    /* Remove margin/float */
}

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

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Left align text */
}

.cart-item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

/* Quantity Control */
.cart-item-qty {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align to match header */
    gap: 15px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    /* Contains the children */
}

.qty-control button {
    background: #f9f9f9;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.qty-control button:hover {
    background: #eee;
    color: #000;
}

.qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 1rem;
    color: var(--color-secondary);
    background: transparent;
    padding: 8px 0;
    margin: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    /* Firefox */
}

/* Chrome, Safari, Edge, Opera */
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-control input:focus {
    outline: none;
    background: #fbfbfb;
}

/* Total Column */
.cart-item-total {
    text-align: right;
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Cart Footer */
.cart-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    text-align: right;
}

.cart-summary {
    width: 100%;
    max-width: 400px;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.subtotal-row .label {
    font-size: 1.1rem;
    color: #666;
}

.subtotal-row .value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.tax-note {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
    font-style: italic;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: #d4b895;
    /* Beige/Gold from image */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-checkout:hover {
    background: #c3a075;
}

.btn-checkout.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Mobile Responsiveness for Cart */
@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 2rem;
    }

    .cart-labels {
        display: none;
    }

    /* Mobile Cart Item Grid */
    .cart-item {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0 15px;
        /* Row gap 0, Col gap 15 */
        align-items: start;
        padding: 20px 0;
        text-align: left;
    }

    .cart-item-image {
        grid-row: 1 / 3;
        width: 80px;
        height: 80px;
        margin: 0;
        float: none;
    }

    .cart-item-details {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        margin-bottom: 5px;
        align-items: flex-start;
    }

    .cart-item-details h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .cart-item-total {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
        text-align: right;
        font-size: 1rem;
        padding: 0;
    }

    .cart-item-qty {
        grid-column: 2 / 4;
        grid-row: 2 / 3;
        justify-content: flex-start;
        margin: 0;
    }

    .delete-btn {
        position: static;
        /* Reset absolute positioning */
        margin-left: 15px;
        font-size: 1.1rem;
    }
}

/* --- PRODUCT DETAILS PAGE STYLES --- */
.product-page-container {
    padding-top: 120px;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

.product-wrapper {
    display: grid;
    /* Desktop: 40% Image, 60% Details */
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    gap: 60px;
    align-items: stretch;
    /* Match heights */
}

.product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.enlarge-hint {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    /* Clicks go through to image, or handled by inner click if needed */
    z-index: 5;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.enlarge-hint i {
    margin-right: 8px;
}

/* Info Details */
.product-info-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content within the full height */
}

.product-info-details h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: var(--color-secondary);
}

#product-rating {
    color: #f1c40f;
    margin-bottom: 20px;
}

.price-box {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    /* Use secondary/dark for price */
    margin-bottom: 25px;
}

.product-description {
    margin-bottom: 20px;
    /* Reduced to fit badges close */
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.product-ranking-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge-rank {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 8px;
    /* Soft rounding */
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.badge-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    /* Hover effect */
}

.badge-rank i {
    color: #f1c40f;
    /* Gold icon */
}

/* Actions Row */
.product-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Reusing .qty-control from cart styles, ensuring it fits */
.product-actions .qty-control {
    height: 48px;
    /* Match button height */
}

.product-actions .btn {
    padding: 12px 30px;
    border-radius: 30px;
    /* Pill shape for premium feel */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-add-cart {
    background: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-secondary);
}

.btn-add-cart:hover {
    background: transparent;
    color: var(--color-secondary);
}

.btn-buy-now {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-buy-now:hover {
    background: transparent;
    color: var(--color-primary);
}

.product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
}

.product-meta i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

.available-icon {
    color: #27ae60;
}

/* Mobile Responsiveness for Product Page */
@media (max-width: 768px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-info-details h1 {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions .qty-control {
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* --- ACCOUNT ORDER HISTORY STYLES --- */
.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-product-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.prod-name {
    flex: 2;
}

.prod-qty {
    flex: 0.5;
    text-align: center;
    color: #888;
}

.prod-price {
    flex: 1;
    text-align: right;
}

.order-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
    text-align: right;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

/* --- PRODUCT ACCORDIONS --- */
.product-details-section {
    max-width: 800px;
    /* Narrower for readability */
    margin: 60px auto;
    border-top: 1px solid #eee;
}

.details-accordion details {
    border-bottom: 1px solid #eee;
}

.details-accordion summary {
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.details-accordion summary:hover {
    color: var(--color-primary);
}

.details-accordion summary::-webkit-details-marker {
    display: none;
}

.details-accordion summary i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.details-accordion details[open] summary i {
    transform: rotate(180deg);
}

.accordion-content {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    animation: fadeIn 0.3s ease;
}

/* --- REVIEWS SECTION --- */
.reviews-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

/* --- RESTORED CAROUSEL STYLES --- */
#featured-carousel {
    padding: 60px 0;
}

.carousel-split {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    /* Reduced from 20px */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Reduced shadow */
    margin: 40px auto;
    max-width: 1600px;
    width: 95%;
    min-height: 200px;
    max-height: 350px;
}

/* Layout Variations */
.carousel-split.reverse {
    flex-direction: row-reverse;
}

.carousel-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px;
    background: linear-gradient(135deg, #8fa69a, #788c81);
    /* Sage/Green tone */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /* Centered text based on screenshot */
}

.carousel-left h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: var(--font-heading, "Playfair Display", serif);
}

.carousel-left p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.carousel-right {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    background: #f9f9f9;
    /* Lighter background */
    display: flex;
    /* Center the card */
    align-items: center;
    justify-content: center;
    /* overflow: hidden; Removed to allow side cards to peek out */
}

.card-stack {
    position: relative;
    /* Match Product Card Dimensions ~ 340px wide */
    width: 340px;
    /* Maintain 3:4 Aspect Ratio */
    aspect-ratio: 9 / 16;
    max-height: 300px;
    height: auto;
    perspective: 1000px;
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    opacity: 0;
    /* Default hidden state */
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    /* Ensure background if image loads late */
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Active State - Front & Center */
.carousel-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    filter: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Prev State - Behind Left, Blurred */
.carousel-card.prev {
    opacity: 0.6;
    transform: translateX(-45%) scale(0.9);
    z-index: 5;
    filter: blur(5px) brightness(0.9);
}

/* Next State - Behind Right, Blurred */
.carousel-card.next {
    opacity: 0.6;
    transform: translateX(45%) scale(0.9);
    z-index: 5;
    filter: blur(5px) brightness(0.9);
}

/* Hidden States (Cards 4 and 5) - Stacked deeper behind */
.carousel-card:not(.active):not(.prev):not(.next) {
    opacity: 0;
    transform: translateX(0) scale(0.7);
    z-index: 1;
}


/* --- HERO ANIMATION RESTORE --- */
.animate-phase-2 .hero-text {
    transform: translateY(-20px);
    opacity: 1;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.average-rating {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.rating-stars {
    color: #f1c40f;
    font-size: 1.2rem;
}

.total-reviews {
    color: #888;
    font-size: 0.9rem;
}

/* Wall of Notes */
.reviews-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.reviews-wall.visible {
    opacity: 1;
    max-height: 2000px;
    /* Arbitrary large height for expansion */
}

.review-note {
    background: #fff;
    padding: 25px;
    border-radius: 2px;
    /* Slight rounding for paper feel */
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Indie Flower', cursive;
    /* Optional: Handwriting font if available, else inherit */
}

.review-note:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 5px 8px 15px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.review-note p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-align: right;
}

/* Random Border Colors (Collage Feel) */
.review-note:nth-child(4n+1) {
    border-left-color: #e74c3c;
    background: #fffdfd;
}

.review-note:nth-child(4n+2) {
    border-left-color: #f1c40f;
    background: #fffdf9;
}

.review-note:nth-child(4n+3) {
    border-left-color: #3498db;
    background: #fbfdff;
}

.review-note:nth-child(4n+4) {
    border-left-color: #2ecc71;
    background: #fafffb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- TRUST BADGES --- */
.trust-badges-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 10px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    /* Optional separate line */
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    color: var(--color-secondary);
}

.trust-badge i {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.trust-badge span {
    font-weight: 600;
    font-size: 1rem;
}

/* Mobile Navbar Elements (Hidden on Desktop) */
.nav-mobile-icons,
.mobile-search-bar {
    display: none;
}

/* --- PREMIUM AESTHETIC POLISH --- */

/* Links hover effect */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Premium Button Shadows */
.btn {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form inputs premium focus glow */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(122, 158, 146, 0.2);
}

/* Generic Card/Item hover lift (if any wrapper) */
.product-wrapper,
.product-info-details {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Ensure body font rendering is smooth */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- NEW FRAMED CAROUSEL STYLES --- */
.bg-soft-cream {
    background-color: #fdfbf7 !important;
}

.framed-carousel-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.framed-carousel-header {
    max-width: 600px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 10;
}

.framed-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.framed-subtitle {
    font-size: 1.1rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* Decorative SVG pseudoelements */
.decorative-star {
    position: absolute;
    left: -80px;
    top: -20px;
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 L55 45 L100 50 L55 55 L50 100 L45 55 L0 50 L45 45 Z" fill="%236b8e23" opacity="0.4"/></svg>');
    background-repeat: no-repeat;
    animation: rotateSlow 20s linear infinite;
}

.decorative-squiggle {
    position: absolute;
    right: -60px;
    bottom: -30px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 80 Q 30 20, 50 60 T 90 30" fill="none" stroke="%236b8e23" stroke-width="4" stroke-linecap="round" opacity="0.5"/></svg>');
    background-repeat: no-repeat;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* The Track */
.framed-track {
    position: relative;
    height: 480px;
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
    /* Perspective for 3D tilts */
    perspective: 1200px;
}

/* Framed Card Base */
.framed-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    height: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, z-index 0s;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.framed-card-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    background-color: #f4f6f5;
    /* fallback */
}

/* Active (Center) */
.framed-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Previous (Left) */
.framed-card.prev {
    opacity: 1;
    transform: translate(calc(-50% - 340px), -45%) scale(0.85) rotate(-5deg);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.framed-card.prev:hover {
    transform: translate(calc(-50% - 340px), -48%) scale(0.88) rotate(-3deg);
}

/* Next (Right) */
.framed-card.next {
    opacity: 1;
    transform: translate(calc(-50% + 340px), -45%) scale(0.85) rotate(5deg);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.framed-card.next:hover {
    transform: translate(calc(-50% + 340px), -48%) scale(0.88) rotate(3deg);
}

/* Hidden (Fallback layers) */
.framed-card.hidden {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.6) rotate(0deg);
    z-index: 1;
}

/* Controls */
.framed-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.framed-btn {
    margin-bottom: 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--color-primary-dark, #2b4f2b);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.framed-btn:hover {
    background: var(--color-primary, #6b8e23);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-explore-framed {
    background-color: var(--color-primary, #6b8e23);
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.3);
}

.btn-explore-framed:hover {
    background-color: var(--color-primary-dark, #2b4f2b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 79, 43, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .framed-card.prev {
        transform: translate(calc(-50% - 200px), -45%) scale(0.8) rotate(-6deg);
    }

    .framed-card.next {
        transform: translate(calc(-50% + 200px), -45%) scale(0.8) rotate(6deg);
    }
}

@media (max-width: 600px) {
    .framed-carousel-section {
        padding: 60px 15px;
    }

    .framed-title {
        font-size: 2.2rem;
    }

    /* Hide outer cards completely on very small screens to save space, or squish them? squishing is better */
    .framed-card.prev {
        transform: translate(calc(-50% - 90px), -40%) scale(0.7) rotate(-8deg);
    }

    .framed-card.next {
        transform: translate(calc(-50% + 90px), -40%) scale(0.7) rotate(8deg);
    }

    .framed-track {
        height: 380px;
    }

    .framed-card {
        width: 260px;
        height: 340px;
        padding: 10px;
    }

    .decorative-star {
        left: 10px;
        top: -30px;
        width: 40px;
        height: 40px;
    }

    .decorative-squiggle {
        right: 10px;
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   COLLECTIONS SCROLL SECTION
   ========================================= */
.collections-scroll-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

.collections-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 40px;
    text-align: left;
    padding-left: 20px;
}

.collections-track {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    /* Negative margin to allow bleeding to the edge of the container */
    margin: 0 -20px;
    padding: 10px 20px 30px 20px;
    scroll-behavior: smooth;
    /* Hide scrollbars for a clean, modern look */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.collections-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 180px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collection-item:hover {
    transform: translateY(-5px);
}

.collection-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: #f5f5f5; /* Placeholder bg */
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-item:hover .collection-image {
    transform: scale(1.1);
}

.collection-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Arrow transition */
.collection-name i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}
.collection-item:hover .collection-name i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .collection-image-wrapper {
        width: 140px;
        height: 140px;
    }
    .collection-item {
        min-width: 140px;
    }
    .collections-title {
        font-size: 2rem;
    }
}