/* ==========================================================================
   SINGLE-PRODUCT.CSS — Produto Individual — Pontual Parabrisas
   ========================================================================== */

.woocommerce div.product { margin-top: 0 !important; margin-bottom: 180px !important; }
@media (min-width: 1024px) { .woocommerce div.product { margin-bottom: 40px !important; } }

/* Oculta FABs globais no mobile (substituídos pela sticky bar) */
@media (max-width: 1023px) { .fab-container { display: none !important; } }

/* ─── HEADER DO PRODUTO ───────────────────────────────────────────────── */
.product-page { padding: 2rem 0; }

.product-breadcrumb { margin-bottom: 1.5rem; }

.product-entry-header { margin-bottom: 2rem; }

.product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--pp-white);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.product-ref { font-size: 0.8rem; color: var(--pp-text-muted); margin-bottom: 1rem; }

/* ─── LAYOUT DUAS COLUNAS ──────────────────────────────────────────────── */
.product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.product-col-gallery { flex: 1 1 100%; }
.product-col-sidebar { flex: 1 1 100%; }

@media (min-width: 1024px) {
    .product-col-gallery { flex: 1 1 55%; min-width: 320px; }
    .product-col-sidebar { flex: 1 1 35%; min-width: 280px; }
    .product-sticky-wrapper { position: sticky; top: calc(var(--header-height) + 1rem); }
}

/* ─── GALERIA ─────────────────────────────────────────────────────────── */
.gallery-wrapper {
    border: 1px solid var(--pp-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.gallery-main {
    width: 100%;
    height: 320px;
    background: var(--pp-blue-dark);
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) { .gallery-main { height: 460px; } }

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; }

.gallery-thumbs {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem;
    background: var(--pp-blue-dark);
    border-top: 1px solid var(--pp-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--pp-gold); }

/* ─── CARD DE PREÇO / SIDEBAR ─────────────────────────────────────────── */
.product-price-card {
    background: var(--pp-blue-dark);
    border: 1px solid var(--pp-border-gold);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-price-label {
    display: block;
    font-size: 0.7rem;
    color: var(--pp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.product-price-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--pp-gold);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.product-cta-buttons { display: flex; flex-direction: column; gap: 0.75rem; }

/* Oculta na sidebar mobile — exibido pela sticky bar */
@media (max-width: 1023px) {
    .product-price-value, .product-cta-buttons { display: none; }
}

/* Trust block */
.product-trust {
    padding-top: 1.25rem;
    border-top: 1px solid var(--pp-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.product-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--pp-text-muted);
}
.product-trust-item .ti { color: var(--pp-gold); font-size: 1.1rem; flex-shrink: 0; }

/* ─── STICKY BOTTOM BAR (MOBILE ONLY) ────────────────────────────────── */
.product-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pp-blue-dark);
    border-top: 1px solid var(--pp-border-gold);
    padding: 0.875rem 1rem calc(0.875rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.7);
}
@media (min-width: 1024px) { .product-sticky-bar { display: none; } }

.product-sticky-bar__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.product-sticky-bar__label { font-size: 0.7rem; color: var(--pp-text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.product-sticky-bar__value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--pp-gold); }

.product-sticky-bar__actions { display: flex; flex-direction: column; gap: 0.625rem; }
.product-sticky-bar__actions .btn-gold,
.product-sticky-bar__actions .btn-whatsapp { font-size: 0.875rem; padding: 0.75rem 1rem; }
