/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }


button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Page layout: sticky footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
  font-family: 'Courier New', monospace;
  line-height: 1.6;
}

/* A fluid, centered content wrapper */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 2px solid #111;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.logo img {
  display: block;
  height: clamp(28px, 5vw, 42px);    /* scales with viewport */
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  flex-wrap: wrap; /* prevents overflow on mid widths */
}
.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  transition: color .2s ease;
}
.nav-links a:hover { color: #ff00ff; }

/* Hero/content grows to fill leftover height */
.hero {
  flex: 1;
  background: #f9f9f9;
  border-bottom: 2px solid #111;
  display: grid;
  place-items: center;
  padding-block: clamp(40px, 10vh, 120px);
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: .5rem;
}
.hero p { font-size: clamp(14px, 2.5vw, 18px); margin-bottom: 1.5rem; }

.cta {
  display: inline-block;
  padding: .8rem 2rem;
  border: 2px solid #111;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  transition: all .25s ease;
}
.cta:hover { background: #111; color: #fff; }

/* Footer sticks at bottom without forcing height */
.footer {
  border-top: 2px solid #111;
  background: #fff;
  padding-block: 12px;
  margin-top: auto;
  text-align: center;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: center; }
}
/* Active link highlight */
.nav-links a.active { color: #00ffff; }

/* Products layout */
.products {
  flex: 1;
  background: #f9f9f9;
  border-bottom: 2px solid #111;
  padding-block: clamp(24px, 6vh, 64px);
}

.products h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  margin-bottom: 1rem;
}

/* Responsive grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Product card */
.card {
  border: 2px solid #111;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #111;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
  border-bottom: 2px solid #111;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 12px;
}
.card-body h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}
.card-body .desc {
  font-size: .9rem;
  color: #333;
  min-height: 2.6em; /* 2 lines approx */
  margin-bottom: .6rem;
}
.card-body .price {
  font-weight: 700;
  margin-bottom: .6rem;
}

.btn {
  display: inline-block;
  padding: .55rem 1rem;
  border: 2px solid #111;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: #111; color: #fff; }

/* Active link on navbar */
.nav-links a.active { color: #00ffff; }

/* Product page layout */
.product-page {
  flex: 1;
  background: #f9f9f9;
  border-bottom: 2px solid #111;
  padding-block: clamp(24px, 6vh, 64px);
}

.product-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .product-wrap { grid-template-columns: 1fr; }
}

/* --- Product gallery: main image is a square; thumbs sit BELOW in their own boxes --- */
.product-page .gallery { display: block; }

.product-page .gallery .main {
  position: relative;
  border: 2px solid #111;
  background: #fff;
  aspect-ratio: 1 / 1;           /* the square is ONLY the main image now */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#gallery-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* arrows sit inside the .main square */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 2px solid #111;
  background: #fff;
  padding: .4rem .6rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .2s ease;
}
.arrow.left  { left: 8px; }
.arrow.right { right: 8px; }

/* thumbnails underneath: boxed style */

.product-page .thumbs .thumb-box {
  width: 82px; height: 82px;
  box-sizing: border-box;        /* ✅ include padding+border inside 82×82 */
  overflow: hidden;              /* ✅ clip any overspill */
  display: grid; place-items: center;
  padding: 6px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.product-page .thumbs .thumb-box:hover { border-color: #bbb; }
.product-page .thumbs .thumb-box:active { transform: translateY(1px); }
.product-page .thumbs .thumb-box.active { border-color: #111; box-shadow: 0 2px 0 #111; }
.product-page .thumbs .thumb {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;           /* keep aspect ratio, no crop */
  object-position: center center;
  border-radius: 6px;
}




@media (max-width: 520px) {
  .product-page .thumbs .thumb-box { width: 68px; height: 68px; padding: 5px; }
}

/* accordion & spacing were already added; keeping them */



/* Details */
.details h1 {
  font-size: clamp(22px, 5vw, 34px);
  margin-bottom: .5rem;
}
.details .price {
  font-weight: 700;
  margin-bottom: 1rem;
}
.details .desc {
  margin-bottom: 1rem;
  color: #333;
}

/* Product cards keep working as before; description hidden on listing */
.card-body .desc { display: none; }



/* Cart badge */
.cart-badge {
  display: inline-block;
  min-width: 1.2em;
  padding: 0 .35em;
  margin-left: 6px;
  border: 2px solid #111;
  border-radius: 999px;
  font-size: .8rem;
  text-align: center;
  line-height: 1.2;
  visibility: hidden; /* shown when > 0 */
}

/* Cart page */
.cart {
  flex: 1;
  background: #f9f9f9;
  border-bottom: 2px solid #111;
  padding-block: clamp(24px, 6vh, 64px);
}

.cart h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  margin-bottom: 1rem;
}

.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 2px solid #111;
  padding: 12px;
  margin-bottom: 12px;
}
.cart-row img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  border: 2px solid #111;
  background: #fff;
}
.cart-row .info h3 { font-size: 1rem; margin-bottom: 4px; }
.muted { color: #444; font-size: .9rem; }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  border: 2px solid #111;
  background: #fff;
  width: 32px; height: 32px;
  font-weight: 700;
  cursor: pointer;
}
.qty-num { min-width: 1.5em; text-align: center; font-weight: 700; }

.line-total { font-weight: 700; }

.cart-summary {
  border: 2px solid #111;
  background: #fff;
  padding: 16px;
  height: fit-content;
}
.sum-line { display:flex; justify-content:space-between; margin-bottom: 8px; }
.btn.full { width: 100%; margin-top: 8px; }
.btn.outline { background: #fff; }
.link { background: none; border: none; text-decoration: underline; cursor: pointer; padding: 0; }
.link.danger { color: #c00; }


/* Page container for forms */
.page { flex:1; background:#f9f9f9; border-bottom:2px solid #111; padding-block: clamp(24px,6vh,64px); }
.form-wrap { max-width: 720px; }

.form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 2px solid #111;
  padding: 16px;
}
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input {
  border: 2px solid #111; padding: 10px; background: #fff; color:#111; outline: none;
}
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width:700px){ .two{ grid-template-columns: 1fr; } }

.error { color:#c00; font-weight:700; }
.success { color:#090; font-weight:700; }

.btn.small { padding: .35rem .6rem; font-size: .9rem; }
.summary-card { background:#fff; border:2px solid #111; padding:16px; margin-bottom:16px; }
.sum-lines .sum-line { display:flex; justify-content:space-between; margin:.35rem 0; }
.sum-line.strong { font-weight:700; }


/* in style.css */
.box { min-height: 52px; padding: 10px; border: 1px solid #000; }
.hidden { display: none; }

/* --- Navbar: two rows, responsive --- */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 50; /* nice UX */
}

.nav-top,
.nav-bottom {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

/* Top row: logo left, auth right */
.nav-top { justify-content: space-between; }

/* Make logo a bit larger, but responsive */
.logo img {
  height: clamp(42px, 6.5vw, 60px);
  width: auto;
  display: block;
}

/* Bottom row: center links */
.nav-bottom { justify-content: center; padding-top: 0.25rem; padding-bottom: 0.6rem; }

.nav-links {
  display: flex;
  gap: clamp(12px, 3.2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;             /* prevents squish on small screens */
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  line-height: 1;
  padding: 0.3rem 0.1rem;
}

.nav-links a:hover { color: #2a78ff; }

/* Auth area (top-right) */
.auth-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 500;
}

.auth-slot a,
.auth-slot button {
  text-decoration: none;
  color: #111;
  border: 1px solid #ddd;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.auth-slot a:hover,
.auth-slot button:hover { border-color: #bbb; }

/* Cart pill stays tidy on small screens */
.cart-badge {
  display: inline-block;
  min-width: 1.15em;
  padding: 0 0.35em;
  margin-left: 0.25em;
  border-radius: 999px;
  font-size: 0.85em;
  line-height: 1.3;
  text-align: center;
  background: #222;
  color: #fff;
}

/* Small-screen touch-ups (iPhone 12 width ~390px) */
@media (max-width: 420px) {
  .nav-top { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .nav-bottom { padding-top: 0.2rem; padding-bottom: 0.5rem; }
  .auth-slot a, .auth-slot button { padding: 0.3rem 0.5rem; }
}

/* Provider dot selector */
.provider-group {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0.75rem 0 0.25rem;
}

.provider-group > legend {
  font-weight: 600;
  margin-right: 10px;
}

.provider-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.provider-option:hover { background: #fafafa; border-color: #d6d6d6; }
.provider-option:active { background: #f2f6ff; }

.provider-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.provider-option .dot {
  width: 16px;
  height: 16px;
  border: 2px solid #222;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.provider-option input[type="radio"]:checked + .dot {
  border-color: #2a78ff;
}

.provider-option input[type="radio"]:checked + .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #2a78ff;
  border-radius: 50%;
}

.provider-option .label {
  font-weight: 600;
  letter-spacing: .1px;
}

/* Product cards: kill default link underline/visited colors */
.card a { text-decoration: none; color: inherit; }
.card a:visited { color: inherit; }

.card-body h3 a { color: #111; font-weight: 700; }
.card-body h3 a:hover { color: #2a78ff; }

/* Buttons that are anchors should not underline or turn purple */
a.btn { text-decoration: none; color: #111; }
a.btn:visited { color: #111; }
a.btn:hover { color: #fff; }

/* --- Footer refresh (dark) --- */
.footer {
  background: #272727;             /* black footer */
  border-top: none;
  color: #fff;                  /* white text */
}
.footer a { color: #fff; }
.footer a:hover { color: #9ecbff; }

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 1rem 0 1.25rem;
  flex-wrap: wrap;
}

.footer .legal { color: #bbb; font-size: 0.95rem; }
.f-col { min-width: 180px; }
.f-col h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: .2px;
  font-weight: 700;
  color: #fff;                  /* ensure headings are white */
}

/* text links (email + track order) */
.link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 2px 0;
}
.footer .icon { font-size: 1rem; line-height: 1; width: 1.1rem; text-align: center; }

/* Bigger & centered logos in the footer */
.brand-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;   /* center the logos */
  flex-wrap: wrap;
  width: 100%;
}

.link-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;              /* a bit bigger tap target */
}

.link-img img {
  max-height: 56px;          /* was 28px → twice as big */
  max-width: 240px;          /* scale proportionally */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}


/* a11y helper for hidden text that screen readers can read */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}


/* Small screens: stack & center nicely */
@media (max-width: 520px) {
  .footer-grid { justify-content: center; text-align: center; }
  .f-col { min-width: 46%; }
  .brand { width: 100%; }
  .link-row { justify-content: center; }
}

/* --- Hero tweaks --- */
.hero .sub {
  margin-top: .35rem;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  letter-spacing: .2px;
  color: #444;
}
.hero .cta { margin-top: 1rem; }

/* Space below hero before banner */
.banner-wrap { margin-top: clamp(18px, 4vw, 28px); }

/* --- Banner --- */
.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;                /* 4:3 as requested */
  border: 1px solid #eaeaea;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f7f7;                /* placeholder bg while loading */
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.banner .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                   /* fill without distortion */
  opacity: 0;
  transition: opacity .6s ease;
}

.banner .frame.on { opacity: 1; }

/* Small-screen touch-ups */
@media (max-width: 420px) {
  .hero .cta { padding: .6rem .9rem; }
  .banner { border-radius: 12px; }
}

/* Big top gap above banner */
.hero.has-banner .banner-wrap {
  margin-top: clamp(72px, 16vw, 112px); /* unchanged */
}

/* Bottom gap (now half of what it was) */
.hero.has-banner {
  border-bottom: 1px solid #111;
  padding-bottom: clamp(36px, 8vw, 56px); /* half the old values */
}
/* Track order page */
.inline-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: .75rem 0 1rem;
}
.inline-form input {
  padding: .5rem .6rem;
  min-width: 260px;
}
.result { margin-top: .75rem; }

/* a11y helper used above */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.table td a { text-decoration: underline; font-size: 0.95em; }

/* Reviews banner */
.home .reviews-wrap {
  margin-top: clamp(12px, 3vw, 24px);
  margin-bottom: clamp(54px, 12vw, 84px); /* same big breathing room as before */
}
.review-banner {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 16px;
  /* min-height is set dynamically from JS to fit content */
}
/* replace the old .review-banner .review-frame rule */
.review-banner .review-frame {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  /* no bottom so the frame height = content height */
  opacity: 0;
  transition: opacity .45s ease;
}
.review-banner .review-frame.on { opacity: 1; }

.review-quote .stars { color:#f5b301; letter-spacing:.5px; }
.review-quote .text  { margin-top:.25rem; line-height:1.35; }
.review-quote .meta  { margin-top:.25rem; opacity:.75; }

/* container matches banner width via .container */
.hero-head {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

/* image keeps its own height; scales to full page/container width */
.hero-underlay {
  display: block;
  width: 100%;
  height: auto;          /* keep natural aspect ratio & height */
}

/* center the text on top of the image */
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: clamp(16px, 4vw, 32px);
}



/* optional: tiny tracking for the headline */
.hero-copy h1 { letter-spacing: .02em; }

/* keep CTA readable on busy photos */
.hero-copy .cta {
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
}

/* fallback if webkit stroke isn’t available */
@supports not (-webkit-text-stroke: 1px white) {
  .hero-copy h1,
  .hero-copy .sub {
    text-shadow:
      1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff,
      0 0 1px #fff; /* still very light */
  }
}


/* hero text: solid white + bold (no outline) */
.home .hero-copy h1,
.home .hero-copy .sub {
  color: #fff;
  font-weight: 800;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* CTA button on the hero */
.home .hero-copy .cta {
  font: inherit;                 /* make the anchor inherit the site font */
  display: inline-block;
  padding: .65rem 1.25rem;
  background: #fff;              /* white inside */
  color: #000;                   /* black text */
  border: 2px solid #000;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, transform .06s ease;
}
.home .hero-copy .cta:hover,
.home .hero-copy .cta:focus-visible {
  background: #000;              /* invert on hover/focus */
  color: #fff;
}
.home .hero-copy .cta:active {
  transform: translateY(1px);
}

.home main.hero,
.home .hero.has-banner { padding-top: 0; }
.home .hero.has-banner > .container:first-child { /* first block inside the hero */
  padding-top: clamp(6px, 1.5vw, 12px);
}

/* section title for the reviews banner */
/* section title for the reviews banner */
.home .section-title {
  color: #111;                           /* black on light bg */
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 30px);   /* bigger */
  text-align: center;
  letter-spacing: .01em;
  margin: .25rem 0 .6rem;                /* tidy spacing above/below */
}

/* same bottom padding below the paragraph section */
.home .why-wrap {
  margin-top: clamp(12px, 3vw, 24px);
  margin-bottom: clamp(12px, 3vw, 24px);
}

/* paragraph styling */
.home .why-body {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  color: #333;
  line-height: 1.6;
}


.footer .btn,
.footer .btn:visited {
  color: #000 !important;
}

.footer .btn:hover,
.footer .btn:focus {
  color: #000 !important;
  text-decoration: none; /* optional: keep it looking like a button */
}
/* --- Ticker (homepage only) --- */
.ticker-wrap {
  background: #000;
  overflow: hidden;
  border-radius: .5rem;
  margin-top: .75rem;
  margin-bottom: .75rem;
}
.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 18s linear infinite;
  padding: .5rem 0;
}
.ticker-track span {
  color: #d4af37;               /* gold */
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .9rem;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); } /* we’ll duplicate content 3x in JS */
}

/* --- Hero underlay: sticky parallax while hero is onscreen --- */
.hero-head { position: relative; border-radius: 12px; overflow: hidden; }

/* Image fills container width and keeps aspect */
.hero-underlay {
  display: block;
  width: 100%;
  height: auto;
}

/* Text centered over the image */
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: clamp(16px, 4vw, 32px);
}



/* --- Why choose us: entrance animation + larger, indented lines --- */
.why-wrap { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.why-wrap.in-view { opacity: 1; transform: translateY(0); }
.why-points p {
  margin: .25rem 0;
  font-size: clamp(1.05rem, 1.2vw + .9rem, 1.35rem);
  line-height: 1.45;
}


/* --- FAQ --- */
.faq-wrap { margin-top: 1.25rem; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 1fr; }
}
.faq-grid details {
  border: 1px solid #ddd;
  border-radius: .5rem;
  background: #fff;
  padding: .5rem .75rem;
}
.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;              /* hide default marker in some browsers */
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: '▾';
  float: right;
  transition: transform .2s ease;
}
.faq-grid details[open] summary::after { transform: rotate(180deg); }
.faq-grid .faq-a { padding-top: .5rem; color: #333; line-height: 1.45; }

/* Reusable reveal animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==== Product page extras (gallery thumbs, qty control, pretty selects) ==== */

/* Gallery */
.product-page .gallery .main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-page .thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* legacy thumb rule disabled — boxed thumbs below take over */
.product-page .thumbs img { display: block; }

.product-page .thumbs img:hover { opacity: 1; }
.product-page .thumbs img.active { border-color: #111; opacity: 1; }

/* Qty +/- control */
.product-page .qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.product-page .qty-control input {
  width: 70px;
  text-align: center;
  border: 0;
  padding: .5rem;
  outline: none;
}
.product-page .qty-btn {
  width: 40px; height: 40px;
  border: 0;
  background: #f6f6f6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.product-page .qty-btn:active { transform: translateY(1px); }

/* Pretty selects (scoped to product page only) */
.product-page select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: .6rem .9rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background:
    #fff
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%23888" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    no-repeat right 10px center / 12px;
}
.product-page select:focus {
  outline: 2px solid #7aa7ff;
  border-color: #7aa7ff;
}

/* ==== Product page polish (thumb boxes, accordion, spacing, mobile) ==== */

/* overall spacing */
.product-wrap { gap: clamp(16px, 4vw, 32px); align-items: start; }
.product-page .gallery { margin-bottom: .5rem; }

/* thumbnails: each in its own little box */
.product-page .thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.product-page .thumbs .thumb-box {
  width: 82px; height: 82px;
  display: grid; place-items: center;
  padding: 6px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}


/* smaller thumbs on tiny screens */
@media (max-width: 520px) {
  .product-page .thumbs .thumb-box { width: 68px; height: 68px; padding: 5px; }
}

/* prettier accordion (Description / Usage / Certificates) */
.product-page .accordion { display: grid; gap: .6rem; margin-top: 1rem; }
.product-page .accordion details {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: .75rem 1rem;
}
.product-page .accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-page .accordion summary::-webkit-details-marker { display: none; }
.product-page .accordion summary::after {
  content: '▾';
  margin-left: 1rem;
  transition: transform .2s ease;
}
.product-page .accordion details[open] summary::after { transform: rotate(180deg); }
.product-page .accordion .desc { margin-top: .5rem; color: #333; line-height: 1.55; }

/* buttons area: a touch more space; full-width on narrow screens */
.product-page .details .actions { margin: .75rem 0 1rem; gap: .75rem; }
@media (max-width: 520px) {
  .product-page .details .actions .btn { flex: 1 1 auto; }
}
.product-page .social-proof {
  margin-top: .35rem;
  font-size: .95rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.product-page .social-proof .stars { color: #f5b301; letter-spacing: .5px; }

.product-page .thumbs .thumb-box {
  width: 82px;
  height: 82px;
  box-sizing: border-box;         /* padding/border included in 82×82 */
  overflow: hidden;               /* clip just in case */
  display: flex;                  /* center the image reliably */
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
}

.product-page .thumbs .thumb-box .thumb {
  /* strictly shrink-to-fit while keeping aspect ratio */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;            /* no distortion, no crop */
  object-position: center center;
  border-radius: 6px;
}