/* --- LAYOUT GERAL --- */
.product-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 60px;
}

/* --- GALERIA DE FOTOS (NOVO) --- */
.product-image { flex: 1; }

.main-image-container {
    width: 100%;
    /* Aumentei a altura para ficar mais vertical (retrato), ideal para vestidos */
    height: 600px; 
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    cursor: zoom-in; /* Ícone de lupa ao passar o mouse */
    background-color: #f9f9f9;
}

.main-image-container img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Preenche tudo */
    
    /* O SEGREDO: Foca no TOPO da imagem (rosto), não no centro (barriga) */
    object-position: top center; 
    
    transition: transform 0.5s;
}

.main-image-container:hover img { transform: scale(1.1); cursor: zoom-in; }

/* Miniaturas */
.thumbnails { display: flex; gap: 10px; overflow-x: auto; }
.thumb-box {
    width: 80px; height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: 0.3s;
}
.thumb-box.active, .thumb-box:hover { opacity: 1; border-color: black; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

/* --- COLUNA DA DIREITA --- */
.product-info { flex: 1; }

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.sku { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; display: block; }

/* PREÇOS (DE/POR) */
.price-container { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.old-price { text-decoration: line-through; color: #999; font-size: 16px; margin-right: 10px; }
.current-price { font-size: 28px; font-weight: 600; color: #000; }
.promo-tag { background: #000; color: white; padding: 2px 8px; font-size: 10px; border-radius: 4px; vertical-align: middle; margin-left: 10px; }
.installments { display: block; margin-top: 5px; color: #666; font-size: 13px; }

/* SELETORES (CORES E TAMANHOS) */
.variation-group { margin-bottom: 25px; }
.variation-label { font-weight: bold; display: block; margin-bottom: 10px; font-size: 14px; }

/* Cores */
.color-options { display: flex; gap: 10px; }
.color-option { cursor: pointer; position: relative; }
.color-option input { display: none; }
.color-circle {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.color-option input:checked + .color-circle {
    border: 2px solid #fff;
    outline: 2px solid #000; /* Anel preto em volta */
    transform: scale(1.1);
}

/* Tamanhos */
.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-option input { display: none; }
.size-box {
    min-width: 45px; height: 45px;
    border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: 0.2s;
}
.size-option input:checked + .size-box {
    background: black; color: white; border-color: black;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .product-container { flex-direction: column; gap: 30px; }
    .main-image-container {
        height: 450px; 
    }
}

/* --- ZOOM TELA CHEIA (LIGHTBOX) --- */
.lightbox-overlay {
    display: none; /* Começa escondido */
    position: fixed;
    z-index: 10000; /* Fica na frente de TUDO */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fundo preto quase total */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh; /* Ocupa 90% da altura da tela */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    object-fit: contain; /* Mostra a foto inteira sem cortar nada */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- GUIA DE MEDIDAS TIPO APP (NOVO) --- */

/* Fundo Escuro */
.modal-overlay {
    display: none; /* Começa escondido */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 20000; /* Bem na frente */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

/* O Cartão Branco */
.modal-content-app {
    background: white;
    width: 90%;
    max-width: 500px; /* Não fica gigante no PC */
    border-radius: 16px;
    padding: 25px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-transform: uppercase;
}

/* Navegação de Tamanhos (Botões) */
.size-nav-label { 
    font-size: 13px; 
    color: #666; 
    margin-bottom: 15px; 
    display: block; 
}

.size-scroller {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto; /* Permite rolar se tiver muitos */
    padding-bottom: 5px;
}

.size-btn-app {
    width: 45px; height: 45px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #f9f9f9;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

/* Botão Ativo (Preto) */
.size-btn-app.active {
    border-color: #000;
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Faixa Preta "Medidas da Peça" */
.measure-title-bar {
    background-color: #000;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lista de Medidas */
.measure-list-app {
    list-style: none;
    padding: 0;
    text-align: left;
}

.measure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.measure-item:last-child { border-bottom: none; }

.measure-value { 
    font-weight: 700; 
    color: #000; 
}

/* Botão Fechar */
.close-app-btn {
    position: absolute; 
    top: 15px; right: 20px; 
    font-size: 28px; 
    cursor: pointer; 
    color: #999;
    line-height: 20px;
}
.close-app-btn:hover { color: red; }

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- BARRA DE FERRAMENTAS DO PRODUTO --- */
.product-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

/* Botão Guia de Medidas */
.btn-tool-guide {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
.btn-tool-guide:hover {
    background: #000;
    color: white;
    border-color: #000;
}

/* Grupo de Ícones (Direita) */
.tools-actions {
    display: flex;
    gap: 10px;
}

/* Botões de Ícone (Share/Heart) */
.btn-icon-tool {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: none;
    background: #f9f9f9;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon-tool:hover {
    background: #eee;
    transform: scale(1.1);
}

/* Estado Ativo do Coração (Vermelho/Preenchido) */
.btn-icon-tool.loved {
    color: #e74c3c; /* Vermelho Paixão */
    background: #fff0f0;
}
.btn-icon-tool.loved i {
    font-weight: 900; /* Transforma o 'far' em 'fas' visualmente se a fonte suportar */
}

/* --- AVISOS DE ESTOQUE E PRAZO --- */

/* Estoque Baixo */
.stock-warning {
    color: #e74c3c; /* Vermelho */
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Caixa de Prazo de Postagem */
.handling-time-box {
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.handling-time-box i {
    font-size: 16px;
    color: var(--primary-color);
}

/* --- ESTILO DE AVALIAÇÕES (REVIEW) --- */

.reviews-section {
    max-width: 800px; /* Deixa mais estreito e elegante */
    margin: 60px auto 40px !important; /* Centraliza */
    border-top: 1px solid #eee;
    padding-top: 40px !important;
}

.reviews-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px !important;
    border: none !important; /* Removemos a borda padrão do h2 antigo */
}

/* CAIXA DE FORMULÁRIO */
.review-form {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    border-radius: 16px;
    padding: 30px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.review-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
    font-weight: 700;
}

/* LABELS (Títulos dos campos) */
.review-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* INPUTS (Select e Textarea) */
.review-form select,
.review-form textarea {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important; /* Arredondado suave */
    padding: 12px 15px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background-color: #fff;
    outline: none;
    transition: 0.3s;
    color: #333;
}

.review-form textarea {
    resize: vertical; /* Permite esticar só pra baixo */
    min-height: 80px;
}

.review-form select:focus,
.review-form textarea:focus {
    border-color: #000 !important; /* Fica preto ao clicar */
    background-color: #fafafa;
}

/* BOTÃO DE ENVIAR */
.review-form button {
    width: 100%;
    background-color: #000 !important;
    color: white !important;
    border-radius: 30px; /* Bem redondo */
    padding: 15px !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
}

.review-form button:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
}

/* ESTILO DOS COMENTÁRIOS JÁ FEITOS (LISTA) */
.review-card {
    background: #fff !important;
    border: 1px solid #f5f5f5 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.review-card strong { font-size: 14px; color: #000; }
.review-card p { font-size: 13px; line-height: 1.5; color: #555; }

/* --- BOTÃO DE COMPRA PREMIUM --- */
.btn-add-cart {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 18px; /* Mais alto, fácil de clicar no celular */
    border-radius: 50px; /* Formato Pílula */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Sombra suave */
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-add-cart:hover {
    background-color: #333;
    transform: translateY(-2px); /* Sobe um pouquinho */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-add-cart:active {
    transform: scale(0.98); /* Efeito de clique */
}

/* --- ALERTA DE ERRO (TOAST) --- */
#toast-warning {
    visibility: hidden; /* Começa invisível */
    min-width: 250px;
    background-color: #333; /* Fundo escuro elegante */
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px; /* Aparece embaixo */
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

#toast-warning.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Sobe um pouquinho ao aparecer */
}

/* Animação de "Tremer" para os tamanhos */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake-animation {
    animation: shake 0.4s ease-in-out;
    border: 1px solid red; /* Destaca o erro */
    padding: 5px;
    border-radius: 8px;
}