/* ─────────────────────────────────────────────────────────────────────────
   The Keelo shop (scripts/shop.js, products in scripts/shop-catalog.js):
   inside the landing's chrome (.landing, its header and footer, landing.css
   tokens). A deep-green banner with the Keelo clock, a toolbar (search,
   sort, cart) and category chips, the product grid, a "for clubs" band; a
   product sheet and a cart drawer (native <dialog>s). Scoped to .sh-*.
   ───────────────────────────────────────────────────────────────────────── */
.landing--shop { background: #F6F8F5; }
.sh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sh-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sh :focus-visible, .sh-dialog :focus-visible { outline: 2px solid var(--ld-brand); outline-offset: 2px; border-radius: 8px; }
html.sh-dialog-open, html.sh-dialog-open body { overflow: hidden; }

/* The header's current page. */
.ld-nav-link[aria-current="page"] { color: var(--ld-brand); font-weight: 600; }
.ld-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.ld-menu-link[aria-current="page"] { color: var(--ld-brand); }

.sh { padding: calc(var(--ld-nav-h) + clamp(16px, 2.4vw, 28px)) 0 clamp(48px, 7vw, 88px); }
/* Inside a signed-in workspace (sidebar, no fixed landing header). */
.landing--embedded { background: transparent; }
.landing--embedded .sh { padding-top: clamp(16px, 2.4vw, 28px); }
.landing--embedded .ld-wrap { padding-inline: clamp(16px, 3vw, 40px); }
.landing--embedded .sh-summary { top: 20px; }

/* ── Banner ──────────────────────────────────────────────────────────────── */
.sh-hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 8px;
  padding: clamp(20px, 3.4vw, 40px);
  border-radius: 28px;
  overflow: hidden;
  color: var(--ld-paper);
  background:
    radial-gradient(60% 90% at 18% 70%, rgba(47, 209, 91, 0.32), transparent 65%),
    radial-gradient(40% 60% at 95% 0%, rgba(214, 245, 98, 0.16), transparent 70%),
    linear-gradient(135deg, #0A3019 0%, #0E5C2E 55%, #147A3D 100%);
  box-shadow: 0 30px 60px -40px rgba(14, 60, 30, 0.7);
  isolation: isolate;
}
/* A faint chessboard in the banner's background. */
.sh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: conic-gradient(rgba(255, 255, 255, 0.045) 25%, transparent 0 50%, rgba(255, 255, 255, 0.045) 0 75%, transparent 0);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.sh-hero-kicker {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(214, 245, 98, 0.16);
  color: var(--ld-pop);
  font-family: var(--ld-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.sh-hero-title {
  margin: 14px 0 0;
  font-family: var(--ld-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sh-hero-title:focus { outline: none; }
.sh-hero-sub { margin: 12px 0 0; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.55; color: var(--ld-muted-dark); }
.sh-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sh-hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  font-weight: 500;
}
.sh-hero-pills .sh-icon { width: 18px; height: 18px; color: var(--ld-pop); }
/* The banner's photo: the Keelo clock beside a board, in a framed card. */
.sh-hero-visual { position: relative; order: -1; }
.sh-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 693 / 459;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 28px 50px -24px rgba(0, 0, 0, 0.6);
}
@media (min-width: 900px) {
  .sh-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 52px); }
  .sh-hero-visual { order: 0; }
}

/* ── Toolbar and categories ──────────────────────────────────────────────── */
.sh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(28px, 4vw, 44px); }
.sh-bar-title { margin: 0; font-family: var(--ld-display); font-weight: 800; font-size: clamp(1.375rem, 2vw, 1.75rem); color: #0B3A1F; }
.sh-bar-count { font-weight: 500; color: var(--ld-muted-light); }
.sh-bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-inline-start: auto; }
.sh-search, .sh-sort select, .sh-cart-btn {
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--ld-line-light);
}
.sh-search { display: flex; align-items: center; gap: 8px; padding-inline: 14px; width: 300px; max-width: 100%; color: var(--ld-muted-light); }
.sh-search:focus-within { box-shadow: inset 0 0 0 2px var(--ld-brand); }
.sh-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 0.9375rem; color: var(--ld-ink); outline: none; }
.sh-search input::-webkit-search-cancel-button { cursor: pointer; }
.sh-sort select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline: 14px 38px;
  border: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ld-ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310261A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 12px center;
}
[dir="rtl"] .sh-sort select { padding-inline: 38px 14px; background-position: left 12px center; }
.sh-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #FFFFFF;
  background: var(--ld-forest);
  box-shadow: none;
  transition: background-color 0.2s ease;
}
.sh-cart-btn:hover { background: var(--ld-brand); }
.sh-cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ld-pop);
  color: #0E3B1F;
  font-size: 0.75rem;
  font-weight: 800;
}
.sh-cart-badge[hidden] { display: none; }
@media (max-width: 639px) {
  .sh-bar-tools:has(.sh-search) { width: 100%; margin-inline-start: 0; }
  .sh-search { flex: 1 1 100%; width: auto; }
  .sh-sort { flex: 1; }
  .sh-sort select { width: 100%; }
}

.sh-cats { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sh-cats::-webkit-scrollbar { display: none; }
.sh-cat {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--ld-line-light);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ld-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sh-cat:hover { background: var(--ld-mint); }
.sh-cat.is-active { background: var(--ld-brand); color: #FFFFFF; box-shadow: none; }

/* ── Product grid ────────────────────────────────────────────────────────── */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.sh-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.07), 0 10px 28px -22px rgba(14, 60, 30, 0.45);
  overflow: hidden;
  transition: transform 0.3s var(--ld-ease), box-shadow 0.3s ease;
}
.sh-card[hidden] { display: none; }
.sh-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(20, 122, 61, 0.18), 0 22px 40px -26px rgba(14, 60, 30, 0.55); }
.sh-card-open { position: relative; display: block; width: 100%; padding: 0; cursor: pointer; }
.sh-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 55%, #FFFFFF 0%, transparent 75%),
    linear-gradient(180deg, #F1F6F2 0%, #E6EFE8 100%);
}
.sh-media img, .sh-media svg { display: block; width: 100%; height: 100%; }
.sh-media--contain img { object-fit: contain; padding: 8% 10%; }
.sh-media--cover img { object-fit: cover; }
.sh-media--art svg { padding: 6% 8%; }
.sh-card:hover .sh-media img, .sh-card:hover .sh-media svg { transform: scale(1.04); }
.sh-media img, .sh-media svg { transition: transform 0.5s var(--ld-ease); }
.sh-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--ld-brand);
  color: #FFFFFF;
}
.sh-badge--clubs { background: #0B3A1F; }
.sh-badge--new { background: var(--ld-pop); color: #0E3B1F; }
.sh-badge--now { background: var(--ld-pop); color: #0E3B1F; }
.sh-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 16px 16px; }
.sh-card-name { margin: 0; font-family: var(--ld-display); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.sh-card-name button { padding: 0; text-align: start; color: var(--ld-ink); }
.sh-card-name button:hover { color: var(--ld-brand); }
.sh-card-tag {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ld-muted-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sh-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.sh-price { font-family: var(--ld-display); font-weight: 800; font-size: 1.3125rem; color: #0B3A1F; }
.sh-price--quote { font-size: 0.9375rem; font-weight: 600; color: var(--ld-green-deep); }
.sh-price-unit { margin-inline-start: 6px; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; color: var(--ld-muted-light); }
/* A promise, e.g. the pre-order's full refund. */
.sh-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--ld-mint);
  color: var(--ld-green-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.sh-note .sh-icon { width: 16px; height: 16px; margin-top: 1px; }
.sh-sheet-info .sh-note { margin-top: 14px; font-size: 0.875rem; }

/* The product buttons. */
.sh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ld-brand);
  color: #FFFFFF;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.sh-cta:hover { background: #179046; }
.sh-cta--card { width: 100%; margin-top: 10px; }
.sh-cta--outline { background: transparent; color: var(--ld-brand); box-shadow: inset 0 0 0 1.5px var(--ld-brand); }
.sh-cta--outline:hover { background: var(--ld-mint); }
.sh-cta--soon, .sh-cta:disabled { background: #EEF2EF; color: rgba(16, 38, 26, 0.5); box-shadow: none; cursor: not-allowed; }

/* Phones: two cards a row, tighter. */
@media (max-width: 639px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sh-card { border-radius: 16px; }
  .sh-badge { top: 8px; inset-inline-start: 8px; padding: 4px 8px; font-size: 0.6875rem; }
  .sh-card-body { padding: 12px; gap: 4px; }
  .sh-card-name { font-size: 0.9375rem; }
  .sh-card-tag { font-size: 0.8125rem; }
  .sh-price { font-size: 1.125rem; }
  .sh-price--quote { font-size: 0.8125rem; }
  .sh-cta--card { height: 40px; padding: 0 8px; gap: 6px; font-size: 0.8125rem; border-radius: 10px; }
  .sh-cta--card .sh-icon { width: 16px; height: 16px; }
}
}

/* No results. */
.sh-empty { margin-top: 24px; padding: 40px 20px; border-radius: 20px; background: #FFFFFF; text-align: center; color: var(--ld-muted-light); box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.07); }
.sh-empty[hidden] { display: none; }
.sh-empty p { margin: 0 0 14px; }
.sh-empty-title { font-family: var(--ld-display); font-weight: 700; font-size: 1.25rem; color: var(--ld-ink); }

/* ── For clubs ───────────────────────────────────────────────────────────── */
.sh-clubs {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: linear-gradient(120deg, #E6F4E9 0%, #F2FAE0 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 122, 61, 0.12);
}
.sh-clubs-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ld-brand); color: #FFFFFF; }
.sh-clubs-icon .sh-icon { width: 26px; height: 26px; }
.sh-clubs h2 { margin: 0; font-family: var(--ld-display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.625rem); color: #0B3A1F; }
.sh-clubs p { margin: 6px 0 0; max-width: 62ch; line-height: 1.55; color: var(--ld-muted-light); }
.sh-clubs .ld-btn { justify-self: start; background: var(--ld-brand); color: #FFFFFF; box-shadow: 0 4px 0 #0B4A25; }
.sh-clubs .ld-btn:hover { background: #179046; }
@media (min-width: 760px) {
  .sh-clubs { grid-template-columns: auto 1fr auto; gap: 22px; }
}

/* ── Dialogs: the product sheet and the cart drawer ─────────────────────── */
.sh-dialog {
  padding: 0;
  border: 0;
  color: var(--ld-ink);
  background: #FFFFFF;
  font-family: var(--font-body);
}
.sh-dialog::backdrop { background: rgba(8, 26, 15, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sh-dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F5F2;
  color: var(--ld-ink);
}
.sh-dialog-close:hover { background: #E2EBE4; }

.sh-sheet {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 24px;
  overflow: auto;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.sh-sheet[open] { animation: shRise 0.35s var(--ld-ease); }
@keyframes shRise { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.sh-sheet > .sh-dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.sh-sheet-grid { display: grid; }
.sh-sheet-media { position: relative; }
.sh-media--lg { aspect-ratio: 4 / 3; height: 100%; }
.sh-sheet-info { padding: 24px; display: flex; flex-direction: column; }
.sh-sheet-cat { margin: 0; font-size: 0.8125rem; font-weight: 700; color: var(--ld-green-deep); letter-spacing: 0.02em; }
.sh-sheet-name { margin: 6px 0 0; font-family: var(--ld-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; color: #0B3A1F; }
.sh-sheet-tag { margin: 10px 0 0; line-height: 1.55; color: var(--ld-muted-light); }
.sh-sheet-sub { margin: 20px 0 0; font-size: 0.875rem; font-weight: 700; }
.sh-sheet-features { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.sh-sheet-features li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.sh-sheet-features .sh-icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ld-mint); color: var(--ld-brand); stroke-width: 2.6; }
.sh-sheet-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 24px; }
.sh-sheet-buy .sh-price { font-size: 1.625rem; }
.sh-cta--sheet { min-width: 200px; height: 48px; }
@media (min-width: 760px) {
  .sh-sheet-grid { grid-template-columns: 1fr 1fr; }
  .sh-media--lg { aspect-ratio: auto; min-height: 100%; }
  .sh-sheet-info { padding: 40px 32px 32px; }
}

.sh-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  inset-inline-start: auto;
  width: min(420px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  display: none;
  flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.45);
}
.sh-drawer[open] { display: flex; animation: shSlide 0.35s var(--ld-ease); }
@keyframes shSlide { from { transform: translateX(var(--sh-slide, 24px)); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="rtl"] .sh-drawer { --sh-slide: -24px; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--ld-line-light); }
.sh-drawer-head h2 { margin: 0; font-family: var(--ld-display); font-weight: 800; font-size: 1.375rem; color: #0B3A1F; }
.sh-drawer-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sh-lines { flex: 1; overflow-y: auto; margin: 0; padding: 8px 20px; list-style: none; }
.sh-line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: 'thumb info remove' 'thumb qty qty'; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--ld-line-light); }
.sh-media--thumb { grid-area: thumb; width: 64px; height: 64px; aspect-ratio: auto; border-radius: 12px; }
.sh-media--thumb.sh-media--contain img { padding: 6%; }
.sh-media--thumb.sh-media--art svg { padding: 4%; }
.sh-line-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-line-name { font-weight: 600; line-height: 1.3; }
.sh-line-note { font-size: 0.75rem; font-weight: 700; color: var(--ld-green-deep); }
.sh-line-price { font-family: var(--ld-display); font-weight: 700; }
.sh-line-qty { grid-area: qty; display: inline-flex; align-items: center; justify-self: start; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--ld-line-light); }
.sh-line-qty button { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ld-ink); }
.sh-line-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.sh-line-qty .sh-icon { width: 16px; height: 16px; }
.sh-line-qty input {
  width: 44px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--ld-ink);
  -moz-appearance: textfield;
}
.sh-line-qty input::-webkit-outer-spin-button,
.sh-line-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sh-line-qty input:focus-visible { outline: 2px solid var(--ld-brand); outline-offset: -2px; border-radius: 6px; }
.sh-line-remove { grid-area: remove; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ld-muted-light); }
.sh-line-remove:hover { background: #FBEDED; color: #B42318; }
.sh-line-remove .sh-icon { width: 18px; height: 18px; }
.sh-cart-foot { display: grid; gap: 10px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ld-line-light); background: #FAFCFA; }
.sh-cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.sh-cart-total b { font-family: var(--ld-display); font-size: 1.375rem; font-weight: 800; color: #0B3A1F; }
.sh-cart-foot .sh-cta { width: 100%; }
.sh-cart-soon { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ld-muted-light); text-align: center; }
.sh-cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; color: var(--ld-muted-light); }
.sh-cart-empty p { margin: 0; }
.sh-cart-empty-icon { width: 44px; height: 44px; color: #B6C6BB; }

/* "Added to the cart": the first line of the cart after an add. */
.sh-drawer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 20px;
  background: #E7F5EC;
  border-bottom: 1px solid var(--ld-line-light);
  color: #0B3A1F;
  font-weight: 600;
  font-size: 0.9375rem;
}
.sh-drawer-note[hidden] { display: none; }
.sh-drawer-note .sh-icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 999px; background: var(--ld-brand); color: #FFFFFF; stroke-width: 2.6; }

@media (prefers-reduced-motion: reduce) {
  .sh-card, .sh-media img, .sh-media svg { transition: none; }
  .sh-sheet[open], .sh-drawer[open] { animation: none; }
  .sh-card:hover, .sh-card:hover .sh-media img, .sh-card:hover .sh-media svg { transform: none; }
}

/* ── The shop's information links (store and every shop page) ───────────── */
.sh-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: clamp(28px, 4vw, 40px); font-size: 0.875rem; }
.sh-links a { color: var(--ld-muted-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(16, 38, 26, 0.25); }
.sh-links a:hover { color: var(--ld-brand); }

/* ── Shop pages: checkout, payment, thanks, terms, contact (shop-pages.js) ─ */
.sh--page { min-height: 70vh; }
.sh-page-title { margin: 0; font-family: var(--ld-display); font-weight: 800; font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; color: #0B3A1F; }
.sh-page-title:focus { outline: none; }
.sh-page-lead { margin: 8px 0 0; max-width: 60ch; line-height: 1.6; color: var(--ld-muted-light); }
.sh-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.875rem; font-weight: 600; color: var(--ld-green-deep); }
.sh-back .ld-btn-arrow { transform: rotate(-135deg); width: 7px; height: 7px; }
[dir="rtl"] .sh-back .ld-btn-arrow { transform: rotate(45deg); }
.sh-fill { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #FFF4CC; color: #7A5A00; font-size: 0.8125rem; font-weight: 700; }

/* The steps: cart → details → payment. */
.sh-steps { display: flex; align-items: center; gap: 8px; margin: 0 0 clamp(18px, 3vw, 28px); padding: 0; list-style: none; }
.sh-step { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ld-muted-light); }
.sh-step + .sh-step::before { content: ''; width: clamp(16px, 4vw, 40px); height: 2px; border-radius: 2px; background: var(--ld-line-light); }
.sh-step-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--ld-line-light); font-size: 0.8125rem; }
.sh-step-no .sh-icon { width: 14px; height: 14px; stroke-width: 2.6; }
.sh-step.is-done { color: var(--ld-green-deep); }
.sh-step.is-done .sh-step-no { background: var(--ld-mint); box-shadow: none; color: var(--ld-brand); }
.sh-step.is-current { color: #0B3A1F; }
.sh-step.is-current .sh-step-no { background: var(--ld-brand); color: #FFFFFF; box-shadow: none; }

/* Two columns: the form and the order summary. */
.sh-checkout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .sh-checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .sh-summary { position: sticky; top: calc(var(--ld-nav-h) + 20px); }
}
@media (max-width: 959px) {
  .sh-summary { order: -1; }
}
.sh-form { padding: clamp(18px, 3vw, 32px); border-radius: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.07), 0 18px 40px -32px rgba(14, 60, 30, 0.5); }
.sh-form-error { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-size: 0.9375rem; font-weight: 600; }
.sh-form-error[hidden] { display: none; }
.sh-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 24px 0 0; padding: 0; border: 0; }
.sh-fieldset legend { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0; font-family: var(--ld-display); font-weight: 700; font-size: 1.0625rem; color: #0B3A1F; }
.sh-fieldset legend .sh-icon { color: var(--ld-brand); }
.sh-fieldset--plain { margin-top: 18px; }
.sh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-field--wide { grid-column: 1 / -1; }
.sh-field label { font-size: 0.875rem; font-weight: 600; color: var(--ld-ink); }
.sh-req { margin-inline-start: 3px; color: #B42318; }
.sh-field input, .sh-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #F7FAF7;
  box-shadow: inset 0 0 0 1px rgba(16, 38, 26, 0.14);
  font: inherit;
  font-size: 1rem;
  color: var(--ld-ink);
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.sh-field textarea { resize: vertical; min-height: 88px; }
.sh-field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .sh-field input[dir="ltr"] { text-align: right; }
.sh-field input:focus, .sh-field textarea:focus { outline: none; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--ld-brand); }
.sh-field [aria-invalid="true"] { background: #FFF8F8; box-shadow: inset 0 0 0 1.5px #D92D20; }
.sh-field-hint { margin: 0; font-size: 0.8125rem; color: var(--ld-muted-light); }
.sh-field-err { margin: 0; min-height: 0; font-size: 0.8125rem; font-weight: 600; color: #B42318; }
.sh-field-err:empty { display: none; }
@media (max-width: 559px) {
  .sh-fieldset { grid-template-columns: 1fr; }
}
.sh-terms-check { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--ld-mint); }
.sh-terms-check label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.sh-terms-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ld-brand); }
.sh-terms-check a { color: var(--ld-green-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sh-terms-check .sh-field-err { margin-top: 6px; }
.sh-submit { width: 100%; margin-top: 20px; height: 52px; font-size: 1rem; }
.sh-submit .ld-btn-arrow { width: 7px; height: 7px; }
.sh-form-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ld-muted-light); }
.sh-form-note .sh-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--ld-green-deep); }

/* The order summary. */
.sh-summary { padding: 20px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.07), 0 18px 40px -32px rgba(14, 60, 30, 0.5); }
.sh-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sh-summary-head h2 { margin: 0; font-family: var(--ld-display); font-weight: 800; font-size: 1.1875rem; color: #0B3A1F; }
.sh-summary-head a, .sh-review-head a { font-size: 0.875rem; font-weight: 600; color: var(--ld-green-deep); text-decoration: underline; text-underline-offset: 3px; }
.sh-sum-lines { margin: 12px 0 0; padding: 0; list-style: none; }
.sh-sum-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ld-line-light); }
.sh-sum-line .sh-media--thumb { grid-area: auto; width: 56px; height: 56px; }
.sh-sum-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-sum-name { font-weight: 600; line-height: 1.3; }
.sh-sum-meta { font-size: 0.8125rem; color: var(--ld-muted-light); }
.sh-sum-price { font-family: var(--ld-display); font-weight: 700; }
.sh-sum-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 0.875rem; color: var(--ld-muted-light); }
.sh-sum-row span { display: inline-flex; align-items: center; gap: 6px; }
.sh-sum-row .sh-icon { width: 16px; height: 16px; color: var(--ld-brand); }
.sh-sum-row b { color: var(--ld-green-deep); }
.sh-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 600; }
.sh-sum-total b { font-family: var(--ld-display); font-size: 1.5rem; font-weight: 800; color: #0B3A1F; }

/* Step 3: the details to confirm, then payment. */
.sh-review { margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: #F7FAF7; box-shadow: inset 0 0 0 1px rgba(16, 38, 26, 0.08); }
.sh-review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sh-review-head h2 { margin: 0; font-family: var(--ld-display); font-size: 1.0625rem; font-weight: 700; color: #0B3A1F; }
.sh-review dl { display: grid; gap: 8px; margin: 12px 0 0; }
.sh-review-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 0.9375rem; }
.sh-review dt { color: var(--ld-muted-light); }
.sh-review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 479px) { .sh-review-row { grid-template-columns: 1fr; gap: 2px; } }
.sh-paybox { margin-top: 6px; }
.sh-pay-soon { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF8E1; color: #6B4E00; font-size: 0.875rem; line-height: 1.55; }
.sh-pay-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sh-pay-alt .sh-cta { flex: 1 1 200px; }

/* Empty cart / missing details, and the thank-you page. */
.sh-page-empty, .sh-thanks { display: grid; justify-items: center; gap: 12px; max-width: 620px; margin: clamp(16px, 5vw, 48px) auto 0; padding: clamp(28px, 5vw, 48px) 24px; border-radius: 24px; background: #FFFFFF; text-align: center; box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.07); }
.sh-page-empty p { margin: 0; color: var(--ld-muted-light); }
.sh-thanks-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ld-brand); color: #FFFFFF; }
.sh-thanks-icon .sh-icon { width: 32px; height: 32px; stroke-width: 2.6; }
.sh-thanks-next { width: 100%; margin-top: 8px; padding: 16px 18px; border-radius: 16px; background: var(--ld-mint); text-align: start; }
.sh-thanks-next h2 { margin: 0; font-family: var(--ld-display); font-size: 1.0625rem; font-weight: 700; color: #0B3A1F; }
.sh-thanks-next ul { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.sh-thanks-next li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.sh-thanks-next .sh-icon { margin-top: 2px; color: var(--ld-brand); }
.sh-thanks-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* The terms. */
.sh-doc, .sh-contact { max-width: 820px; margin-inline: auto; padding: clamp(20px, 4vw, 44px); border-radius: 24px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.07), 0 18px 40px -32px rgba(14, 60, 30, 0.5); }
.sh-doc-version { margin: 6px 0 0; font-size: 0.875rem; color: var(--ld-muted-light); }
.sh-doc-draft { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #FFF4CC; color: #7A5A00; font-weight: 700; font-size: 0.9375rem; }
.sh-doc-toc { margin-top: 20px; padding: 14px 18px; border-radius: 16px; background: #F7FAF7; }
.sh-doc-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; margin: 0; padding-inline-start: 22px; }
.sh-doc-toc button { padding: 4px 0; text-align: start; color: var(--ld-green-deep); font-weight: 600; font-size: 0.9375rem; }
.sh-doc-toc button:hover { text-decoration: underline; }
.sh-doc-section { margin-top: 28px; scroll-margin-top: calc(var(--ld-nav-h) + 16px); }
.sh-doc-section:focus { outline: none; }
.sh-doc-section h2 { margin: 0 0 8px; font-family: var(--ld-display); font-weight: 700; font-size: 1.25rem; color: #0B3A1F; }
.sh-doc-no { color: var(--ld-brand); }
.sh-doc-section p { margin: 8px 0 0; line-height: 1.75; color: #24382C; }
.sh-doc-section a { color: var(--ld-green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Contact details (the contact page and the terms' last section). */
.sh-contact-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.sh-contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #F7FAF7; }
.sh-contact-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ld-mint); color: var(--ld-brand); }
.sh-contact-label { display: block; font-size: 0.8125rem; color: var(--ld-muted-light); }
.sh-contact-value { display: block; font-weight: 600; overflow-wrap: anywhere; }
.sh-contact-value a { color: var(--ld-ink); }
.sh-contact-value a:hover { color: var(--ld-brand); }
.sh-contact .sh-thanks-ctas { justify-content: flex-start; margin-top: 20px; }
