@font-face {
  font-family: "Sohini Hand";
  src: url("../fonts/Sohini hand-BOLD4.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Simpler Pro";
  src: url("../fonts/SimplerPro_V3-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Simpler Pro";
  src: url("../fonts/SimplerPro_V3-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-bg-card: #f8f8f7;
  --color-text: #2b2b2b;
  --color-body-text: #4a4a4a; /* running text only — headings stay --color-text */
  --color-nav-text: #464646;
  --color-orange: #ef6628;
  --color-orange-hover: #f17842; /* slightly lighter than the base #ef6628 */
  --color-orange-dark: #ef6628; /* same orange; was a darker tone for .admin-error */
  --color-placeholder: #adadad;
  --color-border: #dcdcdc;
  --font-script: "Sohini Hand", cursive;
  --font-body: "Simpler Pro", "Arial Hebrew", Arial, sans-serif;
  --font-script-size: 26px;
  --font-script-spacing: 1px;
  --running-text-size: 18px;
  --max-width: 1100px;
}

/* ---------- Sohini Hand: site-wide default ----------
   Wherever the handwriting font appears it renders at
   26px with 1px letter-spacing. Add a `font-size` or
   `letter-spacing` on a specific rule to override it there. */

.font-script,
.hero-copy p,
.hero-intro-top p,
.btn,
.feature-title,
.faq-question,
.product-title,
.product-price,
.about-question,
.checkout-title {
  font-family: var(--font-script);
  font-size: var(--font-script-size);
  letter-spacing: var(--font-script-spacing);
  font-weight: 400;
}

/* ---------- "running text" (טקסט רץ): site-wide default ----------
   Every SimplerPro paragraph/list in the feature cards and FAQ answers
   renders at 20px with 30px line spacing. Add a `font-size` or `line-height`
   on a specific rule to override it there. */

.feature-body p,
.feature-body ul,
.faq-answer p,
.faq-answer ul,
.product-description,
.product-disclaimer,
.product-footnote,
.about-copy p,
.legal-copy p,
.legal-copy ul {
  font-size: var(--running-text-size);
  line-height: 1.8;
  color: var(--color-body-text);
}

* {
  box-sizing: border-box;
}

/* must outrank display:grid/flex, or a [hidden] element still shows */
[hidden] {
  display: none !important;
}

/* the accessibility statement claims full keyboard navigation — this is what
   makes that claim true rather than aspirational */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  direction: rtl;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 24px 0 10px;
}

.header-top {
  display: flex;
  justify-content: center;
}

.logo-badge {
  width: 207px; /* 150px + 15%, then +20% again */
  flex: 0 0 auto;
}

.main-nav {
  margin-top: 35px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 18px;
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
}

.cart-icon {
  width: 26px;
}

.cart-badge {
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge[hidden] {
  display: none;
}

/* optical centring: the "1" glyph's own bearings sit it high and right */
.cart-count {
  display: block;
  transform: translate(0.5px, 1.5px);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--color-nav-text);
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-orange);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.main-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 90px; /* +30px: one extra line of spacing below the hero image */
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "image" "introtop" "copy";
  row-gap: 0;
  align-items: start;
}

.hero-image {
  grid-area: image;
}

.hero-intro-top {
  grid-area: introtop;
}

.hero-copy {
  grid-area: copy;
}

.hero-copy p,
.hero-intro-top p {
  line-height: 1.3;
  white-space: pre-line;
  color: var(--color-text);
  margin: 0 0 1em;
}

.hero-intro .accent {
  color: var(--color-orange);
  font-size: calc(1em + 5px); /* 5px bigger than the paragraph text, desktop and mobile */
}

.hero-copy p.hero-price {
  margin: calc(1em + 30px) 0 0.35em; /* +30px: one extra line of spacing above the price */
}

.hero-image {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
}

.hero-image img,
.feature-image img,
.about-image img,
.product-main-image img,
.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hero picture keeps its natural proportions (not cropped to a square),
   full width of the site frame; text sits below it, also full width */
.hero-image {
  aspect-ratio: auto;
  background: none;
}

@media (min-width: 861px) {
  .hero-image {
    margin-bottom: 32px;
  }

  /* half a blank line between the first intro paragraph and "זו הדרך שלי…" */
  .hero-intro-top p.hero-intro {
    margin-bottom: 0.5em;
  }
}

.hero-copy p.hero-price {
  text-align: center;
}

.hero-copy .join-btn {
  display: flex;
  margin: 0 auto;
}

.hero-image img {
  height: auto;
}

.product-thumb {
  overflow: hidden;
}

.product-thumb img {
  cursor: pointer;
}

.placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 20px;
  color: #f7f7f7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 55px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: var(--color-orange);
  color: #fff;
  font-size: 29px; /* override: bigger than the site-wide script default */
  border-radius: 0;
  text-decoration: none;
  transition: background 0.15s ease;
}

.join-btn {
  letter-spacing: 1px;
}

.btn:hover {
  background: var(--color-orange-hover);
}

/* ---------- Feature cards ---------- */

.features {
  padding: 20px 0 60px;
}

.features .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--color-bg-card);
  padding: 21px 21px 0;
}

.feature-image {
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
  position: relative;
}

.feature-body {
  padding: 22px 4px 28px; /* 4px extra inset so text sits further in than the image */
}

.feature-title {
  font-size: calc(var(--font-script-size) + 2px); /* override: 2pt bigger than the site-wide script default */
  margin: 0 0 12px;
}

.feature-title .n-kern {
  margin-left: 2px;
}

.feature-body p {
  white-space: pre-line;
  margin: 0 0 12px;
}

.feature-body ul {
  margin: 0;
  padding: 0 18px 0 0;
  list-style-type: circle; /* hollow bullet */
}

.feature-body li {
  margin-bottom: 6px;
}

.feature-body p:last-child,
.feature-body ul:last-child {
  margin-bottom: 0;
}

.feature-note-gap {
  margin-top: 24px; /* double the standard 12px paragraph gap */
}

.feature-link {
  text-decoration: underline;
}

.feature-link .arrow {
  text-decoration: none;
  display: inline-block;
  margin-right: 6px;
  font-size: 0.85em;
  transition: transform 0.15s ease;
}

.feature-link:hover .arrow {
  transform: translateX(-3px); /* nudges toward the text under dir="rtl" */
}

/* ---------- CTA banner ---------- */

.cta-banner {
  padding: 10px 0 25px; /* was 70px: gap to the FAQ heading reduced by 1.5 lines (45px) */
  text-align: center;
}

.cta-banner .btn {
  color: #fff;
  margin: 0 auto; /* same size as the hero's .join-btn: no width/font-size override */
  text-decoration: none;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 0 0 80px;
}

.faq-heading {
  font-family: var(--font-script);
  font-size: calc(var(--font-script-size) + 5px); /* override: desktop only, +5px (was +3px) */
  letter-spacing: var(--font-script-spacing);
  font-weight: 400;
  color: var(--color-orange);
  text-align: center;
  margin: 30px 0 12px; /* one blank line below the button above it */
  transform: translateX(1px); /* nudged 1px to the right (visual right, both breakpoints) */
  scroll-margin-top: 70px; /* clears the mobile sticky nav bar when jumped to via #faq */
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  color: var(--color-text);
  text-align: right;
}

.faq-icon {
  flex: 0 0 auto;
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--color-text);
  width: 18px;
  text-align: center;
}

.faq-icon::before {
  content: "+";
}

.faq-item.open .faq-icon::before {
  content: "\2212";
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0 0 18px;
  white-space: pre-line;
}

.faq-answer ul {
  margin: 0 0 18px;
  padding: 0 18px 0 0;
}

.faq-answer li {
  margin-bottom: 4px;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: var(--running-text-size); /* one line of running text between the answer and the rule below it */
}

.faq-answer a {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-orange);
  color: var(--color-text);
  padding: 54px 0; /* +50% over the original 36px */
  /* full-bleed: spans the viewport even if an ancestor (e.g. an embedding
     wrapper) adds horizontal padding, so no white slivers appear at the edges */
  margin-inline: calc(50% - 50vw);
  padding-inline: max(0px, calc(50vw - 50%));
}

/* One column: the link-lists row on top, the copyright line centred below
   it — full width, so centering it is exact regardless of how wide either
   link list is (no more sharing a row with content of unequal width). */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 861px) {
  /* one extra line of space between the icon and the two white lines,
     desktop only — mobile keeps its own already-tuned spacing */
  .footer-inner {
    gap: 48px;
  }

  .footer-copy {
    letter-spacing: 1px;
  }

  .footer-links-primary li:last-child {
    margin-top: 2px; /* nudges the instagram icon down slightly further */
  }
}

.footer-links-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

/* the instagram icon lives as the last <li> of the primary list (right
   under "האתר שלי", same gap as the other rows) — a standalone
   .footer-center wrapper is only still used on admin.html, which has no
   link list to attach it to */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-social {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--color-text);
  flex: 0 0 auto;
  /* the artwork itself sits inset within its 24x24 viewBox (rect starts at
     x=3), so the drawn icon reads ~3px indented from the box edge compared
     to text glyphs — shift it right to true up with the rest of the list */
  transform: translateX(3px);
}

.footer-social svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-copy {
  font-size: 14px;
  margin: 0;
  text-align: right; /* desktop; mobile overrides back to center */
  color: var(--color-bg);
  font-weight: 400;
  line-height: 16.8px; /* 1.2 * 14px, no extra spacing between the two lines */
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.footer-links-primary {
  align-items: flex-start; /* start = right under dir="rtl" */
}

.footer-links-legal {
  align-items: flex-end; /* end = left under dir="rtl" */
  /* one row's worth: legal row 1 lines up with primary row 2 ("כתבו לי"),
     row 2 with row 3 ("לשנות כתובת/לבטל"), row 3 with row 4 ("האתר שלי") */
  margin-top: 34px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

.product {
  padding: 40px 0 90px;
}

.product .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-main-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
}

.product-title {
  margin: -28px 0 8px; /* one line higher than the default top of the info column */
  font-size: calc(var(--font-script-size) + 4px); /* override: 4px bigger (was 2px, +2 more) */
}

.product-price {
  margin: 0 0 24px;
}

.product-price--plain {
  font-family: var(--font-body);
  font-size: var(--running-text-size);
  letter-spacing: normal;
  font-weight: 700;
  color: #6b6b6b; /* override: a touch lighter than --color-body-text (#4a4a4a) */
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-label {
  font-size: 15px;
  color: var(--color-text);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-text);
}

.qty-stepper button {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: var(--color-text);
  font-family: var(--font-body);
}

.qty-value {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border-inline: 1px solid var(--color-text);
}

.product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  font-size: 20px;
  border: 1px solid var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-btn + .product-btn {
  margin-top: 12px;
}

.product-btn--outline {
  background: transparent;
  color: var(--color-text);
}

.product-btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.product-btn--solid {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}

.product-btn.product-btn--pay {
  /* same as the hero .btn.join-btn */
  font-family: var(--font-script);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 1px;
  padding-top: 2px;
}

.product-btn--solid:hover {
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
}

.product-disclaimer {
  text-align: center;
  margin: 3px 0 0; /* override: tighter still (was 8px) */
  font-size: calc(var(--running-text-size) - 3px); /* override: 3px smaller (was 2px, -1 more) */
  line-height: 1.3; /* override: tighter still (was 1.6) */
}

.product-description {
  text-align: right;
  margin: 60px 0 0; /* one extra blank line above the description block */
}

.product-description + .product-description {
  margin-top: 28px; /* back to the normal paragraph gap between consecutive description paragraphs */
}

.product-footnote {
  text-align: right;
  margin: 28px 0 0;
}

.product-footnote a {
  text-decoration: underline;
}

/* sold-out notice: same base as .product-disclaimer, bigger + bold + orange,
   pushed one blank line down from the price line above so it sits close to
   the button instead of close to the price. */
.product-sold-out-notice {
  font-size: calc(var(--running-text-size) + 5px);
  font-weight: 700;
  color: var(--color-orange);
  margin-top: 32px;
}

/* tight gap — the notice sits right above the button, not a full blank line
   away. Button itself is plain .product-btn--outline, same font/format as
   "הוסיפו לסל" — except hover/active, which are scoped orange here instead
   of the shared .product-btn--outline:hover's black, on Sohini's request. */
#product-sold-out .product-btn {
  margin-top: 8px;
}

#product-sold-out .product-btn:hover,
#product-sold-out .product-btn:active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-text);
}

/* two blank lines before the page continues into the description text
   (was three) — relies on margin collapsing with .product-description's
   own 60px margin-top (plain block siblings, no flex/grid between them)
   rather than summing on top of it, so .product-description itself stays
   untouched */
#product-sold-out {
  margin-bottom: 64px;
}

/* desktop only: text column top aligned with the image's top edge (cancels
   the -28px "one line higher" offset from .product-title, which still
   applies on mobile/tablet where the columns stack) */
@media (min-width: 861px) {
  .product-title {
    margin-top: 0;
  }
}

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

.about {
  padding: 40px 0 90px;
}

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-placeholder);
}

.about-copy p {
  margin: 0 0 1em;
}

.about-question {
  margin: 28px 0 20px;
}

/* the question + its button share one centre axis; the wrapper is only as
   wide as the wider of the two */
.about-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* .about-copy p (running text) outranks .about-question, so the selector has
   to be this specific for the script size to apply. Same size as the hero
   price (.hero-price = --font-script-size). */
.about-copy p.about-question {
  font-size: var(--font-script-size);
  line-height: 1.3;
  text-align: center;
  /* the blank line that sat between the question and the button moved above
     it: the question is one line lower, the button has not moved */
  margin: 1em 0 0;
}

/* "האתר שלי" uses the same .btn.join-btn as the hero button; only its
   position differs: flush right with the text above (start = right in RTL) */
.about-cta .btn {
  align-self: flex-start;
  margin: 8px 0 0; /* button moved 8px down */
  width: 192px; /* 230px - 19px per side (left and right) */
}

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

.checkout {
  padding: 40px 0 90px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.checkout-title {
  margin: 0 0 20px;
}

.checkout-form .checkout-title:not(:first-child) {
  margin-top: 36px;
}

.checkout-note {
  font-size: 14px;
  color: var(--color-nav-text);
  margin: 0 0 16px;
}

/* -- order summary -- */

.checkout-summary {
  background: var(--color-bg-card);
  padding: 32px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-thumb {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
  position: relative;
}

.summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  display: block;
}

.summary-thumb .placeholder-label {
  font-size: 9px;
}

.summary-item-info {
  flex: 1 1 auto;
}

.summary-item-name {
  font-size: 15px;
  margin: 0 0 4px;
}

.summary-item-qty {
  font-size: 13px;
  color: var(--color-nav-text);
  margin: 0;
}

.summary-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.summary-qty-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.summary-qty-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.summary-qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.summary-remove {
  margin-inline-start: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-nav-text);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.summary-remove:hover {
  color: var(--color-orange-dark);
}

.summary-empty {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.summary-empty a {
  text-decoration: underline;
}

.summary-item-price {
  flex: 0 0 auto;
  font-size: 15px;
  margin: 0;
}

.summary-totals {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.summary-row--total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 6px;
  margin-bottom: 0;
}

/* -- form -- */

.form-field {
  display: block;
  margin-bottom: 18px;
}

.form-field span {
  display: block;
  font-size: 14px;
  color: var(--color-nav-text);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
}

.form-field input {
  height: 48px;
}

.form-field textarea {
  padding: 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 1px;
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-method {
  flex: 1 1 0;
  height: 48px;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.payment-method.is-active {
  background: var(--color-text);
  color: var(--color-bg);
}

.checkout-submit {
  width: 100%;
  margin-top: 8px;
}

.address-form-product {
  font-family: var(--font-body);
  color: var(--color-orange);
  font-weight: 700;
  margin: -12px 0 16px;
}

/* -- checkout fieldsets -- */

.checkout-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

/* -- consent checkboxes -- */

.checkbox-field {
  margin-bottom: 14px;
}

/* exactly two flex children (the box + one text wrapper), otherwise the gap
   also lands between the inner span and any loose text */
.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
}

.checkbox-field input[type="checkbox"]:checked {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

/* a white tick can't be forced through accent-color alone */
.checkbox-field input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio-field {
  border: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: right;
}

.radio-field legend {
  font-size: 15px;
  color: var(--color-text);
  padding: 0 0 8px;
}

.radio-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 8px;
}

.radio-field input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
}

.radio-field input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-orange);
}

.checkout-error {
  color: var(--color-orange-dark);
  font-size: 15px;
  margin: 0 0 14px;
}

/* -- VIP free registration -- */

.vip-notice {
  color: var(--color-text);
  font-weight: 700;
}

.vip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 43, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

/* mobile: shown in normal flow directly under the name field instead of as
   a floating dialog — see the comment above showVipModal() in js/vip.js for
   why. Overrides only what "floating" implies; the card inside keeps its
   own styling untouched, so both versions read as the same component. */
.vip-modal-overlay--inline {
  position: static;
  inset: auto;
  background: none;
  padding: 0;
  margin: 0 0 20px;
  z-index: auto;
}

.vip-modal-overlay--inline .vip-modal {
  max-height: none;
  border: 1px solid var(--color-orange);
  box-shadow: none;
}

.vip-modal {
  background: var(--color-bg);
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.vip-modal p {
  font-size: var(--running-text-size);
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 24px;
  white-space: pre-line;
}

.vip-modal-highlight {
  display: block;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 12px;
}

.vip-modal-heart {
  color: var(--color-orange);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: middle;
  display: inline-block;
}

.vip-modal .product-btn {
  max-width: 200px;
  margin: 0 auto;
}

/* -- order confirmation -- */

.confirm-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.confirm-order-number {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
}

.confirm-demo-note {
  background: var(--color-bg-card);
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.confirm-panel .product-btn {
  max-width: 280px;
  margin: 0 auto;
}

.confirm-panel #share-btn {
  gap: 8px;
  max-width: 230px;
  height: 46px;
  font-size: 16px;
}

.confirm-panel #share-btn .share-icon {
  flex: none;
  width: 17px;
  height: 17px;
}

.share-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 460px;
  margin: 14px auto 0;
}

.share-menu[hidden] {
  display: none;
}

.share-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: none;
  border: 1px solid var(--color-text);
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
}

.share-link:hover {
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  color: #fff;
}



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

.admin {
  padding: 40px 0 90px;
}

.admin-login {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.admin-login .form-field {
  text-align: right;
}

.admin-warning {
  font-size: 13px;
  color: var(--color-nav-text);
  background: var(--color-bg-card);
  padding: 16px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.admin-error {
  color: var(--color-orange-dark);
  font-size: 14px;
  margin: -8px 0 16px;
}

.admin-login .product-btn {
  width: 100%;
}

.admin-note {
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg-card);
  padding: 12px 16px;
  margin: 14px 0 0;
}

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

.member {
  padding: 40px 0 90px;
}

.member-status,
.member-cancel {
  background: var(--color-bg-card);
  padding: 32px;
  margin-bottom: 36px;
}

/* member.html dashboard only: every heading except "היי, [name]" (which keeps
   the site-wide .checkout-title script font) reads in Simpler Pro instead */
.member-simple-heading {
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: normal;
  font-weight: 700;
}

.btn-small-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  border: 1px solid var(--color-text);
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-small-outline:hover {
  background: var(--color-bg-card);
}

.member-status .checkout-title,
.member-cancel .checkout-title,
#member-details-form .checkout-title {
  margin-bottom: 20px;
}

.member-demo-hint {
  text-align: center;
}

.member-cancel .product-btn--outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table th {
  font-weight: 700;
  color: var(--color-nav-text);
}

.status {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
}

.status--active {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.status--cancelled {
  background: var(--color-orange);
  color: var(--color-text);
}

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

.contact {
  padding: 40px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-note {
  margin-top: 12px;
}

.char-count {
  display: block;
  font-size: 13px;
  color: var(--color-nav-text);
  margin-top: 6px;
  text-align: left;
}

.form-status {
  font-size: 15px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.form-status--success {
  color: var(--color-text);
  font-weight: 700;
}

.form-status--error {
  color: var(--color-orange-dark);
}

/* visually hidden without a negative offset — a large negative inset inflates
   scrollWidth on an RTL page and pushes the whole layout off-screen */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-info {
  background: var(--color-bg-card);
  padding: 32px;
}

.contact-info-item {
  margin-bottom: 24px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-label {
  display: block;
  font-size: 14px;
  color: var(--color-nav-text);
  margin-bottom: 6px;
}

.contact-info-item a {
  font-size: 16px;
  text-decoration: underline;
}

.contact-info-social {
  display: inline-block;
  width: 26px;
  height: 26px;
  color: var(--color-text);
  text-decoration: none;
}

.contact-info-social svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-info-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Legal pages (תקנון / משלוחים / החזרות) ---------- */

.legal {
  padding: 40px 0 90px;
}

.legal-updated {
  font-size: 14px;
  color: var(--color-nav-text);
  margin: 0 0 32px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-part-heading {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.legal-section .checkout-title {
  font-size: calc(var(--font-script-size) + 2px);
  margin: 0 0 12px;
}

.legal-copy p {
  margin: 0 0 1em;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-copy ul {
  margin: 0 0 1em;
  padding: 0 18px 0 0;
}

.legal-copy li {
  margin-bottom: 6px;
}

.legal-copy a {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap,
  .product .wrap,
  .about .wrap,
  .checkout-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* mobile order: all three paragraphs, then the image, then price + button.
     The two text wrappers dissolve (display: contents) so their children
     become grid items of .wrap and can be ordered individually. */
  .hero .wrap {
    grid-template-areas: none;
    row-gap: 0; /* the paragraph's own 1em bottom margin is the single blank line */
  }

  .hero-intro-top,
  .hero-copy {
    display: contents;
  }

  .hero-image {
    grid-area: auto;
    order: 1;
  }

  .hero-copy p.hero-price,
  .hero-copy .join-btn {
    order: 2;
  }

  .hero-copy p.hero-price {
    margin-top: 14px; /* image-to-text gap, same as the old image-to-paragraph gap */
  }

  .hero {
    padding-bottom: 85px;
  }

  .hero-copy p,
  .hero-intro-top p {
    font-size: calc(var(--font-script-size) - 3px);
  }

  .hero-image {
    width: calc(95% + 15px);
    margin: 0 auto;
  }

  .hero-price {
    text-align: center;
  }

  .join-btn {
    display: flex;
    margin: 0 auto;
  }

  .form-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .features .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card + .feature-card {
    margin-right: 0;
  }

  .feature-image {
    aspect-ratio: 1 / 1;
  }

  .feature-card {
    padding: 22px 22px 0;
  }

  .features {
    padding-bottom: 20px; /* one line of running text before the CTA button */
  }

  .feature-title {
    font-size: calc(var(--font-script-size) + 1px);
  }

  .faq-heading {
    font-size: calc(var(--font-script-size) + 2px);
  }

  .feature-body p,
  .feature-body ul {
    font-size: calc(var(--running-text-size) - 1px);
  }

  .cta-banner {
    padding-bottom: 60px;
  }

  .faq-question {
    font-size: calc(var(--font-script-size) - 2px);
  }

  .faq-answer p,
  .faq-answer ul {
    font-size: calc(var(--running-text-size) - 1px);
  }

  .qty-stepper button {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .qty-value {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .product-btn {
    height: 46px;
    font-size: 16px;
  }

  .main-nav {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
    right: 12px;
    top: 6px;
    width: 34px;
    height: 34px;
  }

  .nav-toggle span {
    width: 24px;
  }

  .cart-icon {
    width: 22px;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin-top: 18px;
  }

  .main-nav.is-open ul {
    display: flex;
  }

  .main-nav ul li {
    width: 100%;
    text-align: right;
  }

  .main-nav ul a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  /* `display: contents` drops the header's own box so .main-nav's containing
     block becomes the page itself. Without this, sticky could only travel the
     height of .site-header — a few hundred px — and then scroll away. */
  .site-header {
    display: contents;
  }

  .header-top {
    padding-top: 44px; /* +15px */
  }

  /* Sticky rather than fixed: iOS treats it as ordinary scroll layout, so it
     survives being inside an iframe, where position:fixed does not. The whole
     row travels, which also means the cart and hamburger share a line by
     construction — no measured offset to drift out of sync. */
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 35px;
    background: var(--color-bg);
  }

  .nav-row {
    min-height: 35px;
  }

  .cart-link {
    position: absolute;
    left: 13px;
    top: 2px;
    height: 34px; /* matches .nav-toggle, so both centre on the same line */
    display: flex;
    align-items: center;
    transform: none;
  }

  /* same two-column layout as desktop (right list / left list) — no mobile
     override needed here, .footer-links-group's base row layout already
     does it. Shrink the gray link text a point so two columns don't feel
     cramped at this width. */
  .footer-links {
    font-size: 13px;
  }

  .footer-links-legal {
    /* one row's worth, so legal row 1 lines up with primary row 2 ("כתבו
       לי"), row 2 with row 3 ("לשנות כתובת/לבטל"), row 3 with row 4
       ("האתר שלי") — a one-row stagger, not desktop's whole-block offset */
    margin-top: 32px;
  }

  .footer-links-primary li:last-child {
    margin-top: 1px; /* nudges the instagram icon down slightly further */
  }

  .footer-copy {
    color: var(--color-text); /* dark gray on mobile, not white */
    margin-top: 20px; /* extra push down, closer to the bottom edge */
    font-size: 13px;
  }

  .site-footer {
    padding-bottom: 12px; /* footer extended +7px; text position unchanged */
  }

  .about .wrap {
    row-gap: 64px; /* two blank lines between the image and the text */
  }

  /* same size as the mobile hero price (script size - 3px) */
  .about-copy p.about-question {
    font-size: calc(var(--font-script-size) - 3px);
  }

  .about-cta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 20px;
  }

  /* .wrap's padding shorthand above resets padding-top to 0, which would
     otherwise clobber .header-top's 860px override below 480px too */
  .header-top {
    padding-top: 44px;
  }

  .logo-badge {
    width: 196px;
  }

  .site-header {
    padding-top: 29px;
  }

  .join-btn {
    width: 240px;
  }

  .checkout-summary,
  .contact-info,
  .member-status,
  .member-cancel {
    padding: 20px;
  }

  .payment-methods {
    flex-wrap: wrap;
  }

  .payment-method {
    flex: 1 1 calc(50% - 6px);
  }
}
