/* =========================================================
   product-detail.css — page-specific styles for product-detail.html
   Uses tokens declared in styles.css. Does NOT redeclare them.
   ========================================================= */

/* ---------- Hero section wrapper ---------- */
.pdp-hero-section{background:#fff;padding:32px 0 40px}

.pdp-hero{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:48px;
  align-items:start;
}

/* ---------- LEFT: Gallery ---------- */
.pdp-gallery{display:flex;flex-direction:column;gap:14px;min-width:0}

.pdp-main-image{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
  overflow:hidden;
  position:relative;
}
.pdp-main-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:36px;
  transition:transform .35s ease;
}

.pdp-thumbs{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
.pdp-thumb{
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:10px;
  padding:0;
  aspect-ratio:1/1;
  cursor:pointer;
  overflow:hidden;
  display:grid;
  place-items:center;
  transition:.15s;
}
.pdp-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
}
.pdp-thumb:hover{border-color:#C9C9C9}
.pdp-thumb.active{
  border:2px solid var(--ecp-red);
}
.pdp-thumb:focus-visible{outline:2px solid var(--ecp-red);outline-offset:2px}

/* ---------- RIGHT: Info ---------- */
.pdp-info{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.pdp-eyebrow{
  font-family:var(--head);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:13px;
  color:var(--accent-text);
  margin-bottom:10px;
}

.pdp-title{
  font-family:var(--head);
  font-weight:800;
  font-size:clamp(24px,2.2vw,32px);
  color:var(--ink);
  letter-spacing:-.01em;
  line-height:1.2;
  margin:0 0 12px;
}

.pdp-partno{
  font-size:13px;
  color:var(--ink-2);
  margin-bottom:10px;
}
.pdp-partno strong{
  color:var(--ink);
  font-family:var(--head);
  font-weight:700;
  letter-spacing:.02em;
}

.pdp-rating{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
/* Stars bumped from 14 → 17px so 4.8/127 carries proportional weight.
   Switched from brand amber to standard rating gold (#FFB400) so this
   element reads as social proof, not brand-accent decoration. */
.pdp-stars{
  color:#FFB400;
  font-size:17px;
  letter-spacing:2px;
  line-height:1;
}
/* "4.8 from 127 reviews" is now an anchor link to #pdp-reviews — underline
   appears on hover only so it doesn't compete with the title at rest. */
.pdp-rating-text{
  font-size:14px;
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  transition:color .15s;
}
.pdp-rating-text:hover,
.pdp-rating-text:focus-visible{color:var(--accent-text);text-decoration:underline;text-underline-offset:2px}

/* Fitment definition list — now sits AFTER the buy row as a "you picked the
   right one" confirmation panel, so visually lighter than before: dashed
   border, soft amber accent left, slightly tighter padding. */
.pdp-fitment-dl{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:6px 16px;
  margin:4px 0 22px;
  padding:14px 16px 14px 18px;
  background:#FFFCF6;
  border:1px solid #F0E4CC;
  border-left:3px solid var(--ecp-red);
  border-radius:8px;
  font-size:14px;
}
.pdp-fitment-dl dt{
  font-family:var(--head);
  font-weight:600;
  color:var(--ink-2);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
  align-self:center;
}
.pdp-fitment-dl dd{
  margin:0;
  color:var(--ink);
  font-weight:500;
  font-size:14px;
}

/* Price block */
.pdp-price-block{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:6px;
}
.pdp-price{
  font-family:var(--head);
  font-weight:800;
  font-size:38px;
  line-height:1;
  color:var(--accent-text);
  letter-spacing:-.01em;
}
.pdp-vat{
  font-size:12px;
  color:var(--ink-2);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:600;
}

/* Stock indicator */
.pdp-stock{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:var(--success);
  margin-bottom:18px;
}
.pdp-stock .dot{
  width:9px;height:9px;border-radius:50%;background:currentColor;
}

/* Buy row */
.pdp-buy{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}
.pdp-buy .qty{margin-bottom:0}
.pdp-buy .pdp-add{
  height:48px;
  padding:0 32px;
  flex:1;
  font-size:14px;
}

/* Trust grid (2x2 below add-to-cart) */
.pdp-trust-grid{
  list-style:none;
  margin:0;
  padding:18px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:10px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px 18px;
}
.pdp-trust-grid li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
}
.pdp-trust-ic{
  width:32px;height:32px;
  border-radius:50%;
  background:#FBE8C7;
  color:var(--accent-text);
  display:grid;
  place-items:center;
  flex:0 0 32px;
}
.pdp-trust-ic svg{width:16px;height:16px}
.pdp-trust-label{line-height:1.2}

/* =========================================================
   Accordion
   ========================================================= */
.pdp-accordion-section{
  background:var(--bg);
  padding:40px 0;
  border-top:1px solid var(--line);
}

.pdp-accordion{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:980px;
  margin:0 auto;
}

.pdp-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  transition:.18s;
}
.pdp-panel[open]{
  box-shadow:var(--shadow-sm, 0 2px 6px rgba(0,0,0,.04));
  border-color:#D6D6D6;
}
.pdp-panel summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 22px;
  cursor:pointer;
  list-style:none;
  font-family:var(--head);
  font-weight:800;
  font-size:16px;
  color:var(--ink);
  letter-spacing:-.005em;
  user-select:none;
}
.pdp-panel summary::-webkit-details-marker{display:none}
.pdp-panel summary:hover{background:#FAFAFA}
.pdp-panel summary:focus-visible{outline:2px solid var(--ecp-red);outline-offset:-2px}

.pdp-chev{
  width:18px;height:18px;
  color:var(--ink-2);
  transition:transform .2s ease;
  flex:0 0 18px;
}
.pdp-panel[open] .pdp-chev{transform:rotate(180deg);color:var(--accent-text)}

.pdp-panel-body{
  padding:4px 22px 22px;
  font-size:14px;
  color:var(--ink);
  line-height:1.6;
  border-top:1px solid var(--line);
}
.pdp-panel-body > p{margin:14px 0 12px;color:var(--ink-2)}

/* Spec list (definition pairs styled as rows) */
.pdp-spec-list{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  display:grid;
  gap:0;
}
.pdp-spec-list li{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:18px;
  padding:10px 0;
  border-bottom:1px dashed var(--line);
  font-size:14px;
}
.pdp-spec-list li:last-child{border-bottom:0}
.pdp-spec-list strong{
  font-family:var(--head);
  font-weight:600;
  color:var(--ink-2);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
  align-self:center;
}
.pdp-spec-list span{color:var(--ink);font-weight:500}

/* Steps + bullets */
.pdp-steps{
  margin:8px 0 0;
  padding-left:22px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.pdp-steps li{padding-left:6px}
.pdp-steps li::marker{
  font-family:var(--head);
  font-weight:800;
  color:var(--accent-text);
}

.pdp-bullets{
  margin:8px 0 0;
  padding-left:22px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.pdp-bullets li::marker{color:var(--ecp-red)}

/* =========================================================
   Reviews panel — scrollable list inside accordion
   ========================================================= */
.pdp-panel-count{color:var(--ink-2);font-weight:600;margin-left:6px}

.pdp-reviews-body{padding-top:18px}

.pdp-reviews-summary{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:28px;
  padding:18px 20px 20px;
  background:#FAFAFA;
  border:1px solid var(--line);
  border-radius:10px;
  margin-bottom:18px;
}
.pdp-reviews-score{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.pdp-reviews-score strong{font-family:var(--head);font-weight:800;font-size:42px;line-height:1;color:var(--ink)}
.pdp-reviews-stars{color:#FFB400;font-size:18px;letter-spacing:1px}
.pdp-reviews-meta{font-size:12px;color:var(--ink-2);font-weight:500}

.pdp-reviews-bars{display:flex;flex-direction:column;gap:6px;justify-content:center}
.pdp-rev-bar{display:grid;grid-template-columns:28px 1fr 30px;gap:10px;align-items:center;font-size:12px;color:var(--ink-2)}
.rb-lbl{font-weight:600;color:var(--ink)}
.rb-track{height:8px;background:#E8E8E8;border-radius:4px;overflow:hidden}
.rb-fill{display:block;height:100%;background:#FFB400;border-radius:4px}
.rb-pct{text-align:right;font-variant-numeric:tabular-nums}

.pdp-reviews-list{
  list-style:none;
  margin:0;
  padding:4px 14px 4px 4px;
  max-height:440px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
  scrollbar-width:thin;
  scrollbar-color:#C9C9C9 transparent;
}
.pdp-reviews-list:focus-visible{outline:2px solid var(--ecp-red);outline-offset:2px;border-radius:8px}
.pdp-reviews-list::-webkit-scrollbar{width:8px}
.pdp-reviews-list::-webkit-scrollbar-track{background:transparent}
.pdp-reviews-list::-webkit-scrollbar-thumb{background:#D6D6D6;border-radius:4px}
.pdp-reviews-list::-webkit-scrollbar-thumb:hover{background:#B0B0B0}

.pdp-review{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pdp-review header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pdp-review-author{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:var(--ink)}
.pdp-review-author strong{font-family:var(--head);font-weight:700}
.pdp-review-badge{font-size:11px;color:var(--cta-green,#368200);background:#E6F4EA;padding:2px 8px;border-radius:30px;font-weight:600;letter-spacing:.02em}
.pdp-review header time{font-size:12px;color:var(--ink-2)}
.pdp-review-stars{color:#FFB400;font-size:14px;letter-spacing:1px;line-height:1}
.pdp-star-dim{color:#E0E0E0}
.pdp-review p{margin:0;font-size:14px;line-height:1.55;color:var(--ink)}

.pdp-reviews-seeall{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:16px;
  padding:10px 18px;
  background:#fff;
  border:1.5px solid var(--ink);
  border-radius:30px;
  font-family:var(--head);
  font-weight:700;
  font-size:13px;
  color:var(--ink);
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.04em;
  transition:background .15s,color .15s,border-color .15s,transform .12s;
}
.pdp-reviews-seeall:hover{background:var(--ink);color:#fff}
.pdp-reviews-seeall:active{transform:translateY(1px)}
.pdp-reviews-seeall svg{width:14px;height:14px}

@media (max-width:640px){
  .pdp-reviews-summary{grid-template-columns:1fr;gap:14px;padding:14px}
  .pdp-reviews-score{align-items:center;text-align:center}
  .pdp-reviews-list{max-height:520px;padding-right:8px}
  .pdp-review{padding:14px}
  .pdp-review header{gap:8px}
  .pdp-review p{font-size:13.5px}
}

/* =========================================================
   Dedicated "All Reviews" page (product-reviews.html)
   ========================================================= */
.reviews-page-head{background:#fff;border-bottom:1px solid var(--line);padding:24px 0 22px}
.reviews-back{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);font-family:var(--head);font-weight:600;font-size:13px;margin-bottom:14px;transition:color .15s}
.reviews-back:hover{color:var(--accent-text)}
.reviews-back svg{width:16px;height:16px}
.reviews-title-block{max-width:840px}
.reviews-eyebrow{font-family:var(--head);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent-text);margin:0 0 8px}
.reviews-page-head h1{font-family:var(--head);font-weight:800;font-size:clamp(22px,2.2vw,30px);color:var(--ink);letter-spacing:-.015em;line-height:1.2;margin:0}

/* Aggregate hero — Trustpilot-style summary card */
.reviews-hero{background:#FAFAFA;padding:32px 0}
.reviews-hero-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(260px,320px) 1fr;
  gap:48px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px 36px;
  box-shadow:0 6px 24px rgba(15,23,42,.06);
}
.rhc-score{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-right:32px;border-right:1px solid var(--line)}
.rhc-badge{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#00641B 0%,#007A48 100%);color:#fff;font-family:var(--head);font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.1em;padding:5px 12px;border-radius:30px;box-shadow:0 4px 12px rgba(0,100,27,.25);margin-bottom:4px}
.rhc-number{font-family:var(--head);font-weight:800;font-size:72px;line-height:1;color:var(--ink);letter-spacing:-.025em}
.rhc-out{font-family:var(--body);font-weight:600;font-size:22px;color:var(--ink-2);margin-left:4px}
.rhc-stars{color:#FFB400;font-size:26px;letter-spacing:3px;line-height:1}
.rhc-meta{font-size:14px;color:var(--ink-2);margin:6px 0 0}
.rhc-meta strong{color:var(--ink);font-weight:700}
.rhc-recommend{font-size:14px;color:var(--ink);margin-top:14px;padding-top:14px;border-top:1px dashed var(--line);width:100%}
.rhc-recommend strong{font-family:var(--head);font-weight:800;color:var(--cta-green,#00641B);font-size:18px}
.rhc-trust{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--cta-green,#00641B);background:#E6F4EA;padding:6px 12px;border-radius:30px;font-weight:700;margin-top:10px}
.rhc-trust-ic{display:grid;place-items:center;width:16px;height:16px;background:var(--cta-green,#00641B);color:#fff;border-radius:50%}
.rhc-trust-ic svg{width:11px;height:11px}

.rhc-bars{display:flex;flex-direction:column;gap:6px;justify-content:center;align-self:center;width:100%}
.rhc-bars-lbl{font-family:var(--head);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-2);margin:0 0 6px;padding-left:8px}
.rhc-bars-lbl span{font-weight:500;text-transform:none;letter-spacing:0;color:var(--ink-2);font-size:11.5px;margin-left:4px}
.rhc-bar-row{
  display:grid;
  grid-template-columns:46px 1fr auto;
  gap:12px;
  align-items:center;
  background:transparent;
  border:0;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-family:var(--body);
  transition:background .15s;
  width:100%;
  text-align:left;
}
.rhc-bar-row:hover{background:#FAFAFA}
.rhc-bar-row.active{background:#FFF8E6}
.rhc-bar-row.active .rhc-bar-fill{filter:saturate(1.1)}
/* Number + ★ on the left */
.rhc-bar-lbl{
  font-family:var(--head);font-weight:800;font-size:14px;
  color:var(--ink);
  display:inline-flex;align-items:center;gap:3px;
  line-height:1;
}
.rhc-bar-lbl .rhc-star{
  color:#FFB400;font-size:14px;line-height:1;
}
.rhc-bar-track{
  height:10px;background:#F0F0F0;border-radius:999px;overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
  position:relative;
}
.rhc-bar-fill{
  display:block;height:100%;
  background:linear-gradient(90deg,#FFB400 0%,#FFC424 100%);
  border-radius:999px;
  transition:width .4s cubic-bezier(.16,1,.3,1);
  min-width:6px; /* never collapse to invisible at 0% */
  box-shadow:0 1px 3px rgba(255,180,0,.25);
}
.rhc-bar-num{
  text-align:right;font-size:13px;
  font-variant-numeric:tabular-nums;
  color:var(--ink-2);font-weight:700;
  min-width:32px;
}

.rhc-write{height:42px;padding:0 20px;background:var(--cta-green,#00641B);color:#fff;border:0;border-radius:8px;font-family:var(--head);font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:12.5px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 6px 16px rgba(0,100,27,.22);transition:background .15s,box-shadow .15s,transform .12s}
.rhc-write:hover{background:#005518;color:#fff;box-shadow:0 10px 22px rgba(0,100,27,.28);transform:translateY(-1px)}
.rhc-write:active{transform:translateY(0)}
.rhc-write svg{width:15px;height:15px}
.rhc-write-top{position:absolute;top:20px;right:24px}

/* Filter + sort toolbar (sticky) */
.reviews-toolbar{background:#fff;border-bottom:1px solid var(--line);padding:14px 0;position:sticky;top:0;z-index:30;box-shadow:0 2px 6px rgba(0,0,0,.04)}
.reviews-toolbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.rtb-filters{display:flex;gap:8px;flex-wrap:wrap;overflow-x:auto;scrollbar-width:none}
.rtb-filters::-webkit-scrollbar{display:none}
/* Rating filter chips — refined two-zone layout:
   [ label + gold ★ ] [ count badge ]
   Active state uses brand amber; gold star stays gold for consistency. */
.rtb-chip{
  background:#fff;
  border:1.5px solid #E4E4E4;
  border-radius:999px;
  padding:6px 6px 6px 14px;
  font-family:var(--head);
  font-weight:700;
  font-size:13px;
  color:var(--ink);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  line-height:1;
  transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .12s;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.rtb-chip-lbl{
  display:inline-flex;align-items:center;gap:3px;
  font-family:var(--head);font-weight:800;font-size:13.5px;
  color:var(--ink);
}
.rtb-chip-num{font-variant-numeric:tabular-nums}
.rtb-star{
  color:#FFB400;
  font-size:14px;
  line-height:1;
  /* slight optical alignment with adjacent digit */
  margin-top:-1px;
}
.rtb-chip .rtb-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:26px;height:22px;padding:0 8px;
  border-radius:999px;
  background:#F3F3F3;
  color:var(--ink-2);
  font-family:var(--head);font-weight:700;font-size:11.5px;
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  transition:background .15s,color .15s;
}
.rtb-chip:hover{
  background:#FFFBF2;
  border-color:#F0D9A5;
}
.rtb-chip:hover .rtb-count{background:#FBE8C7;color:var(--accent-text)}
.rtb-chip:focus-visible{outline:2px solid var(--ecp-red);outline-offset:2px}
.rtb-chip.active{
  background:var(--ecp-red);
  border-color:var(--ecp-red-dark);
  color:var(--on-primary);
  box-shadow:0 4px 14px rgba(239,168,71,.35);
}
.rtb-chip.active .rtb-chip-lbl{color:var(--on-primary)}
.rtb-chip.active .rtb-star{color:#fff}
.rtb-chip.active .rtb-count{
  background:rgba(36,36,36,.14);
  color:var(--on-primary);
}

/* Result counter strip — sits between toolbar and grid */
.reviews-meta-bar{background:#FAFAFA;padding:14px 0 0}
.reviews-meta-bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.rmb-count{margin:0;font-size:13.5px;color:var(--ink-2);font-family:var(--body)}
.rmb-count strong{color:var(--ink);font-family:var(--head);font-weight:800;font-variant-numeric:tabular-nums}
.rmb-clear{background:transparent;border:0;cursor:pointer;font-family:var(--head);font-weight:700;font-size:12px;color:var(--accent-text);text-transform:uppercase;letter-spacing:.06em;display:inline-flex;align-items:center;gap:6px;padding:6px 0;transition:color .15s}
.rmb-clear:hover{color:var(--ink)}
.rmb-clear svg{width:14px;height:14px}

/* Review grid */
.reviews-grid-section{background:#FAFAFA;padding:18px 0 64px;min-height:60vh}
.reviews-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.rv-card{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:box-shadow .18s,border-color .18s,transform .15s;
}
.rv-card:hover{box-shadow:0 12px 28px rgba(15,23,42,.08);border-color:#D8D8D8;transform:translateY(-2px)}
.rv-card[hidden]{display:none}

/* "Most helpful" featured review — amber border + gold flag */
.rv-card-featured{border-color:var(--ecp-red);box-shadow:0 6px 18px rgba(239,168,71,.16);padding-top:38px}
.rv-card-featured:hover{box-shadow:0 14px 32px rgba(239,168,71,.22);border-color:var(--ecp-red)}
.rv-flag{
  position:absolute;top:-1px;left:18px;
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,var(--ecp-red) 0%,#D8902F 100%);
  color:var(--on-primary);
  font-family:var(--head);font-weight:800;font-size:11px;
  text-transform:uppercase;letter-spacing:.06em;
  padding:5px 12px 5px 10px;
  border-radius:0 0 8px 8px;
  box-shadow:0 4px 10px rgba(239,168,71,.30);
}
.rv-flag svg{width:13px;height:13px;fill:currentColor;stroke:none}

.rv-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.rv-author{display:flex;align-items:center;gap:12px;min-width:0}
.rv-avatar{
  width:38px;height:38px;border-radius:50%;
  background:#FBE8C7;color:var(--accent-text);
  display:grid;place-items:center;
  font-family:var(--head);font-weight:800;font-size:15px;
  flex-shrink:0;
}
.rv-author strong{display:block;font-family:var(--head);font-weight:700;font-size:14px;color:var(--ink);line-height:1.2}
.rv-verified{display:block;font-size:11.5px;color:var(--cta-green,#368200);font-weight:600;margin-top:2px}
.rv-card header time{font-size:12px;color:var(--ink-2);white-space:nowrap;flex-shrink:0}

.rv-stars{color:#FFB400;font-size:15px;letter-spacing:1px;line-height:1}
.rv-star-dim{color:#E0E0E0}
.rv-title{font-family:var(--head);font-weight:800;font-size:15px;color:var(--ink);margin:2px 0 0;line-height:1.3;letter-spacing:-.005em}
.rv-card p{margin:0;font-size:14px;line-height:1.55;color:var(--ink)}

/* Empty state — shown when filter matches nothing */
.reviews-empty{
  background:#fff;
  border:1px dashed #D8D8D8;
  border-radius:14px;
  padding:48px 24px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.reviews-empty[hidden]{display:none}
.reviews-empty-ic{width:64px;height:64px;border-radius:50%;background:#FBE8C7;color:var(--accent-text);display:grid;place-items:center;margin-bottom:6px}
.reviews-empty-ic svg{width:30px;height:30px;fill:none}
.reviews-empty h3{font-family:var(--head);font-weight:800;font-size:18px;color:var(--ink);margin:0}
.reviews-empty p{margin:0;color:var(--ink-2);font-size:14px;max-width:340px;line-height:1.5}
.reviews-empty p strong{color:var(--ink);font-weight:700}
.reviews-empty-reset{margin-top:10px}

/* Back-to-top floating button */
.back-to-top{
  position:fixed;
  bottom:24px;right:24px;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--ink);color:#fff;border:0;
  display:grid;place-items:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.20);
  z-index:50;
  transition:background .15s,transform .15s,opacity .2s;
  opacity:.92;
}
.back-to-top:hover{background:var(--accent-text);opacity:1;transform:translateY(-2px)}
.back-to-top[hidden]{display:none}
.back-to-top svg{width:22px;height:22px}

/* Responsive */
@media (max-width:1024px){
  .reviews-hero-card{grid-template-columns:1fr;gap:28px;padding:28px 24px}
  .rhc-score{padding-right:0;padding-bottom:24px;border-right:0;border-bottom:1px solid var(--line);align-items:center;text-align:center}
  .rhc-recommend{text-align:center}
  .rhc-write-top{position:static;align-self:flex-end;margin-bottom:8px}
}
@media (max-width:640px){
  .reviews-page-head{padding:16px 0 14px}
  .reviews-page-head h1{font-size:19px}
  .reviews-hero{padding:18px 0}
  .reviews-hero-card{padding:22px 18px;border-radius:12px;gap:22px}
  .rhc-write-top{position:absolute;top:16px;right:16px;height:36px;padding:0 14px;font-size:11px}
  .rhc-write-top svg{width:13px;height:13px}
  .rhc-badge{font-size:10px;padding:4px 10px}
  .rhc-number{font-size:54px}
  .rhc-stars{font-size:20px}
  .rhc-recommend{font-size:13px}
  .rhc-bars-lbl{display:none}
  .rhc-bar-row{grid-template-columns:50px 1fr 32px;gap:10px;padding:6px 6px}
  .rhc-bar-lbl{font-size:12.5px}

  .reviews-toolbar{padding:10px 0;position:static}
  .reviews-toolbar .wrap{flex-direction:column;align-items:stretch;gap:12px}
  .rtb-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
  .rtb-chip{flex-shrink:0;min-height:36px}

  .reviews-meta-bar{padding:10px 0 0}
  .rmb-count{font-size:12.5px}

  .reviews-grid{grid-template-columns:1fr;gap:14px}
  .rv-card{padding:18px 16px}
  .rv-card-featured{padding-top:34px}
  .rv-card header{flex-direction:column;gap:8px}
  .rv-card header time{align-self:flex-start}

  .reviews-empty{padding:32px 18px}

  .back-to-top{bottom:18px;right:18px;width:42px;height:42px}
}

/* =========================================================
   Mobile / responsive
   ========================================================= */
@media (max-width:1024px){
  .pdp-hero{
    grid-template-columns:1fr;
    gap:28px;
  }
}

@media (max-width:640px){
  .pdp-hero-section{padding:20px 0 28px}

  .pdp-main-image img{padding:20px}

  /* Thumbs scroll horizontally on narrow screens, with snap + visible active ring */
  .pdp-thumbs{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
    gap:8px;
    padding:2px 2px 6px;
    scroll-snap-type:x mandatory;
  }
  .pdp-thumbs::-webkit-scrollbar{display:none}
  .pdp-thumb{
    flex:0 0 64px;
    width:64px;
    height:64px;
    scroll-snap-align:start;
  }
  .pdp-thumb.active{box-shadow:0 0 0 1px var(--ecp-red)}

  .pdp-eyebrow{font-size:12px;margin-bottom:8px}
  .pdp-title{font-size:22px;margin-bottom:10px}
  .pdp-partno{font-size:13px}
  .pdp-rating{margin-bottom:14px}
  .pdp-price{font-size:30px}
  .pdp-price-block{gap:8px}

  /* Fitment list — keep 2-col but cap label width so long values wrap cleanly */
  .pdp-fitment-dl{
    padding:14px;
    font-size:13px;
    grid-template-columns:96px 1fr;
    gap:8px 12px;
  }
  .pdp-fitment-dl dt{font-size:11px}
  .pdp-fitment-dl dd{font-size:14px;word-break:break-word}

  /* Stock line wraps cleanly */
  .pdp-stock{
    display:flex;
    flex-wrap:wrap;
    font-size:13px;
    margin-bottom:16px;
  }

  /* Sticky buy bar on mobile — pinned to viewport bottom, always reachable.
     Bottom padding = 14px minimum + iOS safe-area-inset (notch / home-indicator)
     so the qty stepper + ADD TO CART pill always have visible breathing room
     above the bar's bottom edge instead of touching it. */
  .pdp-buy{
    position:fixed;
    left:0;right:0;bottom:0;
    flex-direction:row;
    align-items:center;
    gap:10px;
    margin:0;
    padding:12px 14px calc(env(safe-area-inset-bottom,0px) + 14px);
    background:#fff;
    border-top:1px solid var(--line);
    box-shadow:0 -6px 18px rgba(0,0,0,.10);
    z-index:60;
  }
  .pdp-buy .qty{
    margin:0;
    flex:0 0 auto;
    height:44px;
  }
  .pdp-buy .qty button{width:38px;font-size:20px}
  .pdp-buy .qty input{height:auto;width:42px;font-size:15px}
  .pdp-buy .pdp-add{
    flex:1;
    height:46px;
    font-size:15px;
    padding:0 16px;
  }
  /* Reserve room so the sticky bar (qty + ADD TO CART) doesn't overlap the
     last page content. 100px = bar height (~68px incl. safe-area padding) +
     ~30px breathing gap so the green button never sits flush against text. */
  body{padding-bottom:100px}

  .pdp-trust-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px 14px;
    padding:14px;
  }
  .pdp-trust-grid li{font-size:13px;gap:9px}
  .pdp-trust-ic{width:30px;height:30px;flex:0 0 30px}

  .pdp-accordion-section{padding:28px 0}

  .pdp-panel summary{padding:16px;font-size:15px;min-height:48px}
  .pdp-panel-body{padding:4px 16px 18px;font-size:14px}

  .pdp-spec-list li{
    grid-template-columns:1fr;
    gap:4px;
    padding:12px 0;
  }
  .pdp-spec-list strong{font-size:11px}
  .pdp-spec-list span{font-size:14px}
}
