/* ===================================================================
    ARQUIVO DE ESTILO DA PÁGINA INICIAL - TN DO JAPA (VERSÃO FINAL)
    CORRIGIDO: Sem piscadas, animações suaves
   =================================================================== */

/* ===== ESTADOS INICIAIS CRÍTICOS (EVITA PISCADA) ===== */
/* IMPORTANTE: Todos os elementos animados começam INVISÍVEIS */
/* ===== ESTADOS INICIAIS CRÍTICOS (EVITA PISCADA) ===== */
/* CORREÇÃO: Removido !important para permitir que o JS anime os elementos */

.hero-bg-image {
    opacity: 0; /* Removido !important */
    transform: scale(1.1); /* Removido !important */
    filter: brightness(1.3) blur(8px); /* Removido !important */
    will-change: opacity, transform, filter;
}

.hero-title {
    opacity: 0; /* Removido !important */
    transform: translateY(30px); /* Removido !important */
    will-change: opacity, transform;
}

.hero-subtitle {
    opacity: 0; /* Removido !important */
    transform: translateY(20px); /* Removido !important */
    will-change: opacity, transform;
}

.hero-content .btn {
    opacity: 0; /* Removido !important */
    transform: translateY(15px); /* Removido !important */
    will-change: opacity, transform;
}

.hero-socials a {
    opacity: 0; /* Removido !important */
    transform: translateY(10px); /* Removido !important */
    will-change: opacity, transform;
}

/* Classe adicionada quando animação do Hero termina */
.hero-animation-complete .hero-bg-image,
.hero-animation-complete .hero-title,
.hero-animation-complete .hero-subtitle,
.hero-animation-complete .hero-content .btn,
.hero-animation-complete .hero-socials a {
    will-change: auto !important;
    transition: all var(--transition-fast) !important;
}

/* ===== LOADING OVERLAY (MELHORADO) ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    /* CORREÇÃO CRÍTICA AQUI: */
    opacity: 1; /* Removido !important */
    visibility: visible; /* Removido !important */
    
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay.hidden {
    opacity: 0; /* Removido !important */
    visibility: hidden; /* Removido !important */
    pointer-events: none;
}

.loader-logo {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.loader-logo span {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgb(243, 229, 203);
    max-width: 450px;
    margin: var(--space-md) 0 var(--space-lg);
    line-height: 1.6;
    font-weight: 400;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    background-image: url("../IMG/tiger.jpeg");
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--background) 30%, transparent 70%);
}

.hero-socials {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-md);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero-socials a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.hero-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== FEATURED SNEAKER SECTION ===== */
.featured-sneaker-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    width: 100%;
}

.featured-image-wrapper.swiper {
    position: relative;
    width: 100%;
    min-width: 0;
    background-color: #1c1c1c;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    contain: layout style;
}

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

.featured-sneaker-img:hover {
    transform: scale(1.05);
}

.featured-image-wrapper .swiper-button-next,
.featured-image-wrapper .swiper-button-prev {
    color: var(--primary);
    background-color: rgba(10, 10, 10, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.featured-image-wrapper .swiper-button-next:hover,
.featured-image-wrapper .swiper-button-prev:hover {
    background-color: var(--primary);
    color: #fff;
}

.featured-image-wrapper .swiper-button-next::after,
.featured-image-wrapper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 900;
}

.featured-image-wrapper .swiper-pagination {
    position: absolute;
    bottom: 15px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
}

.featured-image-wrapper .swiper-pagination-bullet {
    background-color: var(--text-secondary);
    width: 10px;
    height: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.featured-image-wrapper .swiper-pagination-bullet-active {
    background-color: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

/* ===== COLLECTION SECTION ("Recém-Chegados") ===== */
.collection-section {
    background-color: var(--background);
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
    width: 100%;
    overflow: hidden;
    contain: layout style;
}

.collection-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    padding-left: calc((100% - 1300px) / 2 + 1.5rem);
    padding-right: calc((100% - 1300px) / 2 + 1.5rem);
    width: 100%;
}

.section-titleRECEM {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.collection-nav button {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    background: var(--surface);
    cursor: pointer;
}

.collection-nav button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 145, 0, 0.3);
}

.collection-nav button.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.collection-nav {
    display: flex;
    gap: var(--space-sm);
}

.collection-swiper {
    padding-left: calc((100% - 1300px) / 2 + 1.5rem);
    padding-right: calc((100% - 1300px) / 2 + 1.5rem);
    padding-bottom: var(--space-xl);
    width: 100%;
}

.collection-swiper .swiper-slide {
    width: 290px;
    height: auto;
    transition: transform 0.3s ease;
}

.collection-swiper .swiper-slide:hover {
    transform: translateY(-10px);
}

.collection-section .product-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    will-change: transform; /* Otimização para hover */
}

.collection-section .product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.collection-section .product-image-wrapper {
    background-color: #eaeaea;
    padding: 0;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.collection-section .product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.1));
    z-index: 1;
    pointer-events: none;
}

.collection-section .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.collection-section .product-info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.collection-section .product-brand {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collection-section .product-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: var(--space-xs) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* PREÇO DOS PRODUTOS - OTIMIZADO PARA ANIMAÇÃO */
.collection-section .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
    will-change: contents; /* Otimização para animação GSAP */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Estado final após animação */
.product-price[data-price-animated="completed"] {
    will-change: auto;
}

.collection-section .product-info .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    background-color: var(--text-primary);
    color: var(--background);
    border: 2px solid var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collection-section .product-info .btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 145, 0, 0.3);
}

.collection-swiper .swiper-scrollbar {
    background: var(--surface);
    height: 4px !important;
    border-radius: 2px;
}

.collection-swiper .swiper-scrollbar-drag {
    background: var(--primary);
    border-radius: 2px;
}

/* ===== CREW SECTION - VÍDEO APERFEIÇOADO ===== */
.crew {
    background-color: var(--surface);
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.crew::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 145, 0, 0.05) 0%, 
        rgba(255, 145, 0, 0.02) 50%, 
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.crew-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Texto da seção Crew */
.crew-text {
    padding-right: var(--space-xl);
}

.crew-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(45deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.crew-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.crew-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin-top: var(--space-lg);
    font-weight: 400;
}

/* Container do Vídeo Aprimorado - COMPRIMENTO AUMENTADO */
.crew-video-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 145, 0, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2;
    /* ALTURA AUMENTADA PARA MOSTRAR MAIS DO VÍDEO */
    min-height: 600px; /* Aumentado de 500px para 600px (20% maior) */
}

.crew-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 145, 0, 0.05) 50%,
        transparent 100%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.crew-video-container:hover::before {
    opacity: 1;
}

/* Efeito de brilho nas bordas */
.crew-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        transparent,
        var(--primary),
        transparent
    );
    mask: linear-gradient(#fff 0 0) content-box, 
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.crew-video-container:hover::after {
    opacity: 0.5;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Elemento do vídeo - ALTURA AUMENTADA */
.crew-video-element {
    width: 100%;
    height: 600px; /* Aumentado de 500px para 600px */
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    filter: brightness(1) contrast(1.05) saturate(1.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.crew-video-container:hover .crew-video-element {
    transform: scale(1.03);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Overlay de interação */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-lg);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.crew-video-container:hover .video-overlay {
    opacity: 1;
    animation: pulseOverlay 2s ease-in-out infinite;
}

@keyframes pulseOverlay {
    0%, 100% {
        background: rgba(0, 0, 0, 0.7);
    }
    50% {
        background: rgba(0, 0, 0, 0.8);
    }
}

.video-overlay i {
    color: var(--primary);
    font-size: 1.2rem;
    animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.video-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Efeito de partículas */
.crew-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
}

.crew-video-container:hover ~ .crew-particles .particle {
    animation: floatParticle 3s ease-in-out forwards;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) scale(0);
        opacity: 0;
    }
}

/* ===== NEWSLETTER ===== */
.newsletter {
    text-align: center;
    width: 100%;
    overflow: hidden;
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    position: relative;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.newsletter h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#newsletterForm {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    background-color: var(--surface);
    padding: var(--space-xs);
    border-radius: 8px;
    width: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#newsletterForm:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.1);
}

#newsletterForm input {
    flex: 1;
    padding: 0.9rem;
    border: none;
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
}

#newsletterForm input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#newsletterForm input:focus {
    outline: none;
}

#newsletterForm .btn {
    white-space: nowrap;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* ==========================================================
    RESPONSIVIDADE MOBILE - CORREÇÃO COMPLETA
   ========================================================== */

/* Mobile (até 768px) */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative;
    }

    body {
        width: 100vw;
        overflow-x: hidden;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 auto !important;
    }

    /* --- HERO SECTION MOBILE --- */
    .hero {
        height: 100vh;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: var(--header-height);
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
        width: 100vw;
        left: 0;
        right: 0;
    }

    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        text-align: left;
        width: 100%;
        position: relative;
        z-index: 2;
        margin-top: 10vh;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
        line-height: 0.9;
        margin-bottom: var(--space-sm);
        background: linear-gradient(45deg, var(--text-primary), var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        width: 100%;
        display: block;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 320px;
        margin: var(--space-md) 0 var(--space-lg);
        line-height: 1.5;
        color: rgb(199, 185, 160);
        font-weight: 500;
        width: 100%;
        display: block;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-background {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100%;
        z-index: 0;
        right: 0;
    }

    .hero-bg-image {
        background-image: url("../IMG/semm.png");
        width: 100vw !important;
        height: 100%;
        background-size: cover;
        background-position: center 30%;
        background-repeat: no-repeat;
        position: absolute;
        left: 0;
        right: 0;
    }

    .hero-background::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100%;
        background: linear-gradient(90deg, var(--background) 15%, transparent 90%),
                    linear-gradient(180deg, var(--background) 5%, transparent 30%);
        right: 0;
    }

    .hero-socials {
        position: absolute;
        bottom: 85px;  
        left: 1.5rem;
        z-index: 3;
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    /* Botão transparente no mobile */
    .hero-content a, 
    .hero-content .btn {
        background-color: rgba(255, 102, 0, 0.55) !important;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #fff !important;
        padding: 0.5rem 1.1rem !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        margin-top: 0.5rem;
    }

    .hero-content .btn i {
        font-size: 0.8rem !important;
    }

    /* --- SEÇÕES SECUNDÁRIAS --- */
    .featured-sneaker-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
        width: 100%;
    }

    .featured-image-wrapper.swiper {
        height: 300px;
        order: -1;
        width: 100%;
    }

    .collection-section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
        width: 100%;
    }

    .collection-section .section-header {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
        padding: 0 1rem !important;
        text-align: center;
        width: 100%;
    }

    .collection-swiper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100%;
    }

    .collection-swiper .swiper-slide {
        width: 260px;
    }

    /* --- CREW SECTION MOBILE --- */
    .crew {
        padding: var(--space-xl) 0;
        width: 100%;
    }

    .crew-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
        width: 100%;
    }

    .crew-text {
        padding-right: 0;
        order: 1;
    }

    .crew-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .crew-video-container {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        border-radius: 16px;
        min-height: 480px;
    }

    .crew-video-element {
        height: 480px;
    }

    .video-overlay {
        padding: var(--space-sm) var(--space-md);
    }

    .video-overlay span {
        font-size: 0.8rem;
    }

    /* --- NEWSLETTER MOBILE --- */
    .newsletter {
        padding: var(--space-xl) 0;
        width: 100%;
    }

    #newsletterForm {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }

    #newsletterForm input {
        width: 100%;
        margin-bottom: var(--space-sm);
    }

    #newsletterForm .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 10vh;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 280px;
    }

    .hero-background::after {
        background: linear-gradient(90deg, var(--background) 10%, transparent 85%),
                    linear-gradient(180deg, var(--background) 3%, transparent 25%);
    }

    .collection-swiper .swiper-slide {
        width: 240px;
    }

    .crew-video-element {
        height: 420px;
    }

    .crew-video-container {
        border-radius: 12px;
        min-height: 420px;
    }

    .crew-text h2 {
        font-size: 2.2rem;
    }

    .newsletter h2 {
        font-size: 2rem;
    }
}

@media (max-width: 414px) {
    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
        transform: translateY(-57px); 
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 300px;
    }

    .hero-socials {
        bottom: 70px;
    }
    
    .crew-video-element {
        height: 400px;
    }
    
    .crew-video-container {
        min-height: 400px;
    }
}

@media (min-width: 769px) {
    .hero {
        height: 100vh;
        min-height: 700px;
        align-items: center;
    }

    .hero-content {
        padding-left: 10%;
        margin-top: 0;
    }

    .hero-title {
        background: none;
        -webkit-text-fill-color: initial;
    }
}

/* ===================================================
    ESTILOS PARA O MODAL DE SELEÇÃO DE TAMANHO
   =================================================== */

.size-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    visibility: hidden; 
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

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

/* Base do conteúdo do Modal (Mobile First) */
.size-modal-content {
    background-color: var(--background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    position: relative;
    color: var(--text-primary);
    animation: fadeInScale 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.size-modal-content .close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.2s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.size-modal-content .close-button:hover {
    color: var(--primary);
    background: rgba(255, 145, 0, 0.1);
}

.size-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    text-align: center;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.size-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.size-option {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 50px;
    text-align: center;
}

.size-option:hover {
    border-color: var(--primary);
    background-color: rgba(255, 145, 0, 0.1);
    transform: translateY(-2px);
}

.size-option.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 145, 0, 0.3);
}

.size-option.disabled {
    background-color: #333; 
    color: #666; 
    cursor: not-allowed;
    border-color: #444;
    opacity: 0.6;
    text-decoration: line-through;
    transform: none !important;
}

.modal-error {
    color: var(--error-color, #dc3545);
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

#addToCartModalBtn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade: Reduzir tamanho do modal em telas pequenas */
@media (max-width: 450px) {
    .size-modal-content {
        padding: 20px;
    }
    .size-modal-content h3 {
        font-size: 1.3rem;
    }
    .size-option {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-width: 45px;
    }
}

/* ========================================================================
   MODAL DE SELEÇÃO DE TAMANHO (DESKTOP) - LAYOUT "SPLIT" (DIVIDIDO)
   ======================================================================== */
@media (min-width: 1024px) {
    
    /* 1. Transforma o container em Grid de 2 colunas */
    .size-modal-content {
        max-width: 900px; /* Aumenta largura total */
        width: 90%;
        display: grid;
        grid-template-columns: 45% 55%; /* Coluna Esq (IMG) / Coluna Dir (INFO) */
        grid-template-rows: repeat(3, auto); 
        gap: 0; 
        padding: 0; /* Remove padding interno para a imagem colar nas bordas */
        overflow: hidden; /* Garante que a imagem não saia das bordas arredondadas */
        align-items: center; /* Centraliza verticalmente o conteúdo */
        border-radius: 16px;
    }

    /* * 2. FORÇA A IMAGEM PARA A COLUNA ESQUERDA (Ocupando toda a altura) */
    .size-modal-content > img,
    .size-modal-content .modal-image-wrapper { 
        grid-column: 1 / 2; /* Fica na primeira coluna */
        grid-row: 1 / -1;   /* Ocupa da primeira até a última linha (altura total) */
        width: 100%;
        height: 100%;
        min-height: 450px;  /* Altura mínima imponente */
        object-fit: contain; /* Mostra o tênis inteiro */
        background-color: #f4f4f4; /* Fundo cinza claro para destaque premium */
        padding: 40px; /* Espaço interno para o tênis respirar */
    }

    /* * 3. FORÇA TODO O RESTO (TEXTO E BOTÕES) PARA A COLUNA DIREITA */
    .size-modal-content > h3,
    .size-modal-content > .size-options-container,
    .size-modal-content > #addToCartModalBtn,
    .size-modal-content > .modal-error,
    .size-modal-content > p {
        grid-column: 2 / 3; /* Força todos esses para a segunda coluna */
        width: 85%; /* Largura reduzida para não colar nas bordas */
        margin-left: auto;
        margin-right: auto;
    }

    /* Ajustes finos de espaçamento no lado direito */
    .size-modal-content > h3 {
        font-size: 2.2rem;
        margin-top: 40px;
        margin-bottom: 20px;
        text-align: left;
    }

    .size-options-container {
        justify-content: flex-start;
        margin-bottom: 30px;
    }

    #addToCartModalBtn {
        margin-bottom: 40px;
    }

    /* Ajuste do botão de fechar (X) */
    .size-modal-content .close-button {
        top: 20px;
        right: 20px;
        color: #333;
        background: rgba(0,0,0,0.05);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .size-modal-content .close-button:hover {
        background: rgba(0,0,0,0.1);
        color: var(--primary);
    }
}

/* ===== OTIMIZAÇÕES DE PERFORMANCE ===== */
/* Evita animações em elementos ocultos ou já animados */
.product-card[data-price-animated="completed"] .product-price {
    will-change: auto !important;
}

/* Otimização para elementos animados */
.gsap-animated {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

/* Remove transições durante carregamento */
.loading .hero-title,
.loading .hero-subtitle,
.loading .hero-bg-image,
.loading .hero-content .btn {
    transition: none !important;
}

/* Acessibilidade - reduz movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-bg-image,
    .hero-title,
    .hero-subtitle,
    .hero-content .btn,
    .hero-socials a,
    .product-price {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }.hero-bg-image
    
    /* Remove animações GSAP */
    .gsap-animated {
        animation: none !important;
    }
}

/* Fallback para quando JS está desabilitado */
.no-js .hero-bg-image,
.no-js .hero-title,
.no-js .hero-subtitle,
.no-js .hero-content .btn,
.no-js .hero-socials a {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* Estilo para o botão de remover do carrinho */
.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #ff4444; /* Fica vermelho ao passar o mouse */
}