/* Page furniture for the generated pages (product, line, guide).
   The template's style.css only ever styled a one-page site, so these classes
   are new. Part 2's redesign.css layers on top of this and overrides colour. */

:root{
  --z-ink:#1F2421; --z-ink-2:#5A635C; --z-line:#E4E8E4;
  --z-paper:#FFFFFF; --z-paper-2:#F6F8F6;
}

.page-hero{ background:var(--z-paper-2); border-bottom:1px solid var(--z-line);
  padding:2.6rem 0 2.2rem; margin-bottom:2.2rem; }

/* The navbar is fixed-top, so every page needs the same clearance the template
   already gives its homepage hero. Reuse style.css's own two breakpoints
   rather than inventing a third number. */
@media (min-width:992px){ .page-hero,.page-top{ margin-top:152px !important; } }
@media (max-width:991.98px){ .page-hero,.page-top{ margin-top:97px !important; } }
.page-hero h1{ margin:0 0 .6rem; }
.page-hero .lead{ color:var(--z-ink-2); max-width:62ch; margin:0; }

.crumbs{ font-size:.85rem; color:var(--z-ink-2); margin-bottom:.8rem; }
.crumbs a{ color:var(--z-ink-2); text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }

/* ---- product cards ---------------------------------------------------- */
.product-card{ position:relative; background:var(--z-paper);
  border:1px solid var(--z-line); border-radius:14px; overflow:hidden;
  transition:box-shadow .18s ease, transform .18s ease; }
.product-card:hover{ box-shadow:0 10px 28px rgba(31,36,33,.10); transform:translateY(-2px); }
.product-image-wrapper{ position:relative; padding-top:100%; background:#fff; }
.product-image-wrapper img{ position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; padding:10px; }
.product-info{ border-top:1px solid var(--z-line); }
h3.product-title,h5.product-title{ font-size:1rem; line-height:1.35; margin:0 0 .5rem;
  display:inline-block !important; }
.stock-badge{ position:absolute; top:10px; left:10px; z-index:1;
  font-size:.68rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  padding:.3rem .6rem; border-radius:999px; }
.stock-badge.out{ background:#F1F1F1; color:#6B6B6B; }
.stock-badge.in{ background:#E7F6EC; color:#137A3C; }

/* ---- tables ----------------------------------------------------------- */
.spec-table-wrap{ overflow-x:auto; }
table.spec-table{ width:100%; border-collapse:collapse; font-size:.92rem; }
table.spec-table th,table.spec-table td{ padding:.6rem .7rem; border-bottom:1px solid var(--z-line);
  text-align:left; vertical-align:top; }
table.spec-table thead th{ background:var(--z-paper-2); white-space:nowrap; }
table.spec-table tr.dead td{ color:var(--z-ink-2); }

/* ---- notes ------------------------------------------------------------ */
.note{ border:1px solid var(--z-line); border-left:4px solid #C9A227;
  background:#FDFBF3; border-radius:10px; padding:1.1rem 1.2rem; margin-bottom:1.8rem; }
.note h4{ font-size:1.05rem; margin:0 0 .4rem; }
.note p:last-child{ margin-bottom:0; }

/* ---- guide / body copy ------------------------------------------------ */
.prose{ max-width:72ch; }
.prose h2{ margin-top:2rem; }
.prose li{ margin-bottom:.35rem; }

/* ---- product page gallery --------------------------------------------- */
.gallery-main{ border:1px solid var(--z-line); border-radius:14px; overflow:hidden;
  background:#fff; position:relative; padding-top:82%; }
.gallery-main img{ position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; padding:14px; }
.gallery-thumbs{ display:flex; gap:.5rem; margin-top:.6rem; flex-wrap:wrap; }
.gallery-thumbs img{ width:66px; height:66px; object-fit:contain; background:#fff;
  border:1px solid var(--z-line); border-radius:8px; padding:4px; cursor:pointer; }
.gallery-thumbs img.sel{ border-color:var(--z-ink); }

.guide-card{ background:var(--z-paper); border:1px solid var(--z-line); border-radius:14px;
  color:inherit; transition:box-shadow .18s ease, transform .18s ease; }
.guide-card:hover{ box-shadow:0 10px 28px rgba(31,36,33,.10); transform:translateY(-2px);
  color:inherit; }

/* ---- clickable cards + the carousel trap ------------------------------- */
/* style.css carries `.carousel-item a{position:absolute;top:50%;left:50%;
   transform:translate(-50%,-50%)}`, so the moment a slide gets its own anchor
   it collapses to zero height while every measurement still says it is
   visible. Documented in PROCEDURE part 3. */
.hero-header .carousel-item a.carousel-slider-link{
  position:static !important; transform:none !important; display:block !important;
}
.product-card,#bestsellers .fruite-item{ position:relative; }
.card-amz{ position:absolute; inset:0; z-index:2; border-radius:inherit; }
.card-details{ position:absolute; top:12px; right:12px; z-index:3;
  background:#fff; border:1px solid var(--z-line); border-radius:999px;
  padding:.25rem .7rem; font-size:.72rem; font-weight:700; text-decoration:none;
  color:var(--z-ink); }
.card-details:hover{ color:var(--z-ink); box-shadow:0 2px 8px rgba(31,36,33,.14); }


/* ---------- trust points on product cards ------------------------------
   Replaces the "4.6 stars from N ratings" line. Three earned claims, no
   numbers. See trust_points.py for how a card qualifies for each one.     */
.trust-points{
  display:inline-block; text-align:left;
  list-style:none; margin:.15rem 0 1.15rem; padding:0;
}
.trust-points li{
  display:flex; align-items:flex-start; gap:.6rem;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.875rem; font-weight:600; line-height:1.4;
  color:var(--z-ink-2);
}
.trust-points li + li{ margin-top:.44rem; }
.trust-points li::before{
  /* deliberately NOT --accent: the check must not read as another CTA */
  content:"\2713";
  flex:0 0 14px; margin-top:.01rem;
  color:#16A34A;
  font-size:.95rem; font-weight:700; line-height:1.3;
}
@media (max-width:575.98px){
  .trust-points li{ font-size:.83rem; }
}

/* ---- rich product page ------------------------------------------------- */
.prose-wide{ max-width:none; }
.prose-wide > h2{ margin-top:2.6rem; padding-top:1.6rem; border-top:1px solid var(--z-line); }
.prose-wide > h2:first-child{ margin-top:0; padding-top:0; border-top:0; }
.prose-wide h3{ font-size:1.02rem; margin:1.4rem 0 .35rem; }
.prose-wide p{ max-width:74ch; }

.spec-chips{ list-style:none; display:flex; flex-wrap:wrap; gap:.4rem;
  padding:0; margin:.2rem 0 1.1rem; }
.spec-chips li{ font-size:.78rem; font-weight:600; padding:.28rem .66rem;
  border:1px solid var(--z-line); border-radius:999px; background:var(--z-paper-2);
  color:var(--z-ink-2); }

.buy-block{ border:1px solid var(--z-line); border-radius:16px; padding:1.3rem 1.4rem;
  background:var(--z-paper-2); }
.buy-block h2{ font-size:1.15rem; margin:0 0 .6rem; padding:0; border:0; }
.buy-block.out{ background:#FAF7F2; }
.buy-block .trust-points{ margin-bottom:.6rem; }

.box-list{ columns:2; column-gap:2rem; }
@media (max-width:575.98px){ .box-list{ columns:1; } }

table.spec-table.compare tr.this td{ background:#EAF4EE; }
table.spec-table.compare tr.this td:first-child{ box-shadow:inset 3px 0 0 #23794A; }

details.faq{ border:1px solid var(--z-line); border-radius:12px; padding:.85rem 1rem;
  margin-bottom:.6rem; background:var(--z-paper-2); }
details.faq summary{ font-weight:700; cursor:pointer; font-size:.95rem; }
details.faq[open] summary{ margin-bottom:.5rem; }
details.faq p{ margin:0; color:var(--z-ink-2); }

/* ---- inline-SVG figures ------------------------------------------------ */
.chart-figure{ margin:1.6rem 0 2rem; padding:1.1rem 1.2rem 1rem;
  border:1px solid var(--z-line); border-radius:14px; background:#fff; }
.chart-title{ font-family:'Plus Jakarta Sans',sans-serif; font-weight:700;
  font-size:.95rem; color:var(--z-ink); margin:0 0 .8rem; }
.chart-svg{ display:block; max-width:100%; height:auto; overflow:visible; }
.chart-note{ font-size:.8rem; color:var(--z-ink-2); margin:.8rem 0 0; }
@media (max-width:575.98px){ .chart-figure{ padding:.9rem .7rem; } }

/* the availability flag in the product hero is inline, not the absolute card badge */
.stock-flag{ display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.03em;
  text-transform:uppercase; padding:.3rem .66rem; border-radius:999px; margin-bottom:.6rem; }
.stock-flag.in{ background:#E7F6EC; color:#137A3C; }
.stock-flag.out{ background:#F1F1F1; color:#6B6B6B; }
.prose-wide code{ background:var(--z-paper-2); border:1px solid var(--z-line);
  border-radius:5px; padding:.05rem .32rem; font-size:.86em; color:var(--z-ink-2); }
.th-note{ display:block; font-weight:500; font-size:.72rem; color:var(--z-ink-2);
  text-transform:none; letter-spacing:0; }

/* ---- card call-to-action ----------------------------------------------- */
/* The whole card is already an Amazon target (.card-amz, z-index 2), so the
   buttons have to sit above it or they are unclickable. They are not
   decoration: a card with no button reads as unfinished and loses the click. */
.product-card{ display:flex; flex-direction:column; }
.product-card .product-info{ display:flex; flex-direction:column; flex:1 1 auto; }
.card-actions{ position:relative; z-index:3; margin-top:auto; padding-top:.85rem;
  display:flex; flex-direction:column; gap:.4rem; }
.card-actions .btn{ font-size:.8rem; font-weight:700; padding:.42rem .9rem;
  white-space:nowrap; }
.card-cta2{ background:#fff; }
@media (min-width:1200px){
  .card-actions .btn{ font-size:.78rem; padding:.4rem .7rem; }
}

/* ---- interactive widgets ----------------------------------------------- */
.widget{ border:1px solid var(--z-line); border-radius:16px; background:#fff;
  padding:1.15rem 1.25rem 1.3rem; margin:1.8rem 0 2.2rem; }
.widget > h3{ font-size:1.05rem; margin:0 0 .25rem; }
.widget .widget-sub{ font-size:.85rem; color:var(--z-ink-2); margin:0 0 1rem; }
.widget label{ font-size:.78rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.03em; color:var(--z-ink-2); display:block; margin-bottom:.3rem; }
.widget select,.widget input[type=search]{
  width:100%; max-width:100%; padding:.55rem .75rem; font-size:.95rem;
  border:1px solid var(--z-line); border-radius:10px; background:var(--z-paper-2);
  color:var(--z-ink); }
.widget select:focus,.widget input:focus{ outline:2px solid var(--z-accent,#23794A);
  outline-offset:1px; }
.widget-controls{ display:flex; gap:.9rem; flex-wrap:wrap; margin-bottom:1rem; }
.widget-controls > div{ flex:1 1 190px; }
.widget-out{ border-top:1px solid var(--z-line); padding-top:1rem; }
.widget-out dl{ display:grid; grid-template-columns:auto 1fr; gap:.35rem 1rem;
  margin:0 0 .9rem; font-size:.92rem; }
.widget-out dt{ color:var(--z-ink-2); }
.widget-out dd{ margin:0; font-weight:600; }
.verdict{ display:inline-block; font-size:.78rem; font-weight:700; padding:.3rem .7rem;
  border-radius:999px; margin-bottom:.7rem; }
.verdict.yes{ background:#E7F6EC; color:#137A3C; }
.verdict.no{ background:#FDECEC; color:#A32020; }
.verdict.warn{ background:#FFF4DC; color:#8A5A00; }
table.sortable th{ cursor:pointer; user-select:none; white-space:nowrap; }
table.sortable th[aria-sort="ascending"]::after{ content:" \2191"; }
table.sortable th[aria-sort="descending"]::after{ content:" \2193"; }
table.sortable th:hover{ color:var(--z-ink); }
.widget .row-count{ font-size:.82rem; color:var(--z-ink-2); margin:.7rem 0 0; }
