/* FLY Shop — shared stylesheet for /shop and its product pages.
   Palette/type match the rest of the FLY site (cream/ink/sage/terra/blue/denim,
   Frank Ruhl Libre + Assistant + Fraunces) so the store reads as one site —
   and borrows the same tonal-wash section rhythm the membership page uses,
   instead of sitting flat on cream for the whole page. */
:root {
  --ink: #292833;
  --ink-soft: #4c4b57;
  --muted: #7d7b86;
  --cream: #f7f3ed;
  --cream-2: #f1ece3;
  --sand: #e6ddce;
  --sand-line: #e3dacb;
  --paper: #ffffff;
  --sage: #829685;
  --sage-soft: #e2e9e2;
  --terra: #dda995;
  --terra-soft: #f3e6de;
  --blue: #8dc4ff;
  --blue-soft: #e8f3ff;
  --denim: #546d9e;
  --denim-lite: #6076a4;
  --line: #e3dccf;
  --serif: 'Frank Ruhl Libre', 'Georgia', serif;
  --sans: 'Assistant', -apple-system, 'Segoe UI', sans-serif;
  --mark: 'Fraunces', 'Georgia', serif;
  --shadow: 0 10px 40px rgba(41,40,51,0.08);
  --shadow-lg: 0 24px 70px rgba(41,40,51,0.16);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.sec { padding: 88px 0; }
@media (max-width: 700px) { .sec { padding: 56px 0; } }
.center { text-align: center; }

/* ---------- Tonal section washes (borrowed from the membership page's own
   color rhythm) — used so the store alternates bold/tinted/neutral instead of
   sitting on flat cream end to end. ---------- */
.sec-blue { background: radial-gradient(90% 70% at 50% -10%, #a6b7e6, transparent 60%), #93aae0; color: #fff; }
.sec-blue .eyebrow { color: rgba(255,255,255,0.88); }
.sec-blue h2.title, .sec-blue h1 { color: #fff; }
.sec-blue .lead, .sec-blue p { color: rgba(255,255,255,0.85); }
.sec-warm { background: radial-gradient(46% 62% at 20% 45%, rgba(221,169,149,0.24), transparent 62%), radial-gradient(40% 50% at 95% 90%, rgba(130,150,133,0.16), transparent 60%), var(--cream-2); }
.sec-sky { background: radial-gradient(60% 55% at 84% 8%, #dbe6f8, transparent 62%), linear-gradient(180deg, #e6eef9, #dde8f6 60%, #e2ebf7); }
.sec-sand { background: radial-gradient(52% 55% at 50% -4%, rgba(221,169,149,0.24), transparent 58%), linear-gradient(180deg, #f2ece2, #efe6d9); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--sage); margin: 0 0 16px;
}
.eyebrow .mark { width: 15px; height: 26px; color: var(--terra); flex: 0 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
h2.title { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin: 0 0 20px; font-weight: 400; letter-spacing: -0.016em; }
h2.title em { font-style: normal; color: inherit; font-weight: 700; }
.lead { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.8; margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px; border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  color: var(--cream); background: var(--ink); cursor: pointer; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(41,40,51,0.28); background: #17161f; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.line-light { background: transparent; color: var(--cream); border-color: rgba(247,243,237,0.5); }
.btn.line-light:hover { background: rgba(247,243,237,0.12); border-color: var(--cream); }
.btn.wide { width: 100%; }
.btn svg { width: 19px; height: 19px; }
.btn.buy-btn { padding: 18px 30px; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(41,40,51,0.18); }
.btn.buy-btn:hover { box-shadow: 0 16px 38px rgba(41,40,51,0.3); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(247,243,237,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--mark); text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 2px; }
.brand .b1 { font-size: 1.5rem; font-weight: 500; letter-spacing: .01em; }
.brand .dot { color: var(--terra); font-weight: 500; margin: 0 3px; }
.brand .b2 { font-size: .82rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .12em; text-transform: lowercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.lnk { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; letter-spacing: .02em; }
.nav-links a.lnk:hover, .nav-links a.lnk.current { color: var(--ink); }
@media (max-width: 760px) { .brand .b2 { display: none; } }

/* Shop dropdown (חנות) — hover + focus-within reveal, RTL-aligned */
/* shop-nav-css:start */
.nav-links a.shop-lnk { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; letter-spacing: .02em; }
.nav-links a.shop-lnk:hover { color: var(--ink); }
.nav-shop { position: relative; }
.shop-dd { position: absolute; top: calc(100% + 14px); inset-inline-end: 0; min-width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; z-index: 95; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-shop:hover .shop-dd, .nav-shop:focus-within .shop-dd { opacity: 1; visibility: visible; transform: translateY(0); }
.shop-dd-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.shop-dd-item:hover { background: var(--cream-2); }
.shop-dd-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shop-dd-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--sand); flex: 0 0 auto; }
.shop-dd-name { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.shop-dd-name .en { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.shop-dd-price { font-weight: 700; color: var(--sage); white-space: nowrap; font-size: .9rem; }
.shop-dd-all { display: block; text-align: center; margin-top: 6px; padding: 10px; border-radius: 12px; font-size: .84rem; font-weight: 600; color: var(--sage); text-decoration: none; border-top: 1px solid var(--line); }
.shop-dd-all:hover { background: var(--cream-2); }
@media (max-width: 760px) { .shop-dd { min-width: 260px; } }
/* shop-nav-css:end */

/* ---------- Top trust strip ---------- */
.ship-strip {
  background: var(--ink); color: var(--cream); text-align: center;
  font-size: .82rem; letter-spacing: .04em; font-weight: 500; padding: 10px 16px;
}

/* ---------- Signature lift-curve motif ----------
   A single continuous S-stroke, echoing the gua-sha tool's own silhouette and
   the lifting motion the whole shop is selling. Reused as: a watermark behind
   the hero gallery/store hero, the connective thread through the highlight
   icons, and the small mark beside every eyebrow label. */
.curve-mark { display: inline-block; }
.hero-curve { position: absolute; z-index: 0; color: var(--terra); opacity: .22; pointer-events: none; }
.hl-line { position: absolute; top: 30px; inset-inline-start: 0; width: 100%; height: 64px; z-index: 0; color: rgba(255,255,255,0.65); opacity: .8; pointer-events: none; }

/* ---------- Store hero ---------- */
.shop-hero {
  padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(55% 60% at 82% 0%, rgba(141,196,255,0.28), transparent 60%),
              radial-gradient(48% 50% at 8% 100%, rgba(221,169,149,0.22), transparent 55%),
              var(--cream);
}
.shop-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 14px; }
.shop-hero p { max-width: 52ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Product grid (store listing) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.pcard { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sand-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard:nth-of-type(3n+1) { border-top-color: var(--terra); }
.pcard:nth-of-type(3n+2) { border-top-color: var(--denim); }
.pcard:nth-of-type(3n+3) { border-top-color: var(--sage); }
.pcard .pth { aspect-ratio: 1/1; background: var(--sand); position: relative; overflow: hidden; }
.pcard .pth img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pbody { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .pname { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.pcard .pname .en { display: block; font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.pcard .pprice { font-weight: 700; color: var(--sage); font-size: 1.05rem; margin-top: 4px; }
.pcard .pcta { margin-top: auto; padding-top: 14px; font-size: .88rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pcard .pcta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.pcard:hover .pcta svg { transform: translateX(-4px); }

/* ---------- Product page hero ---------- */
.phero { padding: 40px 0 20px; }
.phero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Vertical thumbnail column + one large main image that swaps on click —
   thumbnail COUNT is not fixed: add or remove a .pgallery-thumbs button and
   its data-src, shop.js wires whatever exists at load time, no JS change
   needed. Column scrolls once there are more thumbnails than fit. */
/* align-items:flex-start (not the flex default of stretch) is required here —
   otherwise the thumbnail column's own content height (which grows with every
   thumbnail added) stretches the main image's box too, fighting its
   aspect-ratio. The two columns are independently sized instead: the
   thumbnail column gets its own max-height + scroll, the main image gets its
   aspect-ratio. */
.pgallery { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.pgallery-thumbs { flex: 0 0 auto; width: 84px; max-height: 600px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; padding-inline-end: 2px; }
.pgallery-thumbs::-webkit-scrollbar { width: 5px; }
.pgallery-thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.pgallery-thumbs button { all: unset; display: block; cursor: pointer; width: 100%; flex: 0 0 auto; }
.pgallery-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 12px; display: block; background: var(--sand); border: 2px solid transparent; transition: opacity .2s ease, border-color .2s ease; }
.pgallery-thumbs button:hover img { opacity: .8; }
.pgallery-thumbs button.active img { border-color: var(--ink); }
/* Portrait, not square — 3:4 keeps a face-centered product shot from losing
   its top/bottom to a square cover-crop. flex-basis + max-width caps how wide
   (and therefore how tall, via aspect-ratio) it grows on wide screens. */
.pgallery-main { position: relative; flex: 1 1 380px; max-width: 520px; aspect-ratio: 3 / 4; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); z-index: 1; }
.pgallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 640px) {
  .pgallery-thumbs { width: 64px; max-height: 460px; }
  .pgallery-main { max-width: none; }
}

/* buy panel — sticks alongside the (taller) gallery while scrolling the hero */
.pbuy { position: sticky; top: 90px; }
.pbuy .pname-en { font-size: 1rem; color: var(--muted); margin: 0 0 16px; }
.pbuy h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin: 6px 0 4px; }
.pbuy .pprice-row { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 18px; }
.pbuy .pprice { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--ink); }
.pbuy .pprice .cur { font-size: 1.3rem; vertical-align: super; }
.pbuy .pdesc { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.85; margin: 0 0 22px; }
.pbuy .buy-btn { flex: 1; }
.trust-row { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.trust-row li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.trust-row li svg { width: 18px; height: 18px; color: var(--sage); flex: 0 0 auto; }

/* ---------- Highlights band (bold color section, thread-connected) ---------- */
.highlights { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 0; }
.hl-item { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hl-ic { width: 66px; height: 66px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 14px 30px rgba(20,30,60,0.18); }
.hl-ic svg { width: 28px; height: 28px; }
.hl-item:nth-of-type(1) .hl-ic svg { color: var(--terra); }
.hl-item:nth-of-type(2) .hl-ic svg { color: var(--denim); }
.hl-item:nth-of-type(3) .hl-ic svg { color: var(--sage); }
.hl-item b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.hl-item span { font-size: .88rem; line-height: 1.5; max-width: 22ch; }
@media (max-width: 640px) { .highlights { grid-template-columns: 1fr; gap: 26px; } .hl-line { display: none; } }

/* ---------- Expandable "why you'll love it" panels ---------- */
.expand-list { max-width: 800px; margin: 40px auto 0; display: grid; gap: 14px; }
.expand { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.expand summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); transition: color .2s;
}
.expand summary::-webkit-details-marker { display: none; }
.expand summary .x-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; }
.expand summary .x-ic svg { width: 20px; height: 20px; color: var(--sage); }
.expand:nth-of-type(2) summary .x-ic { background: var(--terra-soft); }
.expand:nth-of-type(2) summary .x-ic svg { color: var(--terra); }
.expand:nth-of-type(3) summary .x-ic { background: var(--blue-soft); }
.expand:nth-of-type(3) summary .x-ic svg { color: var(--denim); }
.expand summary .x-txt { flex: 1 1 auto; }
.expand summary .x-arrow { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink); transition: transform .3s ease; }
.expand[open] summary .x-arrow { transform: rotate(180deg); }
.expand .x-ans { padding: 0 26px 26px 90px; color: var(--ink-soft); font-size: .97rem; line-height: 1.8; }
@media (max-width: 560px) { .expand .x-ans { padding-inline-start: 26px; } }

/* ---------- How-to-use: illustrated diagram + steps ---------- */
.howto-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .howto-grid { grid-template-columns: 1fr; gap: 34px; } }
.howto-fig { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; place-items: center; aspect-ratio: 4/5; overflow: hidden; }
.howto-fig svg { width: 100%; height: 100%; color: var(--ink); padding: 30px; }
.howto-fig video { width: 100%; height: 100%; object-fit: cover; display: block; }
.howto-fig .stroke-terra { color: var(--terra); }
.howto-fig .stroke-sage { color: var(--sage); }
.steps-alt { display: grid; gap: 0; }
.step-alt { display: flex; align-items: flex-start; gap: clamp(16px, 2.4vw, 28px); padding: 18px 4px; border-top: 1px solid rgba(84,109,158,0.18); }
.step-alt:first-child { border-top: 0; padding-top: 0; }
.step-alt .sn {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--denim); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .92rem; display: grid; place-items: center; margin-top: 2px;
}
.step-alt b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.step-alt p { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }

/* ---------- Cross-sell ---------- */
.xsell-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; max-width: 760px; margin-inline: auto; }
@media (max-width: 640px) { .xsell-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 40px auto 0; display: grid; gap: 0; }
.qa { border-top: 1px solid var(--line); overflow: hidden; }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 4px; font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--sage); }
.qa summary .ic { flex: 0 0 auto; width: 19px; height: 19px; color: var(--ink); transition: transform .3s ease; }
.qa[open] summary .ic { transform: rotate(180deg); }
.qa .ans { padding: 0 4px 20px; color: var(--ink-soft); font-size: .96rem; line-height: 1.75; }

/* ---------- Continue-with-membership band (reusable, every shop page) ---------- */
.continue-membership {
  background: var(--ink); color: var(--cream); padding: clamp(56px, 8vw, 88px) 0; text-align: center; overflow: hidden; position: relative;
}
.continue-membership::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 15% 15%, rgba(221,169,149,0.18), transparent 60%),
              radial-gradient(50% 60% at 88% 90%, rgba(141,196,255,0.16), transparent 60%);
}
.continue-membership .wrap { position: relative; z-index: 1; }
.continue-membership .eyebrow { color: var(--terra); }
.continue-membership h2.title { color: #fff; max-width: 24ch; margin-inline: auto; }
.continue-membership p.lead { color: rgba(255,255,255,0.72); max-width: 52ch; margin: 0 auto 30px; }
.continue-membership .cm-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
.foot { background: var(--cream); text-align: center; padding: 40px 24px 96px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot .brand { justify-content: center; margin-bottom: 14px; }
.foot .links { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.foot a { color: var(--sage); text-decoration: none; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2.5px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
