/* ============================================================
   MHDCommerce — Detalhe do Produto
   Arquivo: wwwroot/css/produto.css
   ============================================================ */

/* ── BREADCRUMB ── */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.breadcrumb-inner {
    max-width: 1320px; margin: 0 auto; padding: 12px 32px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--brand); }
.breadcrumb-inner .sep { color: #ccc; }
.breadcrumb-inner .current { color: var(--text); font-weight: 600; }

.pb-produto { padding-bottom: 48px; }

/* ── PRODUTO: layout 2 colunas ── */
.produto {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 40px;
}

/* Galeria */
.produto-galeria { display: flex; flex-direction: column; gap: 16px; }
.galeria-principal {
    background: #f5f4ef; border-radius: var(--radius-lg);
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
/*.galeria-principal img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }*/
.galeria-principal > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 32px;
}
.galeria-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--red); color: #fff; border-radius: 99px;
    padding: 5px 12px; font-size: 13px; font-weight: 700;
}
.galeria-fav {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; border-radius: 99px;
    background: var(--white); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px; color: #ccc; transition: all .15s;
}
.galeria-fav:hover, .galeria-fav.active { color: var(--red); border-color: var(--red); background: #fff5f5; }

/* Informações */
.produto-info { display: flex; flex-direction: column; }
.produto-marca {
    font-size: 12px; font-weight: 700; color: var(--brand);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.produto-nome {
    font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700;
    line-height: 1.2; margin-bottom: 8px;
}
.produto-desc { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.produto-desc.clamped {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.desc-vermais {
    display: inline-block; margin-bottom: 20px;
    font-size: 13px; font-weight: 600; color: var(--brand);
    cursor: pointer; background: none; border: none; padding: 0;
    font-family: 'DM Sans', sans-serif;
}
.desc-vermais:hover { text-decoration: underline; }
.desc-vermais.hidden { display: none; }

.produto-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.stars { color: var(--accent); font-size: 15px; letter-spacing: 1px; }
.rating-text { font-size: 13px; color: var(--muted); }

/* Preço */
.produto-precos { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.preco-atual { font-family: 'Sora', sans-serif; font-size: 36px; font-weight: 700; color: var(--brand); }
.preco-antigo { font-size: 18px; color: #bbb; text-decoration: line-through; }
.preco-desconto { background: var(--brand-light); color: var(--brand-dark); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.preco-unidade { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* Seletor de quantidade */
.qtd-section { background: var(--bg); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.qtd-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.qtd-control {
    display: flex; align-items: center; background: var(--white);
    border: 1.5px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; width: fit-content;
}
.qtd-btn {
    width: 48px; height: 48px; border: none; background: var(--white);
    cursor: pointer; font-size: 22px; color: var(--brand);
    display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.qtd-btn:hover { background: var(--brand-light); }
.qtd-value {
    width: 90px; height: 48px; border: none;
    border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
    text-align: center; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600;
    color: var(--text); outline: none; background: var(--white);
}
.qtd-aprox {
    margin-top: 10px; font-size: 13px; color: var(--brand); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.qtd-aprox svg { width: 15px; height: 15px; }

/* Ações */
.produto-acoes { display: flex; gap: 12px; margin-bottom: 24px; }
.btn-adicionar {
    flex: 1; background: var(--brand); color: #fff; border: none;
    border-radius: var(--radius-md); padding: 16px;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: background .15s, transform .1s;
}
.btn-adicionar:hover { background: var(--brand-mid); }
.btn-adicionar:active { transform: scale(.98); }
.btn-adicionar svg { width: 20px; height: 20px; }
.btn-favoritar {
    width: 56px; border: 1.5px solid var(--border); background: var(--white);
    border-radius: var(--radius-md); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #ccc; transition: all .15s; flex-shrink: 0;
}
.btn-favoritar:hover, .btn-favoritar.active { color: var(--red); border-color: var(--red); background: #fff5f5; }

/* Selos */
.produto-selos { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.selo { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.selo-icon { width: 20px; text-align: center; flex-shrink: 0; }
.selo-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Avisos */
.produto-avisos { margin-top: 16px; }
.aviso { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.aviso .av-arrow { color: var(--brand); }

/* ── DETALHES ── */
.detalhes {
    margin-top: 24px; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 32px 40px;
}
.detalhes-title { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.detalhes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.detalhe-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f4f1ea; font-size: 14px; }
.detalhe-row .dr-label { color: var(--muted); }
.detalhe-row .dr-value { color: var(--text); font-weight: 600; }

/* ── LEVE JUNTO ── */
.leve-junto { margin-top: 36px; }
.leve-junto .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.leve-junto .section-title { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.leve-junto .section-pill { background: var(--accent-light); color: #8a5600; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.leve-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.leve-scroll::-webkit-scrollbar { display: none; }
/* Os cards usam .product-card do site.css; aqui só fixamos a largura no carrossel */
.leve-scroll .product-card { width: 200px; flex-shrink: 0; }

/* ── MODAL DE DESCRIÇÃO ── */
.desc-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.desc-modal-overlay.open { opacity: 1; pointer-events: all; }
.desc-modal {
    background: var(--white); border-radius: var(--radius-xl);
    max-width: 520px; width: 100%; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(12px) scale(.98); transition: transform .2s;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.desc-modal-overlay.open .desc-modal { transform: translateY(0) scale(1); }
.desc-modal-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.desc-modal-img {
    width: 64px; height: 64px; border-radius: var(--radius-md);
    background: #f5f4ef; display: flex; align-items: center; justify-content: center;
    font-size: 32px; flex-shrink: 0; overflow: hidden;
}
.desc-modal-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.desc-modal-titles { flex: 1; min-width: 0; }
.desc-modal-marca { font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.desc-modal-nome { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.2; }
.desc-modal-close {
    background: var(--bg); border: none; width: 34px; height: 34px; border-radius: 99px;
    cursor: pointer; font-size: 18px; color: var(--text-2); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.desc-modal-close:hover { background: var(--border); }
.desc-modal-body { padding: 24px; overflow-y: auto; font-size: 14px; color: var(--text-2); line-height: 1.7; }


.obs-section {
    margin-top: 16px;
}

.obs-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}

.obs-opcional {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 2px;
}

.obs-textarea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm,8px);
    padding: 10px 12px;
    font-family: 'DM Sans',sans-serif;
    font-size: 13.5px;
    color: var(--text);
    outline: none;
    background: var(--white);
}

.obs-textarea:focus {
    border-color: var(--brand);
}

.obs-textarea::placeholder {
    color: var(--muted);
}


.leve-carousel {
    position: relative;
}

.leve-scroll {
    scroll-behavior: smooth;
}
/* garante rolagem suave */
.leve-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 99px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--brand);
    line-height: 1;
    transition: opacity .2s;
}

    .leve-seta:hover {
        background: var(--brand-light);
    }

    .leve-seta.prev {
        left: -8px;
    }

    .leve-seta.next {
        right: -8px;
    }

    .leve-seta:disabled {
        opacity: 0;
        pointer-events: none;
    }
/* some no fim/início */
@media (max-width:640px) {
    .leve-seta {
        display: none;
    }
}
/* mobile usa swipe */
