/* --- Light Commerce Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --background: #ffffff;
    --foreground: #000000;

    --muted: #f4f4f4;
    --muted-foreground: #666666;

    --card: #ffffff;
    --card-foreground: #000000;

    --border: #e0e0e0;

    /* Sage Green Accent */
    --primary: #aabdb9;
    --primary-foreground: #000000;
    --secondary: #222222;
    --secondary-foreground: #ffffff;

    /* Top Bar Yellow */
    --accent-yellow: #f6c05b;

    --radius: 4px;

    --font-display: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --transition-normal: 0.3s ease;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
}

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

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

button,
input {
    font-family: inherit;
    outline: none;
}

/* Typography */
h1,
h2,
h3,
h4,
.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    margin: 0;
    color: #111;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--accent-yellow);
    color: #000;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    width: 100%;
    position: relative;
    z-index: 1001;
}

/* Navbar */
.navbar {
    /* No longer absolute, sits under announcement */
    background: #000000;
    color: #ffffff;
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    position: relative;
    /* Added for mobile-nav anchoring */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    order: 3;
    /* Ensure it stays at the end */
}

@media (max-width: 899px) {
    .nav-actions {
        gap: 0.85rem;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 20px;
    }
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: #ccc;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    position: relative;
}

/* Cart counter */
#cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #fff;
    color: #000;
    font-size: 0.65rem;
    font-weight: 600;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Nav */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    z-index: 999;
}

.mobile-nav.open {
    max-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-link {
    padding: 1rem 4%;
    color: #fff;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
}

.section {
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    /* capsule shapes seen in promo */
}

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

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    background: var(--muted);
    color: var(--foreground);
}

/* Hero */
.hero {
    width: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.hero picture {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--muted-foreground);
    display: none;
}

/* Product Grid matches the 4-column light layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #dcdcdc;
    transform: translateY(-4px);
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f9f9f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.product-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

/* Sold Out Badge */
.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 1.5rem;
}

.product-title {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    font-family: var(--font-display);
}

/* Split Promo Block */
.split-promo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2.5rem 4%;
}

@media (min-width: 900px) {
    .split-promo {
        grid-template-columns: 1fr 1fr;
    }
}

.promo-left,
.promo-right {
    display: flex;
}

.promo-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #fff;
    border-radius: calc(var(--radius) * 3);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.promo-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
}

.promo-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f6f6f6;
}

.promo-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.promo-card__text {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: #f9faf9;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    flex-grow: 1;
}

.promo-card__label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-foreground);
}

.promo-card__text h3 {
    font-size: 1.8rem;
    color: #111;
    margin: 0;
}

.promo-card__text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    max-width: 340px;
    margin: 0;
}

.promo-card__text .btn {
    align-self: flex-start;
    margin-top: 0.75rem;
}

/* Brand Promo Box */
.promo-brand-box {
    background: #111;
    border: 2px solid #fff;
    border-radius: calc(var(--radius) * 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 3rem;
    width: 100%;
    min-height: 380px;
    gap: 1.5rem;
}

.promo-brand-logo {
    height: 90px;
    width: auto;
    margin-bottom: 0.5rem;
}

.promo-brand-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    margin: 0;
}

.promo-brand-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.promo-brand-btn:hover {
    background: #fff;
    color: #111;
}

/* Brand Poster Section */
.brand-posters {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 4%;
}

.poster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .poster-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 320px;
    }

    .poster-item--tall {
        grid-row: span 2;
    }
}

.poster-item {
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: calc(var(--radius) * 3);
    min-height: 280px;
    cursor: pointer;
}

.poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.poster-item:hover img {
    transform: scale(1.06);
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 60%;
}

.poster-tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.poster-overlay h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    color: #fff;
}

/* Footer (Dark Brand) */
.footer {
    background-color: #111;
    color: #fff;
    padding: 5rem 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4% 4rem;
}

@media (max-width: 899px) {
    .footer-main {
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links-wrap {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        margin: 0 auto;
    }
}

@media (min-width: 900px) {
    .footer-main {
        grid-template-columns: 1.2fr 1.5fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo img {
    display: block;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
    display: flex;
}

.footer-socials a:hover {
    color: #fff;
}

.footer-links-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 600px) {
    .footer-links-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-links h4 {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: #fff;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 350px;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 0.9rem 3.5rem 0.9rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #111;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 4%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Product Details */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 4%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.scroll-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 899px) {
    .scroll-gallery {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.5rem;
        margin: 0 -4%;
        /* Expand to edges */
        padding: 0 4%;
        scrollbar-width: none;
        /* Hide scrollbar Hide on Firefox */
    }

    .scroll-gallery::-webkit-scrollbar {
        display: none;
        /* Hide on Chrome/Safari */
    }

    .gallery-img {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: var(--muted);
}

.product-meta {
    position: relative;
    top: 0;
}

@media (min-width: 900px) {
    .product-meta {
        position: sticky;
        top: 2rem;
        align-self: flex-start;
    }
}

.product-meta h1 {
    font-size: 2.25rem;
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.product-meta .price {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-description img,
.product-description video,
.product-description iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    display: block;
}

.qty-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quantity-input {
    width: 5rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 50px;
}

/* Cart Sidebar (light mode) */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: #fff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

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

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

.cart-item {
    display: flex;
    gap: 1rem;
}

.cart-item-img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    background: var(--muted);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.cart-item-price {
    font-weight: 600;
    font-size: 0.85rem;
}

.remove-item {
    background: none;
    border: none;
    font-size: 0.75rem;
    text-decoration: underline;
    color: #888;
    cursor: pointer;
    text-align: left;
    margin-top: auto;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Util */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    font-family: var(--font-sans);
}

.empty-state {
    padding: 2rem 0;
    color: #888;
}

/* --- Flywear Loading Animation --- */
.flywear-loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #111;
    z-index: 99999;
    overflow: hidden;
}

.flywear-loader-screen.is--hidden {
    display: none;
}

.flywear-loader {
    color: #f4f4f4;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.flywear-loader__h1 {
    white-space: nowrap;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 10em;
    font-weight: 500;
    line-height: 0.8;
    display: flex;
    position: relative;
}

.flywear-loader__h1-start {
    justify-content: flex-end;
    width: 2.6em;
    display: flex;
    overflow: hidden;
}

.flywear-loader__h1-end {
    justify-content: flex-start;
    width: 3.2em;
    display: flex;
    overflow: hidden;
}

.flywear-loader__letter {
    display: block;
    position: relative;
}

.flywear-loader__box {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 0;
    display: flex;
    position: relative;
}

.flywear-loader__box-inner {
    justify-content: center;
    align-items: center;
    min-width: 1em;
    height: 95%;
    display: flex;
    position: relative;
}

.flywear-loader__growing-image {
    justify-content: center;
    align-items: center;
    width: 0%;
    height: 100%;
    display: flex;
    position: absolute;
    overflow: hidden;
}

.flywear-loader__growing-image-wrap {
    width: 100%;
    min-width: 1em;
    height: 100%;
    position: absolute;
    background: #000;
    /* Added black bg */
    display: flex;
    align-items: center;
    justify-content: center;
}

.flywear-loader__cover-main {
    pointer-events: none;
    object-fit: contain;
    /* Changed from cover for logo */
    user-select: none;
    width: 80%;
    /* Logo size */
    height: 80%;
    position: relative;
    /* Relative for flex centering */
}

.flywear-loader__cover-extra {
    pointer-events: none;
    object-fit: cover;
    user-select: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.flywear-loader__cover-extra.is--1 {
    z-index: 3;
}

.flywear-loader__cover-extra.is--2 {
    z-index: 2;
}

.flywear-loader__cover-extra.is--3 {
    z-index: 1;
}

@media screen and (max-width: 991px) {
    .flywear-loader__h1 {
        font-size: 7em;
    }
}

@media screen and (max-width: 767px) {
    .flywear-loader__h1 {
        font-size: 4.5em;
    }
}

/* --- Lightbox Gallery --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}