/* ============================================================================
 * Searchlab digital shop — storefront, product page, checkout, thank-you.
 * Loaded only on shop pages. Colours come from the site tokens in
 * searchlab-v3.css, so the shop follows the brand and dark mode with it.
 * ========================================================================== */
.sh {
  --sh-r: 16px;
  --sh-line: var(--v3-border, #E6EAF2);
  --sh-card: var(--v3-bg-card, #fff);
  --sh-ink: var(--v3-text, #0F1117);
  --sh-mut: var(--v3-text-muted, #6B7280);
  --sh-acc: var(--v3-accent, #2563EB);
  --sh-acc-l: var(--v3-accent-light, #E8F1FE);
  --sh-grad: var(--v3-grad, linear-gradient(135deg, #22D3EE, #2563EB 55%, #4F46E5));
  --sh-ok: #138557;
  --sh-ok-bg: #EAF9F2;
  --sh-bad: #C0334A;
  font-family: var(--v3-font, inherit);
  color: var(--sh-ink);
}
.sh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
/* hidden must win over the display rules below (the coupon row, error box, tab panels) */
.sh [hidden] { display: none !important; }
.sh a { color: inherit; }
.sh img { display: block; max-width: 100%; }

/* ---- buttons ------------------------------------------------------------- */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border: 0; border-radius: 12px;
  background: var(--sh-grad);
  color: #fff !important;
  font: 700 15px/1 var(--v3-font, inherit);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.sh-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .38); }
.sh-btn:active { transform: none; filter: brightness(.96); }
.sh-btn:focus-visible { outline: 3px solid var(--sh-acc-l); outline-offset: 2px; }
.sh-btn[disabled], .sh-btn.is-off { background: #C9CED8; box-shadow: none; cursor: not-allowed; transform: none; }
.sh-btn-block { width: 100%; }
.sh-btn-lg { padding: 17px 26px; font-size: 16.5px; border-radius: 14px; }
.sh-link { color: var(--sh-acc) !important; font-weight: 700; text-decoration: none; }
.sh-link:hover { text-decoration: underline; }

/* ---- hero ---------------------------------------------------------------- */
.sh-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 72px) 0 clamp(30px, 4vw, 44px);
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(79, 70, 229, .14), transparent 70%),
    radial-gradient(50% 80% at 10% 20%, rgba(34, 211, 238, .14), transparent 70%),
    var(--v3-bg, #F5F7FB);
  border-bottom: 1px solid var(--sh-line);
}
.sh-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--sh-card); border: 1px solid var(--sh-line);
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--sh-acc);
}
.sh-hero h1 {
  margin: 16px 0 12px;
  font-family: var(--v3-font-display, inherit);
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  max-width: 18ch; text-wrap: balance;
}
.sh-hero h1 em { font-style: normal; background: var(--sh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-hero p { margin: 0; max-width: 58ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: var(--sh-mut); }
.sh-search {
  margin-top: 24px;
  display: flex; align-items: center; gap: 10px;
  max-width: 520px;
  padding: 6px 6px 6px 16px;
  background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 26, 58, .06);
}
.sh-search:focus-within { border-color: var(--sh-acc); box-shadow: 0 0 0 4px var(--sh-acc-l); }
.sh-search svg { flex: none; opacity: .5; }
.sh-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: 500 16px var(--v3-font, inherit); color: var(--sh-ink); padding: 10px 0;
}
.sh-search button { padding: 11px 18px; font-size: 14px; border-radius: 10px; box-shadow: none; }

/* ---- filter bar ---------------------------------------------------------- */
.sh-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 22px 0 6px;
}
.sh-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--sh-line); background: var(--sh-card);
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--sh-ink);
  transition: border-color .2s, background .2s, color .2s;
}
.sh-chip span { font-size: 11.5px; color: var(--sh-mut); font-weight: 700; }
.sh-chip:hover { border-color: var(--sh-acc); }
.sh-chip.on { background: var(--sh-ink); border-color: var(--sh-ink); color: var(--sh-card); }
.sh-chip.on span { color: inherit; opacity: .7; }
.sh-sort {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--sh-mut);
}
.sh-sort select {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--sh-line);
  background: var(--sh-card); color: var(--sh-ink); font: 600 13.5px var(--v3-font, inherit);
}
.sh-result-note { margin: 4px 0 0; font-size: 13px; color: var(--sh-mut); }

/* ---- product grid -------------------------------------------------------- */
.sh-grid {
  /* fixed columns: auto-fill left an empty slot beside a short row */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding: 18px 0 clamp(40px, 6vw, 70px);
}
.sh-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: var(--sh-r);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, border-color .3s;
}
.sh-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--sh-acc) 30%, var(--sh-line)); box-shadow: 0 22px 46px rgba(13, 26, 58, .1); }
.sh-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sh-acc-l); }
.sh-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.sh-card:hover .sh-media img { transform: scale(1.05); }
.sh-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--sh-grad); color: #fff;
  font-family: var(--v3-font-display, inherit); font-size: 44px; font-weight: 800; letter-spacing: -.04em;
}
.sh-badge {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: #111827; color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.sh-badge.out { left: auto; right: 12px; background: rgba(255, 255, 255, .92); color: var(--sh-bad); }
.sh-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.sh-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sh-acc); text-decoration: none; }
.sh-card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.sh-card h3 a { text-decoration: none; }
.sh-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card opens the product */
.sh-card p {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--sh-mut);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.sh-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-price b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sh-price s { font-size: 14px; color: var(--sh-mut); }
.sh-card .sh-btn { position: relative; z-index: 2; padding: 11px 16px; font-size: 14px; border-radius: 11px; }

.sh-empty {
  margin: 30px 0 70px; padding: 48px 24px; text-align: center;
  border: 1px dashed var(--sh-line); border-radius: var(--sh-r);
  color: var(--sh-mut);
}
.sh-empty h2 { margin: 0 0 8px; color: var(--sh-ink); font-size: 20px; }

/* ---- trust strip --------------------------------------------------------- */
.sh-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 0 clamp(50px, 7vw, 90px); }
.sh-trust div {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px; border-radius: var(--sh-r);
  background: var(--sh-card); border: 1px solid var(--sh-line);
}
.sh-trust i {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--sh-acc-l); color: var(--sh-acc); font-style: normal;
}
.sh-trust b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.sh-trust span { font-size: 13px; line-height: 1.5; color: var(--sh-mut); }

/* ---- product page -------------------------------------------------------- */
.sh-crumb { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0 0; font-size: 13px; color: var(--sh-mut); }
.sh-crumb a { text-decoration: none; }
.sh-crumb a:hover { color: var(--sh-acc); }
.sh-crumb i { font-style: normal; opacity: .45; }
.sh-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 22px 0 clamp(30px, 5vw, 56px); align-items: start; }
.sh-gal-main {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--sh-line); background: var(--sh-acc-l);
}
.sh-gal-main img { width: 100%; height: 100%; object-fit: cover; }
.sh-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.sh-thumb {
  flex: none; width: 82px; aspect-ratio: 4 / 3; padding: 0;
  border-radius: 11px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--sh-acc-l);
  transition: border-color .2s, transform .2s;
}
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-thumb:hover { transform: translateY(-2px); }
.sh-thumb.on { border-color: var(--sh-acc); }

.sh-info { position: sticky; top: 96px; display: grid; gap: 16px; }
.sh-info h1 {
  margin: 0;
  font-family: var(--v3-font-display, inherit);
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  text-wrap: balance;
}
.sh-lede { margin: 0; font-size: 16px; line-height: 1.65; color: var(--sh-mut); }
.sh-pricebox {
  display: grid; gap: 6px;
  padding: 18px 20px; border-radius: var(--sh-r);
  background: var(--sh-card); border: 1px solid var(--sh-line);
}
.sh-pricebox .sh-price b { font-size: 34px; }
.sh-pricebox .sh-price s { font-size: 17px; }
.sh-save { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px; background: var(--sh-ok-bg); color: var(--sh-ok); font-size: 12.5px; font-weight: 800; }
.sh-stock { font-size: 13px; font-weight: 700; color: var(--sh-ok); }
.sh-stock.low { color: #C27A12; }
.sh-stock.out { color: var(--sh-bad); }
.sh-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--sh-mut); }
.sh-points svg { flex: none; margin-top: 2px; color: var(--sh-ok); }

.sh-section { padding: 0 0 clamp(30px, 5vw, 56px); }
.sh-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--sh-line); margin-bottom: 22px; overflow-x: auto; }
.sh-tab {
  flex: none; padding: 12px 16px; border: 0; background: none; cursor: pointer;
  font: 700 14.5px var(--v3-font, inherit); color: var(--sh-mut);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sh-tab.on { color: var(--sh-ink); border-bottom-color: var(--sh-acc); }
.sh-panel { max-width: 78ch; font-size: 16px; line-height: 1.75; color: var(--v3-text-2, #374151); }
.sh-panel h2, .sh-panel h3 { color: var(--sh-ink); letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.sh-panel a { color: var(--sh-acc); }
.sh-panel ul, .sh-panel ol { padding-left: 1.3em; }
.sh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sh-steps div { padding: 18px; border-radius: var(--sh-r); border: 1px solid var(--sh-line); background: var(--sh-card); }
.sh-steps b { display: block; margin: 8px 0 4px; font-size: 15px; color: var(--sh-ink); }
.sh-steps span { font-size: 14px; line-height: 1.55; color: var(--sh-mut); }
.sh-steps em { font-style: normal; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sh-acc-l); color: var(--sh-acc); font-weight: 800; font-size: 13px; }
.sh-related h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 4px; }

/* sticky buy bar on phones */
.sh-mbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--sh-card); border-top: 1px solid var(--sh-line);
  box-shadow: 0 -10px 30px rgba(13, 26, 58, .1);
  align-items: center; gap: 14px;
}
.sh-mbar .sh-price b { font-size: 20px; }
.sh-mbar .sh-btn { flex: 1; }

/* ---- checkout ------------------------------------------------------------ */
.sh-co { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); padding: 22px 0 clamp(50px, 7vw, 90px); align-items: start; }
.sh-co h1 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.sh-co-sub { margin: 0 0 22px; color: var(--sh-mut); font-size: 15px; }
.sh-form { display: grid; gap: 22px; }
.sh-fieldset { border: 1px solid var(--sh-line); border-radius: var(--sh-r); padding: 20px; background: var(--sh-card); margin: 0; }
.sh-fieldset legend { padding: 0 8px; margin-left: -8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-acc); }
.sh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sh-row + .sh-row, .sh-field + .sh-row, .sh-row + .sh-field, .sh-field + .sh-field { margin-top: 14px; }
.sh-row > .sh-field + .sh-field { margin-top: 0; }   /* side-by-side fields stay level */
.sh-field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.sh-field label small { font-weight: 500; color: var(--sh-mut); }
.sh-field input, .sh-field textarea, .sh-field select {
  width: 100%;
  padding: 13px 14px; border-radius: 11px;
  border: 1px solid var(--sh-line); background: var(--v3-bg, #F8FAFC); color: var(--sh-ink);
  font: 500 16px var(--v3-font, inherit);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.sh-field textarea { min-height: 84px; resize: vertical; }
.sh-field input:focus, .sh-field textarea:focus, .sh-field select:focus { outline: 0; border-color: var(--sh-acc); background: var(--sh-card); box-shadow: 0 0 0 4px var(--sh-acc-l); }
.sh-field .sh-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--sh-mut); }
.sh-wa { display: flex; }
.sh-wa span {
  display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--sh-line); border-right: 0; border-radius: 11px 0 0 11px;
  background: var(--sh-acc-l); color: var(--sh-acc); font-weight: 800; font-size: 14px;
}
.sh-wa input { border-radius: 0 11px 11px 0; }

.sh-summary { position: sticky; top: 96px; display: grid; gap: 14px; padding: 20px; border-radius: var(--sh-r); border: 1px solid var(--sh-line); background: var(--sh-card); }
.sh-sum-prod { display: flex; gap: 14px; align-items: center; }
.sh-sum-prod .sh-media { flex: none; width: 92px; border-radius: 12px; }
.sh-sum-prod .sh-ph { font-size: 26px; }
.sh-sum-prod b { display: block; font-size: 15px; line-height: 1.35; }
.sh-sum-prod span { font-size: 12.5px; color: var(--sh-mut); }
.sh-coupon { display: flex; gap: 8px; }
.sh-coupon input {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--sh-line); background: var(--v3-bg, #F8FAFC); color: var(--sh-ink);
  font: 700 15px var(--v3-font, inherit); text-transform: uppercase; letter-spacing: .04em;
}
.sh-coupon button {
  padding: 0 16px; border-radius: 10px; border: 1px solid var(--sh-ink); background: var(--sh-ink); color: var(--sh-card);
  font: 700 13.5px var(--v3-font, inherit); cursor: pointer;
}
.sh-coupon-msg { margin: -4px 0 0; font-size: 13px; font-weight: 600; min-height: 1em; }
.sh-coupon-msg.ok { color: var(--sh-ok); }
.sh-coupon-msg.err { color: var(--sh-bad); }
.sh-lines { margin: 0; display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.sh-lines div { display: flex; justify-content: space-between; font-size: 14px; }
.sh-lines dt { color: var(--sh-mut); }
.sh-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-lines .disc dd { color: var(--sh-ok); }
.sh-total { display: flex; justify-content: space-between; align-items: baseline; }
.sh-total span { font-weight: 700; }
.sh-total b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sh-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; font-size: 12.5px; color: var(--sh-mut); }
.sh-alert { padding: 13px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: #FDEEF0; color: var(--sh-bad); }
.sh-alert.info { background: var(--sh-acc-l); color: var(--sh-acc); }

/* ---- thank you ----------------------------------------------------------- */
.sh-thanks { max-width: 620px; margin: clamp(40px, 7vw, 80px) auto; text-align: center; }
.sh-tick {
  width: 78px; height: 78px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--sh-ok-bg); color: var(--sh-ok);
  animation: sh-pop .55s cubic-bezier(.22, 1.4, .36, 1) both;
}
@keyframes sh-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-thanks h1 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.sh-thanks > p { margin: 0 auto 24px; max-width: 46ch; font-size: 16.5px; line-height: 1.65; color: var(--sh-mut); }
.sh-receipt { text-align: left; padding: 20px; border-radius: var(--sh-r); border: 1px solid var(--sh-line); background: var(--sh-card); margin-bottom: 22px; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-pdp, .sh-co { grid-template-columns: 1fr; }
  .sh-info, .sh-summary { position: static; }
  .sh-trust, .sh-steps { grid-template-columns: 1fr; }
  .sh-mbar { display: flex; }
  .sh-has-mbar { padding-bottom: 86px; }
}
@media (max-width: 560px) {
  .sh-row { grid-template-columns: 1fr; }
  .sh-grid { grid-template-columns: 1fr; }
  .sh-bar { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-card, .sh-media img, .sh-btn, .sh-tick { transition: none !important; animation: none !important; }
}
