.product-main-card {
    background: #fff;
    border: 1px solid var(--zz-border);
    border-radius: 20px;
    box-shadow: var(--zz-shadow-sm);
    overflow: hidden;
}

.product-main-card > .row {
    min-height: 470px;
}

.product-gallery {
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    height: 100%;
}

.main-image {
    height: clamp(300px, 34vw, 430px);
    border-radius: 16px;
    background: var(--zz-bg-soft);
    color: var(--zz-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    aspect-ratio: auto;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .18s ease, transform .18s ease;
}

.main-image img.is-switching {
    opacity: .45;
    transform: scale(.985);
}

.thumb-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.thumb {
    height: 76px;
    border-radius: 10px;
    background: var(--zz-bg-soft);
    color: var(--zz-text-light);
    border: 1px solid var(--zz-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    padding: 2px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.thumb.active,
.thumb:hover {
    border-color: var(--zz-primary);
    background: var(--zz-primary-soft);
    color: var(--zz-primary);
    box-shadow: 0 0 0 2px rgba(30, 91, 184, .12);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.product-summary {
    padding: 32px 34px 34px 12px;
    height: 100%;
}

.product-title {
    color: var(--zz-text-main);
    font-size: 28px;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.product-subtitle {
    color: var(--zz-text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--zz-primary-soft);
    color: var(--zz-primary);
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--zz-cert-text);
    background: var(--zz-cert-bg);
    border: 1px solid var(--zz-cert-border);
    font-size: 12px;
    font-weight: 800;
}

.price-box {
    background: #FFF7F7;
    border: 1px solid #FADADA;
    border-radius: 14px;
    padding: 16px;
    margin: 22px 0 18px;
}

.price-label {
    color: var(--zz-text-muted);
    font-size: 13px;
    margin-right: 12px;
}

.price-value {
    color: var(--zz-price);
    font-size: 26px;
    font-weight: 900;
}

.product-meta {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-meta li {
    display: flex;
    padding: 9px 0;
    border-bottom: 1px solid var(--zz-bg-soft);
    font-size: 14px;
}

.product-meta li:last-child {
    border-bottom: none;
}

.meta-label {
    width: 86px;
    color: var(--zz-text-muted);
    flex-shrink: 0;
}

.meta-value {
    color: var(--zz-text-main);
    font-weight: 600;
}

.section-card {
    background: #fff;
    border: 1px solid var(--zz-border);
    border-radius: 18px;
    box-shadow: var(--zz-shadow-sm);
    overflow: hidden;
}

.section-card__header {
    height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid var(--zz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.section-card__title {
    color: var(--zz-text-main);
    font-size: 17px;
    font-weight: 900;
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.section-card__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--zz-primary);
}

.section-card__body {
    padding: 20px;
}

.product-detail-content {
    color: var(--zz-text-body);
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.product-detail-content p {
    margin: 0 0 1.1rem;
}

.product-detail-content p:last-child {
    margin-bottom: 0;
}

.product-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 8px;
}

.product-detail-content table {
    max-width: 100%;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table th {
    width: 160px;
    color: var(--zz-text-muted);
    background: #FAFBFC;
    font-weight: 600;
}

.spec-table th,
.spec-table td {
    border: 1px solid var(--zz-border);
    padding: 12px;
}

.supplier-card {
    background: #fff;
    border: 1px solid var(--zz-border);
    border-radius: 18px;
    box-shadow: var(--zz-shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 16px;
}

.supplier-card__top .cert-badge {
    margin-top: 2px;
}

.supplier-card__top {
    background: var(--zz-primary-soft);
    padding: 18px;
    border-bottom: 1px solid var(--zz-border);
}

.supplier-name {
    color: var(--zz-text-main);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
}

.supplier-card__body {
    padding: 18px;
}

.supplier-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--zz-bg-soft);
    font-size: 13px;
}

.supplier-row span {
    color: var(--zz-text-muted);
    width: 64px;
    flex-shrink: 0;
}

.supplier-row strong {
    color: var(--zz-text-main);
    overflow-wrap: anywhere;
}

.inquiry-box textarea {
    min-height: 96px;
    resize: vertical;
}

.comment-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--zz-border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--zz-primary-soft);
    color: var(--zz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.comment-author {
    color: var(--zz-text-main);
    font-weight: 900;
    font-size: 14px;
}

.comment-meta {
    color: var(--zz-text-light);
    font-size: 12px;
}

.comment-content {
    color: var(--zz-text-body);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 8px;
}

.rating {
    color: var(--zz-accent);
    font-size: 13px;
    letter-spacing: 1px;
}

.related-card {
    border: 1px solid var(--zz-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: all .22s ease;
    background: #fff;
}

.related-card:hover {
    border-color: var(--zz-primary);
    box-shadow: var(--zz-shadow-md);
    transform: translateY(-2px);
}

.related-img {
    height: 130px;
    background: var(--zz-bg-soft);
    color: var(--zz-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: 12px;
}

.related-title {
    color: var(--zz-text-main);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    display: block;
    min-height: 40px;
}

.related-desc {
    display: -webkit-box;
    min-height: 38px;
    margin-top: 7px;
    overflow: hidden;
    color: var(--zz-text-muted);
    font-size: 12px;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price {
    color: var(--zz-price);
    font-weight: 900;
}

@media (max-width: 991.98px) {
    .supplier-card {
        position: static;
    }

    .product-summary {
        padding: 26px 24px 28px;
    }

    .main-image {
        height: 300px;
    }

    .product-main-card > .row {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .product-title {
        font-size: 22px;
    }

    .main-image {
        height: 240px;
    }

    .product-gallery {
        padding: 14px;
    }

    .product-summary {
        padding: 22px 18px 24px;
    }

    .price-value {
        font-size: 22px;
    }

    .product-meta li {
        align-items: flex-start;
    }

    .thumb-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-table th {
        width: 110px;
    }
}
