﻿
.product-page {
    max-width: 1200px;
}

/* Topbar */
.product-topbar {
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.04);
    padding: 14px 16px;
}

.product-topbar-title h1 {
    font-size: 20px;
    font-weight: 950;
    color: #0f172a;
}

.subline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    display: inline-block;
}

.product-topbar-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pill {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 950;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-in {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.pill-out {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.pill-rate {
    background: #ecfeff;
    border-color: #cffafe;
    color: #155e75;
}

.pill .num {
    font-size: 13px;
}

/* Gallery */
.gallery-card {
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    overflow: hidden;
}

.gallery-main {
    position: relative;
    background: #f8fafc;
}

    .gallery-main img {
        width: 100%;
        height: 420px;
        object-fit: contain;
        background: #fff;
        display: block;
    }

.zoom-btn {
    position: absolute;
    left: 12px;
    top: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,.10);
    cursor: pointer;
}

    .zoom-btn:hover {
        background: #f8fafc;
    }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.thumb {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 4px;
    background: #fff;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    cursor: pointer;
    opacity: .9;
    transition: .15s;
}

    .thumb.active, .thumb:hover {
        border-color: #111827;
        opacity: 1;
    }

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 12px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.rating-hint {
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
}

/* Buy card */
.buy-card {
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    padding: 14px;
}

.buy-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.price-box {
    flex: 1 1 320px;
}

.cta-box {
    flex: 1 1 260px;
}

.discount-line {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.old {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 900;
}

.off {
    background: #111827;
    color: #fff;
    font-weight: 950;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .price .num {
        font-size: 28px;
        font-weight: 950;
        color: #0f172a;
    }

    .price .cur {
        color: #64748b;
        font-weight: 900;
    }

.meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
}

    .meta b {
        color: #0f172a;
    }

.safe-note {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 14px;
    color: #0f172a;
    font-weight: 900;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.shortdesc, .quick-features {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.sec-title {
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 8px;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
}

    .chip .k {
        color: #64748b;
    }

    .chip .v {
        color: #0f172a;
    }

/* Tabs */
.product-tabs {
    border-bottom: 0;
    gap: 8px;
    padding: 10px 0;
}

    .product-tabs .nav-link {
        border: 1px solid #e5e7eb;
        background: #f8fafc;
        border-radius: 999px;
        font-weight: 950;
        color: #0f172a;
        padding: 10px 14px;
        white-space: nowrap;
    }

        .product-tabs .nav-link.active {
            background: #111827;
            border-color: #111827;
            color: #fff;
        }

.product-tab-content {
    border: 0;
}

.tab-card {
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    padding: 16px;
}

.content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.content-html * {
    line-height: 1.9;
}

/* Spec grid */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media(min-width: 768px) {
    .spec-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.spec-item {
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}

.spec-k {
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 8px;
}

.spec-v {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-pill {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 12px;
    color: #0f172a;
}

/* Reviews */
.reviews-header {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.avg-box {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 18px;
    padding: 12px 14px;
    min-width: 200px;
    text-align: center;
}

.avg-num {
    font-size: 28px;
    font-weight: 950;
    color: #0f172a;
}

.avg-count {
    color: #64748b;
    font-weight: 900;
    font-size: 12px;
    margin-top: 4px;
}

.review-form-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
}

/* Modal */
.modal-img .modal-content {
    border-radius: 18px;
    overflow: hidden;
}

