/* ===== EVENING — STORE (store.html) =====
   Loaded after evening.css. Re-themes store.css: night ground, the painted
   cover art hung in a paper mat like a framed picture, prices and buy links
   set on the card below the art (not over it) so they always read clearly.
   Remove this link to return the store to its previous look. */

:root {
  /* store.css tokens → evening palette and the site's serif/sans */
  --st-dark: var(--candle);
  --st-text: #DCD3EC;
  --st-text-light: var(--haze);
  --st-cream: var(--night);
  --st-warm: var(--night-2);
  --st-wash: var(--night-2);
  --st-primary: var(--ember);
  --st-primary-light: var(--ember-soft);
  --st-gold: var(--ember);
  --st-serif: var(--serif);
  --st-sans: var(--sans);
  --st-paper: linear-gradient(160deg, #FBF1E4, #F3E2CC);
}

.store-page { background: var(--night); color: var(--st-text); font-family: var(--sans); }

/* ── Hero ── */
.store-hero {
  padding: clamp(88px, 11vw, 140px) 24px clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 176, 102, 0.12), transparent 70%),
    var(--night);
}
.store-hero::before {
  background: radial-gradient(40% 50% at 80% 90%, rgba(240, 102, 140, 0.07), transparent 70%);
}
.store-hero-badge {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--haze);
  border: 0; box-shadow: 0 0 0 1px var(--line) inset;
  background: rgba(255, 243, 228, 0.04);
  padding: 7px 18px; margin-bottom: 28px;
}
.store-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.8rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--candle); margin-bottom: 24px;
}
.store-hero h1 em { color: var(--ember); font-weight: 300; }
.store-hero-sub {
  font-family: var(--sans); font-style: normal; font-weight: 400;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.65;
  color: var(--haze); max-width: 36rem;
}

/* ── Section heads ── */
.store-grid-section { padding: clamp(32px, 5vw, 60px) 24px clamp(72px, 9vw, 120px); background: var(--night); }
.store-grid-inner { max-width: 1160px; }
.store-bundles-header,
.store-individual-header { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.store-bundles-label {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.1rem; letter-spacing: 0; text-transform: none;
  color: var(--ember); margin-bottom: 10px;
}
.store-bundles-header h2,
.store-individual-header h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.01em;
  color: var(--candle); margin-bottom: 14px;
}
.store-bundles-header p,
.store-individual-header p { font-size: 1.05rem; font-weight: 400; color: var(--haze); line-height: 1.6; }

/* ── Product cards: painted art in a paper mat, details on the night card ── */
.store-grid { gap: clamp(18px, 2.4vw, 32px); }
/* Eight journeys: two even rows of four on wide screens (three columns left two orphans) */
@media (min-width: 1024px) {
  .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .store-grid .store-card-title { font-size: 1.35rem; }
  .store-grid .store-card-body { padding: 16px 18px 20px; }
}
.store-card {
  min-height: 0;
  justify-content: flex-start;
  color: var(--candle);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 102, 0.4);
  box-shadow: 0 36px 70px -30px rgba(0, 0, 0, 0.8);
}
.store-card:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.store-card > picture {
  display: block;
  margin: 12px 12px 0;
  padding: 10px;
  border-radius: 16px;
  background: var(--st-paper);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 14px 30px -18px rgba(0, 0, 0, 0.8);
}
.store-card-img {
  position: static; inset: auto;
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 9px;
  transition: none;
}
.store-card:hover .store-card-img { transform: none; }
.store-bundle-card .store-card-img { aspect-ratio: 1 / 1; object-position: 50% 50%; }

.store-card-body {
  background: none;
  padding: 18px 22px 22px;
  text-align: start;
  flex: 1 1 auto;
}
[dir="rtl"] .store-card-body { text-align: start; }
.store-card-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; line-height: 1.2;
  color: var(--candle); text-shadow: none; margin-bottom: 8px;
}
.store-card-tagline {
  font-size: 0.97rem; font-weight: 400; line-height: 1.55;
  color: var(--haze); margin-bottom: 18px;
}
.store-card-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 12px; flex-wrap: wrap;
}
.store-card-price-text { font-size: 0.95rem; color: var(--haze); }
.store-card-price-text s { color: var(--haze); text-decoration-thickness: 1px; }
.store-card-price-text strong {
  font-family: var(--sans); font-weight: 500;
  font-size: 1.6rem; color: var(--candle); text-shadow: none;
  margin-left: 0; margin-inline-start: 6px;
}
[dir="rtl"] .store-card-price-text strong { margin-right: 0; margin-inline-start: 6px; }
.store-card-cta { font-size: 0.98rem; font-weight: 500; color: var(--ember); gap: 6px; }
.store-card:hover .store-card-cta { color: var(--ember-soft); }

/* Badges: a quiet pill in sentence case, sitting on the art's mat */
.store-card-badge {
  top: 26px; left: auto; inset-inline-start: 26px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: #2B0A17; background: var(--rose);
  padding: 5px 13px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}
/* "Best value" (its background comes inline from --st-gold → ember) */
.store-bundle-card.featured .store-card-badge { color: #2A1406; }

/* ── Bundles ── */
.store-bundles-section { padding: clamp(64px, 8vw, 110px) 24px 0; background: var(--night-2); }
.store-bundles-section + .store-bundles-section { padding-bottom: clamp(72px, 9vw, 120px); }
.store-bundles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); max-width: 1160px; }
.store-bundle-card { min-height: 0; background: var(--night-3); }
.store-bundle-card .store-card-title { font-size: 1.4rem; }

/* The Complete Collection: one wide card, art beside the details */
.store-bundles-grid .store-bundle-card.featured {
  min-height: 0;
  border-color: rgba(255, 176, 102, 0.35);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 176, 102, 0.12), transparent 70%),
    var(--night-3);
}
.store-bundle-card.featured .store-card-title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); }
.store-bundle-card.featured .store-card-tagline { font-size: 1.05rem; max-width: 32rem; }
@media (min-width: 761px) {
  .store-bundles-grid .store-bundle-card.featured { flex-direction: row; align-items: stretch; }
  .store-bundle-card.featured > picture { flex: 0 0 40%; margin: 14px; margin-inline-end: 0; }
  .store-bundle-card.featured .store-card-body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
  .store-bundle-card.featured .store-card-price { margin-top: 10px; }
}

/* ── Free guide: the lamplit section ── */
.store-free-section {
  padding: clamp(96px, 12vw, 160px) 24px;
  color: var(--lamplit-text);
  /* the bundles section above is --night-2, so the fade starts from that */
  background: linear-gradient(180deg, var(--night-2) 0%, rgba(34, 28, 61, 0) 16%), var(--lamplit-bg);
}
.store-free-inner { max-width: 40rem; }
.store-free-inner h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1;
  color: var(--candle);
}
.store-free-sub { font-size: 1.1rem; font-weight: 400; color: var(--lamplit-text); margin-bottom: 0; }
.store-free-note { font-size: 0.95rem; color: var(--lamplit-muted); margin-top: 14px; }

/* ── FAQ: heading beside the list on wide screens ── */
.store-faq-section { padding: clamp(72px, 10vw, 140px) 24px; background: var(--night); }
.store-faq-inner { max-width: 1160px; }
.store-faq-inner h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1;
  color: var(--candle); text-align: start; margin-bottom: 28px;
}
@media (min-width: 900px) {
  .store-faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .store-faq-inner h2 { grid-column: 1; grid-row: 1 / span 7; position: sticky; top: calc(var(--hdr-h) + 24px); max-width: 12ch; }
  .store-faq-item { grid-column: 2; }
}
.store-faq-item { border-bottom: 1px solid var(--line); }
.store-faq-item summary,
[dir="rtl"] .store-faq-item summary {
  padding: 22px 0; padding-inline-end: 40px;
  font-family: var(--sans); font-size: 1.12rem; font-weight: 500; line-height: 1.4;
  color: var(--candle);
}
.store-faq-item summary:hover { color: var(--ember-soft); }
.store-faq-item summary::after,
.store-faq-item[open] summary::after {
  content: "";
  inset-inline-end: 8px;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.store-faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.store-faq-item p { font-size: 1rem; line-height: 1.7; color: var(--haze); padding-inline-end: 40px; margin-bottom: 24px; }
.store-faq-item p a { color: var(--ember); text-underline-offset: 3px; }

/* ── Hebrew page: if an FAQ string falls back to English, let it take its own
   direction so the question mark doesn't jump to the front ("?journey") ── */
[dir="rtl"] .store-faq-inner h2,
[dir="rtl"] .store-faq-item summary,
[dir="rtl"] .store-faq-item p { unicode-bidi: plaintext; }

/* ── Hebrew: no synthetic italics in Hebrew type ── */
[dir="rtl"] .store-hero h1 em,
[dir="rtl"] .store-bundles-label { font-style: normal; }

/* ── Smaller screens ── */
@media (max-width: 900px) {
  .store-bundles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-bundle-card .store-card-title { font-size: 1.2rem; }
  .store-card-body { padding: 16px 16px 18px; }
}
@media (max-width: 600px) {
  .store-grid, .store-bundles-grid { grid-template-columns: 1fr; max-width: 420px; }
  .store-bundles-grid .store-bundle-card.featured { grid-column: 1; }
  .store-card-title, .store-bundle-card .store-card-title { font-size: 1.4rem; }
  .store-card-body { padding: 16px 20px 20px; }
  .store-bundle-card.featured .store-card-title { font-size: 1.6rem; }
  /* Journeys on a phone: art beside the details, so eight of them stay browsable */
  .store-grid .store-card { flex-direction: row; align-items: stretch; }
  .store-grid .store-card > picture { flex: 0 0 38%; margin: 10px; margin-inline-end: 0; padding: 6px; border-radius: 14px; align-self: center; }
  .store-grid .store-card-img { border-radius: 8px; }
  .store-grid .store-card-body { padding: 14px 16px 16px; min-width: 0; }
  .store-grid .store-card-title { font-size: 1.2rem; margin-bottom: 6px; }
  .store-grid .store-card-tagline { font-size: 0.9rem; line-height: 1.45; margin-bottom: 12px; }
  .store-grid .store-card-price { padding-top: 10px; gap: 4px 10px; }
  .store-grid .store-card-price-text strong { font-size: 1.35rem; }
  .store-grid .store-card-badge { top: 14px; inset-inline-start: 14px; font-size: 0.75rem; padding: 3px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-hero-badge, .store-hero h1, .store-hero-sub { animation: none; opacity: 1; }
  .st-fade-in { opacity: 1; transform: none; transition: none; }
  .store-card, .store-card:hover { transition: none; transform: none; }
}
