/* ==========================================================================
   Product page (views/product-detail.ejs + partials review-section,
   product-infographic). Built on the --tb-* tokens and components in ui.css.
   Mobile first; breakpoints 640 / 1024 / 1280.
   ========================================================================== */

/* The global CSS puts overflow-x:hidden on html, body, main, section and .container,
   which turns them into scroll containers and breaks position:sticky.
   `clip` still prevents sideways scrolling without that side effect. */
html.product-page-open,
body.product-page-open,
.product-page-open .main-content { overflow-x: clip; }
.pdp,
.pdp > .container { overflow: visible; }
html.pdp-lightbox-open, html.pdp-lightbox-open body { overflow: hidden; }

.pdp {
  padding: var(--tb-s4) 0 var(--tb-s8);
  color: var(--tb-ink);
  background: var(--tb-canvas);
}
/* Paint html/body/main with the same token so short PDPs show no two-tone band above the footer */
html:has(.pdp), html:has(.pdp) body, html:has(.pdp) .main-content { background: var(--tb-canvas); }
/* Same page width as home and listings (global .container: --container-width / --container-padding),
   so left edges do not jump when moving between pages. */
.pdp a { color: inherit; }
.pdp-muted { color: var(--tb-ink-3); }
.pdp-h2 { margin: 0 0 var(--tb-s4); font-size: var(--tb-fs-xl); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--tb-ink); }
.pdp-h3 { margin: var(--tb-s5) 0 var(--tb-s2); font-size: var(--tb-fs-sm); font-weight: 600; letter-spacing: 0.01em; color: var(--tb-ink); }
.pdp-h3:first-child { margin-top: 0; }
@media (min-width: 1024px) { .pdp-h2 { font-size: var(--tb-fs-2xl); } }

/* ---------- Breadcrumb: one line, the product name truncates ---------- */
.pdp-crumbs { margin-bottom: var(--tb-s4); font-size: 13px; color: var(--tb-ink-3); }
.pdp-crumbs ol { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; white-space: nowrap; min-width: 0; }
.pdp-crumbs li { display: flex; align-items: center; gap: 6px; flex: none; }
.pdp-crumbs li + li::before { content: '›'; color: var(--tb-line-strong); font-size: 15px; line-height: 1; }
.pdp-crumbs li:last-child { flex: 1 1 auto; min-width: 0; }
.pdp-crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; color: var(--tb-ink-2); }
.pdp-crumbs a { text-decoration: none; color: var(--tb-ink-3); padding: 6px 0; }
.pdp-crumbs a:hover { color: var(--tb-ink); text-decoration: underline; }

/* ---------- Main grid ---------- */
.pdp-grid { display: grid; gap: var(--tb-s5); align-items: start; }
.pdp-media, .pdp-info { min-width: 0; }
@media (min-width: 1024px) {
  .pdp-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: var(--tb-s7); }
  .pdp-media { position: sticky; top: calc(var(--pdp-sticky-top, 80px) + var(--tb-s4)); }
  /* The sticky gallery (image + thumbnails) always fits the viewport height; the buy box takes the rest */
  .pdp-grid { grid-template-columns: minmax(0, min(53%, max(420px, calc(100vh - 210px)))) minmax(360px, 1fr); }
}
@media (min-width: 1280px) { .pdp-grid { gap: var(--tb-s8); } }

/* ---------- Gallery ---------- */
.pdp-gallery { display: grid; gap: var(--tb-s3); }
.pdp-gallery__main {
  position: relative; overflow: hidden; border-radius: var(--tb-r-lg);
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  aspect-ratio: 1 / 1;
}
/* No photo: a calm, shorter placeholder instead of a large empty square */
.pdp-gallery__main--empty { aspect-ratio: 4 / 3; max-height: 420px; }
@media (max-width: 639.98px) {
  .pdp-gallery__main { aspect-ratio: 1 / 0.92; }
  .pdp-gallery__main--empty { aspect-ratio: 2 / 1; }
}
.pdp-gallery__track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.pdp-gallery__track::-webkit-scrollbar { display: none; }
.pdp-gallery__track:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: -2px; border-radius: var(--tb-r-lg); }
.pdp-slide {
  position: relative; flex: 0 0 100%; height: 100%; margin: 0;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: block; overflow: hidden; cursor: zoom-in;
  background: var(--tb-surface);
}
.pdp-slide > img { box-sizing: border-box; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.pdp-slide--photo > img { object-fit: cover; }
/* Official cutout on a stage softly tinted with the finish colour */
.pdp-slide--cutout {
  --tb-tint: var(--tb-stage);
  background:
    radial-gradient(110% 85% at 50% 100%, color-mix(in srgb, var(--tb-tint) 28%, transparent) 0%, transparent 72%),
    var(--tb-stage);
}
.pdp-slide--cutout > img { padding: 9% 12%; filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.16)); }
.pdp-slide--stock > img { padding: 10%; }
/* EU energy label: the whole label on white in both themes (it is printed artwork), never cropped or tinted */
.pdp-slide--label { background: #fff; }
.pdp-slide--label > img { padding: 3% 4%; object-fit: contain; }
/* The Black Friday badge would cover the label's QR code: hidden while the label is on stage */
.pdp-gallery__main.is-label > .tb-bfbadge { opacity: 0; visibility: hidden; transition: opacity .15s var(--tb-ease), visibility 0s .15s; }
.pdp-gallery__main--bfbadge.is-label .pdp-gallery__zoom { top: 12px; }
.pdp-slide.is-broken { background: var(--tb-stage); }
.pdp-slide.is-broken > img { visibility: hidden; }
.pdp-slide__note {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--tb-ink-2); background: color-mix(in srgb, var(--tb-surface) 82%, transparent);
  border: 1px solid var(--tb-line);
}
.pdp-gallery__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--tb-ink-3); background: var(--tb-stage); font-size: var(--tb-fs-sm); }
.pdp-gallery__empty i { font-size: 2.5rem; }

.pdp-gallery__nav, .pdp-gallery__zoom {
  position: absolute; z-index: 3; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--tb-surface) 92%, transparent); color: var(--tb-ink);
  border: 1px solid var(--tb-line); box-shadow: var(--tb-shadow-1);
  transition: background-color .15s var(--tb-ease), opacity .15s var(--tb-ease);
}
.pdp-gallery__nav { top: 50%; transform: translateY(-50%); }
.pdp-gallery__nav--prev { left: 12px; }
.pdp-gallery__nav--next { right: 12px; }
.pdp-gallery__zoom { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 13px; }
.pdp-gallery__nav:hover, .pdp-gallery__zoom:hover { background: var(--tb-surface); }
.pdp-gallery__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--tb-ink-2); background: color-mix(in srgb, var(--tb-surface) 85%, transparent); border: 1px solid var(--tb-line);
}
@media (hover: hover) and (min-width: 1024px) {
  .pdp-gallery__nav { opacity: 0; }
  .pdp-gallery__main:hover .pdp-gallery__nav, .pdp-gallery__nav:focus-visible { opacity: 1; }
}
@media (max-width: 639.98px) { .pdp-gallery__nav { display: none; } }

/* Black Friday round badge (partials/bf-badge.ejs) in the top-right corner of the stage, above the slides
   (pointer-events: none, so swipe / click-to-zoom still reach them); the zoom button moves under it. */
.pdp-gallery__main--bfbadge { --pdp-bfb: 76px; }
@media (min-width: 640px) { .pdp-gallery__main--bfbadge { --pdp-bfb: 120px; } }
@media (min-width: 1024px) { .pdp-gallery__main--bfbadge { --pdp-bfb: 140px; } }
.pdp-gallery__main > .tb-bfbadge.tb-bfbadge--pdp {
  top: 10px; right: 10px; width: var(--pdp-bfb, 120px); height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}
.pdp-gallery__main--bfbadge .pdp-gallery__zoom { top: calc(10px + var(--pdp-bfb, 120px) + 8px); }
.pdp-gallery__main--bfbadge .pdp-perk {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 0;
  font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--tb-ink-2);
}
.pdp-perk > i { color: var(--tb-brand-text); font-size: 12px; }
.pdp-perk__code { color: var(--tb-ink-3, var(--tb-ink-2)); font-weight: 400; }
.pdp-perk__code::before { content: "·"; margin-right: 8px; }

.pdp-gallery__dots { display: flex; justify-content: center; gap: 6px; }
.pdp-gallery__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tb-line-strong); transition: width .2s var(--tb-ease), background-color .2s; }
.pdp-gallery__dot.active { width: 18px; border-radius: 3px; background: var(--tb-ink-2); }
.pdp-gallery__thumbs { display: none; }
@media (min-width: 640px) {
  .pdp-gallery__dots { display: none; }
  .pdp-gallery__thumbs { display: flex; gap: var(--tb-s2); overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .pdp-gallery__thumbs::-webkit-scrollbar { display: none; }
}
.pdp-thumb {
  --tb-tint: var(--tb-stage);
  position: relative; flex: none; width: 72px; height: 72px; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--tb-r-md); border: 1px solid var(--tb-line); background: var(--tb-surface);
  transition: border-color .15s var(--tb-ease);
}
.pdp-thumb img { box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb--cutout { background: radial-gradient(110% 85% at 50% 100%, color-mix(in srgb, var(--tb-tint) 28%, transparent), transparent 72%), var(--tb-stage); }
.pdp-thumb--cutout img, .pdp-thumb--stock img { object-fit: contain; padding: 8px; }
.pdp-thumb--label { background: #fff; }
.pdp-thumb--label img { object-fit: contain; padding: 4px; }
.pdp-thumb:hover { border-color: var(--tb-ink-3); }
.pdp-thumb.active { border-color: var(--tb-brand); box-shadow: inset 0 0 0 1px var(--tb-brand); }
.pdp-thumb__tag {
  position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px;
  font-size: 10px; font-weight: 600; color: #fff; background: rgba(15, 23, 42, 0.66);
}

/* ---------- Buy box ---------- */
.pdp-head { display: grid; gap: 6px; }
.pdp-title { margin: 0; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--tb-ink); }
.pdp-title__brand { display: block; width: fit-content; padding: 4px 0; margin-bottom: 0; font-size: var(--tb-fs-sm); font-weight: 600; letter-spacing: 0; color: var(--tb-ink-3) !important; text-decoration: none; }
.pdp-title__brand:hover { color: var(--tb-ink) !important; }
.pdp-title__name { display: block; }
.pdp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--tb-fs-md); color: var(--tb-ink-2); }
.pdp-sub__color { display: inline-flex; align-items: center; gap: 8px; }
.pdp-sub__swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--tb-line-strong); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.pdp-badge { color: var(--badge-text, var(--tb-ink-2)); background: var(--badge-bg, var(--tb-surface-2)); border-color: transparent; }
.pdp-rating { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: var(--tb-fs-sm); color: var(--tb-ink-2); text-decoration: none; }
.pdp-rating__stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.pdp-rating:hover span:last-child { text-decoration: underline; }

.pdp-price { margin-top: var(--tb-s4); padding-top: var(--tb-s4); border-top: 1px solid var(--tb-line); }
.pdp-price__promo { margin-bottom: var(--tb-s2); }
.pdp-price .tb-price__save { font-size: var(--tb-fs-sm); }
.pdp-price__vat { margin: 4px 0 0; font-size: var(--tb-fs-xs); color: var(--tb-ink-3); }
/* Energy class next to the price (Reg. (EU) 2023/1669 art. 4: class arrow + product information sheet) */
.pdp-energy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; font-size: var(--tb-fs-sm); line-height: 1.3; }
.pdp-energy__class { display: inline-flex; align-items: center; gap: 8px; color: var(--tb-ink); font-weight: 600; text-decoration: none; border-radius: 4px; }
.pdp-energy__class img { display: block; width: auto; height: 36px; }
.pdp-energy__class:hover .pdp-energy__text { text-decoration: underline; }
.pdp-energy__class:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 3px; }
/* Fallback when the EPREL arrow file is missing: same colours as the label scale */
.pdp-energy__arrow {
  --pdp-ec: #00a651; display: inline-grid; place-items: center start; height: 30px; min-width: 44px; padding: 0 16px 0 9px; box-sizing: border-box;
  font-size: 19px; font-weight: 800; color: #fff; background: var(--pdp-ec);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.pdp-energy__class--b .pdp-energy__arrow { --pdp-ec: #50b848; }
.pdp-energy__class--c .pdp-energy__arrow { --pdp-ec: #bfd730; color: #231f20; }
.pdp-energy__class--d .pdp-energy__arrow { --pdp-ec: #fff200; color: #231f20; }
.pdp-energy__class--e .pdp-energy__arrow { --pdp-ec: #fdb913; color: #231f20; }
.pdp-energy__class--f .pdp-energy__arrow { --pdp-ec: #f37021; }
.pdp-energy__class--g .pdp-energy__arrow { --pdp-ec: #ed1c24; }
.pdp-energy__sheet { color: var(--tb-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.pdp-energy__sheet:hover { color: var(--tb-ink); }
.pdp-price__addon { margin: 6px 0 0; font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-ink-2); font-variant-numeric: tabular-nums; }
.pdp-price__addon[hidden] { display: none; }

.pdp-tbi { margin-top: var(--tb-s4); border: 1px solid var(--tb-line); border-radius: var(--tb-r-md); background: var(--tb-surface); }
.pdp-tbi__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 14px;
  font-size: var(--tb-fs-sm); color: var(--tb-ink-2); cursor: pointer; list-style: none;
}
.pdp-tbi__summary::-webkit-details-marker { display: none; }
.pdp-tbi__summary strong { color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.pdp-tbi__more { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tb-brand-text); font-size: var(--tb-fs-xs); }
.pdp-tbi__more i { transition: transform .2s var(--tb-ease); }
.pdp-tbi[open] .pdp-tbi__more i { transform: rotate(180deg); }
.pdp-tbi__body { display: grid; gap: var(--tb-s3); padding: 4px 14px 14px; border-top: 1px solid var(--tb-line); padding-top: 14px; }
.pdp-tbi__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdp-tbi__logo { height: 22px; width: auto; border-radius: 4px; }
.pdp-tbi__amount { margin: 0; font-size: var(--tb-fs-sm); color: var(--tb-ink-3); }
.pdp-tbi__amount span { font-size: var(--tb-fs-lg); font-weight: 700; color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.pdp-tbi__months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tbi-calc-btn {
  min-height: 40px; border-radius: var(--tb-r-sm); border: 1px solid var(--tb-line-strong); background: var(--tb-surface);
  font: 600 var(--tb-fs-sm)/1 var(--tb-font); color: var(--tb-ink); cursor: pointer;
}
.tbi-calc-btn.active { border-color: var(--tb-brand); box-shadow: inset 0 0 0 1px var(--tb-brand); }
.pdp-tbi__note { margin: 0; font-size: var(--tb-fs-xs); color: var(--tb-ink-3); line-height: 1.5; }

/* Variant selector: one line per chip (name + price) so the buy button stays above the fold */
.pdp-variants { display: grid; gap: var(--tb-s3); margin-top: var(--tb-s4); }
.pdp-variants .tb-options { gap: 6px; }
.pdp .tb-option { color: var(--tb-ink); }
.pdp .pdp-option { min-height: 36px; padding: 5px 11px; gap: 7px; }
.pdp-option > span:not(.tb-option__swatch) { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.pdp-option small { display: inline; font-variant-numeric: tabular-nums; }
.pdp-option .tb-option__swatch { border-color: var(--tb-line-strong); }
.pdp-option[aria-current='true'] small { color: var(--tb-ink-2); }
.pdp-variants__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdp-variants__all { flex: none; width: fit-content; display: inline-flex; align-items: center; min-height: 40px; font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-brand-text) !important; text-decoration: none; padding: 0; }
.pdp-variants__all:hover { text-decoration: underline; }

/* Battery */
.pdp-battery { margin-top: var(--tb-s4); }
.pdp-battery .tb-battery-panel__cell { padding-top: 10px; padding-bottom: 10px; }
.pdp-battery__panel--single { grid-template-columns: 1fr; }
.pdp-battery .tb-battery-panel__value { font-size: var(--tb-fs-lg); font-variant-numeric: tabular-nums; }
.pdp-battery .tb-battery-panel__meter { margin-top: 2px; }
.pdp-battery__hint { font-size: var(--tb-fs-xs); font-weight: 400; color: var(--tb-ink-3); }

.pdp-note {
  display: flex; gap: 10px; margin-top: var(--tb-s4); padding: 12px 14px; border-radius: var(--tb-r-md);
  background: var(--tb-info-soft); color: var(--tb-ink-2); font-size: var(--tb-fs-sm); line-height: 1.5;
}
.pdp-note > i { color: var(--tb-info); margin-top: 3px; }
.pdp-note strong { color: var(--tb-ink); }
.pdp-note p { margin: 2px 0 0; }

/* Battery add-on (collapsed) */
.pdp-addon { margin-top: var(--tb-s4); border: 1px solid var(--tb-line); border-radius: var(--tb-r-md); background: var(--tb-surface); }
.pdp-addon__summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; }
.pdp-addon__summary::-webkit-details-marker { display: none; }
.pdp-addon__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--tb-ok-soft); color: var(--tb-ok); font-size: 14px; }
.pdp-addon__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pdp-addon__text strong { font-size: var(--tb-fs-sm); color: var(--tb-ink); }
.pdp-addon__text small { font-size: var(--tb-fs-xs); color: var(--tb-ink-3); }
.pdp-addon__chev { color: var(--tb-ink-3); font-size: 12px; transition: transform .2s var(--tb-ease); }
/* A chosen battery stays visible when the panel is collapsed */
.pdp-addon.active { border-color: var(--tb-brand); box-shadow: inset 0 0 0 1px var(--tb-brand); }
.pdp-addon.active .pdp-addon__text small { color: var(--tb-ink); font-weight: 600; }
.pdp-addon[open] .pdp-addon__chev { transform: rotate(180deg); }
.pdp-addon__body { display: grid; gap: var(--tb-s3); padding: 12px 14px 14px; border-top: 1px solid var(--tb-line); }
.pdp-addon__options { display: grid; gap: var(--tb-s2); }
.pdp-addon__options[hidden] { display: none; }
.pdp-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: var(--tb-fs-sm); font-weight: 500; color: var(--tb-ink); cursor: pointer; }
.pdp-check input, .pdp-radio input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--tb-brand); }
.pdp-radio {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--tb-line-strong); border-radius: var(--tb-r-md); background: var(--tb-surface);
}
.pdp-radio.active { border-color: var(--tb-brand); box-shadow: inset 0 0 0 1px var(--tb-brand); }
.pdp-radio__body { display: grid; gap: 2px; font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-ink); }
.pdp-radio__body small { font-size: var(--tb-fs-xs); font-weight: 400; color: var(--tb-ink-3); }
.pdp-radio__price { font-size: var(--tb-fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tb-ink); white-space: nowrap; }

/* Actions */
.pdp-cta { display: grid; gap: 10px; margin-top: var(--tb-s4); }
.pdp-cta__row { display: flex; gap: 10px; }
.pdp-cta__row .btn-add-cart-main { flex: 1; }
.pdp .tb-btn { font-size: var(--tb-fs-md); }
.pdp .tb-btn i { font-size: 0.95em; }
.pdp .btn-add-cart-main.btn-success,
.pdp-sticky .sticky-cta-btn.btn-success {
  background: var(--tb-ok-soft); color: var(--tb-ok); border-color: color-mix(in srgb, var(--tb-ok) 40%, transparent);
  box-shadow: none; transform: none;
}
.pdp .btn-add-cart-main.btn-success:hover, .pdp-sticky .sticky-cta-btn.btn-success:hover { box-shadow: none; transform: none; border-color: var(--tb-ok); }
.pdp-qty { display: inline-flex; align-items: stretch; flex: none; border: 1px solid var(--tb-line-strong); border-radius: var(--tb-r-md); background: var(--tb-surface); overflow: hidden; }
.pdp-qty button { width: 40px; border: 0; background: transparent; color: var(--tb-ink-2); cursor: pointer; font-size: 12px; }
.pdp-qty button:hover { background: var(--tb-surface-2); }
.pdp-qty input { width: 36px; border: 0; background: transparent; text-align: center; font: 600 var(--tb-fs-md)/1 var(--tb-font); color: var(--tb-ink); -moz-appearance: textfield; appearance: textfield; }
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-delivery { display: grid; gap: 4px; margin-top: var(--tb-s4); font-size: var(--tb-fs-sm); color: var(--tb-ink-2); line-height: 1.5; }
.pdp-delivery p { margin: 0; }
.pdp-delivery strong { color: var(--tb-ink); font-weight: 600; }
.pdp-delivery__stock { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.pdp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tb-ok); flex: none; }
.pdp-delivery__sep { color: var(--tb-ink-3); }
.pdp-delivery__cutoff { color: var(--tb-ink-3); font-size: var(--tb-fs-xs); }
.pdp-delivery__cutoff i { margin-right: 4px; }

.pdp-trust { margin-top: var(--tb-s5); padding-top: var(--tb-s5); border-top: 1px solid var(--tb-line); gap: 14px 16px; }
.pdp-trust li span { display: grid; gap: 1px; font-size: var(--tb-fs-xs); color: var(--tb-ink-3); }
.pdp-trust li strong { font-size: var(--tb-fs-sm); }

.pdp-secondary { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: var(--tb-s4); }
.pdp-link-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 var(--tb-fs-sm)/1 var(--tb-font); color: var(--tb-ink-2);
}
.pdp-link-btn:hover { color: var(--tb-ink); }
.pdp-link-btn.active i, .btn-wishlist.active i { color: #e11d48; }
.pdp-share { position: relative; }
.pdp-share .share-menu {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; display: none; min-width: 200px; padding: 6px;
  background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-md); box-shadow: var(--tb-shadow-2);
}
.pdp-share .share-menu.active { display: grid; }
.pdp-share .share-option {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--tb-r-sm);
  background: none; font: 500 var(--tb-fs-sm)/1 var(--tb-font); color: var(--tb-ink); text-decoration: none; cursor: pointer; text-align: left;
}
.pdp-share .share-option:hover { background: var(--tb-surface-2); }

/* ---------- Details ---------- */
.pdp-details, .pdp-reviews, .pdp-why, .pdp-related { margin-top: var(--tb-s7); }
@media (min-width: 1024px) { .pdp-details, .pdp-reviews, .pdp-why, .pdp-related { margin-top: var(--tb-s8); } }
.pdp-details__grid { display: grid; gap: var(--tb-s5); align-items: start; }
@media (min-width: 1024px) { .pdp-details__grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: var(--tb-s7); } }
.pdp-details .tb-specs { grid-template-columns: minmax(130px, 40%) 1fr; }
.pdp-details__side { display: grid; gap: var(--tb-s4); }
.pdp-panel { padding: var(--tb-s5); background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); font-size: var(--tb-fs-sm); color: var(--tb-ink-2); line-height: 1.55; }
.pdp-panel p { margin: var(--tb-s3) 0 0; }
.pdp-panel .pdp-h3 { margin-bottom: var(--tb-s3); }
.pdp-grades { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pdp-grades li { padding: 5px 10px; border-radius: 999px; font-size: var(--tb-fs-xs); font-weight: 600; color: var(--tb-ink-3); background: var(--tb-surface-2); border: 1px solid var(--tb-line); }
.pdp-grades li.is-current { color: var(--tb-brand-ink); background: var(--tb-brand); border-color: var(--tb-brand); }
.pdp-box { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pdp-box li { display: flex; gap: 10px; align-items: flex-start; }
.pdp-box i { width: 16px; margin-top: 3px; text-align: center; color: var(--tb-ink-3); }
.pdp-prose { max-width: 72ch; margin-top: var(--tb-s6); font-size: var(--tb-fs-md); line-height: 1.7; color: var(--tb-ink-2); }
.pdp-prose p { margin: 0 0 var(--tb-s3); }
.pdp-prose img { max-width: 100%; height: auto; }

/* ---------- Section heads ---------- */
.pdp-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--tb-s4); margin-bottom: var(--tb-s4); }
.pdp-section-head .pdp-h2 { margin: 0; }
.pdp-more { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-brand-text) !important; text-decoration: none; }
.pdp-more:hover { text-decoration: underline; }
.pdp-more i { font-size: 11px; }

/* ---------- Reviews ---------- */
.pdp-reviews__write { min-height: 40px; padding: 0 14px; font-size: var(--tb-fs-sm) !important; }
.pdp-reviews__empty { margin: 0; padding: var(--tb-s5); background: var(--tb-surface); border: 1px dashed var(--tb-line-strong); border-radius: var(--tb-r-lg); color: var(--tb-ink-2); font-size: var(--tb-fs-sm); }
.pdp-reviews__summary { display: grid; gap: var(--tb-s5); padding: var(--tb-s5); background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); }
@media (min-width: 640px) { .pdp-reviews__summary { grid-template-columns: 220px 1fr; align-items: center; } }
.pdp-reviews__score { display: grid; gap: 4px; font-size: var(--tb-fs-sm); }
.pdp-reviews__score strong { font-size: 2.5rem; line-height: 1; font-weight: 700; color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.pdp-reviews__stars, .pdp-review__stars { color: #f59e0b; letter-spacing: 1px; }
.pdp-reviews__bars { display: grid; gap: 6px; }
.pdp-reviews__bar { display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 10px; font-size: var(--tb-fs-xs); color: var(--tb-ink-2); font-variant-numeric: tabular-nums; }
.pdp-reviews__bar i { color: #f59e0b; font-size: 10px; }
.pdp-reviews__track { height: 6px; border-radius: 6px; background: var(--tb-line); overflow: hidden; }
.pdp-reviews__track > span { display: block; height: 100%; background: #f59e0b; border-radius: inherit; }
.pdp-reviews__toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: var(--tb-s4) 0 var(--tb-s2); font-size: var(--tb-fs-sm); }
.pdp-select { min-height: 40px; padding: 0 10px; border-radius: var(--tb-r-sm); border: 1px solid var(--tb-line-strong); background: var(--tb-surface); color: var(--tb-ink); font: 500 var(--tb-fs-sm)/1 var(--tb-font); }
.pdp-review { padding: var(--tb-s4) 0; border-bottom: 1px solid var(--tb-line); font-size: var(--tb-fs-sm); color: var(--tb-ink-2); line-height: 1.6; }
.pdp-review p { margin: 6px 0 0; }
.pdp-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pdp-review__head strong { color: var(--tb-ink); }
.pdp-review__head time { margin-left: auto; font-size: var(--tb-fs-xs); }
.pdp-review__title { margin: 8px 0 0; font-size: var(--tb-fs-md); color: var(--tb-ink); }
.pdp-review__reply { margin-top: 10px; padding: 10px 12px; border-radius: var(--tb-r-md); background: var(--tb-surface-2); }
.pdp-review__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; font-size: var(--tb-fs-xs); }
.pdp-review__foot .pdp-link-btn { font-size: var(--tb-fs-xs); }
.pdp-review-form { margin-top: var(--tb-s4); padding: var(--tb-s5); background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); }
.pdp-review-form[hidden] { display: none; }
.review-form { display: grid; gap: var(--tb-s4); }
.pdp-stars-input { margin: 0; padding: 0; border: 0; }
.pdp-stars-input legend { margin-bottom: 6px; font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-ink); }
.star-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating-input label { display: grid; place-items: center; width: 40px; height: 40px; font-size: 24px; color: var(--tb-line-strong); cursor: pointer; border-radius: var(--tb-r-sm); }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #f59e0b; }
.star-rating-input input:focus-visible + label { outline: 2px solid var(--tb-brand); outline-offset: 1px; }
.pdp-form-row { display: grid; gap: var(--tb-s4); }
@media (min-width: 640px) { .pdp-form-row { grid-template-columns: 1fr 1fr; } }
.pdp-field { display: grid; gap: 6px; font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-ink); }
.pdp-field input, .pdp-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--tb-r-sm); border: 1px solid var(--tb-line-strong);
  background: var(--tb-surface); color: var(--tb-ink); font: 400 var(--tb-fs-md)/1.4 var(--tb-font); box-sizing: border-box;
}
.pdp-field textarea { resize: vertical; }
.pdp-form-error { margin: 0; color: var(--tb-bad); font-size: var(--tb-fs-sm); }
.pdp-form-actions { display: flex; justify-content: flex-end; gap: var(--tb-s2); }

/* ---------- Why us strip ---------- */
.pdp-why__list { display: grid; gap: var(--tb-s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .pdp-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pdp-why__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pdp-why__item { display: grid; gap: 6px; align-content: start; padding: var(--tb-s5); background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); font-size: var(--tb-fs-sm); color: var(--tb-ink-2); line-height: 1.5; }
.pdp-why__item strong { font-size: var(--tb-fs-md); color: var(--tb-ink); }
.pdp-why__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 10px; background: var(--tb-brand-soft); color: var(--tb-brand-text); }
@media (max-width: 639.98px) {
  .pdp-why__list { gap: 0; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); }
  .pdp-why__item { grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border: 0; border-radius: 0; background: none; }
  .pdp-why__item + .pdp-why__item { border-top: 1px solid var(--tb-line); }
  .pdp-why__icon { grid-row: span 2; margin: 0; }
  .pdp-why__item strong { font-size: var(--tb-fs-sm); }
}
.pdp-why__more { margin-top: var(--tb-s3); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); background: var(--tb-surface); }
.pdp-why__more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 var(--tb-s5); cursor: pointer; list-style: none; font-weight: 600; font-size: var(--tb-fs-sm); color: var(--tb-ink); }
.pdp-why__more summary::-webkit-details-marker { display: none; }
.pdp-why__more summary i { font-size: 12px; color: var(--tb-ink-3); transition: transform .2s var(--tb-ease); }
.pdp-why__more[open] summary i { transform: rotate(180deg); }
.pdp-why__text { padding: 0 var(--tb-s5) var(--tb-s4); font-size: var(--tb-fs-sm); line-height: 1.65; color: var(--tb-ink-2); max-width: 80ch; }
.pdp-why__text p { margin: 0 0 var(--tb-s3); }

/* ---------- Related ---------- */
.pdp-related .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tb-s3); }
@media (min-width: 1024px) { .pdp-related .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tb-s5); } }
/* Fills from the left: one or two suggestions keep card size instead of stretching a 4-column row */
.pdp-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: var(--tb-s3); }
@media (min-width: 640px) { .pdp-acc-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 1024px) { .pdp-acc-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--tb-s5); } }

/* ---------- Lightbox ---------- */
.pdp-lightbox { position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; padding: 56px 16px; background: rgba(2, 6, 23, 0.92); }
.pdp-lightbox[hidden] { display: none; }
.pdp-lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); object-fit: contain; border-radius: var(--tb-r-md); background: #fff; }
.pdp-lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 18px;
}
.pdp-lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.pdp-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pdp-lightbox__close { top: 12px; right: 12px; }
.pdp-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pdp-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Sticky buy bar (mobile; desktop when the buy box is off screen) ---------- */
.pdp-sticky {
  /* --cookie-offset is set by cookie-consent.js while the banner is visible */
  position: fixed; left: 0; right: 0; bottom: var(--cookie-offset, 0px); z-index: 950;
  display: flex; align-items: center; justify-content: space-between; gap: var(--tb-s3);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--tb-surface); border-top: 1px solid var(--tb-line); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, 0.35);
  transform: translateY(110%); visibility: hidden;
  transition: transform .2s var(--tb-ease), visibility 0s linear .2s;
}
.pdp-sticky.visible { transform: none; visibility: visible; transition: transform .2s var(--tb-ease), visibility 0s; }
.pdp-sticky__price { display: grid; gap: 1px; min-width: 0; font-variant-numeric: tabular-nums; }
.pdp-sticky__price strong { font-size: var(--tb-fs-lg); font-weight: 700; color: var(--tb-ink); white-space: nowrap; }
.pdp-sticky__price s { font-size: var(--tb-fs-xs); color: var(--tb-ink-3); }
.pdp-sticky .tb-btn { flex: none; min-height: 48px; padding: 0 22px; }
.pdp-sticky__name { display: none; }
@media (min-width: 1024px) {
  /* Content lines up with the page container; the product name gives the bar context */
  .pdp-sticky { padding-inline: max(var(--container-padding, 24px), calc((100vw - var(--container-width, 1400px)) / 2 + var(--container-padding, 24px))); gap: var(--tb-s5); }
  .pdp-sticky__name { display: grid; gap: 1px; flex: 1; min-width: 0; }
  .pdp-sticky__name strong { font-size: var(--tb-fs-md); font-weight: 600; color: var(--tb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-sticky__name span { font-size: var(--tb-fs-xs); color: var(--tb-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-sticky__price { text-align: right; }
  body.product-page-open .pdp { padding-bottom: 96px; }
}
@media (max-width: 1023.98px) { body.product-page-open .pdp { padding-bottom: 96px; } }

/* ---------- Official tech specs (utils/deviceSpecs.js) ----------
   .pdp-keyspecs: compact tiles in the buy box. .pdp-specs: "Specificații tehnice" cards
   (<details>, first two open), two balanced columns from 1024px, reading order on mobile. */
.pdp-keyspecs { margin-top: var(--tb-s5); padding-top: var(--tb-s4); border-top: 1px solid var(--tb-line); }
.pdp-keyspecs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--tb-s3); }
.pdp-keyspecs__title { margin: 0; font-family: var(--tb-font); font-size: var(--tb-fs-sm); font-weight: 600; letter-spacing: 0.01em; color: var(--tb-ink); }
.pdp-keyspecs__all { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: var(--tb-fs-xs); font-weight: 600; color: var(--tb-brand-text) !important; text-decoration: none; }
.pdp-keyspecs__all:hover { text-decoration: underline; }
.pdp-keyspecs__all i { font-size: 10px; }
.pdp-keyspecs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 480px) { .pdp-keyspecs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pdp-keyspec {
  --ks-ink: var(--tb-ink-2); --ks-soft: var(--tb-surface-2);
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 8px; row-gap: 3px; align-content: start;
  min-width: 0; padding: 10px 11px 11px; border: 1px solid var(--tb-line); border-radius: var(--tb-r-md); background: var(--tb-surface);
}
.pdp-keyspec--display, .pdp-keyspec--durability { --ks-ink: var(--tb-info); --ks-soft: var(--tb-info-soft); }
.pdp-keyspec--chip, .pdp-keyspec--network, .pdp-keyspec--memory { --ks-ink: var(--tb-new); --ks-soft: var(--tb-new-soft); }
.pdp-keyspec--battery { --ks-ink: var(--tb-ok); --ks-soft: var(--tb-ok-soft); }
.pdp-keyspec--health { --ks-ink: var(--tb-bad); --ks-soft: var(--tb-bad-soft); }
.pdp-keyspec--camera { --ks-ink: var(--tb-warn); --ks-soft: var(--tb-warn-soft); }
.pdp-keyspec__icon { grid-row: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ks-soft); color: var(--ks-ink); font-size: 11px; }
.pdp-keyspec__label { grid-row: 1; align-self: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tb-ink-3); }
.pdp-keyspec__value, .pdp-keyspec__detail { grid-column: 1 / -1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
.pdp-keyspec__value { margin-top: 5px; -webkit-line-clamp: 2; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.pdp-keyspec__detail { -webkit-line-clamp: 1; font-size: 12px; line-height: 1.35; color: var(--tb-ink-3); }

.pdp-specs { margin-top: var(--tb-s7); scroll-margin-top: calc(var(--pdp-sticky-top, 80px) + var(--tb-s4)); }
@media (min-width: 1024px) { .pdp-specs { margin-top: var(--tb-s8); } }
.pdp-specs__head { margin-bottom: var(--tb-s4); }
.pdp-specs__head .pdp-h2 { margin: 0; }
.pdp-specs__sub { margin: 4px 0 0; font-size: var(--tb-fs-sm); color: var(--tb-ink-3); }
.pdp-specs__cols { display: grid; gap: 10px; align-items: start; }
.pdp-specs__col { display: contents; }
@media (min-width: 1024px) {
  .pdp-specs__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pdp-specs__col { display: grid; gap: 12px; align-content: start; }
  .pdp-specs__col > .pdp-spec { order: 0 !important; }
}
.pdp-spec { min-width: 0; border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); background: var(--tb-surface); overflow: hidden; }
.pdp-spec--unit { border-color: color-mix(in srgb, var(--tb-brand) 35%, var(--tb-line)); }
.pdp-spec__summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px 10px 12px;
  cursor: pointer; list-style: none; user-select: none;
}
.pdp-spec__summary::-webkit-details-marker { display: none; }
.pdp-spec__summary:hover .pdp-spec__title { text-decoration: underline; text-decoration-color: var(--tb-line-strong); text-underline-offset: 3px; }
.pdp-spec__summary:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: -2px; border-radius: var(--tb-r-lg); }
.pdp-spec__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--tb-surface-2); color: var(--tb-ink-2); font-size: 14px; }
.pdp-spec--unit .pdp-spec__icon { background: var(--tb-brand-soft); color: var(--tb-brand-text); }
.pdp-spec__head { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pdp-spec__title { font-size: var(--tb-fs-md); font-weight: 600; color: var(--tb-ink); }
.pdp-spec__preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--tb-fs-xs); color: var(--tb-ink-3); }
.pdp-spec[open] .pdp-spec__preview, .pdp-spec[open] .pdp-spec__count { display: none; }
.pdp-spec__count { flex: none; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--tb-surface-2); font-size: 11px; font-weight: 600; text-align: center; color: var(--tb-ink-3); font-variant-numeric: tabular-nums; }
.pdp-spec__chev { flex: none; font-size: 12px; color: var(--tb-ink-3); transition: transform .2s var(--tb-ease); }
.pdp-spec[open] .pdp-spec__chev { transform: rotate(180deg); }
.pdp-spec__body { display: grid; gap: var(--tb-s4); padding: 2px 16px 16px; }
@media (min-width: 640px) { .pdp-spec__body { padding-left: 58px; padding-right: 20px; } }
.pdp-spec__block { display: grid; gap: 6px; min-width: 0; }
.pdp-spec__group { margin: 0; font-family: var(--tb-font); font-size: var(--tb-fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tb-ink-3); }
.pdp-spec__dl { display: grid; margin: 0; }
.pdp-spec__row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--tb-line); font-size: var(--tb-fs-sm); line-height: 1.45; }
.pdp-spec__row:first-child { border-top: 0; padding-top: 2px; }
.pdp-spec__row dt { color: var(--tb-ink-3); }
.pdp-spec__row dd { margin: 0; min-width: 0; color: var(--tb-ink); font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pdp-spec__list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pdp-spec__list li { position: relative; padding-left: 14px; font-size: var(--tb-fs-sm); line-height: 1.45; color: var(--tb-ink-2); overflow-wrap: anywhere; }
.pdp-spec__list li::before { content: ''; position: absolute; left: 1px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--tb-line-strong); }
.pdp-spec__list li.is-mine { color: var(--tb-ink); font-weight: 600; }
.pdp-spec__list li.is-mine::before { background: var(--tb-brand); }
.pdp-spec__row.is-mine dd { font-weight: 600; }
.pdp-spec__mine, .pdp-spec__tag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.pdp-spec__mine { background: var(--tb-brand-soft); color: var(--tb-brand-text); }
.pdp-spec__tag { background: var(--tb-surface-2); color: var(--tb-ink-3); border: 1px solid var(--tb-line); }
@media (max-width: 479.98px) {
  .pdp-spec__summary { gap: 10px; padding-left: 10px; padding-right: 12px; }
  .pdp-spec__body { padding: 2px 14px 14px; }
  .pdp-spec__row { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2px 12px; }
}
.pdp-specs__source { display: grid; gap: 4px; margin-top: var(--tb-s4); font-size: var(--tb-fs-xs); line-height: 1.5; color: var(--tb-ink-3); }
.pdp-specs__source p { margin: 0; }
.pdp-specs__source i.fa-circle-check { color: var(--tb-ok); margin-right: 2px; }
.pdp-specs__source a { color: var(--tb-ink-2) !important; font-weight: 600; text-decoration: underline; text-decoration-color: var(--tb-line-strong); text-underline-offset: 2px; }
.pdp-specs__source a:hover { color: var(--tb-ink) !important; }
.pdp-specs__source a i { font-size: 10px; }
/* With official specs, this unit's rows live in the "Acest exemplar" card; the details section keeps the panels */
.pdp-details--with-specs .pdp-details__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pdp-details--with-specs .pdp-details__side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; } }
/* Long official sections: first rows visible, the rest behind "Arată toate cele N rânduri" */
.pdp-spec__more { display: grid; gap: var(--tb-s4); }
.pdp-spec__more-btn {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--tb-line); border-radius: 999px; background: var(--tb-surface-2);
  font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-ink-2); cursor: pointer; list-style: none;
}
.pdp-spec__more-btn::-webkit-details-marker { display: none; }
.pdp-spec__more-btn:hover { color: var(--tb-ink); border-color: var(--tb-line-strong); }
.pdp-spec__more-btn:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 2px; }
.pdp-spec__more-btn i { font-size: 11px; transition: transform .2s var(--tb-ease); }
.pdp-spec__more[open] > .pdp-spec__more-btn i { transform: rotate(180deg); }
.pdp-spec__more-close, .pdp-spec__more[open] > .pdp-spec__more-btn .pdp-spec__more-open { display: none; }
.pdp-spec__more[open] > .pdp-spec__more-btn .pdp-spec__more-close { display: inline; }
.pdp-spec__more[open] > .pdp-spec__more-btn { order: 2; }
