/* ============================================================
   Specs Table — Thông số kỹ thuật section (#specs)
   Loads on all product pages via mitn-specs handle.
   ============================================================ */

/* ─── Collapsible spec groups ─────────────────────────────────── */
.specs-groups {
    display: flex;
    flex-direction: column;
    gap: var(--s-3, 0.75rem);
}

.specs-group {
    border: 1px solid var(--color-border-subtle, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.specs-group__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--s-2, 0.5rem);
    padding: 10px var(--s-4, 1rem);
    background: var(--color-surface-sunken, #f2f4f7);
    border: none;
    cursor: pointer;
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 700;
    color: var(--color-text-primary, #111);
    font-family: inherit;
    text-align: left;
}

.specs-group__head:hover { background: var(--color-surface-raised, #f0f2f5); }

.specs-group__head br { display: none; }

.specs-group__head svg.ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-brand-primary, #dd3333);
    fill: currentColor;
}

.specs-group__head i[class*="fa-"] {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--color-brand-primary, #dd3333);
    font-size: 0.95em;
}

.specs-group__chevron {
    margin-left: auto;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-text-muted, #4b5563);
    fill: currentColor;
    transition: transform 0.2s ease;
}

.specs-group.is-collapsed .specs-group__chevron {
    transform: rotate(-90deg);
}

.specs-group__body { padding: 0; }
.specs-group.is-collapsed .specs-group__body { display: none; }

/* ─── Body table ──────────────────────────────────────────────── */
.specs-group__body table {
    width: 100%;
    border-collapse: collapse;
}

.specs-group__body td {
    padding: var(--s-3, 0.75rem) var(--s-4, 1rem);
    font-size: var(--fs-sm, 0.875rem);
    border-bottom: 1px solid var(--color-border-subtle, #e5e7eb);
    vertical-align: top;
}

.specs-group__body tr:last-child td { border-bottom: none; }

.specs-group__body td:first-child {
    color: var(--color-text-muted, #4b5563);
    width: 45%;
}

.specs-group__body td:last-child {
    color: var(--color-text-primary, #111);
    font-weight: 500;
}

.specs-group__body strong {
    font-weight: 800;
    color: var(--color-brand-primary, #dd3333);
}

/* ─── Ink cost table wrapper ──────────────────────────────────── */
.ink-tblwrap {
    overflow-x: auto;
    border: 1px solid var(--color-border-subtle, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--s-4, 1rem);
}

.ink-tblwrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm, 0.875rem);
    min-width: 520px;
}

.ink-tblwrap th,
.ink-tblwrap td {
    padding: var(--s-3, 0.75rem) var(--s-4, 1rem);
    text-align: left;
    border-bottom: 1px solid var(--color-border-subtle, #e5e7eb);
}

.ink-tblwrap th {
    background: var(--color-surface-sunken, #f2f4f7);
    font-weight: 700;
    color: var(--color-text-primary, #111);
}

/* Highlight "đề xuất" column (last) */
.ink-tblwrap th:last-child {
    background: var(--color-brand-surface, #fef1f1);
    color: var(--color-brand-primary, #dd3333);
    border-top: 3px solid var(--color-brand-primary, #dd3333);
}

.ink-tblwrap td:last-child {
    background: var(--color-brand-surface, #fef1f1);
}

.ink-tblwrap tr:last-child td { border-bottom: none; }

.ink-tblwrap td .ink-oem-link,
.ink-tblwrap td .ink-oem-link:visited {
    display: inline-block;
    margin-left: var(--s-2, 0.5rem);
    font-size: var(--fs-xs, 0.75rem);
    color: var(--color-text-muted, #6b7280);
    text-decoration: underline !important;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.ink-tblwrap td .ink-oem-link:hover { color: var(--color-brand-primary, #dd3333) !important; }

.ink-tblwrap td .ink-gt-link,
.ink-tblwrap td .ink-gt-link:visited {
    display: inline-block;
    margin-left: var(--s-2, 0.5rem);
    font-size: var(--fs-xs, 0.75rem);
    color: var(--color-brand-primary, #dd3333);
    text-decoration: underline !important;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.ink-tblwrap td .ink-gt-link:hover { color: #b91c1c !important; }

.ink-tblwrap td:first-child {
    font-weight: 500;
    color: var(--color-text-muted, #4b5563);
}

/* ─── Bundle section gộp trong #ink ─────────────────────────── */
.compare-names { font-size: 18px; font-weight: inherit; }
.bundle-section { margin-top: var(--s-8, 2rem); }
.ink-subtitle { font-size: var(--fs-lg, 1.125rem); font-weight: 700; margin-top: var(--s-6, 1.5rem); margin-bottom: var(--s-3, 0.75rem); }
.ink-subtitle:first-of-type { margin-top: var(--s-3, 0.75rem); }

/* ─── Pick callout (savings highlight) ───────────────────────── */
.pick {
    font-size: var(--fs-sm, 0.875rem);
    background: var(--color-surface-sunken, #f2f4f7);
    border-left: 3px solid var(--color-brand-primary, #dd3333);
    padding: var(--s-3, 0.75rem) var(--s-4, 1rem);
    border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
    line-height: 1.6;
    color: var(--color-text-body, #1f2937);
}

.pick br { display: none; }

.pick svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    color: var(--color-brand-primary, #dd3333);
    margin-right: var(--s-2, 0.5rem);
}

.pick i[class*="fa-"] {
    display: inline-block;
    vertical-align: middle;
    color: var(--color-brand-primary, #dd3333);
    margin-right: var(--s-2, 0.5rem);
}
