/* ══════════════════════════════════════
   b-product.css
   Product detail page styles.
   Requires: b-style.css (tokens + b-card)
══════════════════════════════════════ */

/* ══════════════════════════════════════
   OUTER WRAPPER  #product-product
══════════════════════════════════════ */
#product-product {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 56px 80px;
}

/* reset Bootstrap .container / .row if present */
#product-product .row {
  display: contents;
}

/* ══════════════════════════════════════
   PRODUCT LAYOUT — 2 column grid
══════════════════════════════════════ */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: start;
}

/* ══════════════════════════════════════
   GALLERY — LEFT COLUMN
══════════════════════════════════════ */
.pd-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  position: sticky;
  top: 24px;
}

/* thumbnail strip */
.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
}

.thumbnails li { position: relative; }

/* main image thumbnail */
.thumbnails li:first-child {
  display: none; /* main slot handled by .pd-main-img */
}

.thumbnails .image-additional a.thumbnail {
  display: block;
  width: 72px; height: 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
  padding: 0;
  text-decoration: none;
}
.thumbnails .image-additional a.thumbnail:hover,
.thumbnails .image-additional a.thumbnail.is-active {
  border-color: var(--copper);
}
.thumbnails .image-additional a.thumbnail img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.3s var(--ease);
}
.thumbnails .image-additional a.thumbnail:hover img { transform: scale(1.08); }

/* main image display area */
.pd-main-img {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}

.pd-main-img__img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 32px;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.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;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.pd-main-img:hover .pd-main-img__hint { opacity: 1; }
.pd-main-img__hint svg {
  width: 14px; height: 14px;
  stroke: var(--text-mid);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  display: block;
}

/* ══════════════════════════════════════
   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);
}

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

/* wishlist + compare bar */
.pd-actions-top {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pd-act-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pd-act-btn:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.pd-act-btn .fa { font-size: 13px; }

/* product title */
.pd-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  color: var(--indigo);
  line-height: 1.15;
  margin-bottom: 10px;
}

/* meta list (brand, code, availability) */
.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pd-meta li {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}
.pd-meta li a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid rgba(188,124,86,0.25);
  transition: border-color 0.2s;
}
.pd-meta li a:hover { border-color: var(--copper); }
.pd-meta li strong { color: var(--indigo); font-weight: 400; }

/* rating bar */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pd-stars {
  display: flex;
  gap: 2px;
}
.pd-stars .fa {
  font-size: 13px;
  color: var(--border);
}
.pd-stars .fa-star { color: var(--copper); }
.pd-rating a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.pd-rating a:hover { color: var(--copper); }
.pd-rating__sep { color: var(--border); font-size: 12px; }

/* price block */
/* price block */
.pd-price-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* inline price + strikethrough in one row */
.pd-price-block .list-unstyled {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-price-block .list-unstyled li {
  display: flex;
  align-items: baseline;
}

.pd-price-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--indigo);
  line-height: 1;
  margin: 0;
}

/* strikethrough original price — smaller, muted */
.pd-price-block [style*="line-through"] {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
}
.pd-price-ex {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ── #product div (OCMOD anchor — do not rename) ── */
#product { display: flex; flex-direction: column; gap: 8px; }

/* label above the row */
.pd-qty-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

/* qty + cart in one horizontal row */
.pd-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-qty-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 52px;
}

/* stepper block */
.pd-qty-stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.pd-qty-btn {
  width: 40px;
  background: var(--steel);
  border: none;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.pd-qty-btn:hover { background: var(--border); color: var(--indigo); }

/* qty input */
#input-quantity {
  width: 48px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--white) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--indigo);
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
  box-shadow: none !important;
}
#input-quantity::-webkit-inner-spin-button,
#input-quantity::-webkit-outer-spin-button { -webkit-appearance: none; }

/* add to cart — grows to fill remaining width */
#button-cart {
  flex: 1;
  height: 100%;
  background: var(--indigo);
  color: var(--white);
  border: none;
  border-left: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 8px;
  transition: background 0.25s var(--ease), gap 0.2s;
}
#button-cart:hover { background: var(--copper); gap: 14px; }
#button-cart svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}

/* trust badges under cart */
.pd-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.pd-trust__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
}
.pd-trust__item svg {
  width: 13px; height: 13px;
  stroke: var(--copper); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
  display: block; flex-shrink: 0;
}

/* ══════════════════════════════════════
   TABS — Description + Reviews
   (original IDs preserved for Bootstrap
   data-toggle — JS reimplemented)
══════════════════════════════════════ */
.pd-tabs-section {
  margin-top: 48px;
  background: var(--white);
  border-top: 3px solid var(--copper);
}

/* tab nav */
.nav.nav-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  /* reset Bootstrap */
  margin: 0 !important;
  border-top: none !important;
}

.nav-tabs > li {
  margin: 0;
}

.nav-tabs > li > a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-tabs > li > a:hover { color: var(--indigo); }
.nav-tabs > li.active > a,
.nav-tabs > li > a.is-active {
  color: var(--indigo);
  border-bottom-color: var(--copper);
}

/* tab panels */
.tab-content {
  padding: 36px 40px;
}

.tab-pane { display: none; }
.tab-pane.active {
  display: block;
  animation: tabFadeIn 0.55s var(--ease-out) both;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* description content */
#tab-description p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 760px;
  margin-bottom: 16px;
}
#tab-description p:last-child { margin-bottom: 0; }
#tab-description .intro { font-size: 15px; }

/* ── specification table ── */
.pd-spec-table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
  /* reset Bootstrap .table */
  margin: 0 !important;
}

.pd-spec-table thead tr td {
  padding: 10px 16px;
  background: var(--indigo);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
}

.pd-spec-table thead tr td strong {
  color: var(--white);
  font-weight: 500;
}

.pd-spec-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pd-spec-table tbody tr:last-child { border-bottom: none; }
.pd-spec-table tbody tr:hover { background: var(--steel); }

.pd-spec-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
  border: none !important;
  vertical-align: top;
}

.pd-spec-table tbody td:first-child {
  width: 160px;
  font-weight: 500;
  color: var(--indigo);
  white-space: nowrap;
  border-right: 1px solid var(--border) !important;
}

/* ── review tab ── */
#tab-review h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--indigo);
  margin-bottom: 20px;
}

/* existing reviews */
#review p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* review form (#form-review — original id preserved) */
#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: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indigo);
  /* reset Bootstrap float */
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  text-align: left !important;
}

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

#input-name,
#input-review {
  border: 1px solid var(--border) !important;
  background: var(--steel) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--indigo);
  padding: 10px 14px;
  outline: none;
  width: 100%;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: border-color 0.2s, background 0.2s;
}
#input-name:focus,
#input-review:focus {
  border-color: var(--copper) !important;
  background: var(--white) !important;
}
#input-name { height: 44px; padding: 0 14px; }
#input-review { resize: vertical; min-height: 110px; line-height: 1.7; }

/* rating radio group */
.pd-rating-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-rating-group label {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.pd-rating-stars {
  display: flex;
  gap: 4px;
}
.pd-star-radio { display: none; }
.pd-star-label {
  cursor: pointer;
  font-size: 20px;
  color: var(--border);
  transition: color 0.15s;
  line-height: 1;
}
.pd-star-label:hover,
.pd-star-label:hover ~ .pd-star-label { color: var(--copper); }
/* filled stars via JS class */
.pd-star-label.is-filled { color: var(--copper); }

/* submit button #button-review — original id preserved */
.pd-review-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
#button-review {
  height: 44px;
  padding: 0 28px;
  background: var(--indigo);
  color: var(--white);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  border-radius: 0 !important;
}
#button-review:hover { background: var(--copper); }

.help-block { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.text-danger { color: #c0392b; }

/* ══════════════════════════════════════
   RELATED PRODUCTS + TAGS
══════════════════════════════════════ */
.pd-below {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px 80px;
}

/* heading block */
.pd-related-head {
  padding-top: 48px;
  border-top: 1px solid var(--border);
  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: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}

.pd-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--indigo);
  line-height: 1.15;
  margin-bottom: 8px;
}

.pd-related-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 0;
}

/* nav buttons — top right of heading, not overlapping cards */
.pd-carousel__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-bottom: 4px; /* align to title baseline */
}

/* ── tags ── */
.pd-tags {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pd-tags__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}

.pd-tags a {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pd-tags a:hover {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

/* ══════════════════════════════════════
   ENTRY ANIMATION
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pd-gallery  { animation: fadeUp 0.55s 0.05s var(--ease-out) both; }
.pd-info     { animation: fadeUp 0.55s 0.15s var(--ease-out) both; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  #product-product { padding: 32px 32px 64px; }
  .pd-layout { grid-template-columns: 1fr 380px; gap: 28px; }
  .pd-below  { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 860px) {
  #product-product { padding: 20px 16px 56px; }
  .b-bc .breadcrumb { padding: 0 20px; }
  .pd-below { padding-left: 20px; padding-right: 20px; padding-bottom: 56px; }

  .pd-layout { grid-template-columns: 1fr; }

  .pd-gallery {
    grid-template-columns: 1fr;
    position: static;
  }
  .thumbnails {
    flex-direction: row;
    flex-wrap: wrap;
    order: 2;
  }
  .pd-main-img { order: 1; }

  /* ── tabs: stacked vertical on mobile ── */
  .nav.nav-tabs {
    flex-direction: column;
    padding: 0;
    border-bottom: none;
    gap: 0;
  }

  .nav-tabs > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-tabs > li:first-child {
    border-top: 1px solid var(--border);
  }

  .nav-tabs > li > a {
    height: auto;
    padding: 14px 20px;
    width: 100%;
    justify-content: space-between;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
    letter-spacing: 1.5px;
  }

  /* active — copper left bar instead of bottom underline */
  .nav-tabs > li.active > a,
  .nav-tabs > li > a.is-active {
    border-bottom-color: transparent;
    border-left-color: var(--copper);
    background: var(--steel);
  }

  /* chevron indicator via ::after */
  .nav-tabs > li > a::after {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s var(--ease), border-color 0.2s;
  }
  .nav-tabs > li.active > a::after,
  .nav-tabs > li > a.is-active::after {
    transform: rotate(-135deg);
    border-color: var(--copper);
  }

  .tab-content { padding: 24px 20px; }

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

@media (max-width: 480px) {
  .pd-gallery { grid-template-columns: 56px 1fr; }
  .thumbnails { flex-direction: column; }
  .thumbnails .image-additional a.thumbnail { width: 56px; height: 56px; }
}


/* ══════════════════════════════════════
   RELATED PRODUCTS CAROUSEL
══════════════════════════════════════ */
.pd-carousel {
  position: relative;
  overflow: hidden;
  background: var(--border); /* gap colour */
}

/* edge fade — shows there's more content */
.pd-carousel::before,
.pd-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s;
}
.pd-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--steel), transparent);
}
.pd-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--steel), transparent);
}
.pd-carousel.at-start::before { opacity: 0; }
.pd-carousel.at-end::after   { opacity: 0; }

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

/* each card — width set by JS */
.pd-carousel__track .b-card {
  flex: 0 0 auto;
  animation: none; /* reset nth-child animation */
}

/* nav buttons — inline in heading, not overlapping */
.pd-carousel__btn {
  width: 36px; height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--indigo);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.pd-carousel__btn:hover {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}
.pd-carousel__btn.is-disabled {
  opacity: 0.28;
  pointer-events: none;
}

/* ── responsive visible cards ──
   ≥1024: 5  |  860-1024: 4  |  600-860: 3  |  <600: 2
*/
@media (max-width: 860px) {
  .pd-related-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pd-carousel__nav { align-self: flex-end; }
}


/* =========================
   Related Section
   ========================= */

.related {
    padding: 18px 0 8px;
    margin-top: 60px;
}
.related-title {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    color: var(--ink-900);
}
/* Owl stage padding for edge breathing */

.related-carousel .owl-stage-outer {
    padding: 6px 0 18px;
}
/* =========================
   Product Card
   ========================= */

.related-carousel .prod-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--barik-100);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.related-carousel .prod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: var(--barik-200);
}
.prod-img {
    display: block;
    background: var(--barik-50);
}
.prod-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .25s ease;
}
.prod-card:hover .prod-img img {
    transform: scale(1.03);
}
.prod-body {
    padding: 12px 12px 14px;
}
.prod-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1;
    color: var(--barik-700);
    background: var(--barik-50);
    border: 1px solid var(--barik-100);
    padding: 7px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.prod-name {
    display: inline-block;
    width: 100%;
    color: var(--ink-900);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 10px;
    /* nice clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-name:hover {
    color: var(--barik-600);
}
.muted {
    color: var(--muted);
    font-weight: 400;
}
.prod-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.star {
    font-size: 14px;
    line-height: 1;
    color: #cbd5e1;
}
.star.is-on {
    color: #f59e0b;
    /* keep classic rating color */
}
.prod-score {
    font-size: 12px;
    color: var(--ink-700);
    display: none;
}
.prod-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.prod-price strong {
    color: var(--ink-900);
    font-size: 16px;
}
.strike {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 13px;
}


/* button */
.btn-card {
    width: 100%;
    border-radius: 0;
    padding: 12px 12px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.btn-card:hover {
    background: var(--barik-800);
    border-color: var(--barik-800);
    transform: translateY(-1px);
}
.btn-card:active {
    transform: translateY(0);
}
.btn-card span {
    margin-left: 6px;
}
/* =========================
   Owl nav + dots (Barik style)
   ========================= */

.related-carousel .owl-nav {
    position: absolute;
    top: -52px;
    right: 0;
    display: flex;
    gap: 10px;
}
.related-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--barik-100) !important;
    background: #000 !important;
    box-shadow: 0 8px 20px rgba(11, 35, 68, .08);
    color: #fff !important;
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.related-carousel .owl-nav button:hover {
    transform: translateY(-1px);
    border-color: #ff0000 !important;
    background: #ff0000 !important;
}
.related-carousel .owl-nav button:active {
    transform: translateY(0);
}
.related-carousel .owl-nav button span {
    font-size: 22px;
    line-height: 1;
}
.related-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.related-carousel .owl-dot span {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: block;
    background: #aaa;
    transition: width .18s ease, background .18s ease, transform .18s ease;
}
.related-carousel .owl-dot.active span {
    width: 26px;
    background: #000;
}
.related-carousel .owl-dot:hover span {
    transform: translateY(-1px);
}
/* keep each item full height (if you want equal heights) */

.related-carousel .owl-item {
    display: flex;
}
.related-carousel .owl-item .prod-card {
    width: 100%;
}
.related-carousel .owl-nav button {
    border-radius: 0;
}
.related-carousel {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}
.related-carousel .owl-stage {
    display: flex;
}
.related-carousel .owl-item {
    touch-action: pan-y;
}
/*RESPONSIVE*/

@media (max-width: 520px) {
    .related-title {
        font-size: 20px;
        text-align: left;
        margin-bottom: 21px;
    }
    .prod-name {
        font-size: 14px;
    }
}
