/* =========================================
   1. RESET & GLOBAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #111111;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   2. HERO SECTION (CAPA)
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/moncler-grenoble-collection-25.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3. COMPONENTES: BOTÕES
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid currentColor;
    margin-top: 2rem;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.editorial-content .btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* =========================================
   4. EDITORIAL HUBS
   ========================================= */
.editorial-hub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.editorial-hub.visible {
    opacity: 1;
    transform: translateY(0);
}

.editorial-hub.-full-width {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.editorial-hub.-full-width .editorial-media {
    width: 100%;
    height: 100%;
}

.editorial-hub.-full-width .editorial-content {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    width: 100%;
    max-width: 700px;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.editorial-hub.-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.editorial-media img, .editorial-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editorial-content {
    padding: 4rem;
    text-align: center;
}

.editorial-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.editorial-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    max-width: 450px;
    margin: 0 auto 2rem auto;
}

.editorial-hub.-split .editorial-content .btn:hover {
    background-color: #000; /* Fundo Preto */
    color: #fff !important; /* Texto Branco */
    border-color: #000;
}

/* 5. VITRINE DE PRODUTOS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: #e0e0e0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 3rem 0 5rem 0;
}

.product-card {
    background-color: #fff;
    padding: 3rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Container Principal da Imagem */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    /* Adicionado para garantir que o swipe não quebre o layout */
    touch-action: pan-y pinch-zoom; 
}

/* Scroller: O segredo do Swipe Nativo */
.product-media-scroller {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.product-media-scroller::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

/* Imagens Base */
.product-media-scroller img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Melhor preenchimento */
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: opacity 0.5s ease, transform 0.8s ease;
    backface-visibility: hidden;
}

/* --- COMPORTAMENTO DESKTOP (HOVER) --- */
@media (min-width: 1025px) {
    .product-media-scroller {
        display: block;
        overflow: hidden; /* Trava o scroll no desktop */
    }

    .product-media-scroller img {
        position: absolute;
        top: 0; left: 0;
    }

    .product-media-scroller .img-primary { z-index: 1; opacity: 1; }
    .product-media-scroller .img-secondary { z-index: 2; opacity: 0; }

    /* Efeito Hover Apenas no Desktop */
    .product-card:hover .product-media-scroller .img-primary { opacity: 0; }
    .product-card:hover .product-media-scroller .img-secondary {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* --- COMPORTAMENTO MOBILE/TABLET (SWIPE) --- */
@media (max-width: 1024px) {
    .product-media-scroller img {
        position: relative; /* Garante fluxo normal para o flexbox funcionar */
    }
    
    /* Dots Indicadores */
    .mobile-dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        pointer-events: none;
    }
    .mobile-dots .dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s;
    }
    .mobile-dots .dot.active {
        background-color: #111;
    }
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 15px; right: 15px;
    z-index: 20;
    background: transparent; border: none; cursor: pointer; padding: 8px;
    color: #111;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.3s ease;
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn:hover { transform: scale(1.1); }

/* Informações do Produto */
.product-info { width: 100%; z-index: 2; position: relative; }

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    color: #111;
}
.product-name a { color: #111; text-decoration: none; }

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
}

.product-card:hover .product-purchase {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    overflow: visible;
}

/* =========================================
   6. RESPONSIVIDADE
   ========================================= */
@media (min-width: 1600px) {
    .editorial-content p { font-size: 1.1rem; }
}
@media (max-width: 1440px) {
    .editorial-title { font-size: 2.5rem; }
    .hero h2 { font-size: 3rem !important; }
}
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .editorial-content { padding: 3rem; }
}

@media (max-width: 768px) {
    main#main-content .hero:first-of-type { display: none !important; }
    
    .hero {
        background-attachment: scroll !important;
        height: 100vh; min-height: 600px;
    }
    
    .editorial-hub.-split { grid-template-columns: 1fr; }
    .editorial-hub.-split .editorial-media { height: 50vh; order: 1; }
    .editorial-hub.-split .editorial-content { order: 2; padding: 4rem 1.5rem; }
    
    /* Grelha de Produtos: 2 colunas */
    .product-grid { grid-template-columns: 1fr; } /* 1 coluna para destaque maior */
    
    .product-card { 
        padding: 1.5rem 0.5rem; 
        padding-bottom: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* FORÇAR VISIBILIDADE DO BOTÃO EM MOBILE */
    .product-purchase { 
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 15px;
    }

    .product-purchase .btn {
        width: 100%;
        padding: 10px 0;
        background: transparent;
        color: #000 !important;
        border: 1px solid #000 !important;
        font-size: 0.75rem;
        margin-top: 0;
    }

    /* CORREÇÃO DO ÍCONE WISHLIST EM MOBILE */
    .wishlist-btn {
        opacity: 1;
        top: 10px; right: 5px;
        color: #000000 !important;
    }
    .wishlist-btn svg {
        stroke: #000000 !important;
        stroke-width: 1.5px;
    }

    .novra-interval-push { 
        margin: 2rem 0; 
        min-height: auto;
    }
    
    .novra-interval-push img { 
        min-height: 250px; 
        max-height: 500px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 2.2rem !important; }
    .editorial-title { font-size: 2rem; }
    .btn { width: 100%; padding: 16px 0; display: flex; justify-content: center; }
    .editorial-hub.-full-width { height: 60vh; }
    .editorial-hub.-full-width .editorial-content { width: 90%; bottom: 2rem; }
}

/* =========================================
   7. CATEGORY HUB
   ========================================= */
.novra-hub-grid {
    display: flex; flex-wrap: wrap; box-sizing: border-box;
    margin-left: -0.25rem; margin-right: -0.25rem;
    width: calc(100% + 0.5rem); margin-bottom: 4rem;
}
.novra-hub-item {
    box-sizing: border-box; position: relative;
    padding-left: 0.25rem; padding-right: 0.25rem;
    margin-bottom: 0.5rem; flex: 0 0 50%; max-width: 50%;
}
.novra-category-card {
    position: relative; display: block; width: 100%;
    padding-bottom: 133.33%; overflow: hidden; background-color: #f0f0f0;
}
.novra-category-card img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.novra-category-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    height: 50%; z-index: 2;
}
.novra-category-title {
    color: #fff; font-family: 'Playfair Display', serif;
    font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media screen and (min-width: 48rem) {
    .novra-hub-grid { margin-left: -1rem; margin-right: -1rem; width: calc(100% + 2rem); }
    .novra-hub-item {
        padding-left: 1rem; padding-right: 1rem; margin-bottom: 2rem;
        flex: 0 0 25%; max-width: 25%;
    }
    .novra-category-title { font-size: 1.4rem; }
}

/* =========================================
   8. INTERVAL PUSH
   ========================================= */
.novra-interval-push {
    width: 100%; margin: 0; display: block; position: relative;
    min-height: 400px; background-color: #f4f4f4;
}
.novra-interval-push a { display: block; width: 100%; height: 100%; }
.novra-interval-push img {
    width: 100%; height: auto; display: block; object-fit: cover;
    min-height: 400px; 
}

/* =========================================
   9. COMPONENTES REUTILIZÁVEIS
   ========================================= */
.product-section-padding {
    padding: 4rem 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
/* Botão Wishlist (Estilo LV) */
.btn-wishlist {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111; /* Cor do contorno */
}

.btn-wishlist svg {
    width: 24px;
    height: 24px;
    fill: transparent; /* Vazio por padrão */
    stroke: currentColor;
    stroke-width: 2;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Estado Ativo (Favoritado) */
.btn-wishlist.active svg {
    fill: #000; /* Vermelho LV */
    stroke: #000;
}

/* Animação de Clique (Pulsar) */
.btn-wishlist.animating {
    animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Correções de Grid e Input --- */

/* Garante altura consistente e visual clean */
.form-input {
    width: 100%;
    /* Altura total ~50px para fácil toque em mobile */
    padding: 24px 0 8px 0; 
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #111;
    border: none;
    border-bottom: 1px solid #e0e0e0; /* Apenas linha em baixo */
    background: transparent;
    border-radius: 0;
    transition: border-color 0.3s ease;
    height: 52px; /* Altura fixa para alinhar vizinhos */
    box-sizing: border-box;
}

/* Floating Label Posicionamento Preciso */
.form-label {
    position: absolute;
    top: 18px; /* Centralizado verticalmente quando vazio */
    left: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #767676;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
}

/* Estado Ativo do Label */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-14px) scale(0.75); /* Sobe e diminui */
    color: #111;
    font-weight: 600;
}

/* Grid System para Desktop (Corrige a deformação lateral) */
@media (min-width: 1024px) {
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 50% - 50% exato */
        gap: 2rem; /* Espaço generoso entre colunas */
        align-items: start; /* Alinha no topo */
    }
    
    /* Remove margens inferiores excessivas dentro da grid */
    .form-row .input-floating-group {
        margin-bottom: 0; /* O gap da grid trata do espaçamento horizontal */
    }
    
    /* Adiciona margem abaixo da linha inteira */
    .form-row {
        margin-bottom: 2rem;
    }
}

/* Mobile First: Stack vertical */
@media (max-width: 1023px) {
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Feedback Visual Sucesso/Erro */
.input-floating-group.success .form-input {
    border-bottom-color: #2e7d32;
}
.input-floating-group.error .form-input {
    border-bottom-color: #d32f2f;
}