/* ==========================================================
   Sprint 1 — Bloco 7
   Página do Produto: acabamento Apple-like, baixo risco.
   ========================================================== */

.product-detail-container {
    max-width: 1180px !important;
    margin: 1.1rem auto 2rem !important;
    padding: 0 1rem !important;
}

.product-detail-grid {
    align-items: start !important;
    gap: clamp(1rem, 3vw, 2rem) !important;
}

.product-gallery,
.product-detail-info,
.product-description-section,
.similar-products-section {
    border-radius: 24px !important;
}

.product-gallery {
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, 0.92) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055) !important;
    overflow: hidden !important;
}

.main-image-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 22px !important;
    min-height: min(58vh, 520px) !important;
    cursor: zoom-in !important;
}

.main-image {
    border-radius: 18px !important;
}

.gallery-thumbs-wrapper {
    padding: 0 0.75rem 0.9rem !important;
}

.gallery-thumbs {
    gap: 0.48rem !important;
}

.gallery-thumb {
    width: 66px !important;
    height: 66px !important;
    border-radius: 14px !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

.gallery-thumb.active {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.product-detail-info {
    position: sticky !important;
    top: 92px !important;
    padding: clamp(1rem, 2.2vw, 1.35rem) !important;
    border: 1px solid rgba(226, 232, 240, 0.94) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07) !important;
}

.product-detail-badges {
    gap: 0.45rem !important;
    margin-bottom: 0.7rem !important;
}

.product-condition,
.product-stock-pill {
    font-size: 0.76rem !important;
    padding: 0.32rem 0.62rem !important;
}

.detail-title {
    font-size: clamp(1.35rem, 2vw, 1.82rem) !important;
    font-weight: 750 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.12 !important;
    margin-bottom: 0.88rem !important;
}

.detail-price-container {
    margin-bottom: 1rem !important;
}

.detail-price-wrapper {
    flex-wrap: wrap !important;
}

.detail-price {
    font-size: clamp(1.9rem, 3vw, 2.45rem) !important;
    font-weight: 780 !important;
    letter-spacing: -0.045em !important;
    color: #0f172a !important;
}

.detail-old-price {
    margin-bottom: 0.18rem !important;
}

.detail-discount {
    border-radius: 999px !important;
    padding: 0.24rem 0.55rem !important;
    background: rgba(22, 163, 74, 0.10) !important;
    color: #15803d !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

.product-trust-list {
    margin: 0.9rem 0 1rem !important;
    padding: 0.85rem !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
}

.product-trust-list span {
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
}

.product-trust-list i {
    color: #2563eb !important;
}

.seller-info-card {
    border-radius: 18px !important;
    background: #fff !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
    padding: 0.95rem !important;
    margin-bottom: 1rem !important;
}

.seller-info-card h4 {
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #64748b !important;
}

.seller-avatar {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    background: #f1f5f9 !important;
}

.seller-name {
    font-weight: 750 !important;
    color: #0f172a !important;
}

.seller-action-row {
    gap: 0.5rem !important;
}

.seller-action-row .btn-secondary,
.seller-link-inline {
    border-radius: 14px !important;
    min-height: 44px !important;
    font-size: 0.84rem !important;
}

.detail-actions {
    gap: 0.5rem !important;
}

.btn-buy-now,
.detail-actions .btn-add-cart,
.btn-like-product {
    min-height: 48px !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
}

.btn-buy-now {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22) !important;
}

.detail-actions .btn-add-cart {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.btn-like-product {
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #ef4444 !important;
}

.product-description-section,
.similar-products-section {
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, 0.94) !important;
    padding: clamp(1rem, 2vw, 1.35rem) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.product-description-section h3,
.similar-products-section h3 {
    font-size: 1.1rem !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 0.65rem !important;
}

.description-content {
    color: #475569 !important;
    line-height: 1.68 !important;
}

.lightbox-modal {
    backdrop-filter: blur(8px) !important;
}

.lightbox-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.14) !important;
    font-size: 1.8rem !important;
}

/* Mobile: produto como tela de decisão rápida */
@media (max-width: 768px) {
    .product-detail-container {
        margin-top: 0.45rem !important;
        padding: 0 0.72rem calc(5.8rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .product-detail-grid {
        gap: 0.75rem !important;
        margin-bottom: 0.95rem !important;
    }

    .product-gallery {
        border-radius: 22px !important;
    }

    .main-image-container {
        min-height: min(74vw, 390px) !important;
        padding: 0.55rem !important;
        border-radius: 20px !important;
    }

    .gallery-thumbs-wrapper {
        padding: 0 0.55rem 0.7rem !important;
    }

    .thumb-nav {
        display: none !important;
    }

    .gallery-thumb {
        width: 58px !important;
        height: 58px !important;
        border-radius: 13px !important;
    }

    .product-detail-info {
        position: static !important;
        top: auto !important;
        border-radius: 22px !important;
        padding: 1rem !important;
    }

    .detail-title {
        font-size: 1.32rem !important;
        line-height: 1.14 !important;
        margin-bottom: 0.7rem !important;
    }

    .detail-price {
        font-size: 2rem !important;
    }

    .product-trust-list {
        grid-template-columns: 1fr !important;
        gap: 0.48rem !important;
        margin: 0.75rem 0 0.9rem !important;
    }

    .seller-action-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .detail-actions {
        grid-template-columns: 1fr !important;
    }

    .btn-like-product {
        min-height: 44px !important;
    }

    .product-description-section,
    .similar-products-section {
        margin-top: 0.9rem !important;
        padding: 1rem !important;
        border-radius: 22px !important;
    }

    .similar-products-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.38rem !important;
    }
}

@media (max-width: 430px) {
    .product-detail-container {
        padding-left: 0.58rem !important;
        padding-right: 0.58rem !important;
    }

    .product-detail-badges {
        gap: 0.35rem !important;
    }

    .product-condition,
    .product-stock-pill {
        font-size: 0.72rem !important;
        padding: 0.28rem 0.52rem !important;
    }

    .seller-profile {
        align-items: flex-start !important;
    }

    .seller-details p {
        font-size: 0.84rem !important;
    }

    .description-content {
        font-size: 0.94rem !important;
    }
}
