/** Shopify CDN: Minification failed

Line 1196:0 All "@import" rules must come first

**/
/* ==========================================================================
   custom.css — Judaica Square custom layer for Prestige (Couture preset)
   Loaded AFTER theme.css from layout/theme.liquid.
   Paired with assets/custom.js.
   ==========================================================================

   SECTIONS
     1. Liturgical palette tokens + phase overrides
     2. Hebrew date strip (top ribbon)
     3. Mobile bottom tab nav
     4. Sticky mobile ATC
     5. Shop-by-Yom-Tov homepage strip
     6. PDP custom blocks (bilingual title, halacha note, provenance)
     7. Free-shipping progress bar
*/

/* ==========================================================================
   1. Liturgical palette tokens + phase overrides
   --------------------------------------------------------------------------
   These custom properties are the single source of truth for seasonal color.
   Every custom Judaica Square component references them. Prestige's own
   tokens (--background, --text-color, --button-background, etc.) stay
   untouched — we only overlay our own on top.

   Default palette: warm parchment + deep warm ink + brass accent.

   To test a phase, override the body attribute in DevTools:
     document.body.dataset.hebrewPhase = 'pesach'
   ========================================================================== */

:root {
  --parchment:      #F6F1E6;  /* warm off-white */
  --warm-ink:       #2B2620;  /* deep warm charcoal */
  --color-accent:   #B8860B;  /* brass */
  --color-seasonal: var(--color-accent);
  --color-cta:      var(--color-accent);
  --color-bg:       var(--parchment);
  --color-fg:       var(--warm-ink);
  --strip-bg:       var(--parchment);
  --strip-fg:       var(--warm-ink);
}

/* Pesach — sun-warmed brass on deep Mediterranean teal */
body[data-hebrew-phase="pesach"] {
  --color-accent:   #E4B04A;
  --color-seasonal: #1E5A6B;
  --color-cta:      #1E5A6B;
  --strip-bg:       #F6F1E6;
  --strip-fg:       #1E5A6B;
}

/* Three Weeks — muted parchment, no brass, ink only */
body[data-hebrew-phase="three-weeks"],
body[data-hebrew-phase="tisha-bav"] {
  --color-bg:       #EFEBE5;
  --parchment:      #EFEBE5;
  --color-accent:   #3A3632;
  --color-seasonal: #3A3632;
  --color-cta:      #3A3632;
  --strip-bg:       #EFEBE5;
  --strip-fg:       #3A3632;
}

/* Elul — preparation: soft rose-gold accent, parchment unchanged */
body[data-hebrew-phase="elul"] {
  --color-accent:   #B87333;
  --color-seasonal: #7B3F25;
  --color-cta:      #7B3F25;
  --strip-fg:       #2B2620;
}

/* Yamim Noraim — white/ivory + deep blue */
body[data-hebrew-phase="yamim-noraim"] {
  --parchment:      #FAF7EF;
  --color-bg:       #FAF7EF;
  --color-accent:   #C9A96E;
  --color-seasonal: #1A365D;
  --color-cta:      #1A365D;
  --strip-bg:       #FAF7EF;
  --strip-fg:       #1A365D;
}

/* Sukkos — harvest gold + forest green */
body[data-hebrew-phase="sukkos"] {
  --color-accent:   #D4A44A;
  --color-seasonal: #3F6138;
  --color-cta:      #3F6138;
  --strip-fg:       #3F6138;
}

/* Chanukah — candlelight gold on deep navy */
body[data-hebrew-phase="chanukah"] {
  --color-accent:   #E9C46A;
  --color-seasonal: #1B263B;
  --color-cta:      #1B263B;
  --strip-bg:       #F6F1E6;
  --strip-fg:       #1B263B;
}

/* Sefirah — restrained: soft ash + brass muted */
body[data-hebrew-phase="sefirah"] {
  --color-accent:   #9C7A3A;
  --color-seasonal: #4A4A44;
  --color-cta:      #4A4A44;
  --strip-fg:       #2B2620;
}

/* Shavuos — dairy-white + floral green */
body[data-hebrew-phase="shavuos"] {
  --parchment:      #FBF9F3;
  --color-bg:       #FBF9F3;
  --color-accent:   #C9A96E;
  --color-seasonal: #5A7D56;
  --color-cta:      #5A7D56;
  --strip-bg:       #FBF9F3;
  --strip-fg:       #5A7D56;
}

/* ==========================================================================
   2. Hebrew date strip (sits above Prestige header, 28px tall)
   Renders from snippets/hebrew-date-strip.liquid. Content is filled by
   assets/custom.js from assets/hebrew-calendar-2025-2028.json.
   ========================================================================== */

.hebrew-date-strip {
  position: relative;
  z-index: 101; /* above Prestige sticky header which uses z-index 100 */
  height: 28px;
  line-height: 28px;
  background: var(--strip-bg, var(--parchment));
  color: var(--strip-fg, var(--warm-ink));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-feature-settings: "ss01" on;
}

.hebrew-date-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hebrew-date-strip__item {
  display: inline-flex;
  align-items: center;
}

.hebrew-date-strip__hebrew {
  font-family: "Frank Ruhl Libre", "Frank Ruhl", "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.hebrew-date-strip__active {
  color: var(--color-seasonal, var(--color-accent));
  font-variant-caps: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hebrew-date-strip__countdown {
  color: var(--color-accent);
  font-weight: 500;
}

.hebrew-date-strip__cutoff {
  color: var(--color-seasonal, var(--color-accent));
  font-weight: 500;
}

.hebrew-date-strip__sep {
  opacity: 0.4;
  font-weight: 400;
}

/* Mobile: drop lower-priority items to keep strip single-line */
@media (max-width: 640px) {
  .hebrew-date-strip__inner {
    padding: 0 12px;
    gap: 6px;
    font-size: 11px;
  }
  .hebrew-date-strip__hebrew { font-size: 12px; }
  .hebrew-date-strip__gregorian,
  .hebrew-date-strip__sep:not(.hebrew-date-strip__sep--active):not(.hebrew-date-strip__sep--cutoff) {
    display: none;
  }
  /* On mobile, surface the most important contextual item only */
  .hebrew-date-strip__countdown[data-priority="low"],
  .hebrew-date-strip__sep--countdown[data-priority="low"] {
    display: none;
  }
}

/* ==========================================================================
   3. Mobile bottom tab nav (<=999px)
   --------------------------------------------------------------------------
   Original heading preserved below; kept here for historical reference.
   ========================================================================== */

/* Mobile-only wrapper --------------------------------------------------- */
.custom-bottom-nav-wrapper {
  display: none;
}

@media (max-width: 999px) {
  .custom-bottom-nav-wrapper {
    display: block;
  }

  /* Leave room at the bottom of the page so fixed nav doesn't cover content */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* Core nav bar ---------------------------------------------------------- */
.custom-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;

  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);

  background: var(--color-bg, #ffffff);
  border-top: 1px solid rgba(31, 27, 23, 0.08);

  /* Smooth hide/show toggled by custom.js */
  transform: translate3d(0, 0, 0);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;

  -webkit-tap-highlight-color: transparent;
}

.custom-bottom-nav[data-hidden="true"] {
  transform: translate3d(0, 100%, 0);
}

/* Tab items ------------------------------------------------------------- */
.custom-bottom-nav__item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 44×44 minimum tap target (WCAG 2.5.5) */
  min-width: 44px;
  min-height: 44px;

  padding: 8px 4px;
  color: var(--color-foreground, #1f1b17);
  text-decoration: none;
  background: none;
  border: 0;
  outline-offset: -2px;
}

.custom-bottom-nav__item:hover,
.custom-bottom-nav__item:focus-visible {
  color: var(--color-foreground, #1f1b17);
  text-decoration: none;
}

.custom-bottom-nav__item:active {
  opacity: 0.72;
}

/* Icon — 24×24 with 4px gap below ------------------------------------- */
.custom-bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.custom-bottom-nav__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Label — Fraunces 10px small-caps ------------------------------------ */
.custom-bottom-nav__label {
  font-family: "Fraunces", var(--heading-font-family, Georgia, serif);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-caps: small-caps;
  text-transform: lowercase; /* small-caps renders true caps against lowercase */
  font-weight: 500;
  color: inherit;
}

/* Cart count badge ----------------------------------------------------- */
.custom-bottom-nav__badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);

  min-width: 16px;
  height: 16px;
  padding: 0 4px;

  background: var(--color-accent, #b8860b);
  color: #ffffff;
  border-radius: 999px;

  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;

  pointer-events: none;
}

.custom-bottom-nav__badge[hidden] {
  display: none;
}

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .custom-bottom-nav {
    transition: none;
  }
}

/* ==========================================================================
   Custom Sticky Mobile ATC (<=999px)
   Schema block in sections/main-product.liquid. Submit button is bound to
   the primary <product-form> via the `form="{product_form_id}"` attribute,
   so Prestige's own submit handler fires (and therefore dispatches the
   canonical `cart:change` event on success).
   Tokens from Prestige's :root (--color-bg, --color-foreground, etc.).
   Sits above the bottom tab nav on mobile (bottom nav is 60px).
   ========================================================================== */

.custom-sticky-atc-mobile {
  display: none; /* becomes grid at mobile breakpoint */
}

@media (max-width: 999px) {
  .custom-sticky-atc-mobile {
    position: fixed;
    left: 0;
    right: 0;
    /* Sit above the 60px tab nav + its safe-area padding */
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    z-index: 85;

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));

    /* Prestige tokens: --background / --text-color are RGB tuples used as rgb(var(...)) */
    background: rgb(var(--background, 255 255 255));
    color: rgb(var(--text-color, 31 27 23));
    border-top: 1px solid rgb(var(--text-color, 31 27 23) / 0.08);
    box-shadow: 0 -6px 18px rgb(var(--text-color, 31 27 23) / 0.06);

    transform: translateY(100%);
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    pointer-events: none;
  }

  .custom-sticky-atc-mobile.is-visible {
    transform: translateY(0);
    pointer-events: auto;
  }

  /* If the bottom tab nav isn't present (e.g. rendered in isolation), fall
     back to bottom: 0 via this override class. The JS sets it if no nav exists. */
  .custom-sticky-atc-mobile[data-no-bottom-nav] {
    bottom: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* Reserve bottom space on product pages so the bar doesn't cover content */
  body:has(.custom-sticky-atc-mobile.is-visible) {
    padding-bottom: calc(60px + 76px + env(safe-area-inset-bottom, 0px));
  }
}

.custom-sticky-atc-mobile__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* allow truncation */
}

.custom-sticky-atc-mobile__img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 6px;
  object-fit: cover;
  background: rgb(var(--text-color, 31 27 23) / 0.06);
  display: block;
}

.custom-sticky-atc-mobile__img--empty {
  display: block;
}

.custom-sticky-atc-mobile__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.custom-sticky-atc-mobile__title {
  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: rgb(var(--text-color, 31 27 23));

  /* One-line truncation */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.custom-sticky-atc-mobile__price {
  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--text-color, 31 27 23));
  margin-top: 2px;
}

.custom-sticky-atc-mobile__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 44px;
  padding: 0 16px;

  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;

  background: rgb(var(--button-background, 31 27 23));
  color: rgb(var(--button-text-color, 255 255 255));
  border: 1px solid transparent;
  border-radius: var(--button-border-radius, 999px);

  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;

  transition: opacity 160ms ease, transform 120ms ease;
}

.custom-sticky-atc-mobile__button:hover,
.custom-sticky-atc-mobile__button:focus-visible {
  opacity: 0.92;
}

.custom-sticky-atc-mobile__button:active {
  transform: scale(0.98);
}

.custom-sticky-atc-mobile__button[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

.custom-sticky-atc-mobile__button-sep {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .custom-sticky-atc-mobile {
    transition: none;
  }
  .custom-sticky-atc-mobile__button:active {
    transform: none;
  }
}

/* ==========================================================================
   5. Shop-by-Yom-Tov homepage strip
   --------------------------------------------------------------------------
   Rendered by sections/yom-tov-strip.liquid. Pulls from the `yom_tov`
   metaobject. Current-phase card highlighting is CSS-only: relies on
   `body[data-hebrew-phase="X"]` set by layout/theme.liquid at first paint.
   ========================================================================== */

.yom-tov-strip {
  position: relative;
  padding: 32px 0 28px;
  background: var(--color-bg, var(--parchment));
}

.yom-tov-strip__head {
  padding: 0 20px;
  margin-bottom: 18px;
  text-align: center;
}

.yom-tov-strip__heading {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--warm-ink, #2B2620);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.yom-tov-strip__subheading {
  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(43, 38, 32, 0.65);
  margin: 0 auto;
  max-width: 48ch;
}

/* Scroll layout (default, mobile-first) */
.yom-tov-strip__scroll {
  list-style: none;
  margin: 0;
  padding: 4px 20px 12px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yom-tov-strip__scroll::-webkit-scrollbar { display: none; }

/* Grid variant (opt-in via section setting) */
.yom-tov-strip--grid .yom-tov-strip__scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: visible;
  padding: 4px 20px 12px;
}

@media (min-width: 1000px) {
  .yom-tov-strip__scroll {
    padding-left: max(20px, calc((100% - 1200px) / 2));
    padding-right: max(20px, calc((100% - 1200px) / 2));
  }
  .yom-tov-strip--grid .yom-tov-strip__scroll {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Cards */
.yom-tov-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  position: relative;
  list-style: none;
}

.yom-tov-strip--grid .yom-tov-card {
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  .yom-tov-card { flex-basis: 200px; }
}

.yom-tov-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.yom-tov-card__link:hover,
.yom-tov-card__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 38, 32, 0.12);
  outline: none;
}

.yom-tov-card__media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgb(var(--text-color, 43 38 32) / 0.06),
    rgb(var(--text-color, 43 38 32) / 0.12)
  );
}

.yom-tov-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(0.2, 0, 0.2, 1);
}

.yom-tov-card__img--empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(184, 134, 11, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(43, 38, 32, 0.12), transparent 60%);
}

.yom-tov-card__link:hover .yom-tov-card__img {
  transform: scale(1.04);
}

.yom-tov-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 2px 4px;
}

.yom-tov-card__hebrew {
  font-family: "Frank Ruhl Libre", "Frank Ruhl", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--warm-ink, #2B2620);
  line-height: 1.1;
  margin-bottom: 2px;
}

.yom-tov-card__english {
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-ink, #2B2620);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.yom-tov-card__cta {
  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-seasonal, var(--color-accent));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
}

.yom-tov-card__cta::after {
  content: "→";
  font-size: 13px;
  transition: transform 200ms ease;
}

.yom-tov-card__link:hover .yom-tov-card__cta::after {
  transform: translateX(3px);
}

/* "Now" badge — hidden by default, revealed only when card phase matches body phase */
.yom-tov-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: "Fraunces", Georgia, serif;
  font-size: 10px;
  font-weight: 500;
  font-variant-caps: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-seasonal, var(--color-accent));
  color: #ffffff;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

/* Active-phase card gets the badge + accent ring on the media.
   One rule per phase — kept explicit for clarity and to avoid JS dependency. */
body[data-hebrew-phase="pesach"]       .yom-tov-card[data-phase-key="pesach"]       .yom-tov-card__badge,
body[data-hebrew-phase="sefirah"]      .yom-tov-card[data-phase-key="sefirah"]      .yom-tov-card__badge,
body[data-hebrew-phase="shavuos"]      .yom-tov-card[data-phase-key="shavuos"]      .yom-tov-card__badge,
body[data-hebrew-phase="three-weeks"]  .yom-tov-card[data-phase-key="three-weeks"]  .yom-tov-card__badge,
body[data-hebrew-phase="tisha-bav"]    .yom-tov-card[data-phase-key="tisha-bav"]    .yom-tov-card__badge,
body[data-hebrew-phase="elul"]         .yom-tov-card[data-phase-key="elul"]         .yom-tov-card__badge,
body[data-hebrew-phase="yamim-noraim"] .yom-tov-card[data-phase-key="yamim-noraim"] .yom-tov-card__badge,
body[data-hebrew-phase="sukkos"]       .yom-tov-card[data-phase-key="sukkos"]       .yom-tov-card__badge,
body[data-hebrew-phase="chanukah"]     .yom-tov-card[data-phase-key="chanukah"]     .yom-tov-card__badge {
  opacity: 1;
  transform: translateY(0);
}

body[data-hebrew-phase="pesach"]       .yom-tov-card[data-phase-key="pesach"]       .yom-tov-card__media,
body[data-hebrew-phase="sefirah"]      .yom-tov-card[data-phase-key="sefirah"]      .yom-tov-card__media,
body[data-hebrew-phase="shavuos"]      .yom-tov-card[data-phase-key="shavuos"]      .yom-tov-card__media,
body[data-hebrew-phase="three-weeks"]  .yom-tov-card[data-phase-key="three-weeks"]  .yom-tov-card__media,
body[data-hebrew-phase="tisha-bav"]    .yom-tov-card[data-phase-key="tisha-bav"]    .yom-tov-card__media,
body[data-hebrew-phase="elul"]         .yom-tov-card[data-phase-key="elul"]         .yom-tov-card__media,
body[data-hebrew-phase="yamim-noraim"] .yom-tov-card[data-phase-key="yamim-noraim"] .yom-tov-card__media,
body[data-hebrew-phase="sukkos"]       .yom-tov-card[data-phase-key="sukkos"]       .yom-tov-card__media,
body[data-hebrew-phase="chanukah"]     .yom-tov-card[data-phase-key="chanukah"]     .yom-tov-card__media {
  box-shadow: 0 0 0 2px var(--color-seasonal, var(--color-accent));
}

/* Empty-state (merchant-facing placeholder) */
.yom-tov-strip--empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed rgba(43, 38, 32, 0.18);
  border-radius: 10px;
  margin: 24px 20px;
  background: rgba(255, 255, 255, 0.4);
}
.yom-tov-strip--empty code {
  font-family: "SF Mono", Menlo, monospace;
  background: rgba(43, 38, 32, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .yom-tov-card__link,
  .yom-tov-card__img,
  .yom-tov-card__badge,
  .yom-tov-card__cta::after {
    transition: none;
  }
}

/* ==========================================================================
   6. PDP custom blocks — bilingual title, halacha note, provenance
   --------------------------------------------------------------------------
   Schema block types `bilingual_title`, `halacha_note`, `provenance`
   registered in sections/main-product.liquid. Rendered by the case
   statement in snippets/product-info.liquid. All three are null-safe and
   render nothing when there is no content.
   ========================================================================== */

/* -- Bilingual title -- */
.pdp-bilingual-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.pdp-bilingual-title__hebrew {
  font-family: "Frank Ruhl Libre", "Frank Ruhl", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-seasonal, rgb(var(--text-color, 43 38 32) / 0.85));
  letter-spacing: 0;
  /* A whisper of breathing room for RTL punctuation */
  margin-bottom: 2px;
}

.pdp-bilingual-title__english {
  font-family: inherit; /* inherits Prestige's heading font */
  margin: 0;
  /* Keep Prestige's existing .product-title sizing — classes from schema still apply. */
}

@media (min-width: 700px) {
  .pdp-bilingual-title__hebrew {
    font-size: 24px;
  }
}

/* -- Halacha note -- */
.pdp-halacha-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 8px;
  background: rgb(var(--text-color, 43 38 32) / 0.04);
  border-left: 3px solid rgb(var(--text-color, 43 38 32) / 0.25);

  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  color: rgb(var(--text-color, 43 38 32));
}

.pdp-halacha-note--accent {
  background: rgb(var(--text-color, 43 38 32) / 0.03);
  border-left-color: var(--color-seasonal, var(--color-accent));
}

.pdp-halacha-note__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--text-color, 43 38 32) / 0.7);
  margin-top: 1px;
}

.pdp-halacha-note--accent .pdp-halacha-note__icon {
  color: var(--color-seasonal, var(--color-accent));
}

.pdp-halacha-note__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdp-halacha-note__label {
  font-family: "Fraunces", Georgia, serif;
  font-size: 10px;
  font-weight: 500;
  font-variant-caps: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  color: rgb(var(--text-color, 43 38 32) / 0.6);
}

.pdp-halacha-note--accent .pdp-halacha-note__label {
  color: var(--color-seasonal, var(--color-accent));
}

.pdp-halacha-note__text {
  font-size: 13px;
  line-height: 1.45;
}

.pdp-halacha-note__text p {
  margin: 0;
}

.pdp-halacha-note__text p + p {
  margin-top: 6px;
}

/* -- Provenance -- */
.pdp-provenance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  margin: 8px 0;
  border-top: 1px solid rgb(var(--text-color, 43 38 32) / 0.08);
  border-bottom: 1px solid rgb(var(--text-color, 43 38 32) / 0.08);

  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  color: rgb(var(--text-color, 43 38 32));
}

.pdp-provenance__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-seasonal, var(--color-accent));
  margin-top: 1px;
}

.pdp-provenance__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdp-provenance__eyebrow {
  font-family: "Fraunces", Georgia, serif;
  font-size: 10px;
  font-weight: 500;
  font-variant-caps: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: rgb(var(--text-color, 43 38 32) / 0.55);
  margin-bottom: 2px;
}

.pdp-provenance__headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--text-color, 43 38 32));
}

.pdp-provenance__sep {
  opacity: 0.45;
  margin: 0 2px;
}

.pdp-provenance__maker {
  font-weight: 500;
}

.pdp-provenance__location {
  font-style: italic;
}

.pdp-provenance__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgb(var(--text-color, 43 38 32) / 0.85);
  margin-top: 4px;
}

.pdp-provenance__text p {
  margin: 0;
}

.pdp-provenance__text p + p {
  margin-top: 6px;
}

/* ==========================================================================
   7. Free-shipping progress bar
   --------------------------------------------------------------------------
   Wraps Prestige's native <free-shipping-bar> element to add a visual track.
   Markup from snippets/free-shipping-bar.liquid. Fill width is animated by
   JS (assets/custom.js section 4) in response to attribute changes Prestige
   already makes on every cart:change.
   ========================================================================== */

.custom-free-shipping-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}

.custom-free-shipping-bar__text {
  display: block;
  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: rgb(var(--text-color, 43 38 32));
}

.custom-free-shipping-bar__text strong,
.custom-free-shipping-bar__text b {
  color: var(--color-seasonal, var(--color-accent));
  font-weight: 600;
}

.custom-free-shipping-bar__track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgb(var(--text-color, 43 38 32) / 0.08);
  overflow: hidden;
}

.custom-free-shipping-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--color-seasonal, var(--color-accent));
  border-radius: inherit;
  transition: width 400ms cubic-bezier(0.2, 0, 0.2, 1), background 240ms ease;
  will-change: width;
}

/* Reached — switch to a confident full-green (uses seasonal token so it
   matches Pesach teal, Sukkos forest, etc.) and add a subtle shimmer. */
.custom-free-shipping-bar.is-complete .custom-free-shipping-bar__fill {
  background: linear-gradient(
    90deg,
    var(--color-seasonal, var(--color-accent)),
    var(--color-accent),
    var(--color-seasonal, var(--color-accent))
  );
  background-size: 200% 100%;
  animation: custom-fsb-shimmer 1800ms ease-in-out 1;
}

.custom-free-shipping-bar.is-complete .custom-free-shipping-bar__text {
  color: var(--color-seasonal, var(--color-accent));
  font-weight: 500;
}

@keyframes custom-fsb-shimmer {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .custom-free-shipping-bar__fill {
    transition: none;
    animation: none;
  }
}

/* ==========================================================================
   8. AR view button (PDP)
   --------------------------------------------------------------------------
   Auto-rendered by snippets/product-info.liquid when product has 3D media.
   Clicking calls activateAR() on Prestige's existing <model-viewer>.
   ========================================================================== */

.pdp-ar-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 12px 0;
  width: 100%;
  max-width: 320px;
  justify-content: center;
  background: rgb(var(--background));
  color: rgb(var(--text-color));
  border: 1.5px solid rgb(var(--text-color) / 0.9);
  border-radius: 999px;
  font-family: var(--text-font-family, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.pdp-ar-button:hover {
  background: rgb(var(--text-color));
  color: rgb(var(--background));
}

.pdp-ar-button:active {
  transform: scale(0.98);
}

.pdp-ar-button:focus-visible {
  outline: 2px solid rgb(var(--accent-color, var(--text-color)));
  outline-offset: 2px;
}

.pdp-ar-button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.pdp-ar-button.is-loading .pdp-ar-button__icon {
  animation: pdp-ar-spin 900ms linear infinite;
}

.pdp-ar-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-ar-button__label {
  display: inline-block;
}

@keyframes pdp-ar-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-ar-button,
  .pdp-ar-button__icon {
    transition: none;
    animation: none;
  }
}

.yom-tov-strip {
  padding-left: 16px;
  padding-right: 16px;
  scroll-padding-inline: 16px;
  box-sizing: border-box;
}

.yom-tov-strip__card,
.yom-tov-strip [data-yom-tov-card] {
  flex: 0 0 auto;
  min-width: max-content;
}

@media (max-width: 640px) {
  .yom-tov-strip {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* Yom Tov — luxury 3×3 shelf, no chopping */
.yom-tov-card__media { aspect-ratio: 4 / 3 !important; }
.yom-tov-card__img, .yom-tov-card__media img { object-fit: cover; object-position: center center; }
.yom-tov-strip__scroll { padding-left: 0; padding-right: 0; scroll-padding-inline: 0; list-style: none; }

@media (min-width: 900px) {
  .yom-tov-strip__scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow: visible;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .yom-tov-strip__scroll > .yom-tov-card { width: 100%; min-width: 0; flex: 1 1 auto; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .yom-tov-strip__scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow: visible;
    padding: 0 20px;
  }
  .yom-tov-strip__scroll > .yom-tov-card { width: 100%; min-width: 0; }
}

@media (max-width: 639px) {
  .yom-tov-strip__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 16px;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
  }
  .yom-tov-strip__scroll > .yom-tov-card {
    flex: 0 0 auto;
    width: 46vw;
    max-width: 220px;
    scroll-snap-align: start;
  }
}

/* ============================================================
   JUDAICA SQUARE — LUXURY SHELF (Option A: Parchment)
   Covers Seforim Shelf tiles + Yom Tov strip cards.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Cormorant+SC:wght@400;500&display=swap');

:root {
  --js-ink: #2B2620;
  --js-parchment: #F6F1E6;
  --js-parchment-deep: #EDE4D0;
  --js-brass: #B8860B;
  --js-brass-soft: #D4A853;
  --js-mute: #6b6560;
}

/* ---- 1. SEFORIM SHELF TILES ---- */
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile,
.subcategory-tiles-section .subcategory-tile {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 35%, rgba(184,134,11,0.08), transparent 55%),
    linear-gradient(180deg, var(--js-parchment) 0%, var(--js-parchment-deep) 100%) !important;
  border: 1px solid rgba(43,38,32,0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(184,134,11,0.15), 0 1px 3px rgba(43,38,32,0.06);
  border-radius: 4px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  position: relative;
  text-align: center;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  overflow: hidden;
}
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile > :first-child,
.subcategory-tiles-section .subcategory-tile > :first-child {
  background-image: none !important;
  background: transparent !important;
  min-height: 0 !important;
  height: auto !important;
}
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile:hover,
.subcategory-tiles-section .subcategory-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(184,134,11,0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(184,134,11,0.3), 0 8px 20px rgba(43,38,32,0.08);
}
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile h3,
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile .subcategory-tile__title,
.subcategory-tiles-section .subcategory-tile h3,
.subcategory-tiles-section .subcategory-tile .subcategory-tile__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 30px !important;
  line-height: 1.1 !important;
  color: var(--js-ink) !important;
  margin: 0 !important;
  position: relative;
  padding-bottom: 26px;
}
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile h3::after,
.subcategory-tiles-section .subcategory-tile h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--js-brass), transparent);
}
.subcategory-tile__sub {
  font-family: 'Cormorant SC', Georgia, serif !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  color: var(--js-mute) !important;
  margin-top: 2px;
}
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile::after,
.subcategory-tiles-section .subcategory-tile::after {
  content: 'VIEW THE SHELF —';
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--js-mute);
  transition: color 280ms ease;
}
#shopify-section-template--20531953565864__subcategory_tiles .subcategory-tile:hover::after,
.subcategory-tiles-section .subcategory-tile:hover::after {
  color: var(--js-brass);
}

/* ---- 2. YOM TOV STRIP — parchment surface ---- */
.yom-tov-card {
  background:
    radial-gradient(circle at 50% 35%, rgba(184,134,11,0.08), transparent 55%),
    linear-gradient(180deg, var(--js-parchment) 0%, var(--js-parchment-deep) 100%) !important;
  border: 1px solid rgba(43,38,32,0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(184,134,11,0.15), 0 1px 3px rgba(43,38,32,0.06);
  border-radius: 4px;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.yom-tov-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184,134,11,0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(184,134,11,0.3), 0 8px 20px rgba(43,38,32,0.08);
}
.yom-tov-card__title, .yom-tov-card__english {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 26px !important;
  color: var(--js-ink) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 4px;
}
.yom-tov-card__title::after, .yom-tov-card__english::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--js-brass), transparent);
}
.yom-tov-card__sub, .yom-tov-card__subtitle, .yom-tov-card__cta {
  font-family: 'Cormorant SC', Georgia, serif !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  color: var(--js-mute) !important;
  text-transform: none !important;
}
.yom-tov-card__hebrew {
  font-size: 18px !important;
  color: var(--js-mute) !important;
  margin-bottom: 4px;
}

/* SPRINT_1_EDITORIAL_START */
/* ==========================================================================
   Sprint 1 â Editorial mobile redesign
   Appended to assets/custom.css. Phones â¤ 999px only.
   Aligns to existing tokens: --parchment, --warm-ink, --color-accent (brass)
   ========================================================================== */

:root {
  /* aliases for editorial layer */
  --js-parchment: var(--parchment);
  --js-parchment-deep: #ECE3D0;
  --js-ink: var(--warm-ink);
  --js-ink-soft: #5A5149;
  --js-brass: var(--color-accent);
  --js-brass-soft: #D4A94A;
  --js-rule: rgba(43, 38, 32, 0.18);
  --js-rule-strong: rgba(43, 38, 32, 0.42);

  --js-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --js-serif-sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --js-hebrew: "Frank Ruhl Libre", "Frank Ruhl", "Times New Roman", serif;

  --js-nav-height: 64px;
  --js-nav-raised-size: 56px;
}

/* ---------- utility: brass hairline, small-caps label ---------- */

.js-hairline {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--js-brass);
  opacity: 0.6;
}

.js-eyebrow {
  font-family: var(--js-serif-sc);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--js-brass);
  font-weight: 500;
}

/* =========================================================================
   BOTTOM NAV â editorial overhaul
   ========================================================================= */

@media (max-width: 999px) {

  .custom-bottom-nav {
    background: var(--js-parchment);
    border-top: 1px solid var(--js-rule);
    box-shadow: 0 -1px 0 rgba(184, 134, 11, 0.4);
    padding: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 6px);
    height: auto;
    min-height: var(--js-nav-height);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    position: relative;
  }

  .custom-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    color: var(--js-ink);
    text-decoration: none;
    font-family: var(--js-serif-sc);
    position: relative;
  }

  .custom-bottom-nav__item[aria-current="page"] {
    color: var(--js-brass);
  }

  .custom-bottom-nav__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .custom-bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.25;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .custom-bottom-nav__label {
    font-family: var(--js-serif-sc);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: inherit;
  }

  /* ---- center raised Search tab ---- */

  .custom-bottom-nav__item--raised {
    align-self: start;
    margin-top: -18px;
  }

  .custom-bottom-nav__item--raised .custom-bottom-nav__icon {
    width: var(--js-nav-raised-size);
    height: var(--js-nav-raised-size);
    border-radius: 50%;
    background: var(--js-ink);
    color: var(--js-brass);
    box-shadow: 0 6px 18px rgba(43, 38, 32, 0.25), 0 0 0 4px var(--js-parchment);
    margin-bottom: 4px;
  }

  .custom-bottom-nav__item--raised .custom-bottom-nav__icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.4;
  }

  .custom-bottom-nav__item--raised .custom-bottom-nav__label {
    color: var(--js-ink);
  }

  /* ---- cart badge: brass on ink ---- */

  .custom-bottom-nav__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--js-brass);
    color: var(--js-parchment);
    font-family: var(--js-serif-sc);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--js-parchment);
  }
}

/* hide-on-scroll already handled elsewhere via data-hidden */

/* =========================================================================
   SHOP DRAWER â slide-up category menu
   ========================================================================= */

.js-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease-out;
  z-index: 998;
}

.js-drawer-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.js-shop-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--js-parchment);
  border-top: 1px solid var(--js-brass);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 999;
  max-height: 86vh;
  overflow-y: auto;
  padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 16px);
  box-shadow: 0 -12px 40px rgba(43, 38, 32, 0.2);
}

.js-shop-drawer[data-open="true"] {
  transform: translateY(0);
}

.js-shop-drawer__handle {
  width: 42px;
  height: 4px;
  background: var(--js-rule-strong);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.js-shop-drawer__eyebrow {
  font-family: var(--js-serif-sc);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  color: var(--js-brass);
  text-align: center;
  margin: 0 0 14px;
}

.js-shop-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.js-shop-drawer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--js-rule);
  color: var(--js-ink);
  text-decoration: none;
  gap: 16px;
}

.js-shop-drawer__row:first-child { border-top: 0; }

.js-shop-drawer__row-he {
  font-family: var(--js-hebrew);
  font-size: 22px;
  font-weight: 500;
  color: var(--js-ink);
  direction: rtl;
  text-align: right;
  flex: 0 0 auto;
  order: 2;
}

.js-shop-drawer__row-en {
  font-family: var(--js-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--js-ink-soft);
  flex: 1 1 auto;
  order: 1;
}

.js-shop-drawer__row-chev {
  color: var(--js-brass);
  font-size: 14px;
  order: 3;
  line-height: 1;
}

.js-shop-drawer__divider {
  height: 1px;
  background: var(--js-brass);
  opacity: 0.5;
  margin: 10px 22px;
}

.js-shop-drawer__row--discovery {
  font-family: var(--js-serif-sc);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  padding: 12px 22px;
}

.js-shop-drawer__row--discovery .js-shop-drawer__row-en {
  font-style: normal;
  font-family: var(--js-serif-sc);
}

/* =========================================================================
   SEARCH OVERLAY â full-screen parchment
   ========================================================================= */

.js-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--js-parchment);
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.js-search-overlay[data-open="true"] {
  transform: translateY(0);
}

.js-search-overlay__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--js-rule);
}

.js-search-overlay__input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--js-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--js-ink);
  padding: 6px 0;
}

.js-search-overlay__input::placeholder {
  color: var(--js-ink-soft);
  opacity: 0.6;
}

.js-search-overlay__close {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--js-ink);
  font-size: 22px;
  line-height: 1;
  padding: 6px 4px;
  cursor: pointer;
}

.js-search-overlay__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.js-search-overlay__group-title {
  font-family: var(--js-serif-sc);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--js-brass);
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--js-rule);
}

.js-search-overlay__result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--js-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--js-rule);
}

.js-search-overlay__result img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: var(--js-parchment-deep);
}

.js-search-overlay__result-title {
  font-family: var(--js-serif);
  font-size: 16px;
  line-height: 1.25;
  flex: 1 1 auto;
}

.js-search-overlay__result-price {
  font-family: var(--js-serif-sc);
  color: var(--js-brass);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.js-search-overlay__recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.js-search-overlay__recent button {
  appearance: none;
  border: 1px solid var(--js-rule);
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--js-serif-sc);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--js-ink);
  cursor: pointer;
}

.js-search-overlay__empty {
  font-family: var(--js-serif);
  font-style: italic;
  color: var(--js-ink-soft);
  padding: 32px 0;
  text-align: center;
}

/* when drawer or overlay is open, prevent body scroll */
body[data-js-lock="true"] {
  overflow: hidden;
  touch-action: none;
}

/* SPRINT_1_EDITORIAL_END */

/* SPRINT_2_5_EDITORIAL_START */
/* ==========================================================================
   Sprint 2-5 — Editorial mobile redesign (homepage, collection, PDP, polish)
   Appended to assets/custom.css. Phones ≤ 999px only.
   Native-feel baked in: safe-area insets, dvh/svh, momentum scroll,
   touch-action: manipulation, tap-highlight neutralized, prefers-reduced-motion.
   ========================================================================== */

/* ---------- native-feel globals (all viewports, scoped to our .js-* elements) ---------- */

.js-home, .js-home *,
.js-coll, .js-coll *,
.js-pdp, .js-pdp *,
.js-hero *, .js-shelf *, .js-strip *, .js-bindery *, .js-why *, .js-newsletter *,
.js-card, .js-card *,
.js-chip, .js-filter-sheet *, .js-sort-sheet *,
.js-pdp__chip, .js-pdp__atc, .js-pdp__buynow, .js-pdp__qty-stepper button,
.js-pdp-sticky, .js-pdp-sticky * {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.js-hairline {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--js-brass);
  opacity: 0.6;
}

.js-hairline--brass { background: var(--js-brass); opacity: 0.7; margin: 12px 0; }

/* Hide old homepage / collection / product sections on mobile; keep editorial + structural */
@media (max-width: 999px) {
  body.template-index .shopify-section:not([id*="editorial-home"]):not([id*="yom_tov"]):not([id*="yom-tov"]):not([id*="header"]):not([id*="footer"]):not([id*="bottom-nav"]) {
    display: none !important;
  }
  body.template-collection .shopify-section:not([id*="editorial-collection"]):not([id*="yom_tov"]):not([id*="yom-tov"]):not([id*="header"]):not([id*="footer"]):not([id*="bottom-nav"]) {
    display: none !important;
  }
  body.template-product .shopify-section:not([id*="editorial-pdp"]):not([id*="yom_tov"]):not([id*="yom-tov"]):not([id*="header"]):not([id*="footer"]):not([id*="bottom-nav"]) {
    display: none !important;
  }
}

/* =========================================================================
   SPRINT 2 — HOMEPAGE
   ========================================================================= */

@media (max-width: 999px) {

  .js-home {
    display: block;
    background: var(--js-parchment);
    padding-bottom: calc(var(--js-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  /* ---- HERO — book-cover ink panel ---- */

  .js-hero {
    position: relative;
    width: 100%;
    min-height: 540px;
    background: var(--js-ink);
    color: var(--js-parchment);
    overflow: hidden;
    padding: 72px 28px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .js-hero__plate {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(212, 169, 74, 0.35);
    pointer-events: none;
  }

  .js-hero__content {
    position: relative;
    z-index: 2;
  }

  .js-hero__eyebrow {
    font-family: var(--js-serif-sc);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--js-brass);
    margin: 0 0 18px;
  }

  .js-hero__title {
    font-family: var(--js-serif);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--js-parchment);
    max-width: 80%;
  }

  .js-hero__subtitle {
    font-family: var(--js-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
    color: rgba(246, 241, 230, 0.78);
    margin: 0 0 36px;
  }

  .js-hero__cta {
    display: inline-block;
    padding: 14px 26px;
    border: 1px solid var(--js-brass);
    color: var(--js-parchment);
    text-decoration: none;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    transition: background 240ms ease, color 240ms ease;
  }

  .js-hero__cta:active { background: var(--js-brass); color: var(--js-ink); }

  .js-hero__hebrew {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--js-hebrew);
    font-weight: 400;
    font-size: 128px;
    line-height: 1;
    color: rgba(246, 241, 230, 0.06);
    z-index: 1;
    pointer-events: none;
    letter-spacing: -0.02em;
  }

  /* ---- SEFORIM SHELF — 2x2 Hebrew-primary ---- */

  .js-shelf {
    padding: 48px 20px 32px;
  }

  .js-shelf__eyebrow { text-align: center; margin-bottom: 26px; }

  .js-shelf__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .js-shelf__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--js-parchment);
    border: 1px solid var(--js-rule);
    padding: 22px 14px;
    text-decoration: none;
    position: relative;
    transition: background 240ms ease;
  }

  .js-shelf__tile::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: 18px;
    height: 1px;
    background: var(--js-brass);
    transform: scaleX(0);
    transition: transform 240ms ease-out;
  }

  .js-shelf__tile:active { background: var(--js-parchment-deep); }
  .js-shelf__tile:active::after { transform: scaleX(1); }

  .js-shelf__tile-he {
    font-family: var(--js-hebrew);
    font-weight: 500;
    font-size: 44px;
    color: var(--js-ink);
    line-height: 1.05;
    text-align: center;
  }

  .js-shelf__tile-en {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--js-ink-soft);
    margin-top: 6px;
    letter-spacing: 0.02em;
  }

  /* ---- STRIP — issue-numbered horizontal scroller ---- */

  .js-strip {
    padding: 32px 0 20px;
  }

  .js-strip__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 20px 14px;
  }

  .js-strip__see-all {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--js-brass);
    text-decoration: none;
  }

  .js-strip__scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 20px 14px;
    scrollbar-width: none;
  }

  .js-strip__scroller::-webkit-scrollbar { display: none; }

  /* ---- CARD — issue-numbered product card (used in strips + grid) ---- */

  .js-card {
    flex: 0 0 46%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    color: var(--js-ink);
    text-decoration: none;
    position: relative;
    min-width: 0;
  }

  .js-card__issue {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--js-brass);
    line-height: 1;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
  }

  .js-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--js-parchment-deep);
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
  }

  .js-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 320ms ease-out;
  }

  .js-card:active .js-card__image img { transform: scale(1.02); }

  .js-card__image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--js-parchment-deep), var(--js-parchment));
  }

  .js-card__title-he {
    font-family: var(--js-hebrew);
    font-size: 17px;
    font-weight: 500;
    color: var(--js-ink);
    line-height: 1.1;
    margin-bottom: 2px;
    min-height: 1em;
  }

  .js-card__title-en {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--js-ink-soft);
    line-height: 1.25;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .js-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .js-card__price {
    font-family: var(--js-serif-sc);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--js-brass);
    font-weight: 500;
  }

  .js-card__add, .js-card__heart {
    appearance: none;
    background: transparent;
    border: 1px solid var(--js-rule);
    padding: 6px 12px;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    color: var(--js-brass);
    cursor: pointer;
    border-radius: 0;
    min-height: 32px;
    transition: background 240ms ease, color 240ms ease;
  }

  .js-card__add:active { background: var(--js-brass); color: var(--js-parchment); }

  .js-card__heart {
    font-size: 16px;
    letter-spacing: 0;
    padding: 4px 10px;
    color: var(--js-ink-soft);
  }

  .js-card__heart[aria-pressed="true"] { color: var(--js-crimson, #8B2332); }

  .js-card--tail {
    flex: 0 0 34%;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--js-rule);
    aspect-ratio: auto;
    min-height: 240px;
  }

  .js-card__tail {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--js-brass);
    text-align: center;
    line-height: 1.5;
  }

  /* ---- BINDERY — editorial feature ---- */

  .js-bindery {
    padding: 40px 20px;
    background: var(--js-parchment-deep);
    margin: 32px 0;
  }

  .js-bindery > .js-eyebrow { text-align: center; margin-bottom: 18px; }

  .js-bindery__card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 16px;
    color: var(--js-ink);
    text-decoration: none;
    align-items: start;
  }

  .js-bindery__image {
    aspect-ratio: 3 / 4;
    background: var(--js-parchment);
    overflow: hidden;
  }

  .js-bindery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .js-bindery__body { padding: 4px 0; }

  .js-bindery__he {
    font-family: var(--js-hebrew);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    min-height: 1em;
  }

  .js-bindery__title {
    font-family: var(--js-serif);
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 10px;
  }

  .js-bindery__blurb {
    font-family: var(--js-serif);
    font-size: 14px;
    line-height: 1.55;
    color: var(--js-ink-soft);
    margin: 0 0 12px;
  }

  .js-bindery__price {
    font-family: var(--js-serif-sc);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--js-brass);
  }

  /* ---- WHY SHOP HERE — numbered rows ---- */

  .js-why {
    padding: 44px 22px 24px;
  }

  .js-why > .js-eyebrow { text-align: center; margin-bottom: 26px; }

  .js-why__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .js-why__row {
    display: flex;
    gap: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--js-rule);
  }

  .js-why__row:first-child { border-top: 1px solid var(--js-brass); }
  .js-why__row:last-child { border-bottom: 1px solid var(--js-brass); }

  .js-why__num {
    flex: 0 0 30px;
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 28px;
    color: var(--js-brass);
    line-height: 1;
  }

  .js-why__row h4 {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 400;
    margin: 0 0 4px;
  }

  .js-why__row p {
    font-family: var(--js-serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--js-ink-soft);
    margin: 0;
  }

  /* ---- NEWSLETTER — editorial ---- */

  .js-newsletter {
    padding: 48px 22px 40px;
    background: var(--js-parchment);
    border-top: 1px solid var(--js-rule);
  }

  .js-newsletter > .js-eyebrow { text-align: center; margin-bottom: 14px; }

  .js-newsletter__title {
    font-family: var(--js-serif);
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 8px;
  }

  .js-newsletter__blurb {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--js-ink-soft);
    text-align: center;
    margin: 0 0 22px;
  }

  .js-newsletter__form {
    display: flex;
    gap: 0;
    border: 1px solid var(--js-rule);
    background: var(--js-parchment);
  }

  .js-newsletter__form input[type="email"] {
    flex: 1 1 auto;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 14px 16px;
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--js-ink);
    outline: none;
    min-width: 0;
  }

  .js-newsletter__form input[type="email"]::placeholder {
    color: var(--js-ink-soft);
    opacity: 0.55;
  }

  .js-newsletter__submit {
    appearance: none;
    background: var(--js-ink);
    color: var(--js-parchment);
    border: 0;
    padding: 0 20px;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    cursor: pointer;
    min-height: 48px;
  }

  .js-newsletter__ok {
    margin-top: 10px;
    font-family: var(--js-serif);
    font-style: italic;
    color: var(--js-brass);
    text-align: center;
  }
}

/* =========================================================================
   SPRINT 3 — COLLECTION PAGE
   ========================================================================= */

@media (max-width: 999px) {

  .js-coll {
    display: block;
    background: var(--js-parchment);
    padding-bottom: calc(var(--js-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .js-coll__head {
    padding: 36px 22px 18px;
    text-align: center;
  }

  .js-coll__eyebrow {
    font-family: var(--js-serif-sc);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--js-brass);
    margin: 0 0 12px;
  }

  .js-coll__he {
    font-family: var(--js-hebrew);
    font-weight: 500;
    font-size: 40px;
    color: var(--js-ink);
    margin: 0 0 6px;
    line-height: 1.05;
    direction: rtl;
  }

  .js-coll__en {
    font-family: var(--js-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    color: var(--js-ink-soft);
    margin: 0 0 14px;
  }

  .js-coll__en--alone {
    font-family: var(--js-serif);
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    color: var(--js-ink);
    margin-bottom: 14px;
  }

  .js-coll__intro {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--js-ink-soft);
    max-width: 36ch;
    margin: 0 auto 18px;
  }

  .js-coll__head .js-hairline {
    max-width: 120px;
    margin: 0 auto;
  }

  /* chip bar */
  .js-coll__chipbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: var(--js-parchment);
    border-top: 1px solid var(--js-rule);
    border-bottom: 1px solid var(--js-rule);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .js-coll__chipbar::-webkit-scrollbar { display: none; }

  .js-chip {
    appearance: none;
    background: transparent;
    border: 1px solid var(--js-rule);
    padding: 8px 14px;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: var(--js-ink);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-height: 36px;
    border-radius: 0;
  }

  .js-chip:active { background: var(--js-parchment-deep); }

  .js-chip--filter { border-color: var(--js-brass); color: var(--js-brass); }
  .js-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--js-brass);
    color: var(--js-parchment);
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .js-chip__value {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--js-serif);
    color: var(--js-ink-soft);
    font-size: 12px;
  }

  .js-chip__active {
    display: inline-flex;
    gap: 8px;
    align-items: center;
  }

  /* grid */
  .js-coll__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 14px;
    padding: 24px 16px;
  }

  .js-card--grid {
    flex: unset;
    scroll-snap-align: unset;
  }

  .js-coll__empty {
    grid-column: 1 / -1;
    padding: 60px 16px;
    text-align: center;
  }

  .js-coll__empty-title {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--js-ink-soft);
    margin: 0 0 16px;
  }

  .js-coll__more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 18px 0;
  }

  /* filter sheet (full-screen) */
  .js-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(43, 38, 32, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease-out;
    z-index: 998;
  }

  .js-filter-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

  .js-filter-sheet {
    position: fixed;
    inset: 0;
    background: var(--js-parchment);
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .js-filter-sheet[data-open="true"] { transform: translateY(0); }

  .js-filter-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 12px;
    border-bottom: 1px solid var(--js-rule);
  }

  .js-filter-sheet__title {
    font-family: var(--js-serif);
    font-weight: 400;
    font-size: 24px;
    margin: 0;
  }

  .js-filter-sheet__close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 24px;
    color: var(--js-ink);
    cursor: pointer;
    padding: 4px 8px;
  }

  .js-filter-sheet__form {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 22px 100px;
  }

  .js-filter-group {
    border: 0;
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid var(--js-rule);
  }

  .js-filter-group legend {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--js-brass);
    padding: 0 0 10px;
  }

  .js-filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .js-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-family: var(--js-serif);
    font-size: 15px;
    color: var(--js-ink);
    cursor: pointer;
    min-height: 40px;
  }

  .js-filter-option input {
    accent-color: var(--js-brass);
    width: 18px;
    height: 18px;
  }

  .js-filter-option__count {
    margin-left: auto;
    font-family: var(--js-serif-sc);
    letter-spacing: 0.1em;
    font-size: 11px;
    color: var(--js-ink-soft);
  }

  .js-filter-option input:disabled + span { color: var(--js-ink-soft); opacity: 0.45; }

  .js-filter-price {
    display: flex;
    gap: 12px;
  }

  .js-filter-price label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: var(--js-serif-sc);
    letter-spacing: 0.1em;
    font-size: 11px;
    color: var(--js-ink-soft);
    text-transform: uppercase;
  }

  .js-filter-price input {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--js-rule);
    padding: 8px 0;
    font-family: var(--js-serif);
    font-size: 16px;
    color: var(--js-ink);
    outline: none;
  }

  .js-filter-sheet__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 16px;
    background: var(--js-parchment);
    border-top: 1px solid var(--js-brass);
  }

  .js-filter-sheet__clear {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--js-ink-soft);
    text-decoration: none;
  }

  .js-filter-sheet__apply {
    appearance: none;
    background: var(--js-ink);
    color: var(--js-parchment);
    border: 0;
    padding: 12px 28px;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    cursor: pointer;
    min-height: 44px;
  }

  /* sort bottom sheet */
  .js-sort-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--js-parchment);
    border-top: 1px solid var(--js-brass);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  .js-sort-sheet[data-open="true"] { transform: translateY(0); }

  .js-sort-sheet__handle {
    width: 42px;
    height: 4px;
    background: var(--js-rule-strong);
    border-radius: 2px;
    margin: 6px auto 14px;
  }

  .js-sort-sheet__title {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--js-brass);
    text-align: center;
    margin: 0 0 10px;
  }

  .js-sort-sheet__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .js-sort-sheet__option {
    width: 100%;
    appearance: none;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--js-rule);
    text-align: left;
    padding: 16px 22px;
    font-family: var(--js-serif);
    font-size: 16px;
    color: var(--js-ink);
    cursor: pointer;
  }

  .js-sort-sheet__option--active {
    color: var(--js-brass);
    font-style: italic;
  }

}

/* =========================================================================
   SPRINT 4 — PDP
   ========================================================================= */

@media (max-width: 999px) {

  .js-pdp {
    display: block;
    background: var(--js-parchment);
    padding-bottom: calc(var(--js-nav-height) + env(safe-area-inset-bottom, 0px) + 80px);
  }

  .js-pdp__gallery {
    position: relative;
    width: 100%;
    background: var(--js-parchment-deep);
    overflow: hidden;
  }

  .js-pdp__gallery-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .js-pdp__gallery-track::-webkit-scrollbar { display: none; }

  .js-pdp__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .js-pdp__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .js-pdp__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
  }

  .js-pdp__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(43, 38, 32, 0.25);
    transition: background 240ms ease, width 240ms ease;
  }

  .js-pdp__dot--active {
    background: var(--js-brass);
    width: 22px;
    border-radius: 3px;
  }

  /* head */
  .js-pdp__head {
    padding: 28px 22px 16px;
  }

  .js-pdp__eyebrow {
    font-family: var(--js-serif-sc);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--js-brass);
    margin: 0 0 14px;
  }

  .js-pdp__he {
    font-family: var(--js-hebrew);
    font-weight: 500;
    font-size: 32px;
    color: var(--js-ink);
    line-height: 1.1;
    margin: 0 0 4px;
    direction: rtl;
  }

  .js-pdp__en {
    font-family: var(--js-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: var(--js-ink-soft);
    margin: 0 0 10px;
  }

  .js-pdp__en--alone {
    font-family: var(--js-serif);
    font-style: normal;
    font-size: 26px;
    color: var(--js-ink);
  }

  .js-pdp__author {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--js-ink-soft);
    margin: 0 0 18px;
  }

  .js-pdp__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 4px;
  }

  .js-pdp__price-now {
    font-family: var(--js-serif-sc);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--js-brass);
  }

  .js-pdp__price-was {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--js-ink-soft);
    opacity: 0.7;
  }

  /* variants */
  .js-pdp__variants {
    padding: 16px 22px 20px;
  }

  .js-pdp__option {
    border: 0;
    padding: 10px 0;
    margin: 0;
  }

  .js-pdp__option-label {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--js-ink-soft);
    margin-bottom: 10px;
    display: block;
  }

  .js-pdp__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .js-pdp__chip {
    position: relative;
    cursor: pointer;
  }

  .js-pdp__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .js-pdp__chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--js-rule);
    font-family: var(--js-serif);
    font-size: 15px;
    color: var(--js-ink);
    background: var(--js-parchment);
    min-height: 44px;
    transition: border-color 240ms ease, background 240ms ease;
  }

  .js-pdp__chip input:checked + span {
    border-color: var(--js-brass);
    background: var(--js-parchment-deep);
    color: var(--js-ink);
  }

  .js-pdp__qty {
    margin-top: 16px;
  }

  .js-pdp__qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--js-rule);
    background: var(--js-parchment);
  }

  .js-pdp__qty-stepper button {
    appearance: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    font-family: var(--js-serif);
    font-size: 20px;
    color: var(--js-brass);
    cursor: pointer;
  }

  .js-pdp__qty-stepper input {
    appearance: none;
    -moz-appearance: textfield;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--js-rule);
    border-right: 1px solid var(--js-rule);
    width: 48px;
    height: 44px;
    text-align: center;
    font-family: var(--js-serif-sc);
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--js-ink);
    outline: none;
  }

  .js-pdp__qty-stepper input::-webkit-outer-spin-button,
  .js-pdp__qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

  /* buy buttons */
  .js-pdp__buy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 22px 24px;
  }

  .js-pdp__atc, .js-pdp__buynow {
    appearance: none;
    width: 100%;
    border: 0;
    padding: 16px 22px;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    cursor: pointer;
    min-height: 52px;
  }

  .js-pdp__atc {
    background: var(--js-ink);
    color: var(--js-parchment);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .js-pdp__atc-price {
    font-size: 13px;
    color: var(--js-brass);
    letter-spacing: 0.1em;
  }

  .js-pdp__atc[data-loading="true"] {
    opacity: 0.7;
    pointer-events: none;
  }

  .js-pdp__buynow {
    background: var(--js-parchment);
    border: 1px solid var(--js-brass);
    color: var(--js-ink);
  }

  /* editorial metafield blocks */
  .js-pdp__editorial {
    padding: 20px 22px;
    border-top: 1px solid var(--js-rule);
  }

  .js-pdp__editorial--bilingual .js-pdp__editorial-he {
    font-family: var(--js-hebrew);
    font-size: 22px;
    color: var(--js-ink);
    margin: 0 0 2px;
  }

  .js-pdp__editorial--bilingual .js-pdp__editorial-en {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--js-ink-soft);
    margin: 0 0 2px;
  }

  .js-pdp__editorial-translit {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: var(--js-brass);
  }

  .js-pdp__editorial--halacha {
    background: var(--js-parchment-deep);
    padding: 26px 22px;
  }

  .js-pdp__editorial--halacha .js-pdp__editorial-cite {
    font-family: var(--js-serif);
    font-size: 14px;
    color: var(--js-brass);
    margin: 10px 0;
  }

  .js-pdp__editorial--halacha .js-pdp__editorial-body {
    font-family: var(--js-hebrew);
    font-size: 17px;
    line-height: 1.75;
    color: var(--js-ink);
    direction: rtl;
  }

  .js-pdp__editorial--provenance p {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    color: var(--js-ink-soft);
  }

  .js-pdp__ar-button {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid var(--js-brass);
    color: var(--js-ink);
    text-decoration: none;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
  }

  /* details */
  .js-pdp__details {
    padding: 24px 22px;
    border-top: 1px solid var(--js-rule);
  }

  .js-pdp__details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    row-gap: 10px;
    margin: 10px 0 0;
  }

  .js-pdp__details dt {
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: var(--js-ink-soft);
  }

  .js-pdp__details dd {
    font-family: var(--js-serif);
    font-size: 15px;
    color: var(--js-ink);
    margin: 0;
  }

  /* description */
  .js-pdp__desc {
    padding: 24px 22px;
    border-top: 1px solid var(--js-rule);
  }

  .js-pdp__desc-body {
    font-family: var(--js-serif);
    font-size: 16px;
    line-height: 1.65;
    color: var(--js-ink);
  }

  .js-pdp__desc-body p { margin: 0 0 12px; }

  /* why-shop */
  .js-pdp__why {
    padding: 24px 22px 40px;
    border-top: 1px solid var(--js-rule);
  }

  .js-pdp__why-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
  }

  .js-pdp__why-list li {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--js-rule);
    font-family: var(--js-serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--js-ink-soft);
  }

  .js-pdp__why-list li:first-child { border-top: 0; }

  .js-pdp__why-list li span {
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--js-brass);
    flex: 0 0 24px;
    line-height: 1;
  }

  .js-pdp__why-list li strong {
    font-family: var(--js-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--js-ink);
    display: block;
    margin-bottom: 2px;
  }

  /* sticky bottom ATC */
  .js-pdp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--js-nav-height) + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    background: var(--js-parchment);
    border-top: 1px solid var(--js-brass);
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
  }

  .js-pdp-sticky[data-visible="true"] {
    transform: translateY(0);
    pointer-events: auto;
  }

  .js-pdp-sticky__title {
    flex: 1 1 auto;
    font-family: var(--js-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--js-ink);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .js-pdp-sticky__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .js-pdp-sticky__price {
    font-family: var(--js-serif-sc);
    letter-spacing: 0.1em;
    font-size: 12px;
    color: var(--js-brass);
  }

  .js-pdp-sticky__atc {
    appearance: none;
    background: var(--js-ink);
    color: var(--js-parchment);
    border: 0;
    padding: 10px 16px;
    font-family: var(--js-serif-sc);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    cursor: pointer;
    min-height: 40px;
  }

}

/* =========================================================================
   SPRINT 5 — POLISH (global)
   ========================================================================= */

/* reduced-motion: collapse transitions */
@media (prefers-reduced-motion: reduce) {
  .js-hero__cta, .js-shelf__tile, .js-shelf__tile::after,
  .js-card__image img, .js-card__add,
  .js-shop-drawer, .js-search-overlay, .js-drawer-backdrop,
  .js-filter-sheet, .js-sort-sheet, .js-filter-backdrop,
  .js-pdp-sticky, .js-pdp__dot, .js-pdp__chip span {
    transition: none !important;
  }
}

/* parchment skeleton (replaces spinners) */
.js-skeleton {
  background: linear-gradient(90deg, var(--js-parchment-deep), var(--js-parchment), var(--js-parchment-deep));
  background-size: 200% 100%;
  animation: js-skeleton 1400ms ease-in-out infinite;
  border-radius: 0;
}

@keyframes js-skeleton {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* focus rings in brass (accessibility) */
@media (max-width: 999px) {
  .js-home a:focus-visible, .js-home button:focus-visible, .js-home input:focus-visible,
  .js-coll a:focus-visible, .js-coll button:focus-visible, .js-coll input:focus-visible,
  .js-pdp a:focus-visible, .js-pdp button:focus-visible, .js-pdp input:focus-visible,
  .custom-bottom-nav__item:focus-visible,
  .js-filter-sheet button:focus-visible, .js-filter-sheet input:focus-visible,
  .js-sort-sheet button:focus-visible,
  .js-shop-drawer a:focus-visible,
  .js-search-overlay input:focus-visible, .js-search-overlay button:focus-visible {
    outline: 2px solid var(--js-brass);
    outline-offset: 2px;
  }
}

/* toast when item added to cart */
.js-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%) translateY(-140%);
  z-index: 2000;
  padding: 14px 22px;
  background: var(--js-ink);
  color: var(--js-parchment);
  font-family: var(--js-serif-sc);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  border: 1px solid var(--js-brass);
  box-shadow: 0 10px 30px rgba(43, 38, 32, 0.35);
  transition: transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.js-toast[data-show="true"] {
  transform: translateX(-50%) translateY(0);
}

/* SPRINT_2_5_EDITORIAL_END */

/* SPRINT_2_5_HIDE_PATCH_START */
@media (max-width: 999px) {
  main#main:has(> .shopify-section--editorial-home, > .shopify-section--editorial-collection, > .shopify-section--editorial-pdp, > .shopify-section--editorial-cart) > .shopify-section:not(.shopify-section--editorial-header):not(.shopify-section--editorial-home):not(.shopify-section--editorial-collection):not(.shopify-section--editorial-pdp):not(.shopify-section--editorial-cart) {
    display: none !important;
  }
  body:has(.shopify-section--editorial-home, .shopify-section--editorial-collection, .shopify-section--editorial-pdp, .shopify-section--editorial-cart, .shopify-section--editorial-landing, .jl) > [id$="__header"],
  body:has(.shopify-section--editorial-home, .shopify-section--editorial-collection, .shopify-section--editorial-pdp, .shopify-section--editorial-cart, .shopify-section--editorial-landing, .jl) > [id*="__announcement-bar"] {
    display: none !important;
  }
}
/* SPRINT_2_5_HIDE_PATCH_END */

/* SPRINT_2_5_EDITORIAL_HEADER_START */
.ed-mhead { display: none; }

@media (max-width: 999px) {
  .ed-mhead {
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ed-parchment, #f5efe4);
    border-bottom: 1px solid rgba(172, 138, 83, 0.35);
    -webkit-backdrop-filter: saturate(1.1);
    backdrop-filter: saturate(1.1);
  }
  .ed-mhead__inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 8px;
    max-width: 100%;
  }
  .ed-mhead__icon {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ed-ink, #1a1a1a);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
  }
  .ed-mhead__icon:active { background: rgba(0,0,0,0.06); }
  .ed-mhead__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ed-ink, #1a1a1a);
    min-width: 0;
  }
  .ed-mhead__logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
  }
  .ed-mhead__wordmark {
    font-family: var(--ed-serif, Georgia, "Times New Roman", serif);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ed-brass, #ac8a53);
  }
  .ed-mhead__cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ed-brass, #ac8a53);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--ed-parchment, #f5efe4);
  }
  .ed-mhead__cart-count[hidden] { display: none; }
  main#main > .shopify-section.shopify-section--editorial-header,
  body > .shopify-section.shopify-section--editorial-header {
    display: block !important;
  }
}
/* SPRINT_2_5_EDITORIAL_HEADER_END */

/* SPRINT_2_5_POLISH_START */
@media (max-width: 999px) {
  .js-strip__see-all { display: none !important; }
  .js-card--tail    { display: none !important; }
  .js-strip__scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .js-strip__scroller::-webkit-scrollbar { display: none; }
  .js-strip__scroller > * { scroll-snap-align: start; }

  .js-card { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .js-card__image { background: transparent !important; border-radius: 3px; overflow: hidden; }
  .js-card__image img {
    background: transparent !important;
    mix-blend-mode: multiply;
    filter: saturate(1.02);
  }

  .js-shelf__tile { background: transparent !important; border: 1px solid rgba(172,138,83,0.35); }
}
/* SPRINT_2_5_POLISH_END */

/* SPRINT_2_5_MENU_START */
.ed-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.ed-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.ed-menu-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 340px);
  background: var(--ed-parchment, #f5efe4);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.14);
}
.ed-menu-panel.is-open { transform: translateX(0); }
.ed-menu-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(172,138,83,0.35);
}
.ed-menu-panel__brand {
  font-family: var(--ed-serif, Georgia, serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--ed-brass, #ac8a53);
  letter-spacing: 0.04em;
}
.ed-menu-panel__close {
  appearance: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-ink, #1a1a1a);
  border-radius: 999px;
  cursor: pointer;
}
.ed-menu-panel__body {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0 24px;
}
.ed-menu-panel__section {
  padding: 12px 18px 8px;
  font-family: var(--ed-serif, Georgia, serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-brass, #ac8a53);
  border-top: 1px solid rgba(172,138,83,0.18);
}
.ed-menu-panel__section:first-child { border-top: 0; }
.ed-menu-panel__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--ed-ink, #1a1a1a);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ed-menu-panel__link:active { background: rgba(172,138,83,0.08); }
.ed-menu-panel__he {
  margin-left: auto;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-weight: 500;
  color: var(--ed-brass, #ac8a53);
  font-size: 15px;
}

body.ed-menu-open { overflow: hidden; }
/* SPRINT_2_5_MENU_END */

/* SPRINT_2_6_CART_START */
.shopify-section--editorial-cart { background: var(--ed-parchment, #f5efe4); }

.ed-cart {
  padding: 24px 16px 120px;
  color: var(--ed-ink, #1a1a1a);
  font-family: var(--ed-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
.ed-cart__head { text-align: center; margin-bottom: 22px; }
.ed-cart__eyebrow {
  font-family: var(--ed-serif, Georgia, serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ed-brass, #ac8a53);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.ed-cart__title {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

/* empty state */
.ed-cart__empty { text-align: center; padding: 48px 12px 24px; }
.ed-cart__empty-icon {
  color: var(--ed-brass, #ac8a53);
  opacity: 0.65;
  margin-bottom: 18px;
}
.ed-cart__empty-lead {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 17px;
  color: #4a4337;
  margin: 0 0 22px;
  line-height: 1.4;
}
.ed-cart__cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ed-ink, #1a1a1a);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  text-transform: uppercase;
}
.ed-cart__shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px auto 0;
  max-width: 320px;
}
.ed-cart__shortcut {
  display: inline-flex;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(172,138,83,0.08);
  border: 1px solid rgba(172,138,83,0.25);
  color: var(--ed-ink, #1a1a1a);
  text-decoration: none;
  font-size: 13px;
  border-radius: 999px;
}
.ed-cart__he { font-family: "Frank Ruhl Libre", Georgia, serif; color: var(--ed-brass, #ac8a53); }

/* line items */
.ed-cart__items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  border-top: 1px solid rgba(172,138,83,0.3);
}
.ed-cart__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(172,138,83,0.3);
}
.ed-cart__media {
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 2px;
}
.ed-cart__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent;
}
.ed-cart__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-cart__name {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ed-ink, #1a1a1a);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-cart__variant, .ed-cart__plan {
  font-size: 12px;
  color: #6b5d4a;
  margin: 0;
}
.ed-cart__plan { font-style: italic; }
.ed-cart__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ed-cart__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(172,138,83,0.45);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.ed-cart__qty-btn {
  appearance: none;
  background: transparent;
  border: 0;
  width: 30px;
  height: 30px;
  font-size: 16px;
  color: var(--ed-ink, #1a1a1a);
  cursor: pointer;
}
.ed-cart__qty-btn:active { background: rgba(172,138,83,0.1); }
.ed-cart__qty-input {
  width: 36px;
  height: 30px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--ed-ink, #1a1a1a);
  -moz-appearance: textfield;
}
.ed-cart__qty-input::-webkit-outer-spin-button,
.ed-cart__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ed-cart__price {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: var(--ed-ink, #1a1a1a);
}
.ed-cart__save {
  font-size: 11px;
  color: #7a5a2f;
  margin: 2px 0 0;
  font-style: italic;
}
.ed-cart__remove {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5d4a;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  align-self: flex-start;
}

/* note */
.ed-cart__note-wrap { margin: 18px 0 14px; }
.ed-cart__note-sum {
  font-size: 13px;
  color: var(--ed-brass, #ac8a53);
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(172,138,83,0.2);
  list-style: none;
}
.ed-cart__note-sum::-webkit-details-marker { display: none; }
.ed-cart__note-sum::before { content: '+ '; }
details[open] .ed-cart__note-sum::before { content: '− '; }
.ed-cart__note {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(172,138,83,0.35);
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
  color: var(--ed-ink, #1a1a1a);
}

/* summary */
.ed-cart__summary {
  padding: 18px 0 6px;
  border-top: 1px solid rgba(172,138,83,0.3);
  margin-top: 10px;
}
.ed-cart__summary-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 18px;
  padding: 6px 0;
}
.ed-cart__summary-row--save { color: #7a5a2f; font-size: 14px; font-style: italic; }
.ed-cart__ship-note { font-size: 12px; color: #6b5d4a; margin: 4px 0 0; text-align: right; }

/* actions */
.ed-cart__actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ed-cart__checkout {
  appearance: none;
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: var(--ed-ink, #1a1a1a);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.ed-cart__checkout:active { background: #2a2a2a; }
.ed-cart__keep {
  text-align: center;
  padding: 10px;
  text-decoration: underline;
  font-size: 14px;
  color: #4a4337;
}
.ed-cart__express { margin-top: 16px; }
.ed-cart__express > * + * { margin-top: 8px; }

/* Item removing animation */
.ed-cart__item--leaving { opacity: 0.4; transform: translateX(-8px); transition: opacity .24s ease, transform .24s ease; }
/* SPRINT_2_6_CART_END */


/* ====================================================================
   Finder Wizard (.jfw) — mobile product finder
   Clean chip-step UX; matches editorial aesthetic.
   ==================================================================== */
@media (max-width: 999px) {
  .jfw {
    padding: 48px 16px 64px;
    background: rgb(var(--text-color,31 27 23) / 0.02);
    border-top: 1px solid rgb(var(--text-color,31 27 23) / 0.08);
    border-bottom: 1px solid rgb(var(--text-color,31 27 23) / 0.08);
  }
  .jfw__intro { text-align: center; margin: 0 0 28px; }
  .jfw__eyebrow { letter-spacing: 0.18em; font-size: 11px; color: rgb(var(--text-color,31 27 23) / 0.55); margin: 0 0 10px; text-transform: uppercase; }
  .jfw__title { font-family: var(--heading-family,'Cormorant Garamond', serif); font-size: 32px; line-height: 1.05; margin: 0 0 8px; font-weight: 500; }
  .jfw__subtitle { font-size: 14px; line-height: 1.5; color: rgb(var(--text-color,31 27 23) / 0.7); max-width: 34ch; margin: 0 auto; }

  .jfw__steps { list-style: none; padding: 0; margin: 0; }
  .jfw__step { display: none; }
  .jfw__step[data-jfw-active] { display: block; animation: jfw-fade 0.3s ease; }
  @keyframes jfw-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .jfw__step-head { margin: 0 0 20px; }
  .jfw__step-num { display: inline-block; font-family: var(--heading-family,'Cormorant Garamond',serif); font-size: 14px; letter-spacing: 0.2em; color: rgb(var(--text-color,31 27 23) / 0.45); margin-bottom: 6px; }
  .jfw__step-q { font-family: var(--heading-family,'Cormorant Garamond',serif); font-size: 24px; line-height: 1.2; margin: 0 0 6px; font-weight: 500; }
  .jfw__step-helper { font-size: 13px; color: rgb(var(--text-color,31 27 23) / 0.6); margin: 0; }

  .jfw__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
  .jfw__opt {
    appearance: none;
    background: #fff;
    border: 1px solid rgb(var(--text-color,31 27 23) / 0.14);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    min-height: 132px;
  }
  .jfw__opt:active { transform: scale(0.98); }
  .jfw__opt.is-selected {
    border-color: rgb(var(--accent-color,161 116 62));
    box-shadow: 0 0 0 1px rgb(var(--accent-color,161 116 62)), 0 6px 20px rgb(var(--accent-color,161 116 62) / 0.15);
    background: rgb(var(--accent-color,161 116 62) / 0.04);
  }
  .jfw__opt-media {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: rgb(var(--text-color,31 27 23) / 0.06);
    display: flex; align-items: center; justify-content: center;
  }
  .jfw__opt-img { width: 100%; height: 100%; object-fit: cover; }
  .jfw__opt-placeholder { font-size: 24px; color: rgb(var(--text-color,31 27 23) / 0.3); }
  .jfw__opt-body { display: flex; flex-direction: column; gap: 2px; }
  .jfw__opt-label { font-size: 15px; font-weight: 500; line-height: 1.25; }
  .jfw__opt-sub { font-size: 12px; color: rgb(var(--text-color,31 27 23) / 0.6); line-height: 1.3; }

  .jfw__step-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .jfw__next {
    flex: 1 1 auto;
    appearance: none;
    background: rgb(var(--text-color,31 27 23));
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
  }
  .jfw__next:disabled { opacity: 0.35; cursor: not-allowed; }
  .jfw__back {
    appearance: none; background: transparent; border: 0;
    color: rgb(var(--text-color,31 27 23) / 0.7);
    font-size: 13px; padding: 12px 4px; cursor: pointer;
  }

  .jfw__results { margin-top: 24px; }
  .jfw__results-head { text-align: center; margin: 0 0 20px; }
  .jfw__results-title { font-family: var(--heading-family,'Cormorant Garamond',serif); font-size: 26px; margin: 0 0 4px; }
  .jfw__results-sub { font-size: 13px; color: rgb(var(--text-color,31 27 23) / 0.6); margin: 0; }
  .jfw__results-grid { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .jfw__card { }
  .jfw__card-link { display: block; color: inherit; text-decoration: none; }
  .jfw__card-media { aspect-ratio: 1/1; background: rgb(var(--text-color,31 27 23) / 0.05); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
  .jfw__card-media img { width: 100%; height: 100%; object-fit: cover; }
  .jfw__card-title { font-size: 13px; line-height: 1.3; margin: 0 0 4px; }
  .jfw__card-price { font-size: 13px; font-weight: 500; margin: 0; }
  .jfw__results-foot { text-align: center; }
  .jfw__restart {
    appearance: none; background: transparent;
    border: 1px solid rgb(var(--text-color,31 27 23) / 0.2);
    border-radius: 999px; padding: 10px 20px;
    font-size: 13px; cursor: pointer;
  }

  /* ── 12-tile category grid on home ──────────── */
  .js-shelf__grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}

/* Compact wizard — reduce scroll fatigue */
@media (max-width: 999px) {
  .jfw { padding: 24px 16px 32px; }
  .jfw__intro { margin: 0 0 18px; }
  .jfw__title { font-size: 26px; }
  .jfw__subtitle { font-size: 13px; }
  .jfw__step-head { margin: 0 0 14px; }
  .jfw__step-num { font-size: 12px; }
  .jfw__step-q { font-size: 20px; }
  .jfw__opt { min-height: 98px; padding: 10px 10px; gap: 6px; }
  .jfw__opt-media { width: 40px; height: 40px; border-radius: 8px; }
  .jfw__opt-label { font-size: 14px; }
  .jfw__opt-sub { font-size: 11px; }
  .jfw__options { gap: 8px; margin: 0 0 16px; }
  .jfw__next { padding: 12px 20px; font-size: 14px; }
  .jfw__results-grid { gap: 10px; }
}

/* ====================================================================
   LUXURY POLISH — Sprint 5.1 (task #98)
   Fade-mask shelf edges, cover drop-shadows, brass hairline ornaments,
   hero vignette, shelf card hover lift.
   ==================================================================== */
@media (max-width: 999px) {
  /* Fade-mask shelf rail edges (cards appear to slide under the page edge) */
  .jl__rail {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
    padding-right: 24px;
  }

  /* Cover drop-shadow — subtle lift on product cards */
  .jl__card-media {
    box-shadow: 0 1px 2px rgb(var(--text-color,31 27 23) / 0.06),
                0 4px 12px rgb(var(--text-color,31 27 23) / 0.08);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .jl__card-link:hover .jl__card-media,
  .jl__card-link:focus-visible .jl__card-media {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgb(var(--text-color,31 27 23) / 0.08),
                0 10px 20px rgb(var(--text-color,31 27 23) / 0.12);
  }

  /* Brass hairline ornament above Hebrew quotes */
  .jl__quote,
  .jl__close {
    position: relative;
    padding-top: 36px;
  }
  .jl__quote::before,
  .jl__close::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgb(var(--accent-color,161 116 62) / 0.5) 20%, rgb(var(--accent-color,161 116 62) / 0.9) 50%, rgb(var(--accent-color,161 116 62) / 0.5) 80%, transparent 100%);
  }

  /* Hero vignette — soft dark edge on hero images */
  .jl__heroimg {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
  }
  .jl__heroimg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgb(var(--text-color,31 27 23) / 0.15) 100%);
    border-radius: inherit;
  }

  /* Shelf title — serif + optical adjustment */
  .jl__shelf-title {
    font-family: var(--heading-family, 'Cormorant Garamond', serif);
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  /* See all link — brass accent */
  .jl__shelf-more {
    color: rgb(var(--accent-color, 161 116 62));
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
  }
  .jl__shelf-more:hover { text-decoration: underline; }

  /* Eyebrow text — brass tone on all editorial surfaces */
  .jl__eyebrow, .jfw__eyebrow, .js-eyebrow {
    color: rgb(var(--accent-color, 161 116 62));
  }

  /* Why-list roman numerals — refined */
  .jl__why-roman {
    font-family: var(--heading-family, 'Cormorant Garamond', serif);
    font-style: italic;
    color: rgb(var(--accent-color, 161 116 62));
    opacity: 0.85;
  }

  /* Home category tiles — luxury upgrade */
  .js-shelf__tile {
    background: linear-gradient(180deg, #fff 0%, rgb(var(--text-color,31 27 23) / 0.02) 100%);
    border: 1px solid rgb(var(--text-color,31 27 23) / 0.08);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgb(var(--text-color,31 27 23) / 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .js-shelf__tile:active,
  .js-shelf__tile:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--accent-color,161 116 62) / 0.4);
    box-shadow: 0 2px 6px rgb(var(--accent-color,161 116 62) / 0.15);
  }
  .js-shelf__tile-he {
    font-family: var(--heading-family, 'Cormorant Garamond', serif);
    font-size: 22px;
    color: rgb(var(--text-color,31 27 23));
    line-height: 1;
    margin-bottom: 4px;
  }
  .js-shelf__tile-en {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--text-color,31 27 23) / 0.65);
  }
}

/* ====================================================================
   Daf Yomi strip (.dyo) — auto-rotating, live from Sefaria API
   ==================================================================== */
@media (max-width: 999px) {
  .dyo {
    padding: 20px 16px;
    background: linear-gradient(180deg, rgb(var(--text-color,31 27 23) / 0.03) 0%, transparent 100%);
    border-bottom: 1px solid rgb(var(--text-color,31 27 23) / 0.06);
  }
  .dyo__inner { max-width: 520px; margin: 0 auto; text-align: center; }
  .dyo__eyebrow {
    font-size: 11px; letter-spacing: 0.18em;
    color: rgb(var(--accent-color,161 116 62));
    margin: 0 0 12px; text-transform: uppercase;
  }
  .dyo__rotator { position: relative; min-height: 110px; }
  .dyo__slide {
    position: absolute; inset: 0;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .dyo__slide.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
  .dyo__hebrew {
    font-family: var(--heading-family,'Cormorant Garamond', serif);
    font-size: 32px; line-height: 1.1; margin: 0 0 4px;
    direction: rtl; color: rgb(var(--text-color,31 27 23));
  }
  .dyo__english {
    font-size: 14px; color: rgb(var(--text-color,31 27 23) / 0.75);
    margin: 0 0 10px;
  }
  .dyo__sep { margin: 0 6px; opacity: 0.4; }
  .dyo__cta {
    display: inline-block; font-size: 13px; font-weight: 500;
    color: rgb(var(--accent-color,161 116 62));
    text-decoration: none;
    border-bottom: 1px solid rgb(var(--accent-color,161 116 62) / 0.4);
    padding-bottom: 1px;
  }
  .dyo__cta:hover { border-bottom-color: rgb(var(--accent-color,161 116 62)); }
  .dyo__dots {
    display: flex; justify-content: center; gap: 6px; margin-top: 16px;
  }
  .dyo__dot {
    appearance: none; background: transparent; border: 0; cursor: pointer;
    width: 6px; height: 6px; padding: 0; border-radius: 50%;
    background: rgb(var(--text-color,31 27 23) / 0.2);
    transition: width 0.2s ease, background 0.2s ease;
  }
  .dyo__dot.is-active { width: 18px; border-radius: 3px; background: rgb(var(--accent-color,161 116 62)); }
}

/* Extend hide-patch to include daf-yomi section */
@media (max-width: 999px) {
  main#main:has(> .shopify-section--daf-yomi) > [id$="__header"]:not(.shopify-section-group-header-group),
  body:has(.shopify-section--daf-yomi) > header.shopify-section--header { display: none !important; }
}

/* ====================================================================
   DESKTOP PARITY — Sprint 6 (task #107)
   Everything above 1000px — two-column hero, larger chips, wider shelves.
   ==================================================================== */
@media (min-width: 1000px) {
  /* ===== Editorial landing (jl) — desktop hero ===== */
  .jl { max-width: 1280px; margin: 0 auto; padding: 48px 48px 80px; }
  .jl__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
  .jl__he { font-size: 88px; line-height: 1; margin: 0 0 12px; }
  .jl__en { font-size: 22px; letter-spacing: 0.02em; margin: 0 0 20px; }
  .jl__subtitle { font-size: 17px; line-height: 1.6; max-width: 48ch; margin: 0 0 28px; }
  .jl__heroimg { order: 2; margin: 0; }
  .jl__heroimg-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
  .jl__intro { max-width: 52ch; font-size: 16px; line-height: 1.7; }

  /* ===== Shelves — desktop grid ===== */
  .jl__shelf { margin-bottom: 72px; }
  .jl__shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
  .jl__shelf-title { font-size: 32px; letter-spacing: -0.01em; }
  .jl__shelf-subtitle { font-size: 14px; }
  .jl__rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; -webkit-mask: none; mask: none; padding: 0; }
  .jl__card-media { aspect-ratio: 3/4; }
  .jl__card-title { font-size: 14px; line-height: 1.35; margin-top: 10px; }
  .jl__card-price { font-size: 14px; font-weight: 500; margin-top: 4px; }

  /* ===== Why block + quote — desktop ===== */
  .jl__why, .jl__close { max-width: 920px; margin: 56px auto; padding: 48px; }
  .jl__why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

  /* ===== Finder Wizard (jfw) — desktop ===== */
  .jfw { max-width: 920px; margin: 0 auto; padding: 64px 48px 80px; background: rgb(var(--text-color,31 27 23) / 0.02); border-top: 1px solid rgb(var(--text-color,31 27 23) / 0.08); border-bottom: 1px solid rgb(var(--text-color,31 27 23) / 0.08); }
  .jfw__intro { text-align: center; margin-bottom: 40px; }
  .jfw__title { font-size: 42px; line-height: 1.05; }
  .jfw__subtitle { font-size: 16px; }
  .jfw__step-head { margin-bottom: 24px; text-align: center; }
  .jfw__step-num { font-size: 13px; }
  .jfw__step-q { font-size: 28px; }
  .jfw__step-helper { font-size: 14px; max-width: 48ch; margin: 0 auto; }
  .jfw__options { grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 820px; margin: 0 auto 32px; }
  .jfw__opt { min-height: 128px; padding: 16px; }
  .jfw__opt-media { width: 56px; height: 56px; }
  .jfw__opt-label { font-size: 16px; }
  .jfw__opt-sub { font-size: 12px; }
  .jfw__step-foot { display: flex; justify-content: center; gap: 16px; align-items: center; }
  .jfw__next { max-width: 260px; padding: 16px 32px; }
  .jfw__results-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  /* ===== Daf Yomi strip — desktop ===== */
  .dyo { padding: 32px 48px; }
  .dyo__inner { max-width: 720px; }
  .dyo__hebrew { font-size: 44px; }
  .dyo__english { font-size: 16px; }
  .dyo__rotator { min-height: 140px; }

  /* ===== Home category tiles — 4-wide on desktop ===== */
  .js-shelf__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; max-width: 1100px; margin: 0 auto; }
  .js-shelf__tile { padding: 28px 18px; min-height: 120px; }
  .js-shelf__tile-he { font-size: 30px; }
  .js-shelf__tile-en { font-size: 12px; }

  /* Editorial home container centered + wider */
  .shopify-section--editorial-home { max-width: 1280px; margin: 0 auto; padding: 40px 48px 80px; }
}

/* Medium screens — tablet (1000-1279px) use 4 columns not 5 for shelves */
@media (min-width: 1000px) and (max-width: 1279px) {
  .jl__rail { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .js-shelf__grid { grid-template-columns: repeat(3, 1fr) !important; }
  .jfw__options { grid-template-columns: repeat(3, 1fr); }
  .jfw__results-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Single-result wizard mode (.jfw__single) — "Boom, added to cart" */
.jfw__single {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgb(var(--text-color,31 27 23) / 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgb(var(--accent-color,161 116 62) / 0.08);
}
@media (min-width: 700px) { .jfw__single { grid-template-columns: 280px 1fr; gap: 32px; align-items: center; } }
.jfw__single-media { display: block; aspect-ratio: 1/1; background: rgb(var(--text-color,31 27 23) / 0.04); border-radius: 10px; overflow: hidden; }
.jfw__single-media img { width: 100%; height: 100%; object-fit: cover; }
.jfw__single-info { display: flex; flex-direction: column; gap: 8px; }
.jfw__single-title { font-family: var(--heading-family,'Cormorant Garamond',serif); font-size: 22px; line-height: 1.2; margin: 0; color: rgb(var(--text-color,31 27 23)); }
.jfw__single-price { font-size: 18px; font-weight: 500; margin: 0; }
.jfw__atc {
  appearance: none;
  background: rgb(var(--accent-color,161 116 62));
  color: #fff; border: 0; border-radius: 999px;
  padding: 14px 24px; font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 8px;
}
.jfw__atc:hover { background: rgb(var(--text-color,31 27 23)); }
.jfw__atc:active { transform: scale(0.98); }
.jfw__atc:disabled { opacity: 0.6; cursor: not-allowed; }
.jfw__single-more { font-size: 13px; color: rgb(var(--text-color,31 27 23) / 0.7); text-decoration: none; margin-top: 4px; }
.jfw__single-more:hover { text-decoration: underline; }
.jfw__empty { list-style: none; padding: 20px; text-align: center; color: rgb(var(--text-color,31 27 23) / 0.5); }

/* ====================================================================
   WIZARD PROFESSIONAL FIX — kill placeholder dots, tighten chips,
   fix button disabled state, improve tap feel
   ==================================================================== */
/* Hide any leftover placeholder dots */
.jfw__opt-placeholder { display: none !important; }

/* When chip has NO media, don't reserve space for it */
.jfw__opt:not(:has(.jfw__opt-media)) { }
.jfw__opt { 
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 14px;
  min-height: 72px;
  border: 1px solid rgb(var(--text-color,31 27 23) / 0.14);
  border-radius: 12px;
  background: #fff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(var(--accent-color,161 116 62) / 0.1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.jfw__opt:active { transform: scale(0.98); background: rgb(var(--accent-color,161 116 62) / 0.04); }
.jfw__opt.is-selected {
  border-color: rgb(var(--accent-color,161 116 62));
  box-shadow: 0 0 0 2px rgb(var(--accent-color,161 116 62) / 0.25);
  background: rgb(var(--accent-color,161 116 62) / 0.06);
}
.jfw__opt-body { gap: 4px; }
.jfw__opt-label { font-size: 15px; line-height: 1.25; font-weight: 500; color: rgb(var(--text-color,31 27 23)); }
.jfw__opt-sub { font-size: 12px; color: rgb(var(--text-color,31 27 23) / 0.6); line-height: 1.35; }

/* Continue/CTA button — make the DISABLED state feel intentional, not broken */
.jfw__next {
  opacity: 1;
  background: rgb(var(--text-color,31 27 23));
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.jfw__next:disabled {
  background: rgb(var(--text-color,31 27 23) / 0.2);
  color: rgb(var(--text-color,31 27 23) / 0.55);
  cursor: default;
}
.jfw__next:not(:disabled):active { transform: scale(0.98); }

/* Show helper text for disabled button */
.jfw__next:disabled::after {
  content: attr(data-help);
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

/* pointer-events: left at browser default — button handles clicks natively */

/* ====================================================================
   Strip product cards — remove white bg + stop zoom-crop on book covers
   (NEW THIS WEEK / ON THE STAND / any editorial-home strip)
   ==================================================================== */
.js-strip .js-card,
.js-strip .js-card__media,
.js-strip .js-card__img-wrap,
.js-strip a {
  background: transparent !important;
}

/* Show the WHOLE book cover, no crop */
.js-strip .js-card img,
.js-strip img.js-card__img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

/* Taller aspect ratio so portrait book covers fit without squish */
.js-strip .js-card__media,
.js-strip .js-card__img-wrap {
  aspect-ratio: 3/4 !important;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ====================================================================
   DRAWER LOGO CUTOFF FIX — sefiras haomer bar was overlapping top of drawer
   + DESKTOP editorial home — add max-width + centered container
   ==================================================================== */
@media (max-width: 999px) {
  /* Push drawer content below announcement bar */
  .drawer-menu,
  .drawer,
  [class*="menu-drawer"],
  [class*="mobile-menu"] {
    padding-top: 56px !important;
  }
  /* Header-inner padding for the logo */
  .shopify-section--header .header__logo,
  .shopify-section--header .header__logo img,
  .header__logo-image {
    margin-top: 8px;
  }
}

/* ====================================================================
   DESKTOP editorial home — fix cramped layout at ≥1000px
   ==================================================================== */
@media (min-width: 1000px) {
  .shopify-section--editorial-home {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 56px 48px 80px !important;
  }
  .js-outer, .js-hero, .js-shelf { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .js-shelf__grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    max-width: 1100px;
    margin: 0 auto;
  }
  .js-shelf__tile {
    padding: 32px 20px;
    min-height: 140px;
  }
  .js-strip__scroller {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 24px;
    overflow: visible !important;
  }
  .js-card { max-width: 220px; }
  .js-hero__title { font-size: 52px; }
}

/* ====================================================================
   SHAVUOS HERO MAKEOVER — bright, joyful, flowery
   Overrides the dark "lifetime of learning" look
   ==================================================================== */
.js-hero {
  background:
    radial-gradient(ellipse 120% 90% at 80% 10%, rgba(255, 220, 180, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 10% 100%, rgba(180, 220, 160, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(255, 180, 200, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #fffcf2 0%, #f9f3e5 50%, #efe7d2 100%) !important;
  color: #2a1a0a !important;
  position: relative;
  overflow: hidden;
  padding: 48px 24px !important;
  border: 1px solid rgba(161, 116, 62, 0.2) !important;
  border-radius: 8px !important;
}
/* Faded Hebrew watermark stays but softer */
.js-hero__hebrew-watermark, .js-hero::before {
  color: rgba(161, 116, 62, 0.12) !important;
}

/* Floral flourish top-left and bottom-right */
.js-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g opacity='0.55' fill='none' stroke='%23a1743e' stroke-width='1.3'><path d='M20 90c10-4 18-12 22-22m-6 26c10-6 16-14 20-24m-10 30c12-8 20-18 24-28'/><circle cx='92' cy='36' r='5' fill='%23d4a574' stroke='none'/><circle cx='104' cy='28' r='3.5' fill='%23c08a54' stroke='none'/><circle cx='88' cy='24' r='3' fill='%23e8b980' stroke='none'/><path d='M92 40c-4 6-6 12-4 20M104 34c-4 4-6 10-4 16M88 28c-4 2-6 6-6 12'/></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g opacity='0.5' fill='none' stroke='%236b8f4e' stroke-width='1.3'><path d='M20 140c20-10 40-20 50-40m-60 50c30-10 50-30 60-50'/><ellipse cx='58' cy='118' rx='6' ry='10' fill='%238bab60' stroke='none' transform='rotate(-30 58 118)'/><ellipse cx='42' cy='130' rx='5' ry='8' fill='%239ab970' stroke='none' transform='rotate(-40 42 130)'/><ellipse cx='70' cy='104' rx='5' ry='8' fill='%23a8c282' stroke='none' transform='rotate(-20 70 104)'/></g></svg>");
  background-repeat: no-repeat;
  background-position: top right, bottom left;
  background-size: 140px, 160px;
}

.js-hero__eyebrow {
  color: rgb(161, 116, 62) !important;
  font-weight: 500;
}
.js-hero__title {
  color: #2a1a0a !important;
  font-family: var(--heading-family, 'Cormorant Garamond', serif);
}
.js-hero__subtitle, .js-hero p {
  color: rgba(42, 26, 10, 0.75) !important;
}
.js-hero__cta, .js-hero a.btn {
  background: #a1743e !important;
  color: #fff !important;
  border: 0 !important;
  padding: 14px 28px !important;
  border-radius: 2px !important;
  letter-spacing: 0.08em;
  transition: background 0.2s ease;
}
.js-hero__cta:hover, .js-hero a.btn:hover { background: #7c5930 !important; }

/* ====================================================================
   EXTRA SHAVUOS FLOWERS — add floating petals + more greenery corners
   Plus a middle floral frame around the CTA for that simcha energy
   ==================================================================== */
.js-hero { position: relative; min-height: 420px; }

/* Floating rose petals (decorative) */
.js-hero::after {
  background-image:
    /* top-right: gold blossom cluster */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><g opacity='0.7' fill='none'><circle cx='120' cy='40' r='8' fill='%23d4a574'/><circle cx='138' cy='32' r='6' fill='%23e8b980'/><circle cx='110' cy='28' r='5' fill='%23c08a54'/><circle cx='132' cy='54' r='5' fill='%23ecc89a'/><circle cx='118' cy='60' r='4' fill='%23d4a574'/><path stroke='%236b8f4e' stroke-width='1.4' d='M120 48c-6 10-10 22-8 36M138 40c-4 8-6 18-4 28M110 36c-6 6-10 14-10 24'/><ellipse cx='102' cy='70' rx='6' ry='10' fill='%238bab60' transform='rotate(-30 102 70)'/><ellipse cx='94' cy='82' rx='5' ry='8' fill='%239ab970' transform='rotate(-40 94 82)'/></g></svg>"),
    /* bottom-left: pink flowers + leaves */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g opacity='0.65' fill='none'><ellipse cx='40' cy='170' rx='8' ry='12' fill='%23f0c4d0' transform='rotate(-25 40 170)'/><ellipse cx='56' cy='158' rx='7' ry='10' fill='%23e8a8b8' transform='rotate(-35 56 158)'/><ellipse cx='28' cy='158' rx='6' ry='9' fill='%23f5d5dd' transform='rotate(-15 28 158)'/><circle cx='40' cy='170' r='3' fill='%23c07686'/><path stroke='%236b8f4e' stroke-width='1.5' d='M40 178c-4 8-8 12-16 14M56 166c4 8 10 14 20 16M28 166c-10 2-18 10-22 20'/><ellipse cx='18' cy='184' rx='5' ry='9' fill='%23a8c282' transform='rotate(-20 18 184)'/><ellipse cx='70' cy='180' rx='6' ry='10' fill='%238bab60' transform='rotate(25 70 180)'/></g></svg>"),
    /* top-left: smaller green sprig */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g opacity='0.5' fill='none'><path stroke='%236b8f4e' stroke-width='1.3' d='M20 80c15-20 30-30 45-35'/><ellipse cx='40' cy='60' rx='5' ry='8' fill='%239ab970' transform='rotate(40 40 60)'/><ellipse cx='55' cy='48' rx='4' ry='7' fill='%238bab60' transform='rotate(60 55 48)'/><ellipse cx='30' cy='70' rx='4' ry='7' fill='%23a8c282' transform='rotate(20 30 70)'/><circle cx='65' cy='42' r='3' fill='%23f0c4d0'/><circle cx='70' cy='38' r='2' fill='%23e8a8b8'/></g></svg>"),
    /* bottom-right: wheat stalks (minhag: wheat harvest) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='130' height='160' viewBox='0 0 130 160'><g opacity='0.55' fill='none' stroke='%23c9a661' stroke-width='1.4'><path d='M80 150l-5-70M94 150l-3-65M108 146l2-55'/><path d='M75 85c-4 2-8 0-10-4M78 75c-4 2-8 0-10-4M80 65c-4 2-8 0-10-4M82 55c-4 2-8 0-10-4M84 45c-4 2-8 0-10-4M91 85c4 2 8 0 10-4M93 75c4 2 8 0 10-4M95 65c4 2 8 0 10-4M97 55c4 2 8 0 10-4M110 91c-4 0-8-2-10-6M112 81c-4 0-8-2-10-6M114 71c-4 0-8-2-10-6'/></g></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: top right, bottom left, top left, bottom right !important;
  background-size: 180px, 200px, 120px, 130px !important;
}

/* Floating petals on the edges (pure CSS, no image) */
.js-hero__petals {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.js-hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 8%;
  width: 14px; height: 14px;
  background: radial-gradient(circle, #f0c4d0 40%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
  box-shadow:
    24px 80px 0 -2px #e8a8b8,
    80px 20px 0 -3px #d4a574,
    180px 140px 0 -2px #c9a661,
    220px 40px 0 -3px #8bab60,
    320px 180px 0 -2px #f5d5dd,
    -10px 200px 0 -2px #a8c282,
    380px 60px 0 -3px #ecc89a;
  filter: blur(0.5px);
}

/* Subtle wheat/sunlight glow behind the CTA */
.js-hero__cta, .js-hero a.btn {
  box-shadow: 0 0 0 4px rgba(249, 222, 187, 0.4), 0 6px 20px rgba(161, 116, 62, 0.25) !important;
}

/* Wizard skeleton loading + empty-state */
.jfw__skel {
  background: linear-gradient(100deg, rgba(161,116,62,0.06) 30%, rgba(161,116,62,0.14) 50%, rgba(161,116,62,0.06) 70%);
  background-size: 200% 100%;
  animation: jfw-shimmer 1.2s infinite;
  border-radius: 10px;
  min-height: 200px;
  list-style: none;
}
@keyframes jfw-shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

.jfw__empty-state {
  list-style: none;
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(161,116,62,0.04);
  border-radius: 12px;
  border: 1px dashed rgba(161,116,62,0.3);
}
.jfw__empty-art { font-size: 48px; color: rgb(161,116,62); margin-bottom: 12px; opacity: 0.7; }
.jfw__empty-title { font-family: var(--heading-family,'Cormorant Garamond',serif); font-size: 22px; margin: 0 0 6px; color: rgb(var(--text-color,31 27 23)); }
.jfw__empty-sub { font-size: 14px; color: rgba(var(--text-color,31 27 23) / 0.7); margin: 0 0 16px; max-width: 36ch; margin-left: auto; margin-right: auto; }
.jfw__empty-cta { display: inline-block; padding: 12px 24px; background: rgb(161,116,62); color: #fff; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; }
.jfw__empty-cta:hover { background: rgb(var(--text-color,31 27 23)); }
