/*
 * ═══════════════════════════════════════════════════════════════
 *  product.css — Barik Tools / Kazoku
 *  Product detail page  (#product-product)
 *  Depends on: style.css (root tokens)
 *
 *  Token ref:
 *    --primary        #a11414   --barik-50  #fef2f2
 *    --primary-dark   #7c0f0f   --barik-100 #fdecec
 *    --secondary      #1d4ed8   --barik-200 #f9d3d3
 *    --accent         #b45309   --barik-300 #f3b0b0
 * ═══════════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════
   1. OUTER WRAPPER
   ══════════════════════════════════════ */

#product-product {
    padding: 24px 0 56px;
}

#product-product .row {
    display: block; /* #content is col-sm-12 — no sidebar grid needed */
}

/* ══════════════════════════════════════
   2. MAIN LAYOUT  .pd-layout
   gallery | info  — 2-col grid
   ══════════════════════════════════════ */

.pd-layout {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

/* ══════════════════════════════════════
   3. GALLERY  .pd-gallery
   ══════════════════════════════════════ */

.pd-gallery {
    display: flex;
    gap: 12px;
    position: sticky;
    top: 24px;
    align-self: start;
}

/* Thumbnail strip — vertical, left of main image */
.pd-gallery .thumbnails {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 64px;
    flex-shrink: 0;
}

.pd-gallery .thumbnails li a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-soft, #e5e7eb);
    transition: border-color 180ms ease;
    background: var(--bg-alt, #f8fafc);
}

.pd-gallery .thumbnails li a img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

.pd-gallery .thumbnails li.is-active a,
.pd-gallery .thumbnails li a:hover {
    border-color: var(--primary, #a11414);
}

/* Main image */
.pd-main-img {
    flex: 1;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-alt, #f8fafc);
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
}

.pd-main-img__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 350ms ease;
}

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

/* Zoom hint */
.pd-main-img__hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border-soft, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
    backdrop-filter: blur(6px);
}

.pd-main-img__hint svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-sub, #4b5563);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.pd-main-img:hover .pd-main-img__hint {
    opacity: 1;
}

/* ══════════════════════════════════════
   4. INFO PANEL  .pd-info
   ══════════════════════════════════════ */

.pd-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Top action buttons (wishlist / compare) ── */
.pd-actions-top {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    float: none !important;
}

.pd-act-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub, #4b5563) !important;
    background: var(--bg, #fff) !important;
    border: 1px solid var(--border-soft, #e5e7eb) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
    text-decoration: none;
}

.pd-act-btn .fa {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    transition: color 180ms ease;
}

.pd-act-btn:hover {
    color: var(--primary, #a11414) !important;
    border-color: var(--barik-300, #f3b0b0) !important;
    background: var(--barik-50, #fef2f2) !important;
}

.pd-act-btn:hover .fa {
    color: var(--primary, #a11414);
}

/* ── Product title ── */
.pd-info h1 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
    line-height: 1.2;
    margin: 0 0 14px;
}

/* ── Meta list (brand, SKU, availability) ── */
.pd-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
}

.pd-meta li a {
    color: var(--primary, #a11414);
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease;
}

.pd-meta li a:hover {
    color: var(--primary-dark, #7c0f0f);
}

.pd-meta li strong {
    font-weight: 600;
    color: var(--text-main, #111827);
}

/* ── Rating ── */
.pd-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
}

.pd-stars {
    display: flex;
    gap: 1px;
}

.pd-stars .fa-stack {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 14px;
}

.pd-stars .fa-star,
.pd-stars .fa-star-half-o {
    color: var(--accent, #b45309);
}

.pd-stars .fa-star-o {
    color: var(--border-soft, #e5e7eb);
}

.pd-rating a {
    color: var(--text-muted, #9ca3af);
    text-decoration: none;
    transition: color 150ms ease;
}

.pd-rating a:hover {
    color: var(--primary, #a11414);
    text-decoration: underline;
}

.pd-rating__sep {
    color: var(--border-soft, #e5e7eb);
}

/* ── Price block ── */
.pd-price-block {
    margin-bottom: 22px;
    padding: 16px 0;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    border-bottom: 1px solid var(--border-soft, #e5e7eb);
}

.pd-price-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

/* Main price */
.pd-price-block h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--primary, #a11414);
    letter-spacing: -0.02em;
    margin: 0;
    border: none;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}

/* Special / original price */
.pd-price-block .price-old,
.pd-price-block s {
    font-size: 16px;
    color: var(--text-muted, #9ca3af);
    text-decoration: line-through;
    font-weight: 400;
}

.pd-price-block .price-tax {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
}

/* Promo / discount tag */
.pd-price-block .price-tag,
.pd-price-block .label-special {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ── Qty + ATC ── */
.pd-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.pd-qty-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    float: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: auto;
}

.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Stepper */
.pd-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-alt, #f8fafc);
    flex-shrink: 0;
}

.pd-qty-btn {
    width: 38px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-sub, #4b5563);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease, color 150ms ease;
    line-height: 1;
    flex-shrink: 0;
}

.pd-qty-btn:hover {
    background: var(--barik-50, #fef2f2);
    color: var(--primary, #a11414);
}

.pd-qty-stepper .form-control {
    width: 48px !important;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border-soft, #e5e7eb);
    border-right: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 0 !important;
    background: var(--bg, #fff);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main, #111827);
    padding: 0;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.pd-qty-stepper .form-control::-webkit-outer-spin-button,
.pd-qty-stepper .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.pd-qty-stepper .form-control:focus {
    outline: none;
    border-color: var(--border-soft, #e5e7eb) !important;
    box-shadow: none !important;
}

/* ATC button */
#button-cart,
.pd-info .btn-primary.btn-lg {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    height: 44px;
    background: linear-gradient(to right,
        var(--primary, #a11414),
        var(--primary-dark, #7c0f0f)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(161, 20, 20, .28) !important;
    cursor: pointer;
    transition: background 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
}

#button-cart:hover,
.pd-info .btn-primary.btn-lg:hover {
    background: linear-gradient(to right,
        var(--primary-dark, #7c0f0f), #3c0707) !important;
    box-shadow: 0 8px 24px rgba(161, 20, 20, .36) !important;
}

#button-cart svg {
    flex-shrink: 0;
}

/* ── Trust badges ── */
.pd-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    margin-top: 6px;
}

.pd-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
}

.pd-trust__item svg {
    width: 14px;
    height: 14px;
    stroke: var(--barik-400, #e88080);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   5. COUPON BLOCK  #hpcm
   ══════════════════════════════════════ */

#hpcm {
    margin: 0 0 16px;
}

.hpcm-coupon-container {
    border: 1px dashed var(--barik-200, #f9d3d3);
    border-radius: 10px;
    background: var(--barik-50, #fef2f2);
    padding: 12px 14px;
}

.hpcm-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary, #a11414);
    margin-bottom: 8px;
}

.hpcm-minicoupons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mini-coupon-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--barik-300, #f3b0b0);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #a11414);
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.mini-coupon-item:hover {
    background: var(--barik-100, #fdecec);
    border-color: var(--primary, #a11414);
}

.mini-coupon-item .mini-coupon-icon {
    font-size: 11px;
    color: var(--barik-400, #e88080);
}

/* Full coupon detail cards */
.hpcm-coupon h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    margin: 0 0 4px;
    border: none;
    padding: 0;
}

.hpcm-coupon > p {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin: 0 0 10px;
    line-height: 1.5;
}

.product-coupon-balloon {
    background: #fff;
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
    margin-bottom: 8px;
    overflow: hidden;
}

.coupon-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.coupon-store-info {
    flex: 1;
    min-width: 0;
}

.coupon-store-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #a11414);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coupon-store-orders {
    font-size: 12px;
    color: var(--text-sub, #4b5563);
    margin: 2px 0;
    line-height: 1.4;
}

.coupon-store-time {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
}

.coupon-store-get {
    flex-shrink: 0;
}

.coupon-store-get-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--barik-300, #f3b0b0);
    background: var(--barik-50, #fef2f2);
    color: var(--primary, #a11414);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.coupon-store-get-inner:hover {
    background: var(--primary, #a11414);
    border-color: var(--primary, #a11414);
    color: #fff;
}

/* ══════════════════════════════════════
   6. TABS  .pd-tabs-section
   ══════════════════════════════════════ */

.pd-tabs-section {
    border-top: 1px solid var(--border-soft, #e5e7eb);
    padding-top: 32px;
}

/* Tab nav */
.pd-tabs-section .nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-soft, #e5e7eb);
}

.pd-tabs-section .nav-tabs > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #9ca3af);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 180ms ease, border-color 180ms ease;
}

.pd-tabs-section .nav-tabs > li > a:hover {
    color: var(--text-sub, #4b5563);
    text-decoration: none;
}

.pd-tabs-section .nav-tabs > li.active > a {
    color: var(--primary, #a11414);
    border-bottom-color: var(--primary, #a11414);
    font-weight: 600;
}

/* Tab content */
.pd-tabs-section .tab-content {
    min-height: 80px;
}

.pd-tabs-section .tab-pane {
    display: none;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-sub, #4b5563);
/*    white-space: pre-line;*/
}

.pd-tabs-section .tab-pane.active {
    display: block;
}

/* ══════════════════════════════════════
   7. REVIEW FORM
   ══════════════════════════════════════ */

#tab-review h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #111827);
    margin: 24px 0 16px;
    padding: 0;
    border: none;
    letter-spacing: -0.01em;
}

#tab-review p {
    font-size: 14px;
    color: var(--text-sub, #4b5563);
    margin-bottom: 16px;
}

#tab-review .form-horizontal .form-group {
    margin-bottom: 18px;
}

#tab-review .col-sm-12 {
    float: none;
    width: auto;
    padding: 0;
}

#tab-review .control-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 7px;
    display: block;
}

#tab-review .form-control {
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 10px !important;
    background: var(--bg-alt, #f8fafc);
    font-size: 14px;
    color: var(--text-main, #111827);
    padding: 10px 14px;
    height: auto;
    box-shadow: none !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

#tab-review .form-control:focus {
    border-color: var(--barik-400, #e88080) !important;
    background: var(--bg, #fff);
    box-shadow: 0 0 0 3px rgba(161, 20, 20, .10) !important;
    outline: none;
}

#tab-review textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Rating stars — pure CSS interactive */
.pd-rating-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-rating-label {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
}

.pd-rating-stars {
    display: flex;
    flex-direction: row-reverse; /* CSS-only hover trick */
    gap: 2px;
}

.pd-star-radio {
    display: none;
}

.pd-star-label {
    font-size: 26px;
    color: var(--border-soft, #e5e7eb);
    cursor: pointer;
    transition: color 120ms ease, transform 100ms ease;
    line-height: 1;
    user-select: none;
}

/* Fill on hover — all stars to the right of hovered */
.pd-rating-stars:hover .pd-star-label,
.pd-rating-stars .pd-star-label:hover,
.pd-rating-stars .pd-star-label:hover ~ .pd-star-label {
    color: var(--accent, #b45309);
    transform: scale(1.12);
}

/* Fill on checked */
.pd-star-radio:checked ~ .pd-star-label {
    color: var(--accent, #b45309);
}

/* Review submit actions */
.pd-review-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    display: flex;
    justify-content: flex-end;
}

.pd-review-actions .pull-right {
    float: none;
}

#button-review {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(to right,
        var(--primary, #a11414),
        var(--primary-dark, #7c0f0f)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(161, 20, 20, .24) !important;
    cursor: pointer;
    transition: background 200ms ease;
}

#button-review:hover {
    background: linear-gradient(to right,
        var(--primary-dark, #7c0f0f), #3c0707) !important;
}

/* Review form fieldset (captcha) */
#tab-review fieldset {
    border: none;
    padding: 0;
    margin: 0 0 16px;
}

#tab-review legend {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    border: none;
    border-bottom: 1px solid var(--border-soft, #e5e7eb);
    width: 100%;
    padding: 0 0 8px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#tab-review legend::before {
    content: '';
    width: 14px;
    height: 2px;
    background: var(--primary, #a11414);
    border-radius: 999px;
    flex-shrink: 0;
}

#tab-review .help-block {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin-top: 5px;
}

#tab-review .text-danger {
    color: #dc2626;
}

/* ══════════════════════════════════════
   8. RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .pd-layout {
        grid-template-columns: 380px minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 860px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pd-gallery {
        position: static;
        max-width: 480px;
        margin: 0 auto;
    }

    .pd-main-img {
        max-height: 360px;
    }
}

@media (max-width: 560px) {
    .pd-gallery {
        flex-direction: column-reverse;
    }

    .pd-gallery .thumbnails {
        flex-direction: row;
        width: auto;
        overflow-x: auto;
    }

    .pd-gallery .thumbnails li a img {
        width: 56px;
        height: 56px;
    }

    .pd-qty-row {
        flex-wrap: wrap;
    }

    #button-cart,
    .pd-info .btn-primary.btn-lg {
        width: 100%;
    }

    .pd-tabs-section .nav-tabs > li > a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ══════════════════════════════════════
   9. LIGHTBOX  .b-lightbox
   ══════════════════════════════════════ */

.b-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 14, 28, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    backdrop-filter: blur(6px);
}

.b-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.b-lightbox__img-wrap {
    position: relative;
    max-width: 82vw;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b-lightbox__img {
    max-width: 82vw;
    max-height: 86vh;
    object-fit: contain;
    display: block;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 300ms ease, opacity 250ms ease;
}

.b-lightbox.is-open .b-lightbox__img {
    transform: scale(1);
    opacity: 1;
}

.b-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease;
    z-index: 2;
}

.b-lightbox__close:hover { background: rgba(255,255,255,.22); }

.b-lightbox__close svg,
.b-lightbox__nav svg {
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.b-lightbox__close svg { width: 16px; height: 16px; }

.b-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease;
    z-index: 2;
}

.b-lightbox__nav:hover { background: rgba(255,255,255,.20); }
.b-lightbox__nav svg  { width: 18px; height: 18px; }
.b-lightbox__nav--prev { left: -60px; }
.b-lightbox__nav--next { right: -60px; }

.b-lightbox__counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,.38);
}

/* ══════════════════════════════════════
   10. PRICE EXTRAS  .pd-price-ex
   ══════════════════════════════════════ */

.pd-price-ex {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
}

/* Inline strikethrough original price from OC markup */
.pd-price-block [style*="line-through"],
.pd-price-block .price-old {
    font-size: 16px;
    color: var(--text-muted, #9ca3af);
    text-decoration: line-through;
    font-weight: 400;
}

/* ══════════════════════════════════════
   11. SPEC TABLE  .pd-spec-table
   ══════════════════════════════════════ */

.pd-spec-table {
    width: 100%;
    max-width: 680px;
    border-collapse: collapse;
    margin: 0 !important;
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
}

.pd-spec-table thead tr td {
    padding: 10px 16px;
    background: var(--text-main, #111827);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
}

.pd-spec-table thead tr td strong { color: #fff; font-weight: 600; }

.pd-spec-table tbody tr {
    border-bottom: 1px solid var(--border-soft, #e5e7eb);
    transition: background 150ms ease;
}

.pd-spec-table tbody tr:last-child { border-bottom: none; }

.pd-spec-table tbody tr:hover { background: var(--barik-50, #fef2f2); }

.pd-spec-table tbody td {
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-sub, #4b5563);
    line-height: 1.6;
    border: none !important;
    vertical-align: top;
}

.pd-spec-table tbody td:first-child {
    width: 160px;
    font-weight: 600;
    color: var(--text-main, #111827);
    white-space: nowrap;
    border-right: 1px solid var(--border-soft, #e5e7eb) !important;
}

/* ══════════════════════════════════════
   12. REVIEW — existing + form specifics
   ══════════════════════════════════════ */

#review p {
    font-size: 14px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 16px;
}

#form-review .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

#form-review .control-label,
#form-review label.control-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    text-align: left !important;
}

#form-review .col-sm-12 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

#input-name,
#input-review {
    border: 1px solid var(--border-soft, #e5e7eb) !important;
    background: var(--bg-alt, #f8fafc) !important;
    font-size: 14px;
    color: var(--text-main, #111827);
    padding: 10px 14px;
    outline: none;
    width: 100%;
    box-shadow: none !important;
    border-radius: 10px !important;
    transition: border-color 150ms ease, background 150ms ease,
                box-shadow 150ms ease;
}

#input-name:focus,
#input-review:focus {
    border-color: var(--barik-400, #e88080) !important;
    background: var(--bg, #fff) !important;
    box-shadow: 0 0 0 3px rgba(161, 20, 20, .10) !important;
}

#input-name   { height: 44px; padding: 0 14px; }
#input-review { resize: vertical; min-height: 110px; line-height: 1.7; }

/* ══════════════════════════════════════
   13. BELOW FOLD WRAPPER  .pd-below
   ══════════════════════════════════════ */

.pd-below {
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 0 16px 80px;
}

/* ── Related section heading ── */
.pd-related-head {
    padding-top: 48px;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.pd-related-head__text { flex: 1; }

.pd-related-kicker {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary, #a11414);
    margin-bottom: 8px;
}

.pd-related-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
    line-height: 1.15;
    margin: 0 0 6px;
}

.pd-related-sub {
    font-size: 14px;
    color: var(--text-muted, #9ca3af);
    line-height: 1.6;
    max-width: 560px;
    margin: 0;
}

/* ── Carousel nav buttons (top-right of heading) ── */
.pd-carousel__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.pd-carousel__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg, #fff);
    border: 1px solid var(--border-soft, #e5e7eb);
    color: var(--text-sub, #4b5563);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease, border-color 180ms ease,
                color 180ms ease;
    flex-shrink: 0;
}

.pd-carousel__btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.pd-carousel__btn:hover {
    background: var(--primary, #a11414);
    border-color: var(--primary, #a11414);
    color: #fff;
}

.pd-carousel__btn.is-disabled {
    opacity: 0.28;
    pointer-events: none;
}

/* ── Carousel track ── */
.pd-carousel {
    position: relative;
    overflow: hidden;
}

.pd-carousel::before,
.pd-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.pd-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg, #fff), transparent);
}

.pd-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg, #fff), transparent);
}

.pd-carousel.at-start::before { opacity: 0; }
.pd-carousel.at-end::after   { opacity: 0; }

.pd-carousel__track {
    display: flex;
    gap: 14px;
    transition: transform 420ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pd-carousel__track .b-card {
    flex: 0 0 auto;
    animation: none; /* reset nth-child fadeUp */
}

/* ══════════════════════════════════════
   14. RELATED — Owl Carousel variant
   .related / .related-carousel / .prod-card
   ══════════════════════════════════════ */

.related {
    padding: 18px 0 8px;
    margin-top: 48px;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
    text-align: center;
    margin: 0 0 12px;
}

.related-carousel .owl-stage-outer {
    padding: 6px 0 18px;
}

.related-carousel .owl-stage { display: flex; }

.related-carousel .owl-item {
    display: flex;
    touch-action: pan-y;
}

.related-carousel .owl-item .prod-card { width: 100%; }

.related-carousel {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* ── Prod card ── */
.prod-card {
    position: relative;
    background: var(--bg, #fff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    transition: transform 180ms ease, box-shadow 180ms ease,
                border-color 180ms ease;
    display: flex;
    flex-direction: column;
}

.prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .11);
    border-color: var(--barik-200, #f9d3d3);
}

.prod-img {
    display: block;
    background: var(--barik-50, #fef2f2);
    overflow: hidden;
}

.prod-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 250ms ease;
}

.prod-card:hover .prod-img img { transform: scale(1.03); }

.prod-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category pill */
.prod-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--barik-700, #7c0f0f);
    background: var(--barik-50, #fef2f2);
    border: 1px solid var(--barik-100, #fdecec);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    width: fit-content;
}

/* Product name */
.prod-name {
    color: var(--text-main, #111827);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 140ms ease;
}

.prod-name:hover { color: var(--primary, #a11414); }

.muted {
    color: var(--text-muted, #9ca3af);
    font-weight: 400;
}

/* Rating */
.prod-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.star {
    font-size: 13px;
    line-height: 1;
    color: var(--border-soft, #e5e7eb);
}

.star.is-on { color: var(--accent, #b45309); }

.prod-score {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    display: none;
}

/* Price */
.prod-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: auto;
}

.prod-price strong {
    color: var(--primary, #a11414);
    font-size: 16px;
    font-weight: 700;
}

.strike {
    color: var(--text-muted, #9ca3af);
    text-decoration: line-through;
    font-size: 13px;
}

/* ATC button on related card */
.btn-card {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 0 0 var(--radius-lg, 18px) var(--radius-lg, 18px);
    background: linear-gradient(to right,
        var(--primary, #a11414),
        var(--primary-dark, #7c0f0f));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 200ms ease;
    margin-top: auto;
}

.btn-card:hover {
    background: linear-gradient(to right,
        var(--primary-dark, #7c0f0f), #3c0707);
}

.btn-card span { margin-left: 4px; }

/* ── Owl nav + dots ── */
.related-carousel .owl-nav {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    gap: 8px;
}

.related-carousel .owl-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    border: 1px solid var(--border-soft, #e5e7eb) !important;
    background: var(--bg, #fff) !important;
    color: var(--text-sub, #4b5563) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
    transition: background 180ms ease, border-color 180ms ease,
                color 180ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-carousel .owl-nav button:hover {
    background: var(--primary, #a11414) !important;
    border-color: var(--primary, #a11414) !important;
    color: #fff !important;
}

.related-carousel .owl-nav button span {
    font-size: 20px;
    line-height: 1;
}

.related-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.related-carousel .owl-dot span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: block;
    background: var(--border-soft, #e5e7eb);
    transition: width 180ms ease, background 180ms ease;
}

.related-carousel .owl-dot.active span {
    width: 24px;
    background: var(--primary, #a11414);
}

.related-carousel .owl-dot:hover span {
    background: var(--barik-400, #e88080);
}

/* ══════════════════════════════════════
   15. TAGS  .pd-tags
   ══════════════════════════════════════ */

.pd-tags {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pd-tags__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    margin-right: 4px;
}

.pd-tags a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background: var(--bg, #fff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-sub, #4b5563);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease,
                border-color 180ms ease;
}

.pd-tags a:hover {
    background: var(--barik-50, #fef2f2);
    color: var(--primary, #a11414);
    border-color: var(--barik-300, #f3b0b0);
}

/* ══════════════════════════════════════
   16. ENTRY ANIMATIONS
   ══════════════════════════════════════ */

@keyframes pd-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pd-gallery { animation: pd-fadeUp 500ms 50ms ease both; }
.pd-info    { animation: pd-fadeUp 500ms 130ms ease both; }

/* ══════════════════════════════════════
   17. RESPONSIVE ADDITIONS
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .pd-below { padding-left: 20px; padding-right: 20px; }
    .pd-layout { grid-template-columns: 360px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 860px) {
    .pd-related-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .pd-carousel__nav { align-self: flex-end; }

    .b-lightbox__nav--prev { left: 8px; }
    .b-lightbox__nav--next { right: 8px; }
}

@media (max-width: 520px) {
    .related-title {
        font-size: 18px;
        text-align: left;
    }
    .prod-name { font-size: 13px; }
}


/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.b-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,35,62,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(4px);
}
.b-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.b-lightbox__img-wrap {
  position: relative;
  max-width: 80vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-lightbox__img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
  opacity: 0;
  display: block;
}
.b-lightbox.is-open .b-lightbox__img {
  transform: scale(1);
  opacity: 1;
}

/* close */
.b-lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.b-lightbox__close:hover { background: rgba(255,255,255,0.2); }
.b-lightbox__close svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  display: block;
}

/* prev / next */
.b-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.b-lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.b-lightbox__nav--prev { left: -64px; }
.b-lightbox__nav--next { right: -64px; }
.b-lightbox__nav svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}

/* counter */
.b-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
}
