/* hebrew */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/assistant-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/assistant-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* hebrew */
@font-face {
  font-family: 'Bellefair';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bellefair-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin */
@font-face {
  font-family: 'Bellefair';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bellefair-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Direction B, "mood board": warm, colorful and friendly.
   Fit Balance brand colors (fit-balance.co.il) plus a soft turquoise accent. */
:root {
  --cream: #FAF6F1;
  --blush: #E9CECE;
  --blush-bg: #EFE3DF;
  --bordeaux: #743F4A;
  --bordeaux-deep: #5E313B;
  --teal: #9CCBC4;
  --teal-deep: #2F6B66;
  --ink: #292426;
  --muted: #665A5D;
  --line: #E4D6D1;
  --white: #FFFFFF;
  --todo: #FFF3C4;
  --display: "Bellefair", "Frank Ruhl Libre", "David", Georgia, serif;
  --body: "Assistant", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20;
  background: var(--bordeaux); color: var(--white); padding: 8px 14px; border-radius: 12px;
}
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
.preview-bar {
  background: var(--todo); color: var(--ink); text-align: center;
  font-size: 14px; font-weight: 700; padding: 6px 16px;
}
.todo {
  margin: 0; background: var(--todo); color: var(--ink);
  font-size: 13px; font-weight: 700; border-radius: 8px; padding: 3px 8px;
}

/* ---------- hero ---------- */
.hero { background: var(--blush); border-radius: 0 0 32px 32px; }
.hero-inner { display: grid; gap: 16px; padding-block: 18px 28px; max-width: 760px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.brand { font-weight: 800; color: var(--bordeaux-deep); text-decoration: none; direction: ltr; }
.me { display: flex; gap: 16px; align-items: center; }
.me img {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  border: 3px solid var(--white); object-fit: cover;
}
.me div { min-width: 0; }
.me h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; color: var(--bordeaux-deep); }
.me-sub { margin: 6px 0 0; font-size: 15px; }
.hero-text { margin: 0; font-size: 17px; max-width: 60ch; }
.hero-disc {
  margin: 0; display: flex; gap: 8px; align-items: flex-start;
  background: rgba(255, 255, 255, .62); border-radius: 14px; padding: 10px 12px; font-size: 14px;
}
.hero-disc .ico { margin-top: 1px; }

/* ---------- tools ---------- */
.tools { display: grid; gap: 12px; padding-block: 20px 4px; }
.search {
  display: flex; align-items: center; gap: 8px; max-width: 520px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px;
}
.search:focus-within { border-color: var(--bordeaux); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 16px; padding-block: 8px;
}
.search input::placeholder { color: var(--muted); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: -16px; padding-inline: 16px; padding-block: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; border: 0; border-radius: 999px; cursor: pointer;
  padding: 9px 16px; font-size: 15px; font-weight: 600; min-height: 40px;
  background: var(--cream); color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--teal); }
.count { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- grid ---------- */
.grid {
  display: grid; gap: 14px; padding-block: 12px 40px;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
}
.card {
  background: var(--cream); border-radius: var(--radius); padding: 8px;
  display: grid; gap: 10px; grid-template-rows: auto 1fr auto; min-width: 0;
}
.card[hidden] { display: none; }
.card-media { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--blush-bg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 140px;
  color: var(--muted); font-size: 13px; text-align: center; padding: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(116, 63, 74, .06) 10px 11px), var(--blush-bg);
}
.badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badges.inline { position: static; margin: 0; }
.badges.inline:empty { display: none; }
.badge {
  font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: var(--white); color: var(--bordeaux-deep);
}
.badges.inline .badge { background: var(--blush); }
.badge.new, .badges.inline .badge.new { background: var(--teal); color: var(--ink); }
.badge.draft, .badges.inline .badge.draft { background: var(--todo); color: var(--ink); }
.badge[hidden] { display: none; }
.num {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--display); font-size: 21px; line-height: 1;
  background: var(--white); color: var(--bordeaux); border-radius: 10px; padding: 5px 8px;
}
.card-body { padding-inline: 4px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; }
.card-title a:hover { text-decoration: underline; }
.quote {
  position: relative; margin: 0; font-size: 14px; line-height: 1.45;
  background: var(--white); border-radius: 12px; padding: 8px 10px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.by { margin: 0; font-size: 13px; color: var(--muted); }
.card-actions { display: flex; gap: 6px; }
.buy {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 10px; border-radius: 14px;
  background: var(--bordeaux); color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.2;
}
.buy:hover { background: var(--bordeaux-deep); }
.buy.is-missing { background: var(--todo); color: var(--ink); }
.share {
  display: grid; place-items: center; width: 44px; min-height: 44px; flex: none;
  border-radius: 14px; background: var(--teal); color: var(--ink);
}
.empty { text-align: center; padding-block: 24px 48px; }
.linkish { background: none; border: 0; padding: 0; color: var(--bordeaux); text-decoration: underline; cursor: pointer; }

/* ---------- top bar (inner pages) ---------- */
.topbar { background: var(--blush); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
.topbar .brand { direction: rtl; font-size: 17px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 15px; text-decoration: none; }
.back .ico { transform: scaleX(-1); width: 18px; height: 18px; }
.back:hover { text-decoration: underline; }

/* ---------- product page ---------- */
.product { display: grid; gap: 20px; padding-block: 20px 48px; }
@media (min-width: 860px) {
  .product { grid-template-columns: 460px 1fr; gap: 40px; align-items: start; padding-block: 40px 64px; }
}
.product-media { position: relative; border-radius: 24px; overflow: hidden; background: var(--blush-bg); }
.product-media img { width: 100%; max-height: 72vh; object-fit: cover; }
@media (min-width: 860px) { .product-media img { max-height: none; } }
.product-media .ph { aspect-ratio: 1; }
.product-media .num { font-size: 26px; bottom: 12px; left: 12px; }
.product-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.eyebrow { margin: 0; font-size: 14px; color: var(--muted); }
.product h1 { margin: 0; font-weight: 800; font-size: clamp(28px, 6vw, 38px); line-height: 1.1; color: var(--bordeaux-deep); }
.review { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 16px 18px; }
.review blockquote { margin: 0; }
.review p { margin: 0; font-size: 18px; }
.review figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.review figcaption::before { content: "– "; }
.rating { margin: 0; display: flex; gap: 2px; }
.star { width: 22px; height: 22px; color: var(--line); }
.star.on { color: var(--bordeaux); }
.details { margin: 0; display: grid; gap: 10px; }
.details div { display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.details dt { font-size: 13px; font-weight: 700; color: var(--teal-deep); }
.details dd { margin: 0; }
.reel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.product-actions { display: flex; gap: 8px; margin-top: 4px; }
.buy.big { font-size: 17px; min-height: 54px; border-radius: 16px; }
.share.big { width: 54px; min-height: 54px; border-radius: 16px; }
.small-disc { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; padding-block: 32px 64px; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 7vw, 44px); line-height: 1.15; margin: 0 0 6px; color: var(--bordeaux-deep); }
.prose h2 { font-size: 19px; margin: 32px 0 6px; color: var(--bordeaux); }
.prose p, .prose li { max-width: 65ch; }
.prose ul { padding-inline-start: 22px; }
.updated { color: var(--muted); font-size: 15px; margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: grid; gap: 10px; padding-block: 28px 36px; }
.footer-inner p { margin: 0; max-width: 70ch; }
.footer-disc { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.footer-links a { color: var(--bordeaux); }
.credit a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
