.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   JudaiCart — sukkah poster flyer
   Palette from the brand marks in judaicart-logos/.
--------------------------------------------------------------------------- */

:root {
  --navy:       #14203C;
  --navy-deep:  #0D1629;
  --panel:      #1A2748;
  --panel-hi:   #22304F;
  --gold:       #C9A227;
  --gold-soft:  #E0BC4F;
  --cream:      #F5F2EA;
  --muted:      #9AA3B5;
  --line:       rgba(201, 162, 39, 0.22);
  --line-soft:  rgba(245, 242, 234, 0.10);

  /* Optima only exists on macOS, so most visitors were seeing a fallback.
     These load everywhere and keep the same humanist, gallery feel. */
  --font-display: "Cormorant Garamond", Optima, "Avenir Next", Georgia, serif;
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shell: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-soft); }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }

/* --- header (deliberately minimal) -------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 32px);
  background: rgba(13, 22, 41, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); line-height: 1;
}
.brand-name em { font-style: normal; font-weight: 600; color: var(--gold); }
.brand-sub { font-family: var(--font-ui); font-weight: 500; }
.brand:hover .brand-name em { color: var(--gold-soft); }
.brand-sub {
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); line-height: 1;
}

.cart-button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px;
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--cream); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.cart-button:hover { background: var(--panel-hi); border-color: var(--gold); }
.cart-button svg { width: 19px; height: 19px; }

.cart-count {
  min-width: 21px; height: 21px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: var(--navy);
  border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1;
}

/* --- page --------------------------------------------------------------- */

main { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 56px; }

/* Full-bleed strip above the header. Scrolls away; the header stays put. */
.banner {
  margin: 0;
  padding: 10px clamp(12px, 4vw, 32px);
  font-size: 14px; line-height: 1.45;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid;
}
.banner-short { display: none; }

.banner-ship {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; white-space: nowrap;
}
.banner-ship svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.banner-sep {
  width: 1px; height: 15px; flex: none;
  background: currentColor; opacity: 0.35;
}
.banner[data-tone="ok"] {
  color: #16220F; background: #A8C97E; border-color: rgba(0, 0, 0, 0.2);
}
.banner[data-tone="tight"] {
  color: #2A2005; background: #E3C45C; border-color: rgba(0, 0, 0, 0.2);
}
.banner[data-tone="late"] {
  color: #2E120C; background: #E39C88; border-color: rgba(0, 0, 0, 0.2);
}

.specs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  margin: 22px 0 28px; padding: 0; list-style: none;
  font-size: 14px; color: var(--muted);
}
.specs li { display: flex; align-items: center; gap: 9px; }
.specs li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}
.loading { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }

.card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.card:hover { border-color: var(--line); }

/* --- the sukkah setting -------------------------------------------------
   An illustrated setting, not a photograph: slatted wall, schach overhead,
   and the poster hung from its top grommets. Built in CSS so it works for
   any product image.
------------------------------------------------------------------------ */

.sukkah {
  position: relative;
  display: grid; place-items: center;
  padding: 21% 12% 11%;
  overflow: hidden;
  background: #6B5034 url("/images/sukkah-bg.jpg") center / cover no-repeat;
}

.poster {
  /* A 0.7in grommet on a 36in poster is ~2% of its width. These are set a
     touch larger than that so they stay visible at card size. */
  --g-size: 9px;
  --g-inset: 7px;
  --g-centre: calc(var(--g-inset) + var(--g-size) / 2);
  --g-hole: 1.9px;

  position: relative; z-index: 2; display: block; width: 100%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}
/* The holes are punched through the poster itself, so the sukkah wall shows
   through them. Four radial masks, intersected -- each gradient is opaque
   everywhere except its own small circle, so combining them leaves exactly
   four transparent discs. */
.poster img {
  width: 100%; height: auto;
  --hole: transparent 0 var(--g-hole), #000 calc(var(--g-hole) + 0.5px);
  -webkit-mask-image:
    radial-gradient(circle at var(--g-centre) var(--g-centre), var(--hole)),
    radial-gradient(circle at calc(100% - var(--g-centre)) var(--g-centre), var(--hole)),
    radial-gradient(circle at var(--g-centre) calc(100% - var(--g-centre)), var(--hole)),
    radial-gradient(circle at calc(100% - var(--g-centre)) calc(100% - var(--g-centre)), var(--hole));
  mask-image:
    radial-gradient(circle at var(--g-centre) var(--g-centre), var(--hole)),
    radial-gradient(circle at calc(100% - var(--g-centre)) var(--g-centre), var(--hole)),
    radial-gradient(circle at var(--g-centre) calc(100% - var(--g-centre)), var(--hole)),
    radial-gradient(circle at calc(100% - var(--g-centre)) calc(100% - var(--g-centre)), var(--hole));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* The brass ring sitting in each punched hole. Its own centre is masked out
   too, so you look straight through to the wall. */
.poster .g {
  position: absolute;
  width: var(--g-size); height: var(--g-size);
  top: var(--g-inset); left: var(--g-inset);
  border-radius: 50%;
  background:
    /* bevel: dark rim just inside the ring, then a bright lip */
    radial-gradient(circle at 50% 50%,
      transparent 0 calc(var(--g-hole) + 0.1px),
      rgba(0, 0, 0, 0.55) calc(var(--g-hole) + 0.4px) calc(var(--g-hole) + 1.1px),
      rgba(255, 245, 210, 0.5) calc(var(--g-hole) + 1.4px) calc(var(--g-hole) + 1.9px),
      transparent calc(var(--g-hole) + 2.2px)),
    /* brass body, lit from the upper left */
    radial-gradient(circle at 34% 28%,
      #FBEFC2 0%, #E6C466 22%, #BE9531 52%, #8E6C1D 76%, #5E4712 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 var(--g-hole), #000 calc(var(--g-hole) + 0.5px));
          mask: radial-gradient(circle at 50% 50%, transparent 0 var(--g-hole), #000 calc(var(--g-hole) + 0.5px));
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.6));
}
.poster .tr { left: auto; right: var(--g-inset); }
.poster .bl { top: auto; bottom: var(--g-inset); }
.poster .br { top: auto; left: auto; right: var(--g-inset); bottom: var(--g-inset); }

/* ties running up into the schach */
/* Runs from up under the schach down to the centre of the grommet, which is
   drawn afterwards and so covers the end of it. */
.poster .tie {
  position: absolute; top: -26%; width: 1.5px; height: calc(26% + var(--g-centre));
  background: linear-gradient(180deg, rgba(240, 232, 205, 0.15), rgba(240, 232, 205, 0.72));
}
.poster .tie-l { left: calc(var(--g-centre) - 0.75px); }
.poster .tie-r { right: calc(var(--g-centre) - 0.75px); }

/* --- card body ----------------------------------------------------------- */

.card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  letter-spacing: 0.01em;
}
.card-size {
  font-family: var(--font-ui);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  margin-left: 6px; vertical-align: 2px;
}

.price { margin: 0; font-size: 17px; font-weight: 600; color: var(--gold); white-space: nowrap; }

.card-buy { display: flex; gap: 10px; margin-top: auto; }

/* --- per-product spec toggle --------------------------------------------- */

.spec-toggle { border-top: 1px solid var(--line-soft); }

.spec-toggle summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 0;
  list-style: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.spec-toggle summary::-webkit-details-marker { display: none; }
.spec-toggle summary:hover { color: var(--cream); }
.spec-toggle summary svg {
  width: 16px; height: 16px; flex: none;
  transition: transform 0.2s var(--ease);
}
.spec-toggle[open] summary { color: var(--cream); }
.spec-toggle[open] summary svg { transform: rotate(180deg); }

.spec-toggle ul {
  margin: 0 0 14px; padding: 0; list-style: none;
  display: grid; gap: 7px;
  font-size: 13.5px; line-height: 1.45; color: #B9C2D3;
}
.spec-toggle li { display: flex; gap: 9px; }
.spec-toggle li::before {
  content: ""; flex: none;
  width: 4px; height: 4px; margin-top: 8px;
  border-radius: 50%; background: var(--gold);
}

/* --- quantity stepper ---------------------------------------------------- */

.qty {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--navy-deep);
}
.qty button {
  width: 36px; height: 42px;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--cream); font-size: 17px; line-height: 1;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.qty button:hover:not(:disabled) { background: var(--panel-hi); color: var(--gold-soft); }
.qty button:disabled { opacity: 0.32; cursor: default; }
.qty input {
  width: 40px; height: 42px; padding: 0;
  background: transparent; border: 0; color: var(--cream);
  font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; text-align: center;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  font: inherit; font-size: 14px; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: var(--gold-soft); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); background: var(--panel-hi); }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.btn-add { flex: 1; }
.btn-add.is-added { background: transparent; color: var(--gold); border-color: var(--gold); }

.spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(20, 32, 60, 0.35); border-top-color: var(--navy);
  border-radius: 50%; animation: spin 0.65s linear infinite; display: none;
}
.btn.is-busy .spinner { display: block; }
.btn.is-busy .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--muted); cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.icon-button:hover { background: var(--panel-hi); color: var(--cream); }
.icon-button svg { width: 20px; height: 20px; }

/* --- the actual product -------------------------------------------------- */

.actual { margin: clamp(40px, 6vw, 64px) 0 0; }
.actual h2 {
  margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 400;
  font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  font-family: var(--font-ui); font-weight: 500;
}
.actual-shots { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 18px; align-items: start; }
.actual-shots figure { margin: 0; }
.actual-shots img,
.actual-shots video {
  width: 100%; height: auto; display: block;
  border-radius: 8px; border: 1px solid var(--line-soft);
  background: var(--navy-deep);
}
.actual-shots figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }

/* --- lightbox ------------------------------------------------------------ */

.poster { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 11, 22, 0.94);
  animation: fade 0.18s var(--ease);
}

.lightbox-figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.lightbox-figure img {
  max-width: min(100%, 1400px); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  font-family: var(--font-display); font-size: 20px; color: var(--cream);
  letter-spacing: 0.02em; text-align: center;
}

.lightbox-close {
  position: absolute; top: 14px; right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 50%;
  color: var(--cream); cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-close svg { width: 22px; height: 22px; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 50%;
  color: var(--cream); cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .lightbox-figure figcaption { font-size: 17px; }
}

/* --- cart drawer --------------------------------------------------------- */

.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(6, 11, 22, 0.62);
  animation: fade 0.2s var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--navy-deep);
  border-left: 1px solid var(--line-soft);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  animation: slide-in 0.26s var(--ease);
}
@keyframes slide-in { from { transform: translateX(100%); } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: 0.04em;
}

.drawer-body { flex: 1; overflow-y: auto; padding: 6px 20px; }

.cart-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.cart-empty p { margin: 0 0 20px; }

.cart-line {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.cart-line:last-child { border-bottom: 0; }

.cart-thumb {
  width: 76px; height: 52px;
  background: var(--navy); border-radius: 6px; padding: 4px;
  border: 1px solid var(--line-soft);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cart-info { min-width: 0; }
.cart-info h3 { margin: 0 0 3px; font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.cart-meta {
  margin: 0 0 2px; font-size: 11.5px; line-height: 1.4;
  letter-spacing: 0.04em; color: var(--muted);
}
.cart-unit { margin: 0 0 9px; font-size: 12.5px; color: #B9C2D3; }
.cart-line .qty { transform: scale(0.86); transform-origin: left center; }

.cart-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line-total { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.link-button {
  background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button:hover { color: var(--gold-soft); }

.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line-soft); background: var(--navy); }

.totals { margin: 0 0 14px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.totals .muted { color: var(--muted); font-size: 14px; }
.totals .muted dd { font-weight: 500; }

.checkout-error {
  margin: 0 0 12px; padding: 10px 12px;
  background: rgba(190, 70, 60, 0.14);
  border: 1px solid rgba(224, 108, 96, 0.4);
  border-radius: 8px; font-size: 13px; color: #F0B7B0;
}

/* --- post-checkout notice ------------------------------------------------ */

.notice-slot { padding-top: 24px; }
.notice {
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.notice h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.4vw, 30px); }
.notice p { margin: 0 0 6px; color: #C9D0DE; }
.notice .notice-ref {
  display: inline-block; margin-top: 14px; padding: 6px 12px;
  background: var(--navy-deep); border: 1px solid var(--line-soft); border-radius: 6px;
  font-size: 13px; letter-spacing: 0.08em; color: var(--gold);
}
.notice-items { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.notice-items li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.notice-total { font-weight: 700; color: var(--cream) !important; }

/* --- footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 22px clamp(16px, 4vw, 32px) 40px;
  text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer p { margin: 0; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 640px) {
  /* one line, no wrap: long copy out, short copy in */
  .banner { padding: 8px 10px; font-size: 11.5px; gap: 7px; flex-wrap: nowrap; }
  .banner-ship { gap: 5px; }
  .banner-ship svg { width: 15px; height: 15px; }
  .banner-sep { height: 12px; }
  .banner-long { display: none; }
  .banner-short { display: inline; }
  /* the material spec is the one that wraps the strip onto a second line */
  .specs li[data-key="material"] { display: none; }
  .specs { gap: 4px 10px; font-size: 11px; flex-wrap: nowrap; justify-content: center; }
  .specs li { gap: 6px; white-space: nowrap; }
  .specs li::before { width: 4px; height: 4px; }

  .brand-name { font-size: 19px; letter-spacing: 0.16em; }
  .brand-sub { font-size: 9px; letter-spacing: 0.22em; }
  .cart-button span:not(.cart-count) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .actual-shots { grid-template-columns: 1fr; }
  .actual-shots video { max-height: 70vh; width: auto; margin: 0 auto; }
  /* stepper and Add to cart stay on one line */
  .card-buy { flex-wrap: nowrap; }
  .btn-add { flex: 1; min-width: 0; padding: 0 10px; }
  .qty button { width: 32px; }
  .qty input { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
