/* SST Product Insights — PDP layout v0.3
   Complete replacement for assets/product-insights.css.

   Goal: the plugin's PDP additions must read as one tight block, not four
   stacked full-width slabs. Every plugin row now uses a 14px / 12px rhythm
   instead of the theme's 28px / 22px, headings drop 20px -> 18px with the
   sub-line inlined on the same baseline, the per-product chart moves into the
   summary column, Set Information collapses on <=900px, and Collector
   Resources becomes a wrapping chip strip.

   Depends on theme tokens (--sst-*) from the samurai-sword theme:
     --sst-ink #121212  --sst-muted #5f5f5f  --sst-line #ececec
     --sst-paper #fff   --sst-surface #fff   --sst-accent #9e2c5f
     --sst-accent-dark #7a2149  --sst-soft #faf3f7  --sst-gray #f7f7f7
     --sst-focus #1f6feb  --sst-btn-label #fff
     --sst-radius 6px   --sst-card-radius 12px

   Specificity notes (the theme is the thing we out-rank):
     theme  .woocommerce div.product .related.products            = (0,3,1)
     ours   .woocommerce div.product .related.products.sst-fbt    = (0,4,1)  WINS
     theme  .woocommerce div.product .related.products ul.products= (0,3,2)
     ours   .woocommerce div.product .related.products.sst-fbt
            ul.products                                           = (0,4,2)  WINS
   No !important is used anywhere. */


/* ==================================================================
   0. Layout metrics
   ================================================================== */

:root {
  --sst-pi-row-gap: 14px;   /* was the theme's 28px margin-top   */
  --sst-pi-row-pad: 12px;   /* was the theme's 22px padding-top  */
  --sst-pi-card-x: 16px;
  --sst-pi-card-y: 14px;
  --sst-pi-up: #0e6b48;
  --sst-pi-up-bg: #e7f4ee;
  --sst-pi-down: #ab2440;
  --sst-pi-down-bg: #fbecef;
}


/* ==================================================================
   1. Shared card shell
   ================================================================== */

.sst-pi-card {
  min-width: 0;
  padding: var(--sst-pi-card-y) var(--sst-pi-card-x);
  border: 1px solid var(--sst-line);
  border-radius: var(--sst-card-radius);
  background: var(--sst-surface);
}

/* Opt-in flex column (the chart card needs margin-top:auto on its footer). */
.sst-pi-card--col {
  display: flex;
  flex-direction: column;
}

.sst-pi-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sst-muted);
}

.sst-pi-muted {
  color: var(--sst-muted);
  font-size: 12px;
}


/* ==================================================================
   2. Section rhythm

   One rule for every full-width plugin row. The .sst-fbt / .sst-pi-recent
   sections also carry `related products`, so they inherit the theme's
   display:block + grid-column:1/-1 + border-top; we only retune the spacing.
   .sst-pi-inforow is ours alone and needs the full set.
   ================================================================== */

.woocommerce div.product .sst-pi-inforow {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: start;
  margin-top: var(--sst-pi-row-gap);
  padding-top: var(--sst-pi-row-pad);
  border-top: 1px solid var(--sst-line);
}

.woocommerce div.product .sst-pi-inforow--single {
  grid-template-columns: minmax(0, 1fr);
}

.woocommerce div.product .related.products.sst-fbt,
.woocommerce div.product .related.products.sst-pi-recent {
  margin-top: var(--sst-pi-row-gap);
  padding-top: var(--sst-pi-row-pad);
}

/* REQUIRED, not cosmetic. These sections are grid items of
   `.woocommerce div.product`, which the theme collapses to
   `grid-template-columns: 1fr` at <=900px. A bare `1fr` keeps its automatic
   min-content minimum, and the <=640px snap carousel (display:flex with
   `flex: 0 0 64%` items) reports a min-content of ~455px — so the single
   track, and with it the whole page, stretched to 487px inside a 373px
   viewport. `min-width: 0` overrides the automatic minimum and the track
   falls back to the container width; the carousel then scrolls inside its own
   `overflow-x: auto` box as intended.
   (Verified in-browser: scrollWidth 487 -> 388 at a 390px viewport. This
   overflow also exists in v0.2.1 — it is a fix, not a regression guard.) */
.woocommerce div.product .sst-pi-inforow,
.woocommerce div.product .related.products.sst-fbt,
.woocommerce div.product .related.products.sst-pi-recent {
  min-width: 0;
}


/* ==================================================================
   3. Section heads — 18px h2 with the sub-line on the same baseline
   ================================================================== */

.woocommerce div.product .sst-fbt .sst-fbt__head,
.woocommerce div.product .sst-pi-recent .sst-fbt__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-bottom: 10px;
}

.woocommerce div.product .related.products.sst-fbt > .sst-fbt__head > h2,
.woocommerce div.product .related.products.sst-pi-recent > .sst-fbt__head > h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sst-fbt__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--sst-muted);
}


/* ==================================================================
   4. Per-product price chart — summary column, @40

   Sits inside div.summary (max-width 560px on desktop), directly under the
   add-to-cart form and the theme's large-order CTA, so on desktop it fills
   whitespace next to the 1:1 gallery instead of adding a full-width row.
   ================================================================== */

.sst-pi-summary-chart {
  margin-top: 14px;
}

.sst-pi-market__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;      /* safety net: CTA drops to its own line rather than overflowing */
  gap: 2px 10px;
}

.sst-pi-market__top .sst-pi-eyebrow {
  min-width: 0;
}

.sst-pi-cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sst-accent);
  text-decoration: none;
  white-space: nowrap;
}

.sst-pi-cta:hover {
  color: var(--sst-accent-dark);
  text-decoration: underline;
}

.sst-pi-cta:focus-visible {
  outline: 2px solid var(--sst-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Instrument names are long ("Pokemon Card Game Scarlet & Violet Expansion
   Pack Mega Brave Booster Box"). One line, ellipsis — never two.

   MUST be -webkit-line-clamp, NOT white-space:nowrap. The theme collapses the
   PDP to `grid-template-columns: 1fr` at <=900px, and a plain `1fr` track keeps
   its automatic min-content minimum — so a nowrap 550px string propagates up
   through div.summary and stretches the whole page to ~614px on a 390px phone
   (verified: documentElement.scrollWidth 614 vs clientWidth 373). Clamping
   leaves min-content at the longest single word instead. */
.sst-pi-market__name {
  display: -webkit-box;
  margin: 3px 0 0;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sst-ink);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.sst-pi-market__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
}

.sst-pi-market__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sst-ink);
  font-variant-numeric: tabular-nums;
}

.sst-pi-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.sst-pi-pill.sst-pi-up { background: var(--sst-pi-up-bg); color: var(--sst-pi-up); }
.sst-pi-pill.sst-pi-down { background: var(--sst-pi-down-bg); color: var(--sst-pi-down); }
.sst-pi-pill.sst-pi-flat { background: var(--sst-gray); color: var(--sst-muted); }

.sst-pi-market__sales {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sst-muted);
  font-variant-numeric: tabular-nums;
}

/* 72px (was 110/92). The SVG is viewBox 0 0 560 120 with
   preserveAspectRatio="none" + vector-effect="non-scaling-stroke", so the
   stroke stays 2px at any box height. */
.sst-pi-spark {
  display: block;
  width: 100%;
  height: 72px;
  margin: 6px 0 2px;
  border-radius: 6px;
}

.sst-pi-spark .sst-pi-spark__line { stroke: currentColor; }
.sst-pi-spark .sst-pi-spark__fill { fill: currentColor; opacity: 0.08; }
.sst-pi-spark.sst-pi-up { color: #12835a; }
.sst-pi-spark.sst-pi-down { color: #c22947; }
.sst-pi-spark.sst-pi-flat { color: #8a8a8a; }

/* Single line. Content is "Japanese market sales · as of 2026-07-30"
   (~205px @11px) — fits every supported width without wrapping. */
.sst-pi-market__foot {
  margin: auto 0 0;
  padding-top: 2px;
  font-size: 11px;
  line-height: 1.4;
}


/* ==================================================================
   5. Set Information — collapsible card (left half of the info row)
   ================================================================== */

.sst-pi-specs {
  padding: 0;              /* overrides .sst-pi-card; parts carry their own padding */
  overflow: hidden;        /* keeps the summary hover tint inside the 12px radius */
}

.sst-pi-specs__summary {
  display: flex;           /* also removes the UA list-item marker in Chrome/Firefox */
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.sst-pi-specs__summary::-webkit-details-marker { display: none; }  /* Safari */
.sst-pi-specs__summary::marker { content: ""; }                    /* Firefox belt-and-braces */

.sst-pi-specs__summary:hover { background: var(--sst-gray); }

.sst-pi-specs__summary:focus-visible {
  outline: 2px solid var(--sst-focus);
  outline-offset: -2px;
}

.sst-pi-specs__summary .sst-pi-eyebrow {
  flex: 0 0 auto;
}

/* Collapsed-state teaser, e.g. "M6 · 2026-01-23". */
.sst-pi-specs__preview {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sst-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sst-pi-specs__marker {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--sst-muted);
  border-bottom: 2px solid var(--sst-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.sst-pi-specs[open] .sst-pi-specs__marker {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.sst-pi-specs__body {
  padding: 0 14px 12px;
}

/* Stacked label-over-value cells. Immune to the wrapping problems the old
   dt(148px) / dd side-by-side layout had once the card is only ~700px wide,
   and roughly half the height. */
.sst-pi-specs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.sst-pi-specs__row {
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--sst-line);
}

.sst-pi-specs__row dt {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sst-muted);
}

.sst-pi-specs__row dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--sst-ink);
  overflow-wrap: anywhere;   /* "Mega Brave (メガブレイブ)" in a 155px cell */
}


/* ==================================================================
   6. Collector Resources — chip strip (right half of the info row)
   ================================================================== */

.sst-pi-resources__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sst-pi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--sst-line);
  border-radius: 999px;
  background: var(--sst-paper);
  color: var(--sst-ink);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sst-pi-chip:hover {
  border-color: var(--sst-accent);
  background: var(--sst-soft);
  color: var(--sst-accent);
}

.sst-pi-chip:focus-visible {
  outline: 2px solid var(--sst-focus);
  outline-offset: 2px;
}

.sst-pi-chip__icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--sst-accent);
}

/* icon_svg() hard-codes width/height="18"; author CSS out-ranks presentational
   attributes, so the chip gets 15px glyphs without touching the PHP icons. */
.sst-pi-chip__icon svg {
  width: 15px;
  height: 15px;
}

.sst-pi-chip:hover .sst-pi-chip__icon {
  color: var(--sst-accent);
}

/* Truncate rather than overflow if a set name ever gets very long. */
.sst-pi-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==================================================================
   7. Product cards inside plugin sections (same-set / FBT / recent)
   ================================================================== */

/* .sst-product-card__body is a GRID container, so the chip is blockified and
   would stretch the full column width — justify-self (not align-self) is what
   makes it hug its text. */
.sst-fbt__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  align-self: start;
  margin: 0 0 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sst-soft);
  color: var(--sst-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.sst-fbt__chip svg {
  flex: 0 0 auto;
}

.woocommerce div.product .sst-fbt ul.products li.product.sst-fbt__card {
  position: relative;
  border-radius: var(--sst-card-radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
  .woocommerce div.product .sst-fbt ul.products li.product.sst-fbt__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(18, 18, 18, 0.09);
  }
}


/* ==================================================================
   8. Bulk add — per-card checkbox + action bar
   ================================================================== */

.sst-pi-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  cursor: pointer;
}

.sst-pi-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sst-pi-check__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--sst-line);
  border-radius: 7px;
  background: var(--sst-paper);
  box-shadow: 0 1px 4px rgba(18, 18, 18, 0.12);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sst-pi-check__box::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.12s ease;
}

.sst-pi-check:hover .sst-pi-check__box {
  border-color: var(--sst-accent);
}

.sst-pi-check input:checked + .sst-pi-check__box {
  border-color: var(--sst-accent);
  background: var(--sst-soft);
}

.sst-pi-check input:checked + .sst-pi-check__box::after {
  background: var(--sst-accent);
}

.sst-pi-check input:focus-visible + .sst-pi-check__box {
  outline: 2px solid var(--sst-focus);
  outline-offset: 2px;
}

.sst-pi-bulkbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--sst-line);
  border-radius: 10px;
  background: var(--sst-gray);
}

.sst-pi-bulkbar[hidden] {
  display: none;
}

.sst-pi-bulkbar__summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--sst-ink);
  font-variant-numeric: tabular-nums;
}

.sst-pi-bulkbar__btn.button {
  background: var(--sst-accent);
  color: var(--sst-btn-label);
  border: 0;
  border-radius: var(--sst-radius);
  font-weight: 700;
}

.sst-pi-bulkbar__btn.button:hover {
  background: var(--sst-accent-dark);
  color: var(--sst-btn-label);
}

.sst-pi-bulkbar__btn.button:disabled {
  opacity: 0.7;
}


/* ==================================================================
   9. Trustpilot
   ================================================================== */

.sst-pi-trustbox {
  margin: 8px 0 2px;
  min-height: 24px;
}


/* ==================================================================
   10. Desktop only (>=901px)

   Force the Set Information card open. ::details-content is the only way to
   override the UA's closed-state hiding from author CSS; it is guarded by
   @supports so browsers without it simply keep a normal, clickable collapsed
   card (graceful, never broken). The marker and the collapsed teaser are
   hidden only inside that same guard, so the fallback keeps its affordance.
   ================================================================== */

@supports selector(::details-content) {
  @media (min-width: 901px) {
    .sst-pi-specs::details-content {
      content-visibility: visible;
    }

    .sst-pi-specs__summary {
      cursor: default;
    }

    .sst-pi-specs__summary:hover {
      background: transparent;
    }

    .sst-pi-specs__marker,
    .sst-pi-specs__preview {
      display: none;      /* the teaser would duplicate two dl rows */
    }
  }
}

/* A lone Set Information card spans the whole row — give it a 4th column. */
@media (min-width: 901px) {
  .woocommerce div.product .sst-pi-inforow--single .sst-pi-specs__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ==================================================================
   11. <=900px — PDP collapses to one column
   ================================================================== */

@media (max-width: 900px) {
  .woocommerce div.product .sst-pi-inforow {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  /* div.summary loses its 560px cap here, so the chart goes full width. */
  .sst-pi-market__value {
    font-size: 22px;
  }
}


/* ==================================================================
   12. <=640px — phones

   The three product rows become swipeable snap carousels that bleed to the
   viewport edge. .sst-product-main .sst-container is width:min(100% - 32px,
   1360px) at EVERY width (it out-ranks the <=520px .sst-container rule), so
   the -16px bleed lands exactly on the viewport edge — no body scroll.
   ================================================================== */

@media (max-width: 640px) {
  .woocommerce div.product .related.products.sst-fbt ul.products {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .woocommerce div.product .related.products.sst-fbt ul.products::-webkit-scrollbar {
    display: none;
  }

  .woocommerce div.product .related.products.sst-fbt ul.products li.product {
    flex: 0 0 64%;
    max-width: 64%;
    scroll-snap-align: start;
  }

  /* Denser card chrome inside plugin rows only (theme cards elsewhere keep
     their 12px / 13px spacing). */
  .woocommerce div.product .sst-fbt .sst-product-card__media {
    margin: 8px 8px 0;
  }

  .woocommerce div.product .sst-fbt .sst-product-card__body {
    gap: 6px;
    padding: 10px 12px 6px;
  }

  .sst-pi-card {
    padding: 12px 14px;
  }

  .sst-pi-specs__summary {
    min-height: 40px;
    padding: 10px 12px;
  }

  .sst-pi-specs__body {
    padding: 0 12px 10px;
  }

  .sst-pi-specs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .sst-pi-summary-chart {
    margin-top: 12px;
  }

  .sst-pi-spark {
    height: 64px;
  }

  .sst-pi-bulkbar {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    justify-content: space-between;
    background: var(--sst-paper);
    box-shadow: 0 8px 24px rgba(18, 18, 18, 0.14);
  }
}


/* ==================================================================
   13. <=380px — iPhone SE / Galaxy S-mini safety
   ================================================================== */

@media (max-width: 380px) {
  .sst-pi-market__value {
    font-size: 21px;
  }

  .sst-pi-chip {
    font-size: 12px;
    padding: 5px 10px 5px 9px;
  }

  .sst-pi-specs__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==================================================================
   14. Motion / print
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sst-pi-chip,
  .sst-pi-check__box,
  .sst-pi-check__box::after,
  .sst-pi-specs__marker,
  .woocommerce div.product .sst-fbt ul.products li.product.sst-fbt__card {
    transition: none;
  }

  .woocommerce div.product .sst-fbt ul.products li.product.sst-fbt__card:hover {
    transform: none;
  }
}

@media print {
  .sst-pi-bulkbar,
  .sst-pi-check {
    display: none;
  }

  .sst-pi-specs__body {
    display: block;
  }
}

/* The theme's `.woocommerce div.product .related.products { display:block }`
   outranks the UA [hidden] rule, so the empty Recently Viewed shell was
   showing its heading before JS populated it (bug present since v0.2.0). */
.woocommerce div.product .related.products.sst-pi-recent[hidden] {
  display: none;
}


/* ==================================================================
   15. v0.4.0 — Points line under the price
   ================================================================== */

.woocommerce div.product .summary .sst-pi-points {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 2px 0 10px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}

.sst-pi-points__earn {
  color: #8a6d1a;
  font-weight: 600;
}

.sst-pi-points__earn::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #c9a227;
  vertical-align: baseline;
}

.sst-pi-points__signin {
  font-size: 13px;
  color: #63646b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce div.product .summary .sst-pi-points[hidden] {
  display: none;
}


/* ==================================================================
   16. v0.4.0 — Low stock notice
   ================================================================== */

.woocommerce div.product p.stock.sst-pi-lowstock {
  color: #ab2440;
  font-weight: 600;
}


/* ==================================================================
   17. v0.4.0 — QO CTA (bone-white x ink, GALLERY OF LIGHT tone)
   ================================================================== */

.sst-pi-qocta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 18px;
  border: 1px solid #17171a;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.woocommerce div.product .sst-pi-qocta__btn--all,
.sst-pi-qocta__btn--all {
  background: #f7f5f1;
  color: #17171a;
}

.woocommerce div.product .sst-pi-qocta__btn--qo,
.sst-pi-qocta__btn--qo {
  background: #17171a;
  color: #f7f5f1;
}

.sst-pi-qocta__btn--all:hover {
  background: #17171a;
  color: #f7f5f1;
}

.sst-pi-qocta__btn--qo:hover {
  background: #3a3a40;
  color: #f7f5f1;
}

.sst-pi-qocta__arrow {
  font-weight: 400;
}

.sst-pi-qocta--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
  min-width: 0;
}

/* Full-width row of the theme's div.product grid (same contract as
   .sst-pi-inforow / .sst-fbt): without grid-column it lands in a column. */
.woocommerce div.product .sst-pi-qocta--band {
  grid-column: 1 / -1;
  min-width: 0;
}

.sst-pi-qocta--band {
  margin-top: var(--sst-pi-row-gap);
  padding: 26px 20px;
  border-top: 1px solid #17171a;
  border-bottom: 1px solid #d9d6cf;
  background: #f7f5f1;
}

.sst-pi-qocta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  min-width: 0;
}

.sst-pi-qocta__eyebrow {
  margin: 0 0 6px;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #63646b;
}

.sst-pi-qocta__lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: #17171a;
}

.sst-pi-qocta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sst-pi-qocta--band .sst-pi-qocta__btn {
  padding: 13px 26px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .sst-pi-qocta--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .sst-pi-qocta__row {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ==================================================================
   18. v0.4.0 — Reviews section (replaces the buried Reviews tab)
   ================================================================== */

.woocommerce div.product .sst-pi-reviews {
  grid-column: 1 / -1;
  min-width: 0;
}

.sst-pi-reviews {
  margin-top: var(--sst-pi-row-gap);
  padding-top: var(--sst-pi-row-pad);
  border-top: 1px solid #e3e1db;
  min-width: 0;
}

.sst-pi-reviews__title {
  margin: 0 0 14px;
  font-size: 22px;
}

.sst-pi-reviews__summary {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 320px);
  align-items: center;
  gap: 12px 40px;
  margin-bottom: 18px;
  padding: 16px var(--sst-pi-card-x);
  border: 1px solid #e3e1db;
  border-radius: 8px;
  background: #fbfaf8;
  min-width: 0;
}

.sst-pi-reviews__avg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.sst-pi-reviews__avg-num {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.sst-pi-reviews__stars {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.sst-pi-reviews__stars svg {
  display: inline-block;
}

.sst-pi-reviews__stars-bg svg {
  fill: #ddd9d0;
}

.sst-pi-reviews__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

.sst-pi-reviews__stars-fill svg {
  fill: #c9a227;
}

.sst-pi-reviews__count {
  font-size: 13px;
  color: #63646b;
}

.sst-pi-reviews__bars {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sst-pi-reviews__bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #63646b;
}

.sst-pi-reviews__bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #ece9e2;
  overflow: hidden;
}

.sst-pi-reviews__bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #c9a227;
}

.sst-pi-reviews__bar-n {
  text-align: right;
}

/* The theme caps #reviews at 760px for the tab layout; the dedicated
   section owns the full row. Its inner "N reviews for X" heading repeats
   what the summary header just said, so it goes too. */
.sst-pi-reviews__list #reviews {
  max-width: none;
}

.sst-pi-reviews__list .woocommerce-Reviews-title {
  display: none;
}

/* The stock Woo commentlist, re-dressed as cards. */
.sst-pi-reviews__list #reviews .commentlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sst-pi-reviews__list #reviews .commentlist li.review {
  margin: 0;
  padding: 14px var(--sst-pi-card-x);
  border: 1px solid #e3e1db;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.sst-pi-reviews__list #reviews .commentlist li.review img.avatar {
  display: none;
}

.sst-pi-reviews__list #reviews .commentlist li.review .comment_container,
.sst-pi-reviews__list #reviews .commentlist li.review .comment-text {
  margin: 0;
  padding: 0;
  border: 0;
}

.sst-pi-reviews__list #reviews .commentlist li.review.sst-pi-reviews__clamped {
  display: none;
}

.sst-pi-reviews__showall {
  display: block;
  margin: 14px auto 0;
  padding: 10px 22px;
  border: 1px solid #17171a;
  border-radius: 2px;
  background: #fff;
  color: #17171a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sst-pi-reviews__showall:hover {
  background: #17171a;
  color: #f7f5f1;
}

@media (max-width: 900px) {
  .sst-pi-reviews__summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .sst-pi-reviews__list #reviews .commentlist {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .sst-pi-qocta--compact,
  .sst-pi-qocta--band,
  .sst-pi-reviews__showall {
    display: none;
  }
}

/* v0.4.2 — US duty note (hidden skeleton, JS reveal via /cdn-cgi/trace) */
.woocommerce div.product .summary .sst-pi-duty[hidden] { display: none; }
.woocommerce div.product .summary .sst-pi-duty {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #63646b;
}
