/* =========================================================================
   TIS — product.css: trang tổng, danh mục và chi tiết sản phẩm
   ========================================================================= */

/* ---------- Lưới sản phẩm (row-cols-2 / row-cols-lg-4 hoặc 5) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.product-col { margin-bottom: 1rem; }
.product-col-title { font-size: 100%; }
@media (min-width: 992px) {
    .product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.product-group-spacer { padding: 1rem 0; }

/* ---------- Chi tiết sản phẩm ---------- */
.product-detail { clear: both; margin-bottom: 1.5rem; font-family: Arial, sans-serif; font-size: 18px; font-weight: 400; color: #333; }
.product-name { font-size: 36px; font-weight: 700; line-height: 1.4; margin-bottom: 1rem; }
.product-top { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
.product-photo { margin-bottom: 1.5rem; }
.product-photo-frame { border: 1px solid var(--c-border); }
.product-desc {
    clear: both;
    margin-bottom: 1.5rem;
    padding: 1rem;
    line-height: 1.6;
    color: #121212;
    background-color: var(--c-light);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.product-desc p { margin-bottom: 0 !important; }
.product-section { margin-bottom: 1.5rem; }
@media (min-width: 992px) {
    .product-top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
    .product-photo { margin-bottom: 0; }
}
@media (min-width: 1400px) { .product-top { column-gap: 2rem; } }

/* Bảng thông số (tương đương .table.table-striped) */
.spec-table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; color: #000; vertical-align: top; }
.spec-table td { padding: .5rem; vertical-align: middle; border-bottom: 1px solid var(--c-border); }
.spec-table tbody tr:nth-of-type(odd) > td { background-color: rgba(33, 37, 41, .05); }
.text-end { text-align: right; }

/* Nút Mua hàng / Hỗ trợ */
.product-actions { display: flex; align-items: center; padding-top: 1rem; }
.product-actions-gap { padding: 0 .5rem; }
/* Như site cũ: nút khối, chữ căn giữa, icon cách chữ .5rem (không dùng flex + gap) */
.btn-action { display: block; width: 100%; padding: .5rem 1rem; border-radius: var(--radius); text-align: center; }
.btn-action > i { margin-right: .5rem; }
.btn-primary { color: #fff; background-color: var(--c-primary); border-color: var(--c-primary); }
.btn-primary:hover { color: #fff; background-color: #0b5ed7; }

.product-detail .subtitlebar { font-size: 100%; }
.product-body {
    clear: both;
    width: 100%;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #121212 !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.product-body p { margin-bottom: 1rem; }
.product-body img { max-width: 100% !important; height: auto !important; }
.product-body table { width: 100% !important; max-width: 100% !important; table-layout: auto; border-collapse: collapse; }
.product-body ul { margin: 0; padding: 0 0 0 40px; }
.product-body ul li { margin: 0; padding: 0; }
.product-body a, .product-body a:hover { color: var(--text-primary) !important; }
.product-body a:hover { text-decoration: underline !important; }
.product-detail video { width: 100% !important; height: auto !important; max-width: 100%; }
.block-image { clear: both; display: block; margin: 0 auto 1rem; }
.block-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.product-tags { clear: both; margin-bottom: 1rem; color: #333; }

.attachment-list-link { color: var(--text-primary); }
.me-1 { margin-right: .25rem; }
