/* ============================================================
   Sun Cosmetic — Product List & Accessories Pages
   ============================================================ */

/* ── Type switcher bar ── */
.pl-type-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    position: sticky;
    top: var(--nav-h);
    z-index: 80;
}

.pl-type-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.pl-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-2);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.pl-type-tab:hover {
    background: var(--color-surface-2);
    color: var(--color-primary);
}

.pl-type-tab.active {
    background: var(--grad-primary);
    color: #fff;
}

/* ── Page header ── */
.pl-page-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pl-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.pl-page-subtitle {
    font-size: 14px;
    color: var(--color-text-2);
    margin: 0;
    line-height: 1.5;
}

/* ── Two-column layout ── */
.pl-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 24px;
    align-items: start;
}

/* ── Sidebar ── */
.pl-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 56px);
}

.pl-sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.pl-sidebar-head {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.pl-sidebar-head i {
    color: var(--color-accent);
}

.pl-filter-group {
    margin-bottom: 20px;
}

.pl-filter-group:last-of-type {
    margin-bottom: 18px;
}

.pl-filter-group-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-2);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
}

.pl-checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    cursor: pointer;
    user-select: none;
}

.pl-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
}

.pl-checkbox-item span {
    font-size: 13.5px;
    color: var(--color-text-2);
    transition: color .15s;
}

.pl-checkbox-item:hover span {
    color: var(--color-accent);
}

.pl-checkbox-item input[type="checkbox"]:checked + span {
    color: var(--color-accent);
    font-weight: 600;
}

.pl-clear-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    text-align: center;
    text-decoration: none;
}

.pl-clear-btn:hover {
    opacity: .88;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Top bar ── */
.pl-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    box-shadow: var(--shadow-xs);
}

.pl-count-text {
    font-size: 13.5px;
    color: var(--color-text-2);
}

.pl-count-text strong {
    color: var(--color-text);
}

.pl-sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pl-sort-label {
    font-size: 13px;
    color: var(--color-text-2);
    white-space: nowrap;
}

.pl-sort-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-2);
    cursor: pointer;
    transition: border-color .2s, color .2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.pl-sort-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pl-sort-btn.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
}

/* ── Product grid (4 columns) ── */
.pl-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* ── Category group (khi lọc nhiều dòng máy) ── */
.pl-category-group {
    margin-bottom: 2.5rem;
}
.pl-category-group:last-child {
    margin-bottom: 0;
}
.pl-category-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--color-surface-2);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pl-category-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

/* ── Product card ── */
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Badges & actions */
.product-badges {
    position: absolute;
    top: 44px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-actions {
    position: absolute;
    top: 44px;
    right: 8px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s, transform .2s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

/* Product body */
.product-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-align: left;
}

/* Category label — single line to keep top section uniform height */
.product-cat {
    font-size: 11px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .product-cat { color: var(--color-text-3); }

/* Name — always exactly 2 lines, same height across all cards */
.product-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(13.5px * 1.4 * 2); /* lock 2-line height = ~37.8px */
}
.product-name a { color: inherit; text-decoration: none; transition: color .15s; }
.product-name a:hover { color: var(--color-primary); }

/* Rating row */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    margin-bottom: 6px;
}
.product-rating .stars i { color: #f59e0b; font-size: 12px; }
.product-rating small { color: var(--color-text-3); font-size: 11.5px; }

/* Price — fixed spacing below rating; button anchors to bottom */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 4px;
}
.price-current { font-size: 18px; font-weight: 700; color: var(--color-red); }
.price-old     { font-size: 13px; color: #000; text-decoration: line-through; }
html.dark .price-old { color: var(--color-text-3); }

/* Flash sale stock bar */
.product-stock-bar {
    position: relative;
    background: var(--color-surface-2);
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
    margin-top: 6px;
}
.stock-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0; height: 100%;
    background: var(--grad-warm);
    border-radius: 99px;
    transition: width .4s;
}
.stock-text {
    position: static !important; top: auto !important;
    left: auto !important; transform: none !important;
    font-size: 11px; color: var(--color-red);
    display: block; margin-top: 4px; font-weight: 600;
}

/* Add to cart button — always pinned to card bottom */
.btn-add-cart {
    margin-top: 0 !important;
    font-size: 13px;
    padding: 10px 12px;
}

/* Badges */
.badge-discount, .badge-flash, .badge-new {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.5;
}

.badge-discount { background: var(--color-red);    color: #fff; }
.badge-flash    { background: var(--color-amber);  color: #fff; }
.badge-new      { background: var(--color-green);  color: #fff; }

/* Action buttons */
.action-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-2);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    box-shadow: var(--shadow-xs);
}

.action-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.wishlist-btn.active { color: var(--color-red); }

/* Empty state */
.empty-state h4 { font-size: 18px; margin-bottom: 8px; }

/* ── Legacy fl-grid / pl-grid aliases (home / other pages) ── */
.fl-grid,
.pl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Section block (home grouped view if ever used) */
.pl-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 24px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.section-more {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pl-product-grid,
    .fl-grid,
    .pl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .pl-layout {
        grid-template-columns: 1fr;
    }

    .pl-sidebar {
        position: static;
    }

    .pl-sidebar-card {
        /* collapsed by default on mobile */
        display: none;
    }

    .pl-sidebar-card.open {
        display: block;
    }
}

@media (max-width: 700px) {
    .pl-product-grid,
    .fl-grid,
    .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .pl-page-title { font-size: 20px; }
    .pl-topbar { flex-direction: column; align-items: flex-start; }
    .pl-sort-group { flex-wrap: wrap; }
}

@media (max-width: 400px) {
    .pl-product-grid,
    .fl-grid,
    .pl-grid { gap: 10px; }
}

@media (max-width: 600px) {
    .pl-type-tab { padding: 7px 14px; font-size: 13px; }
}

/* ============================================================
   PRODUCT DETAIL PAGE — v2
   Best Buy / Apple Store aesthetic · Tailwind-inspired spacing
   50 / 50 two-column grid · Rose accent #dc2626
   ============================================================ */

/* ── Breadcrumb ── */
.pd-breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 0;
}
.pd-breadcrumb-bar .breadcrumb { margin: 0; font-size: 12.5px; }
.pd-breadcrumb-bar .breadcrumb-item a { color: #6B7280; text-decoration: none; transition: color .15s; }
.pd-breadcrumb-bar .breadcrumb-item a:hover { color: #dc2626; }
.pd-breadcrumb-bar .breadcrumb-item.active { color: #111827; font-weight: 600; }
.pd-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: #D1D5DB; }

/* Keep legacy breadcrumb-wrap alias */
.breadcrumb-wrap {
    padding: 12px 0 14px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
}
.breadcrumb-wrap .breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-wrap .breadcrumb-item a { color: #6B7280; text-decoration: none; transition: color .15s; }
.breadcrumb-wrap .breadcrumb-item a:hover { color: #dc2626; }
.breadcrumb-wrap .breadcrumb-item.active { color: #111827; font-weight: 600; }
.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before { color: #D1D5DB; }

/* ── Page wrapper ── */
.pd-page { padding: 32px 0 80px; background: #F9FAFB; }

/* ── Gallery 45% / Info 55% — cân đối, giống GearVN/CellphoneS ── */
.pd-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 36px;
    align-items: start;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    margin-bottom: 32px;
}

/* Legacy 55/45 alias kept for any template that still references it */
.pd-layout {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 36px;
    align-items: start;
}
.pd-col-left  { position: sticky; top: calc(var(--nav-h) + 16px); }
.pd-col-right { /* right column */ }

/* ── Brand pill (legacy) ── */
.pd-brand {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 800; color: #dc2626;
    text-transform: uppercase; letter-spacing: 1.6px;
    background: rgba(220,38,38,.09); padding: 4px 12px;
    border-radius: 6px; margin-bottom: 10px;
    border: 1px solid rgba(220,38,38,.18);
}

/* ── Product title (legacy) ── */
.pd-title {
    font-family: 'Montserrat', var(--font-primary), sans-serif;
    font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; color: #111827;
    line-height: 1.3; margin-bottom: 14px; letter-spacing: -0.3px;
}

/* ════════════════════════════════════════
   GALLERY — LEFT COLUMN
════════════════════════════════════════ */
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }

/* Main display image */
.pd-gallery__main {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-in;
}

/* Gallery navigation arrows */
.pd-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    background: rgba(255,255,255,.92);
    border: 1.5px solid #E5E7EB;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 4;
    color: #374151;
    font-size: 13px;
    opacity: 0;
    transition: opacity .2s, background .15s, box-shadow .15s;
    padding: 0;
}
.pd-gallery__main:hover .pd-gallery__arrow { opacity: 1; }
.pd-gallery__arrow:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    border-color: #d1d5db;
}
.pd-gallery__arrow--prev { left: 10px; }
.pd-gallery__arrow--next { right: 10px; }

.pd-gallery__main img {
    max-width: 85%; max-height: 85%;
    width: auto; height: auto;
    object-fit: contain; display: block;
    transition: transform 200ms ease, opacity 150ms ease;
    user-select: none;
}

.pd-gallery__main:hover img { transform: scale(1.04); }

/* Floating badges */
.pd-gallery__badge {
    position: absolute; top: 12px; z-index: 2;
    font-size: 11.5px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    letter-spacing: .3px; pointer-events: none;
}
.pd-gallery__badge--sale { left: 12px; background: #dc2626; color: #ffffff; }
.pd-gallery__badge--new  { right: 12px; background: #10B981; color: #ffffff; }

/* Thumbnail strip — 4 fixed-size square tiles */
.pd-gallery__thumbs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.pd-gallery__thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    background: #ffffff;
    overflow: hidden; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .18s, box-shadow .18s;
}

.pd-gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
    padding: 8px;
    transition: transform .2s;
}

.pd-gallery__thumb:hover img { transform: scale(1.06); }

.pd-gallery__thumb:hover,
.pd-gallery__thumb.active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220,38,38,.18);
}

/* ════════════════════════════════════════
   PRODUCT INFO — RIGHT COLUMN
════════════════════════════════════════ */
.pd-info { display: flex; flex-direction: column; }

/* Brand + stock row */
.pd-info__toprow {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 10px;
}

.pd-info__brand {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase; color: #6B7280;
}

.pd-info__stock {
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.pd-info__stock i { font-size: 7px; }
.pd-info__stock--in  { color: #059669; }
.pd-info__stock--out { color: #DC2626; }

/* Large bold title */
.pd-info__title {
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700; color: #111827;
    line-height: 1.35; margin: 0 0 14px; letter-spacing: -0.2px;
}

/* Stars + review link + sold count */
.pd-info__meta {
    display: flex; align-items: center;
    flex-wrap: wrap; gap: 6px 8px; margin-bottom: 18px;
}

.pd-info__stars i { color: #F59E0B; font-size: 13px; }

/* Numeric rating badge next to stars */
.pd-info__rating-num {
    font-size: 12.5px; font-weight: 700; color: #D97706;
    background: #FFFBEB; border: 1px solid #FDE68A;
    padding: 2px 7px; border-radius: 5px; line-height: 1.4;
}

/* Short description snippet */
.pd-info__desc {
    font-size: 13.5px; color: #4B5563; line-height: 1.72;
    margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-info__review-link {
    font-size: 13px; color: #2563EB;
    text-decoration: underline; text-underline-offset: 2px; transition: color .15s;
}
.pd-info__review-link:hover { color: #1D4ED8; }

.pd-info__sep  { color: #D1D5DB; font-size: 12px; }
.pd-info__sold { font-size: 12.5px; color: #6B7280; display: flex; align-items: center; gap: 4px; }
.pd-info__sold i { color: #F59E0B; }

/* ── Pricing block ── */
.pd-price {
    display: flex; flex-direction: column;
    gap: 6px;
    margin-bottom: 20px; padding: 16px 18px;
    background: #FEF2F2;
    border: 1px solid rgba(220,38,38,.15);
    border-radius: 10px;
}

.pd-price__current {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px; font-weight: 800;
    color: #dc2626; line-height: 1; letter-spacing: -0.5px;
}

.pd-price__original-row {
    display: flex; align-items: center; gap: 10px;
}

.pd-price__original {
    font-size: 17px; color: #000;
    text-decoration: line-through; font-weight: 400;
}

.pd-price__badge {
    font-size: 11.5px; font-weight: 700;
    color: #dc2626; background: rgba(220,38,38,.1);
    padding: 3px 8px; border-radius: 4px; letter-spacing: .2px;
}

/* Divider */
.pd-divider { border: none; border-top: 1px solid #F3F4F6; margin: 16px 0; }

/* ── Configuration chips ── */
.pd-config { margin-bottom: 16px; }

.pd-config__heading {
    font-size: 12.5px; font-weight: 700; color: #374151;
    text-transform: uppercase; letter-spacing: .7px; margin: 0 0 10px;
}

.pd-config__row {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}

.pd-config__label {
    font-size: 12.5px; font-weight: 600; color: #6B7280;
    width: 52px; flex-shrink: 0;
}

.pd-config__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Pill-shaped chip button */
.pd-chip {
    display: inline-flex; align-items: center;
    padding: 5px 14px; border-radius: 9999px;
    border: 1.5px solid #D1D5DB;
    font-size: 12.5px; font-weight: 600; color: #374151;
    background: #ffffff; cursor: pointer;
    transition: all .18s; user-select: none; line-height: 1.4;
}
.pd-chip:hover            { border-color: #dc2626; color: #dc2626; background: #FEF2F2; }
.pd-chip.is-active,
.pd-chip.active           { background-color: var(--color-accent); color: #ffffff; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }

/* ── Color swatches — 3 small circles ── */
.pd-colors { margin-bottom: 18px; }

.pd-colors__selected { font-size: 12.5px; font-weight: 500; color: #6B7280; }

.pd-colors__swatches { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

.pd-swatch {
    width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    transition: all .22s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.pd-swatch:hover { transform: scale(1.1); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
/* Active: double-ring via layered box-shadow (inner white gap + accent outer ring) */
.pd-swatch.is-active,
.pd-swatch.active { transform: scale(1.06); box-shadow: 0 0 0 2.5px #ffffff, 0 0 0 5px var(--color-accent); }

.pd-swatch__check {
    color: #ffffff; font-size: 10px;
    opacity: 0; transition: opacity .15s; pointer-events: none;
}
.pd-swatch.is-active .pd-swatch__check,
.pd-swatch.active    .pd-swatch__check { opacity: 1; }

/* Màu sắc các phiên bản sản phẩm */
.pd-swatch--silver,
.pd-swatch-silver { background: #e5e5e5; }               /* Silver #e5e5e5  */
.pd-swatch--black,
.pd-swatch-space  { background: #1a1a1a; }               /* Black  #1a1a1a  */
.pd-swatch--gold,
.pd-swatch-gold   { background: linear-gradient(135deg, #FCD34D, #D97706); }
.pd-swatch-blue   { background: linear-gradient(135deg, #5B8EE6, #3A6BC9); }
.pd-swatch-navy   { background: linear-gradient(135deg, #283272, #181C32); }

/* ── Color variant cards — horizontal: [image] [name / price] ── */
.pd-cv { margin-bottom: 18px; }

.pd-cv__list {
    display: flex; gap: 10px; flex-wrap: wrap;
}

.pd-cv__card {
    position: relative;
    display: flex; flex-direction: row; align-items: center;
    gap: 10px; padding: 8px 14px 8px 8px;
    min-width: 150px;
    border: 1.5px solid #E5E7EB; border-radius: 10px;
    background: #ffffff; cursor: pointer;
    text-decoration: none; color: inherit;
    transition: border-color .18s, box-shadow .18s;
}
.pd-cv__card:hover:not(.is-active) {
    border-color: #D1D5DB;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.pd-cv__card.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220,38,38,.10);
}

/* Checkmark badge — top-right corner */
.pd-cv__check {
    display: none; position: absolute; top: -1px; right: -1px;
    width: 20px; height: 20px;
    background: #dc2626; border-radius: 0 10px 0 8px;
    align-items: center; justify-content: center;
    font-size: 9px; color: #ffffff;
}
.pd-cv__card.is-active .pd-cv__check { display: flex; }

.pd-cv__img { width: 48px; height: 48px; flex-shrink: 0; }
.pd-cv__img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Name + price stacked in one column */
.pd-cv__info {
    display: flex; flex-direction: column; gap: 3px;
    flex: 1; min-width: 0;
}

.pd-cv__name {
    font-size: 13px; font-weight: 700; color: #374151;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3;
}
.pd-cv__card.is-active .pd-cv__name { color: #dc2626; }

.pd-cv__price {
    font-size: 11.5px; color: #6B7280; font-weight: 500;
    white-space: nowrap;
}
.pd-cv__card.is-active .pd-cv__price { color: #dc2626; font-weight: 700; }

/* ── Commitment badges — horizontal row ── */
.pd-commits {
    display: flex; align-items: stretch; gap: 0;
    border: 1px solid #E5E7EB; border-radius: 10px;
    overflow: hidden; margin-bottom: 20px; background: #F9FAFB;
}

.pd-commit {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; padding: 12px 8px; text-align: center;
    border-right: 1px solid #E5E7EB;
    transition: background .15s;
}
.pd-commit:last-child { border-right: none; }
.pd-commit:hover      { background: #ffffff; }

.pd-commit__icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: #ffffff; border: 1px solid #E5E7EB;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #dc2626;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.pd-commit__text { font-size: 11px; font-weight: 600; color: #374151; line-height: 1.3; }

/* ── Quantity control ── */
.pd-qty {
    display: flex; align-items: center;
    gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}

.pd-qty__label { font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; }

.pd-qty__ctrl {
    display: flex; align-items: center;
    border: 1.5px solid #D1D5DB; border-radius: 8px;
    overflow: hidden; background: #ffffff;
}

.pd-qty__btn {
    width: 36px; height: 38px; border: none;
    background: #F9FAFB; color: #6B7280; font-size: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s, color .15s;
}
.pd-qty__btn:hover { background: #FEF2F2; color: #dc2626; }

.pd-qty__input {
    width: 48px; height: 38px; text-align: center;
    border: none; border-left: 1px solid #E5E7EB; border-right: 1px solid #E5E7EB;
    background: transparent; font-size: 15px; font-weight: 700;
    color: #111827; outline: none; -moz-appearance: textfield;
}
.pd-qty__input::-webkit-outer-spin-button,
.pd-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd-qty__left { font-size: 12px; color: #9CA3AF; white-space: nowrap; }
.pd-qty__err { color: #dc2626; font-size: 12px; font-weight: 500; margin-top: 4px; display: block; }
html.dark .pd-qty__err { color: #f87171; }

/* ── CTA buttons ── */
.pd-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 14px;
}

/* BUY NOW — prominent, full-width solid primary color */
.pd-cta__buy {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px;
    background: #dc2626; color: #ffffff;
    border: none; border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 700; letter-spacing: .4px;
    cursor: pointer; white-space: nowrap;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.pd-cta__buy:hover {
    background: #b91c1c; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220,38,38,.35); color: #ffffff;
}
.pd-cta__buy:active { transform: none; }

/* Add to Cart — secondary outlined */
.pd-cta__cart {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px;
    background: #ffffff; color: #dc2626;
    border: 1.5px solid #dc2626; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all .2s;
}
.pd-cta__cart:hover {
    background: #FEF2F2; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,.15);
}

/* ── Wishlist / Share ── */
.pd-actions {
    display: flex; gap: 8px;
    padding-top: 12px; border-top: 1px solid #F3F4F6;
}

.pd-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: transparent; border: 1px solid #E5E7EB;
    border-radius: 7px; font-size: 12.5px; font-weight: 500;
    color: #6B7280; cursor: pointer; transition: all .2s;
}
.pd-action:hover { border-color: #dc2626; color: #dc2626; background: #FEF2F2; }

/* Out of stock — detail page */
.pd-outofstock {
    padding: 14px 18px; margin-top: 16px;
    background: #FEF2F2; border: 1px solid #FECACA;
    border-radius: 8px; color: #DC2626;
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}

/* ════════════════════════════════════════
   TABS
════════════════════════════════════════ */
/* Legacy alias */
.pd-tabs-section { margin-top: 44px; }

/* New v2 */
.pd-tabs {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px; overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Tab nav (both v1 and v2 selectors) */
.pd-tabs__nav,
.pd-tab-nav {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
    overflow-x: auto; scrollbar-width: none;
    background: #F9FAFB;
}
.pd-tabs__nav::-webkit-scrollbar,
.pd-tab-nav::-webkit-scrollbar { display: none; }

/* Tab buttons */
.pd-tabs__btn,
.pd-tab-btn {
    padding: 14px 24px; border: none; background: transparent;
    font-size: 13.5px; font-weight: 600; color: #6B7280;
    cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    display: flex; align-items: center; gap: 7px;
    transition: color .18s, border-color .18s;
}
.pd-tabs__btn:hover,
.pd-tab-btn:hover { color: #dc2626; }

.pd-tabs__btn.is-active,
.pd-tabs__btn.active,
.pd-tab-btn.active {
    color: #dc2626; border-bottom-color: #dc2626; background: #ffffff;
}

/* Tab body */
.pd-tabs__body,
.pd-tab-body {
    padding: 28px;
}

/* Tab panels */
.pd-tabs__panel,
.pd-tab-panel { display: none; }

.pd-tabs__panel.is-active,
.pd-tabs__panel.active,
.pd-tab-panel.active { display: block; }

/* ── SPECS TABLE — zebra-striping ── */
.pd-specs,
.pd-specs-table {
    width: 100%; border-collapse: collapse;
    border-radius: 8px; overflow: hidden;
}

.pd-specs tr:nth-child(odd),
.pd-specs-table tr:nth-child(odd)  { background: #F9FAFB; }

.pd-specs tr:nth-child(even),
.pd-specs-table tr:nth-child(even) { background: #ffffff; }

.pd-specs tr:hover,
.pd-specs-table tr:hover { background: rgba(220,38,38,.03); }

.pd-specs td,
.pd-specs-table td {
    padding: 12px 18px; font-size: 13.5px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: top; line-height: 1.5;
}

.pd-specs__key,
.pd-specs-key { width: 36%; font-weight: 600; color: #6B7280; white-space: nowrap; }

.pd-specs__val,
.pd-specs-val { color: #111827; font-weight: 400; }

/* ── Description ── */
.pd-desc,
.pd-desc-content { font-size: 14.5px; line-height: 1.8; color: #4B5563; }

/* ── Review form ── */
.pd-review-form {
    background: #F9FAFB; border: 1px solid #E5E7EB;
    border-radius: 10px; padding: 20px; margin-bottom: 24px;
}

.pd-review-form__title,
.pd-review-form h5 { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 12px; }

/* Star inputs */
.pd-stars-input,
.rating-stars-input { display: flex; gap: 6px; margin-bottom: 12px; }

.pd-stars-input i,
.rating-stars-input i {
    font-size: 26px; color: #D1D5DB;
    cursor: pointer; transition: color .15s, transform .15s;
}
.pd-stars-input i:hover, .pd-stars-input i.fas,
.rating-stars-input i:hover, .rating-stars-input i.fas { color: #F59E0B; }
.pd-stars-input i:hover,
.rating-stars-input i:hover { transform: scale(1.12); }

/* ── Review list ── */
.pd-review-list { display: flex; flex-direction: column; }

.pd-review,
.pd-review-item {
    display: flex; gap: 14px;
    padding: 18px 0; border-bottom: 1px solid #F3F4F6;
}
.pd-review:last-child,
.pd-review-item:last-child { border-bottom: none; }

/* Avatar */
.pd-review__avatar,
.pd-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 15px; font-weight: 700; overflow: hidden;
}
.pd-review__avatar img,
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-avatar-sm { width: 32px; height: 32px; font-size: 12px; }

.pd-review__body,
.pd-review-body { flex: 1; }

.pd-review__name,
.pd-review-body strong { font-size: 13.5px; font-weight: 700; color: #111827; margin-right: 6px; }

.pd-review__text,
.pd-review-content { font-size: 14px; color: #4B5563; margin: 6px 0 4px; line-height: 1.6; }

.pd-review__time { font-size: 12px; color: #9CA3AF; }

/* ── Comment list ── */
.pd-comment-list { display: flex; flex-direction: column; }

.pd-comment,
.pd-comment-item {
    display: flex; gap: 12px;
    padding: 16px 0; border-bottom: 1px solid #F3F4F6;
}
.pd-comment:last-child,
.pd-comment-item:last-child { border-bottom: none; }

.pd-comment__avatar,
.pd-comment-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: #F3F4F6; border: 1.5px solid #E5E7EB;
    display: flex; align-items: center; justify-content: center;
    color: #9CA3AF; font-size: 13px; font-weight: 700; overflow: hidden;
}
.pd-comment__avatar--sm,
.pd-avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.pd-comment__avatar img,
.pd-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pd-comment__body,
.pd-comment-body { flex: 1; }

.pd-comment__name,
.pd-comment-body strong { font-size: 13px; font-weight: 700; color: #111827; display: block; margin-bottom: 4px; }

/* Replies */
.pd-replies,
.pd-comment-replies {
    background: #F9FAFB; border-radius: 8px;
    padding: 10px 14px; margin-top: 10px;
}

.pd-reply,
.pd-reply-item {
    display: flex; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #F3F4F6;
}
.pd-reply:last-child,
.pd-reply-item:last-child { border-bottom: none; }

/* Empty state */
.pd-empty { text-align: center; color: #9CA3AF; font-size: 14px; padding: 32px 0; margin: 0; }

/* ════════════════════════════════════════
   RELATED PRODUCTS — 5-column grid
════════════════════════════════════════ */
.pd-related,
.pd-related-section { margin-top: 0; }

.pd-related__head,
.pd-related-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 2px solid #F3F4F6;
}

.pd-related__title,
.pd-related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px; font-weight: 700; color: #111827; margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.pd-related__title i,
.pd-related-title i { color: #dc2626; font-size: 16px; }

.pd-related__more {
    font-size: 13px; font-weight: 600; color: #dc2626;
    text-decoration: none;
    display: flex; align-items: center; gap: 4px; transition: gap .15s;
}
.pd-related__more:hover { color: #b91c1c; gap: 8px; }

.pd-related__grid,
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.pd-related__grid .product-img-wrap,
.pd-related-grid .product-img-wrap {
    height: 180px;
    padding: 10px;
    box-sizing: border-box;
}

.pd-related__grid .product-body,
.pd-related-grid .product-body {
    padding: 10px 12px 12px;
}

.pd-related__grid .price-current,
.pd-related-grid .price-current {
    font-size: 15px;
}

/* ════════════════════════════════════════
   BLOCK 3 — Promotions & Vouchers Box
════════════════════════════════════════ */
.pd-promos {
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    background: #f8fafc;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.pd-promos__head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.pd-promos__head i { color: var(--color-accent); font-size: 13px; }

.pd-promos__list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}

.pd-promo-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: #4B5563;
    line-height: 1.45;
}

.pd-promo-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.pd-promo-tag--gift { background: #F59E0B; }
.pd-promo-tag--free { background: #10B981; }

.pd-promo-item strong { color: var(--color-accent); font-weight: 700; }

/* ════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
════════════════════════════════════════ */
@media (max-width: 1100px) {
    .pd-related__grid,
    .pd-related-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 28px; padding: 24px;
    }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-col-left { position: static; }
    .pd-related__grid,
    .pd-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .pd-price__current,
    .pd-price-current { font-size: 38px; }
    .pd-tabs__body,
    .pd-tab-body { padding: 20px; }
    .pd-tabs__btn,
    .pd-tab-btn { padding: 11px 18px; font-size: 13px; }
}

@media (max-width: 640px) {
    .pd-page { padding: 16px 0 56px; }
    .pd-grid { padding: 16px; gap: 20px; border-radius: 10px; }
    .pd-price__current { font-size: 29px; }
    .pd-cta { grid-template-columns: 1fr; }
    .pd-cta-group { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .pd-btn-buy { grid-column: 1; grid-row: 1; }
    .pd-btn-installment { grid-column: 1; grid-row: 2; }
    .pd-btn-cart-icon { grid-column: 1; grid-row: 3; width: 100%; height: 46px; align-self: auto; }
    .pd-tabs__btn,
    .pd-tab-btn { padding: 10px 12px; font-size: 12.5px; }
    .pd-tabs__body,
    .pd-tab-body { padding: 16px; }
    .pd-commits { flex-direction: column; }
    .pd-commit { flex-direction: row; justify-content: flex-start; text-align: left; border-right: none; border-bottom: 1px solid #E5E7EB; padding: 10px 14px; }
    .pd-commit:last-child { border-bottom: none; }
    .pd-related__grid,
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 400px) {
    .pd-gallery__thumbs { gap: 6px; }
    .pd-gallery__thumb  { width: 60px; height: 60px; }
    .pd-related__grid,
    .pd-related-grid { gap: 8px; }
}

/* ════════════════════════════════════════
   DARK MODE — product detail & list page
   Overrides all hardcoded light colors
════════════════════════════════════════ */

/* ── Page structure ── */
html.dark .pd-breadcrumb-bar,
html.dark .breadcrumb-wrap {
    background: var(--color-surface);
    border-color: var(--color-border);
}
html.dark .pd-breadcrumb-bar .breadcrumb-item a,
html.dark .breadcrumb-wrap .breadcrumb-item a { color: var(--color-text-2); }
html.dark .pd-breadcrumb-bar .breadcrumb-item.active,
html.dark .breadcrumb-wrap .breadcrumb-item.active { color: var(--color-text); }
html.dark .pd-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before,
html.dark .breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before { color: var(--color-text-3); }

html.dark .pd-page { background: var(--color-bg); }

html.dark .pd-grid {
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
}

/* ── Gallery ── */
html.dark .pd-gallery__main {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-gallery__arrow {
    background: rgba(20,28,48,.85);
    border-color: var(--color-border);
    color: var(--color-text-2);
}
html.dark .pd-gallery__arrow:hover {
    background: var(--color-surface);
}
html.dark .pd-gallery-main {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-gallery__thumb {
    background: var(--color-surface);
    border-color: var(--color-border);
}
html.dark .thumb-item {
    background: var(--color-surface);
    border-color: var(--color-border);
}

/* ── Product info text ── */
html.dark .pd-info__title,
html.dark .pd-title { color: var(--color-text); }

html.dark .pd-info__brand { color: var(--color-text-2); }
html.dark .pd-info__desc  { color: var(--color-text-2); }

html.dark .pd-info__meta  { color: var(--color-text-2); }
html.dark .pd-info__sold  { color: var(--color-text-2); }
html.dark .pd-info__sep   { color: var(--color-text-3); }

/* ── Price box ── */
html.dark .pd-price {
    background: rgba(220,38,38,.08);
    border-color: rgba(220,38,38,.22);
}
html.dark .pd-price__original { color: var(--color-text-3); }

html.dark .pd-price-box {
    background: var(--color-surface);
    border-color: rgba(220,38,38,.25);
}
html.dark .pd-price-old  { color: var(--color-text-3); }

/* ── Divider ── */
html.dark .pd-divider { border-color: var(--color-border); }

/* ── Config chips ── */
html.dark .pd-config__heading { color: var(--color-text-2); }
html.dark .pd-config__label   { color: var(--color-text-3); }

html.dark .pd-chip {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-2);
}
html.dark .pd-chip:hover {
    border-color: #dc2626; color: #dc2626;
    background: rgba(220,38,38,.08);
}

/* ── Color variant cards ── */
html.dark .pd-cv__card {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-cv__card:hover:not(.is-active) {
    border-color: rgba(255,255,255,.18);
}
html.dark .pd-cv__name  { color: var(--color-text-2); }
html.dark .pd-cv__price { color: var(--color-text-3); }

/* ── Promotions box ── */
html.dark .pd-promos {
    background: var(--color-surface-2);
    border-color: rgba(255,255,255,.1);
}
html.dark .pd-promos__head { color: var(--color-text); }
html.dark .pd-promo-item   { color: var(--color-text-2); }

/* ── Commitment badges ── */
html.dark .pd-commits {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-commit {
    border-color: var(--color-border);
}
html.dark .pd-commit:hover { background: var(--color-surface); }
html.dark .pd-commit__icon {
    background: var(--color-surface);
    border-color: var(--color-border);
}
html.dark .pd-commit__text { color: var(--color-text-2); }

/* ── Quantity ── */
html.dark .pd-qty__label { color: var(--color-text-2); }
html.dark .pd-qty__ctrl  {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-qty__btn {
    background: var(--color-surface);
    color: var(--color-text-2);
}
html.dark .pd-qty__input {
    color: var(--color-text);
    border-color: var(--color-border);
}
html.dark .pd-qty__left { color: var(--color-text-3); }

/* ── CTA buttons (secondary / outlined only — keep accent colors) ── */
html.dark .pd-cta__cart {
    background: var(--color-surface-2);
    color: #dc2626;
}
html.dark .pd-cta__cart:hover {
    background: rgba(220,38,38,.12);
}

/* ── Wishlist / Share ── */
html.dark .pd-actions { border-color: var(--color-border); }
html.dark .pd-action  {
    border-color: var(--color-border);
    color: var(--color-text-2);
}

/* ── Out of stock ── */
html.dark .pd-outofstock {
    background: rgba(220,38,38,.12);
    border-color: rgba(220,38,38,.3);
}

/* ── Tabs ── */
html.dark .pd-tabs,
html.dark .pd-tabs-section {
    background: var(--color-surface);
    border-color: var(--color-border);
}
html.dark .pd-tabs__nav,
html.dark .pd-tab-nav {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-tabs__btn,
html.dark .pd-tab-btn {
    color: var(--color-text-2);
}
html.dark .pd-tabs__btn.is-active,
html.dark .pd-tabs__btn.active,
html.dark .pd-tab-btn.active {
    color: #dc2626;
    background: var(--color-surface);
}

/* ── Specs table ── */
html.dark .pd-specs tr:nth-child(odd),
html.dark .pd-specs-table tr:nth-child(odd)  { background: var(--color-surface-2); }
html.dark .pd-specs tr:nth-child(even),
html.dark .pd-specs-table tr:nth-child(even) { background: var(--color-surface); }
html.dark .pd-specs td,
html.dark .pd-specs-table td { border-color: var(--color-border); }
html.dark .pd-specs__key,
html.dark .pd-specs-key  { color: var(--color-text-2); }
html.dark .pd-specs__val,
html.dark .pd-specs-val  { color: var(--color-text); }

/* ── Description ── */
html.dark .pd-desc,
html.dark .pd-desc-content { color: var(--color-text-2); }

/* ── Review form ── */
html.dark .pd-review-form {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}
html.dark .pd-review-form__title,
html.dark .pd-review-form h5 { color: var(--color-text); }
html.dark .pd-stars-input i,
html.dark .rating-stars-input i { color: var(--color-text-3); }

/* ── Review & comment items ── */
html.dark .pd-review,
html.dark .pd-review-item { border-color: var(--color-border); }
html.dark .pd-review__name,
html.dark .pd-review-body strong { color: var(--color-text); }
html.dark .pd-review__text,
html.dark .pd-review-content { color: var(--color-text-2); }
html.dark .pd-review__time { color: var(--color-text-3); }

html.dark .pd-comment,
html.dark .pd-comment-item  { border-color: var(--color-border); }
html.dark .pd-comment__name,
html.dark .pd-comment-body strong { color: var(--color-text); }
html.dark .pd-comment__avatar,
html.dark .pd-comment-avatar {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-3);
}
html.dark .pd-replies,
html.dark .pd-comment-replies {
    background: var(--color-surface-2);
}
html.dark .pd-reply,
html.dark .pd-reply-item { border-color: var(--color-border); }

/* ── Related products heading ── */
html.dark .pd-related__head,
html.dark .pd-related-head  { border-color: var(--color-border); }
html.dark .pd-related__title,
html.dark .pd-related-title { color: var(--color-text); }

/* ── Empty state ── */
html.dark .pd-empty { color: var(--color-text-3); }


/* ── Mobile responsive dark borders ── */
@media (max-width: 640px) {
    html.dark .pd-commit { border-color: var(--color-border); }
}
