/* ============================================
   BRASIL STORE - Premium Dark Design
   Award-Winning Inspired Aesthetics
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colors - Premium Dark Palette */
    --bg-body: #050505;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #151515;

    /* Brand Colors */
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dim: #8A7018;

    --green: #008740;
    --green-light: #00B355;
    --green-dim: #004D25;

    --blue: #002776;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #555555;
    --text-inverse: #000000;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-gold: 0 0 40px rgba(212, 175, 55, 0.3);

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Custom smooth scroll */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) var(--bg-body);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold-dim), var(--green-dim));
    border-radius: var(--radius-full);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border 0.3s;
}

body:hover .custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--gold);
    mix-blend-mode: normal;
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    transition: all var(--transition-smooth);
    padding: var(--space-lg) 0;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-text-primary {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo-text-secondary {
    font-family: var(--font-serif);
    font-weight: 700;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold);
}

.nav {
    display: flex;
    gap: var(--space-2xl);
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.icon-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover,
.icon-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-body);
    transform: scale(1.1);
}

.category-dropdown {
    position: relative;
}

.category-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 200px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

.category-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.cat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    padding-left: 20px;
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--green);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION - Parallax & Effects
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: -50px;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('stadium-bg.png') center center / cover no-repeat;
    transform: scale(1.1);
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(5, 5, 5, 0.3) 0%,
            rgba(5, 5, 5, 0.5) 50%,
            rgba(5, 5, 5, 0.95) 85%,
            rgba(5, 5, 5, 1) 100%),
        radial-gradient(circle at 50% 30%, transparent 0%, rgba(5, 5, 5, 0.7) 100%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8);
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    top: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 60%;
    top: 40%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 80%;
    top: 60%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 40%;
    top: 90%;
    animation-delay: 8s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-100px) translateX(30px) scale(1.5);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-200px) translateX(-20px) scale(1);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-100px) translateX(40px) scale(1.2);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-xl);
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    backdrop-filter: blur(10px);
    background: rgba(212, 175, 55, 0.05);
}

.hero-title {
    color: var(--text-primary);
    line-height: 1.0;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.font-primary {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: -4px;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}

.font-secondary {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--gold);
    margin-top: -20px;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 18px 40px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all var(--transition-base);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform var(--transition-base);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--bg-body);
}

.hero-cta:hover::before {
    transform: translateX(0);
}

.hero-cta svg {
    transition: transform var(--transition-base);
}

.hero-cta:hover svg {
    transform: translate(5px, -5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

/* ============================================
   CATEGORIES BAR - Fixed Navigation
   ============================================ */


/* ============================================
   PRODUCTS GRID - 2 Columns Masonry
   ============================================ */
.products {
    padding: var(--space-xl) 0;
    padding-top: 100px;
    background: var(--bg-body);
}

.section-header {
    display: none;
    /* Hide section header */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

/* Masonry effect - alternating heights */
.product-card:nth-child(odd) {
    margin-top: 0;
}

.product-card:nth-child(even) {
    margin-top: var(--space-xl);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 0.8;
    overflow: hidden;
}

/* ============================================
   PRODUCT CARD & FLIP EFFECT
   ============================================ */
/* Placeholder for missing images */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ============================================
   PRODUCT CARD & ROULETTE 3D EFFECT
   ============================================ */
/* ============================================
   CINEMATIC PRODUCT HOVER
   ============================================ */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Soft border radius for premium feel */
    border-radius: var(--radius-sm);
    /* Mask for the zoom effect */
    mask-image: -webkit-radial-gradient(white, black);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* Base transition for the Zoom */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease;
    transform-origin: center center;
}

/* Front Face */
.product-image-front {
    z-index: 1;
    opacity: 1;
}

/* Back Face - Sits on top */
.product-image-back {
    z-index: 2;
    opacity: 0;
    /* Begins slightly larger for 'zoom out' effect or same size */
    transform: scale(1.1);
}

/* HOVER STATE */
.product-card:hover .product-image-front {
    /* Subtle zoom in of the front image before it disappears */
    transform: scale(1.05);
}

.product-card:hover .product-image-back {
    opacity: 1;
    /* Back image settles into place */
    transform: scale(1.05);
}

/* ============================================
   AWWWARDS STYLE - TEXT REVEAL
   ============================================ */
/* Wrapper hides the text that is 'down' */
.text-reveal-wrapper {
    display: block;
    overflow: hidden;
    position: relative;
    /* Extra padding to prevent italic text from being clipped */
    padding-right: 0.3em;
}

/* The text itself moves up */
.text-reveal-inner {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    /* Will change when .revealed is added by JS */
}

/* Trigger class */
.text-reveal-wrapper.revealed .text-reveal-inner,
.revealed .text-reveal-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Info BELOW image, not overlaying */
.product-info {
    padding: var(--space-sm) var(--space-xs);
    background: transparent;
    text-align: center;
    /* Centralizado para ficar mais elegante */
}

.product-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-size: 0.9rem;
    display: block;
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gold);
    color: var(--bg-body);
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    z-index: 5;
}

/* ============================================
   PARALLAX DIVIDER & STORYTELLING SECTIONS
   ============================================ */
.parallax-divider {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: var(--space-xl) 0;
}

/* New Storytelling Section inserted in grid */
.parallax-story-section {
    grid-column: 1 / -1;
    /* Ocupa toda a largura do grid */
    height: 40vh;
    /* Altura da janela parallax */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.story-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Mais alto para permitir movimento parallax */
    background-size: cover;
    background-position: center;
    /* Imagens já estão pré-escurecidas pelo Python */
    filter: brightness(0.7) contrast(1.1);
    /* Mantém cores com exposição baixa */
    z-index: 1;
    transform: translateY(-10%);
    /* Posição inicial */
    will-change: transform;
}

.story-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-md);
    max-width: 600px;
}

.story-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--space-xs);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-subtext {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

/* Reveal animation for story content */
.parallax-story-section.visible .story-text,
.parallax-story-section.visible .story-subtext {
    opacity: 1;
    transform: translateY(0);
}

.divider-bg {
    position: absolute;
    inset: -100px;
    background: url('stadium-bg.png') center center / cover no-repeat;
    filter: blur(3px) brightness(0.4);
}

.divider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-2xl);
}

.divider-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.divider-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-shadow: 0 0 100px rgba(212, 175, 55, 0.3);
}

.divider-text {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    background: var(--bg-surface);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px) scale(0.95);
    transition: transform var(--transition-smooth);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-body);
}

.modal-gallery {
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ============================================
   IMAGE CAROUSEL - Horizontal Swipeable
   ============================================ */
.carousel-container {
    flex: 1;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    min-width: 100%;
}

.carousel-slide {
    flex: 0 0 85%;
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    scroll-snap-align: center;
}

.carousel-slide:first-child {
    margin-left: 7.5%;
}

.carousel-slide:last-child {
    margin-right: 7.5%;
}

.carousel-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* Carousel Dots Indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.8);
}

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

.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Desktop: Keep traditional gallery */
@media (min-width: 769px) {
    .carousel-container {
        overflow: hidden;
    }

    .carousel-track {
        flex-direction: column;
    }

    .carousel-slide {
        flex: 0 0 100%;
        width: 100%;
        margin: 0 !important;
        padding: var(--space-xl);
    }

    .carousel-dots {
        display: flex;
        gap: 4px;
        padding: var(--space-sm);
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

.modal-details {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xl);
}

.modal-price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: var(--space-2xl);
    font-style: italic;
}

.option-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.size-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 14px 0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.size-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.size-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-body);
}

.action-row {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.qty-input {
    width: 70px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
    padding: 14px;
}

.add-cart-btn {
    flex: 1;
    background: var(--green);
    color: white;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.add-cart-btn:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: var(--bg-surface);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2500;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cart-footer {
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-surface-hover);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-size: 1.3rem;
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 18px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: #1faf57;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Desktop - larger grid */
@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
        max-width: 1400px;
        padding: 0 var(--space-xl);
    }

    .product-card:nth-child(even) {
        margin-top: var(--space-2xl);
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .categories {
        top: 80px;
    }

    .products {
        padding-top: 160px;
    }
}

/* Mobile - 2 columns masonry */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        /* Single column as requested */
        gap: var(--space-xl);
        /* Increased gap for better separation */
        max-width: 450px;
        /* Limit width */
        margin: 0 auto;
        padding: 0 var(--space-md);
    }

    .product-card {
        background: transparent;
        /* No black box */
        box-shadow: none;
    }

    .product-card:nth-child(even) {
        margin-top: 0;
    }

    .product-name {
        font-size: 0.7rem;
    }

    .product-price {
        font-size: 0.8rem;
    }

    .product-info {
        padding: var(--space-xs) 0;
    }

    /* Modal Mobile Fixes */
    .modal-container {
        grid-template-columns: 1fr;
        height: 100%;
        max-height: 100vh;
        width: 100%;
        max-width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-gallery {
        height: 45vh;
        min-height: 280px;
        max-height: 350px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
    }

    .carousel-container {
        flex: 1;
        height: 100%;
    }

    .carousel-slide {
        flex: 0 0 82%;
        padding: var(--space-sm);
    }

    .carousel-slide:first-child {
        margin-left: 9%;
    }

    .carousel-slide:last-child {
        margin-right: 9%;
    }

    .carousel-dots {
        padding: 10px;
        gap: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .modal-details {
        padding: var(--space-md);
        padding-bottom: var(--space-xl);
        overflow-y: visible;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: var(--space-xs);
    }

    .modal-price {
        font-size: 1.8rem;
        margin-bottom: var(--space-md);
    }

    /* Smaller size buttons on mobile */
    .size-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin-bottom: var(--space-md);
    }

    .size-btn {
        padding: 10px 0;
        font-size: 0.75rem;
    }

    /* Fix quantity input - smaller and no overlay */
    .action-row {
        display: flex;
        gap: var(--space-sm);
        flex-wrap: nowrap;
        position: relative;
    }

    .qty-input {
        width: 50px;
        padding: 10px 6px;
        font-size: 0.9rem;
        flex-shrink: 0;
        /* Prevent iOS zoom on focus */
        font-size: 16px;
    }

    .add-cart-btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .option-label {
        font-size: 0.65rem;
        margin-bottom: var(--space-sm);
    }

    .nav {
        display: none;
    }

    .font-primary {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .font-secondary {
        font-size: 1.8rem;
        margin-top: -8px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .parallax-divider {
        height: 30vh;
    }

    .divider-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 0 var(--space-md);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 0.75rem;
    }

    .header-container {
        padding: 0 var(--space-md);
    }

    .logo-text-primary,
    .logo-text-secondary {
        font-size: 1.2rem;
    }
}