@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Delius&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --color-primary: #0b0b0b;
    --color-secondary: #f5f5f5;
    --color-accent: #8a8177;
    --color-white: #ffffff;
    --color-muted: #6b6b6b;
    --color-border: #e2e2e2;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 3.1rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3.3rem;
    letter-spacing: 0.5px;
    margin: 2rem 0 1.5rem;
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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


/* --- Header & Navbar --- */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.cart-icon-container {
    position: relative;
}

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

.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-color: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10,10,10,0.65), rgba(10,10,10,0.2));
    z-index: 1;
}
.hero-content h1 {
    font-size: 4.6rem;
    margin-bottom: 1rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 1.5rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Lookbook Hero --- */
.lookbook-hero {
    position: relative;
    min-height: 90vh;
    background-color: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}

.lookbook-track {
    display: grid;
}

.lookbook-slide {
    grid-area: 1 / 1;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
    min-height: 90vh;
}

.lookbook-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.lookbook-slide img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    filter: grayscale(100%);
}

.lookbook-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10,10,10,0.75), rgba(10,10,10,0.2));
}

.lookbook-content {
    position: absolute;
    left: 8vw;
    bottom: 18vh;
    z-index: 2;
    max-width: 520px;
}

.lookbook-kicker {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.75);
}

.lookbook-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.lookbook-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.85);
}

.lookbook-controls {
    position: absolute;
    right: 4vw;
    bottom: 16vh;
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.lookbook-control {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lookbook-control:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.lookbook-dots {
    position: absolute;
    left: 8vw;
    bottom: 10vh;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.lookbook-dot {
    width: 36px;
    height: 2px;
    background-color: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lookbook-dot.is-active {
    background-color: var(--color-white);
    transform: scaleX(1.2);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.product-grid-like {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
/* --- Shop Page & Product Card Redesign --- */

.shop-page .page-title {
    margin-bottom: 1rem; /* Reduce space under title */
}

/* Make filter controls feel more integrated */
.filter-controls {
    margin-bottom: 3rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    box-shadow: none;
    padding: 1rem 1.5rem;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-chip {
    border: 1px solid var(--color-border);
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.no-products-message {
    text-align: center;
    font-size: 1.2rem;
    padding: 3rem;
}

/* The New Product Card */
.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    text-align: left; /* Change to left-align for a cleaner look */
    transition: all 0.4s ease;
    display: flex; /* Helps with footer alignment if needed */
    flex-direction: column;
}

.product-image-container {
    position: relative; /* Crucial for the overlay */
    overflow: hidden; /* Hides parts of the overlay that stick out */
    background-color: #f9f9f9; /* Fallback color if image fails to load */
}

.product-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05); /* Gentle zoom on hover */
}

/* The Hover Overlay */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.8));
    
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    /* Start hidden and transition in */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* A secondary button style for "View Details" */
.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Product Info Below Image */
.product-info {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
    flex-grow: 1; /* Pushes content down if cards are uneven heights */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.product-name a:hover {
    color: var(--color-accent);
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* --- Product Detail Page --- */
.product-detail-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.product-detail-layout.editorial-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
}

.product-editorial {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--color-border);
}

.editorial-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.editorial-lede {
    font-size: 1.05rem;
    line-height: 1.8;
}

.editorial-highlights {
    display: grid;
    gap: 1.25rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.editorial-block span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: var(--color-muted);
}

.editorial-block p {
    margin-top: 0.35rem;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-detail-info .product-name {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.product-detail-info .product-price {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.product-detail-info .product-description {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.product-detail-info .add-to-cart-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Cart Page --- */
.cart-page {
    padding-bottom: 3rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Give more space to items */
    gap: 2.5rem;
    align-items: flex-start;
}

/* --- Cart Items Styling (Desktop) --- */
.cart-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Image | Details | Total */
    padding: 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.header-product { grid-column: 1 / 3; } /* Span first two columns */
.header-total { text-align: right; }

.cart-items-container {
    background-color: var(--color-white);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.cart-item {
    display: grid; /* Use grid for perfect column alignment */
    grid-template-columns: 100px 1fr 100px; /* Image | Details | Total */
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0.5rem;
}
.cart-item-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}
.cart-item-price {
    color: #888;
    margin-bottom: 1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.quantity-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.cart-item-remove:hover { color: var(--color-primary); }

.cart-item-total {
    font-weight: bold;
    font-size: 1.1rem;
}
.cart-item-total-container { text-align: right; }


/* --- Summary Box Styling (Unchanged, but included for completeness) --- */
.cart-summary {
    background-color: var(--color-white);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.summary-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.summary-row.total-row {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}
.checkout-btn { width: 100%; margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }


.summary-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.summary-row.total-row {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.checkout-btn { width: 100%; margin-top: 1rem; }

/* --- About Page --- */
.about-container {
    padding: 3rem 1rem;
}

.about-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    position: relative;
}

/* Adds a decorative underline */
.about-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0.5rem auto 0;
}

.about-story, .about-founder {
    max-width: 800px;
    margin: 0 auto 4rem auto; /* Center the content */
    text-align: center;
    line-height: 1.8;
    font-family: "Delius";
    font-size: 1.1rem;
}

.mission-vision {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-left: 4px solid var(--color-accent);
    text-align: left;
}
.mission-vision p {
    margin-bottom: 1rem;
}
.mission-vision p:last-child {
    margin-bottom: 0;
}


/* --- Meet the Team Section Styles --- */
.team-section {
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    /* This makes it responsive: 1 column on small screens, up to 3 on large */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member-card {
    background-color: var(--color-white);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover; /* Prevents image stretching */
    margin: 0 auto 1.5rem auto;
    border: 5px solid var(--color-accent);
}

.team-member-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.team-member-card .team-member-role {
    color: #555;
    font-style: bold;
    font-size: 1rem;
}
.sion{
    background-color: #C5A47E;
    border-radius: 4px;
    padding:3px;
}

.contact-page {
    padding-bottom: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info column is smaller than form column */
    gap: 3rem;
    background-color: var(--color-white);
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.contact-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

.contact-text {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #555;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--color-accent);
    width: 30px; /* Ensures text alignment is neat */
    margin-right: 1rem;
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(197, 164, 126, 0.4); /* Muted Gold glow */
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.footer {
    background-color: var(--color-primary); /* Use the primary off-black */
    color: var(--color-secondary); /* Use the off-white for text */
    padding: 4rem 0 0; /* Add more top padding */
    margin-top: 4rem; /* Give space from the content above */
}

.footer-container {
    display: grid;
    /* Create a responsive 3-column layout that stacks on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-about h3,
.footer-links h3, /* Note: Changed h4 to h3 in HTML for consistency */
.footer-social h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--color-accent); /* Highlight with gold on hover */
}

.footer-social a {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-right: 1.5rem; /* Space out the icons */
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #333; /* Separator line */
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Homepage Enhancement: Values Section --- */
.values-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
    padding: 4rem 1rem;
    gap: 2rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.value-item {
    flex-basis: 280px; /* Each item will have a base width */
}

.value-item i {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.value-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}


/* --- Homepage Enhancement: Testimonial Section --- */
.testimonial-section {
    background-color: var(--color-secondary);
    padding: 5rem 1rem;
    text-align: left;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.testimonial-section .section-title {
    color: var(--color-primary);
}

.testimonial-section blockquote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 400;
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
    color: #444;
}

.testimonial-section blockquote footer {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1rem;
    color: var(--color-primary);
    margin-top: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* --- Homepage Enhancement: Newsletter Section --- */
.newsletter-section {
    padding: 5rem 1rem;
    margin-bottom: 0;
    background-color: var(--color-white);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.newsletter-content p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1; /* Allow input to take up available space */
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px; /* Round left corners */
    font-size: 1rem;
    border-right: none;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-form button {
    border-radius: 0 4px 4px 0; /* Round right corners */
    border: 1px solid var(--color-accent);
}

/* --- Map --- */
.map-container {
    border-radius: 8px;
    overflow: hidden; /* Ensures the iframe corners are rounded */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.scroll-wrapper {
    position: relative;
}

/* 2. The Fading Edge Effect */
.product-scroll-container {
    /* This creates the transparent-to-black-to-transparent gradient mask */
    mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
}

/* 3. Scroll Button Styling */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    
    /* Hide buttons by default on mobile */
    display: none;
    justify-content: center;
    align-items: center;
}

.marquee {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    overflow: hidden;
    border-top: 1px solid #222;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    padding: 0.75rem 0;
    animation: marquee 18s linear infinite;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-track span {
    opacity: 0.9;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.view-toggle {
    display: none; /* Hide on desktop by default */
    margin-left: auto; /* Push it to the right */
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2px;
}

.view-btn {
    background-color: transparent;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Style for the currently active button */
.view-btn.active {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* --- Product Detail Page Redesign --- */

.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--color-muted);
}

/* --- Image Gallery --- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-image-container {
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: 8px;
}
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.thumbnail-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.thumbnail-image:hover, .thumbnail-image.active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

/* --- Product Actions (Quantity + Button) --- */
.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quantity-selector input {
    width: 60px;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.product-actions .add-to-cart-btn {
    flex-grow: 1; /* Make button take up remaining space */
}

/* --- Product Accordion --- */
.product-accordion {
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.25rem 0;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header::after {
    content: '+'; /* Plus icon */
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}
.accordion-header.active::after {
    transform: rotate(45deg); /* Turns plus into a cross */
}
.accordion-panel {
    max-height: 0; /* Start collapsed */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1rem;
}
.accordion-panel p {
    padding-bottom: 1.5rem;
}

/* --- Related Products Section --- */
.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

/* --- For Laptops & Large Tablets (<= 1200px) --- */
@media (max-width: 1200px) {
    .container {
        /* Reduce max-width to give more breathing room */
        max-width: 960px;
    }
    .hero {
    height: 100vh;
    }
}


/* --- For Tablets & Small Laptops (<= 992px) --- */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero {
    height: 100vh;
    }
    /* --- Layout Adjustments --- */
    .product-detail-layout {
        /* Stack image and info vertically */
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-editorial {
        border-right: none;
        padding-right: 0;
    }
    .product-detail-image img {
        height: auto;
        max-height: 500px; /* Constrain image height */
        object-fit: contain;
        margin: 0 auto;
    }
    .lookbook-slide img {
        height: 80vh;
    }
    .lookbook-content {
        left: 6vw;
        bottom: 14vh;
    }
    .lookbook-content h1 {
        font-size: 3.2rem;
    }
    .lookbook-controls {
        right: 6vw;
        bottom: 12vh;
    }

    .cart-layout {
        /* Stack cart items and summary vertically */
        grid-template-columns: 1fr;
    }
    .cart-summary {
        /* Un-stick the summary box on smaller screens */
        position: static;
        top: auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .footer-container {
        /* Stack footer widgets */
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .collection-layout {
        /* Stack the hero and grid on top of each other */
        grid-template-columns: 1fr;
    }
    .values-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title {
        font-size: 2.8rem;
    }
    .product-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}


/* --- For Mobile Phones (<= 768px) --- */
@media (max-width: 768px) {
    .hero {
    height: 100vh;
    }
    .container {
        /* Use more of the screen width */
        padding: 0 20px;
    }
    
    /* --- Responsive Navbar --- */
    .nav-menu {
        position: fixed;
        left: -100%; /* Start off-screen */
        top: 80px; /* Height of the navbar */
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        height: calc(100vh - 80px); /* Full viewport height minus navbar */
        text-align: center;
        transition: left 0.3s ease-in-out;
        gap: 2rem;
        padding-top: 3rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        left: 0; /* Slide into view */
    }
    .nav-item {
        margin: 1rem 0;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .nav-icons {
        gap: 1rem;
    }
    .hamburger {
        display: block; /* Show the hamburger icon */
    }
    /* Hamburger animation to 'X' */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Typography Adjustments --- */
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .lookbook-slide img {
        height: 75vh;
    }
    .lookbook-content {
        left: 7vw;
        bottom: 12vh;
        max-width: 320px;
    }
    .lookbook-content h1 {
        font-size: 2.4rem;
    }
    .lookbook-controls {
        display: none;
    }
    .lookbook-dots {
        left: 7vw;
        bottom: 6vh;
    }
    .values-section {
        grid-template-columns: 1fr;
    }
    .section-title, .page-title, .about-title {
        font-size: 2.2rem;
    }

    /* --- Element & Layout Adjustments --- */

    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }
    .product-grid-like {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .curated-collection {
        padding: 2rem 0; /* Reduce vertical padding on mobile */
    }
    .curated-collection .product-image{
        height: 220px;
    }
    .curated-collection .collection-hero .product-image {
        height: 280px;
    }
    .collection-hero-content{
        padding: 1.5rem;
    }
    .collection-hero-content h3{
        font-size: 1.5rem;
    }
    .product-detail-info .product-name {
        font-size: 2rem;
    }
    .view-toggle {
        display: flex;
    }
    .product-grid.two-column-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-grid.two-column-view .product-image {
        height: 220px;
    }
    .scroll-btn {
        display: flex;
    }
    .featured-products .product-card {
        flex-basis: 40%;
        width: 40%;
    }
}

.scroll-btn:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
    left: 10px;
}

.scroll-btn-right {
    right: 10px;
}

    /* --- Cart Page Mobile --- */
    .cart-layout {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .cart-items-container {
        padding: 0.5rem;
    }
    .cart-header {
        display: none; /* Hide header on mobile */
    }
    .cart-item {
        /* Use flexbox for a side-by-side mobile layout */
        display: flex;
        grid-template-columns: none; /* Disable grid */
        align-items: flex-start;
        gap: 1rem;
    }
    .cart-item-image-container {
        flex-shrink: 0; /* Prevent image from shrinking */
        width: 90px;
    }
    .cart-item-details {
        flex-grow: 1; /* Allow details to take remaining space */
    }
    .cart-item-total-container {
        /* Hide the total per item on mobile to save space */
        display: none;
    }
    .about-container {
        padding: 2rem 1rem;
    }

    .contact-layout {
        padding: 1.5rem;
    }


/* --- Filter Controls --- */
.filter-controls {
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: none;
}

.filter-row {
    flex-direction: column;
    align-items: flex-start;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: bold;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
}

/* 1. Gentle Fade-in Animation on Load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    /* Apply this class to sections you want to animate */
    animation: fadeIn 0.8s ease-out forwards;
}

.gsap-ready .fade-in-section {
    animation: none;
}


/* 2. Modern Underline Effect for Nav Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Position the line below the link */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0); /* Start with no width */
    transform-origin: right; /* Grow from the right */
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Smooth transition */
}

.nav-link:hover::after {
    transform: scaleX(1); /* Expand to full width on hover */
    transform-origin: left; /* Animate from the left */
}

/* Making sure the active link doesn't also have the hover effect */
.nav-menu.active .nav-link:hover::after {
    transform: scaleX(0);
}

/* --- Static Content Page Styles (for About, Shipping, etc.) --- */
.static-page {
    max-width: 900px; /* Constrains line width for readability */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.content-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.static-page p, .static-page ul {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.static-page ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.static-page ul li {
    margin-bottom: 0.5rem;
}

/* For linking to other pages within the text */
.inline-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: bold;
}

/* --- Homepage: Curated Collection Section --- */
.curated-collection {
    padding: 4rem 1rem;
}

.collection-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    min-height: 600px; /* Give the section a good height */
}

.collection-hero {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

.collection-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.collection-hero:hover img {
    transform: scale(1.05);
}

.collection-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    color: var(--color-white);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.collection-hero-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.collection-hero-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.collection-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr); /* Two equal rows */
    gap: 1.5rem;
}

/* We reuse the product-card style, but ensure it fits the new grid */
.collection-grid .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.collection-grid .product-image {
    flex-grow: 1; /* Make image fill available space */
}
.collection-grid .product-image img {
    height: 100%;
}
.collection-grid .product-info {
    padding: 1rem;
}

.collection-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* --- Homepage: Featured Looks Rail --- */
.featured-looks {
    padding: 4rem 1rem;
}

.categories {
    padding: 4rem 1rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
    transition: transform 0.5s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75));
}

.category-meta {
    position: relative;
    padding: 1.5rem;
    z-index: 1;
}

.category-meta h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
}

.category-meta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.category-card:hover img {
    transform: scale(1.04);
}

.rail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.rail-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.rail-controls,
.drawer-rail-controls {
    display: flex;
    gap: 0.75rem;
}

.rail-controls .scroll-btn,
.drawer-rail-controls .scroll-btn {
    display: flex;
}

.product-scroll-container {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
}

.product-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.product-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.rail-card {
    min-width: 220px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-white);
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.rail-link {
    text-decoration: none;
    color: inherit;
}

.rail-image {
    background: #f6f4f1;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.rail-meta {
    padding: 0.85rem 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.rail-meta h4 {
    font-size: 1rem;
    margin: 0;
}

.rail-meta span {
    font-family: var(--font-heading);
}

.rail-card .btn {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
}

.rail-empty {
    color: var(--color-muted);
}

.cart-drawer-rail {
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.drawer-rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.drawer-rail-header h4 {
    font-family: var(--font-heading);
    margin: 0;
}

.drawer-rail-controls .scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.drawer-rail {
    gap: 0.75rem;
}

.drawer-rail .rail-card {
    min-width: 160px;
}

.drawer-rail .rail-image {
    aspect-ratio: 1 / 1;
}

.drawer-rail .rail-meta {
    padding: 0.6rem 0.75rem 0.4rem;
    flex-direction: column;
    align-items: flex-start;
}

.drawer-rail .rail-card .btn {
    margin: 0 0.75rem 0.75rem;
    width: calc(100% - 1.5rem);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* --- About / Contact / Shipping (Runway Minimal) --- */
.about-page {
    padding: 3rem 0 4rem;
}

.about-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.about-hero .lead {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.about-hero-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.about-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
}

.about-list {
    margin-top: 1rem;
    padding-left: 1.1rem;
    color: var(--color-muted);
}

.about-list li {
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: #f7f2ed;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.stat-label {
    color: var(--color-muted);
}

.about-signature {
    margin-top: 3rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 18px;
    padding: 2rem;
}

.about-signature h2 {
    font-family: var(--font-heading);
}

.signature {
    margin-top: 1rem;
    font-weight: 700;
}

.contact-page {
    padding-bottom: 4rem;
}

.contact-hero .lead {
    color: var(--color-muted);
    max-width: 700px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-panel h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
}

.contact-hours {
    margin-top: 1.5rem;
    color: var(--color-muted);
}

.contact-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
    background: #faf9f7;
}

.service-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.shipping-page {
    padding-bottom: 4rem;
}

.policy-hero .lead {
    color: var(--color-muted);
    max-width: 720px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.policy-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.policy-note {
    margin-top: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    background: #f7f2ed;
}

@media (max-width: 992px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

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

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

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

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .rail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rail-controls .scroll-btn,
    .drawer-rail-controls .scroll-btn {
        display: none;
    }

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

/* --- Cart Drawer --- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.cart-drawer-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100vh;
    background-color: var(--color-white);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 220;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

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

.cart-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.cart-drawer-image-wrap {
    background-color: #f6f4f1;
    border-radius: 8px;
    padding: 0.5rem;
}

.cart-drawer-image {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.cart-drawer-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cart-drawer-price {
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.cart-drawer-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-drawer-item-total {
    font-weight: 700;
}

.cart-drawer-summary {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.drawer-empty {
    text-align: center;
    color: var(--color-muted);
}

.cart-drawer-open {
    overflow: hidden;
}

/* --- Page Transitions --- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 300;
}

.page-transition-overlay.is-ready {
    opacity: 0;
}

.page-transition-overlay.is-active {
    opacity: 1;
}
