/* ==========================================================================
   1. RESET, VARIÁVEIS E ESTILO GERAL (TOTALMENTE CLEAN)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333; /* Cinza escuro elegante para os textos, sem usar preto puro */
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. TOPO DA LOJA (HEADER CONFORME O PRINT COM FUNDO LARANJA)
   ========================================================================== */
.top-bar {
    background-color: #111111; /* Barra de aviso superior discreta */
    color: #ffffff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

header {
    background-color: #f3a412; /* Laranja/Amarelo oficial da sua marca */
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-main {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajuste da logo para usar a imagem ou o texto conforme seu print */
.logo-container a {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111111;
    text-decoration: none;
    letter-spacing: -0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.logo-container span {
    font-weight: 400;
    font-size: 0.75rem;
    display: block;
    letter-spacing: 2px;
    margin-top: 2px;
    color: #111111;
}

/* Caixa de pesquisa arredondada e cinza claro igual ao print */
.search-box {
    position: relative;
    width: 40%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px; /* Arredondado oval perfeito do seu print */
    border: none;
    background-color: #eaeaea; /* Fundo cinza claro idêntico ao print */
    font-size: 0.85rem;
    color: #444444;
    outline: none;
    transition: all 0.2s;
}

.search-box input::placeholder {
    color: #888888;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
}

.user-actions {
    display: flex;
    gap: 25px;
}

.user-actions a {
    color: #111111;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Menu de navegação superior do header */
.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: #111111;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   3. BANNER PRINCIPAL (FUNDO LIMPO)
   ========================================================================== */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; 
}

.hero-video-container video, 
.hero-video-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* ==========================================================================
   4. VITRINE DE PRODUTOS (FIEL AO SEU PRIMEIRO PRINT)
   ========================================================================== */
.main-store {
    padding: 50px 2% !important;
    max-width: 1450px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
}

/* Menu de Filtros (Top, Short, Regata...) */
.subcat-menu {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 40px;
    padding-bottom: 8px;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
}

.subcat-menu div {
    display: inline-flex;
    gap: 35px;
    justify-content: center;
    min-width: 100%;
}

.subcat-menu a {
    color: #444444;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s ease;
    padding-bottom: 12px;
}

.subcat-menu a:hover {
    color: #f3a412; /* Destaque no laranja ao passar o mouse */
}

/* Grade Limpa de 4 Colunas conforme o print */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 35px 20px !important;
    width: 100% !important;
}

/* Cards com bordas finas e fundo totalmente branco */
.product-card {
    background: #ffffff !important;
    text-decoration: none !important;
    color: #333333 !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e1e1e1 !important; /* Borda leve igual ao print */
    padding: 12px !important;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Suporte da foto do estúdio */
.image-holder {
    width: 100% !important;
    height: 310px !important; /* Proporção ideal vertical para vestuário */
    background-color: #f7f7f7 !important;
    overflow: hidden !important;
    position: relative !important;
}

.image-holder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Informações do Produto (Centralizadas) */
.product-info {
    padding: 12px 0 0 0 !important;
    text-align: center !important; /* Alinhamento centralizado do seu print */
}

.product-category {
    font-size: 0.68rem !important;
    color: #999999 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-title {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    color: #333333 !important;
    line-height: 1.3 !important;
}

/* Avaliação por estrelas laranjas */
.rating {
    color: #f3a412 !important; 
    font-size: 0.68rem !important;
    margin-bottom: 6px !important;
}

/* Preço em Destaque */
.product-price {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

/* ==========================================================================
   5. PAGINAÇÃO CLEAN (SEM FUNDO ESCURO)
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
}

.pagination a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e1e1;
    text-decoration: none;
    color: #444444;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #ffffff;
    transition: all 0.2s;
}

.pagination a.active, .pagination a:hover {
    background-color: #f3a412; /* Ativo usa o laranja da marca */
    color: #ffffff;
    border-color: #f3a412;
}

/* ==========================================================================
   6. PÁGINA DE CADASTRO DE PRODUTOS (LEVE E DIRECIONADA)
   ========================================================================== */
.cadastro-body {
    background-color: #f9f9f9 !important;
    padding: 60px 0;
    width: 100%;
}

.cadastro-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.cadastro-container h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    color: #222222;
    text-align: center;
}

.cadastro-container h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #f3a412;
    margin: 8px auto 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #555555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    font-size: 0.9rem;
    color: #333333;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #f3a412;
}

.checkbox-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f4f4f4;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-item input {
    accent-color: #f3a412;
}

/* Botão de cadastro usando o laranja oficial para harmonizar */
.btn-cadastrar {
    width: 100%;
    padding: 15px;
    background-color: #f3a412;
    color: #ffffff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-cadastrar:hover {
    background-color: #d8900e;
}

/* ==========================================================================
   7. RODAPÉ (FOOTER AMARELO/LARANJA CONFORME O PRINT)
   ========================================================================== */
footer {
    background-color: #f3a412; /* Fundo laranja idêntico ao cabeçalho e print */
    padding: 50px 5% 25px 5%;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    color: #111111;
    gap: 30px;
}

.footer-section h3 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #111111;
}

.footer-section p, .footer-section a {
    font-size: 0.85rem;
    color: #111111;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 0.75rem;
    color: #111111;
    font-weight: 600;
}

/* ==========================================================================
   8. RESPONSIVIDADE ADAPTATIVA
   ========================================================================== */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .search-box { width: 50%; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .header-main { flex-direction: column; gap: 12px; }
    .search-box { width: 100%; }
}

/* ==========================================================================
   9. TELA DE DETALHES DO PRODUTO (RESPONSIVIDADE E ALINHAMENTO IMPECÁVEIS)
   ========================================================================== */
.product-details-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 2%;
    display: flex; /* Mudamos para flex para controlar melhor as duas colunas */
    gap: 40px;
    background-color: #ffffff;
    align-items: flex-start;
}

/* Coluna da Esquerda: Bloco de Imagens (Largura controlada para não esmagar) */
.product-gallery {
    flex: 1;
    min-width: 0; /* Evita que o flexbox quebre o tamanho do elemento */
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 550px; /* Impede que a foto fique gigante em monitores ultra-wide */
}

/* Container da Foto Principal */
.main-product-image {
    width: 100%;
    height: 600px; /* Altura fixa ideal para manter o padrão vertical dos prints */
    background-color: #f7f7f7;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

/* A mágica para a imagem ficar nítida e centralizada sem distorcer */
.main-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Recorta a imagem proporcionalmente mantendo a nitidez */
    object-position: center top; /* Foca a imagem no topo (excelente para roupas) */
}

/* Carrossel / Miniaturas abaixo da foto principal */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 fotos por linha conforme o print */
    gap: 10px;
    width: 100%;
}

.thumbnail-grid img {
    width: 100%;
    height: 100px; /* Altura padronizada para as miniaturas */
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.thumbnail-grid img:hover,
.thumbnail-grid img.active {
    border-color: #f3a412; /* Borda laranja ao selecionar */
}

/* Coluna da Direita: Caixa de Informações e Compra (Alinhada perfeitamente) */
.product-buy-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.product-buy-box h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-buy-box .detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f3a412; /* Laranja oficial para o preço */
    margin-bottom: 20px;
}

.product-buy-box .short-description {
    font-size: 0.92rem;
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Área de Opções de Tamanho */
.purchase-options-box {
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #eeeeee;
}

.option-group {
    display: flex;
    flex-direction: column; /* Rótulo acima do seletor */
    gap: 8px;
}

.option-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
    letter-spacing: 0.5px;
}

.option-group select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    font-size: 0.9rem;
    color: #333333;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* Quantidade e Botão Juntos em Linha */
.cart-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 4px;
    height: 48px;
    background: #ffffff;
    overflow: hidden;
}

.quantity-selector input {
    width: 60px;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}

/* Botão Lilás Clássico do seu Print */
.btn-add-to-cart {
    flex: 1;
    height: 48px;
    background-color: #b5a2cf; /* Tom exato do print */
    color: #ffffff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-add-to-cart:hover {
    background-color: #a38fbf;
}

/* Metadados */
.product-meta-info {
    font-size: 0.8rem;
    color: #777777;
    margin-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

/* Calculadora de Frete */
.shipping-calculator {
    width: 100%;
}

.shipping-calculator h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #222222;
}

.shipping-input-group {
    display: flex;
    max-width: 100%;
    border: 1px solid #cccccc;
    border-radius: 4px;
    align-items: center;
    background: #ffffff;
}

.shipping-input-group input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 0.9rem;
    outline: none;
    border-radius: 4px;
}

/* ==========================================================================
   10. RESPONSIVIDADE ULTRA-ADAPTATIVA (ESTILO CONCORRÊNCIA / IPHONES PEQUENOS)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Ajuste estrutural da página */
    .product-details-page {
        flex-direction: column !important; /* Força o empilhamento vertical total */
        gap: 20px !important;
        padding: 10px 15px !important; /* Margens laterais limpas para telas pequenas */
        margin: 10px auto !important;
    }

    /* 2. Galeria de Imagens fluida */
    .product-gallery {
        max-width: 100% !important;
        width: 100% !important;
    }

    .main-product-image {
        /* Define uma proporção baseada na tela em vez de altura estática */
        height: auto !important;
        aspect-ratio: 3 / 4 !important; /* Proporção padrão de e-commerce de moda */
        border-radius: 4px !important;
    }

    .thumbnail-grid {
        gap: 8px !important;
    }

    .thumbnail-grid img {
        height: 70px !important; /* Miniaturas ligeiramente menores para caber sem quebrar a linha */
    }

    /* 3. Caixa de Informações e Compra (Alinhamento Idêntico ao Exemplo) */
    .product-buy-box {
        width: 100% !important;
        padding: 0 5px !important;
        text-align: left !important; /* Alinhamento à esquerda elegante para mobile */
    }

    /* Tipografia responsiva para não estourar títulos em telas de 320px */
    .product-buy-box h1 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }

    .product-buy-box .detail-price {
        font-size: 1.35rem !important;
        margin-bottom: 12px !important;
    }

    .product-buy-box .short-description {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        color: #444444 !important;
    }

    /* 4. Inputs, seletores e botões de tamanho de ponta a ponta */
    .purchase-options-box {
        padding: 12px 15px !important;
        margin-bottom: 15px !important;
    }

    .option-group select {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }

    /* Linha do carrinho adaptável (Evita que o botão esmague o contador) */
    .cart-actions-row {
        flex-direction: row !important; /* Mantém lado a lado se couber */
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Se a tela for EXTREMAMENTE pequena (iPhones SE ou antigos), empilha a quantidade e o botão */
    @media (max-width: 360px) {
        .cart-actions-row {
            flex-direction: column !important;
            align-items: stretch !important;
        }
        .quantity-selector {
            width: 100% !important;
            justify-content: center !important;
        }
    }

    .quantity-selector {
        height: 44px !important;
    }

    .btn-add-to-cart {
        height: 44px !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.5px !important;
    }

    /* 5. Calculadora de frete compactada */
    .shipping-input-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .shipping-input-group input {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
}