/* =========================================================
   LILU — עיצוב האתר
   צבעים, גופנים ומידות מרכזיים מוגדרים כאן למעלה (:root).
   ========================================================= */
:root {
  /* צבעים */
  --ink: #111;
  --ink-soft: #231f20;
  --white: #fff;
  --paper: #f6ead4;            /* בז' מתחת לטקסטורת הנייר */
  --mocha: #c4ab97;            /* רקע "קצת עליי" */
  --pill: #f2ede6;             /* כפתור "להזמנת תכשיט" */
  --cta: #d3c8bb;              /* כפתור ההזמנה בעמוד מוצר */
  --photo-bg: #dcdcd8;

  /* גופנים */
  --font-body: "Heebo", "Assistant", Arial, sans-serif;
  --font-hand: "Playpen Sans Hebrew", "Amatic SC", "Heebo", cursive;

  /* רוחב עמודת התוכן */
  --col: 840px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* נייר מקומט כרקע קבוע לכל האתר (בלי תפרים של אריחים) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--paper) url("../images/decor/paper-texture.webp") center / cover no-repeat;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.hand { font-family: var(--font-hand); font-weight: 300; }
.spaced { letter-spacing: .45em; font-weight: 300; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- רקעים ---------- */
.white { background: var(--white); }
.paper {
  background-color: var(--paper);
  background-image: url("../images/decor/paper-texture.webp");
  background-size: 900px auto;
}
.mocha { background: var(--mocha); }

/* קצה נייר קרוע — מוסיפים class="torn-top" / "torn-bottom" לסקשן */
.torn-top, .torn-bottom { position: relative; }
.torn-top::before,
.torn-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 44px;
  background: inherit;
  -webkit-mask: url("../images/decor/torn-edge.svg") center / 100% 100% no-repeat;
  mask: url("../images/decor/torn-edge.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}
.torn-top::before { top: -43px; }
.torn-bottom::after { bottom: -43px; transform: scaleY(-1); }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(10px, calc(50% - var(--col)/2));
  background: var(--white);
  box-shadow: 0 6px 12px -10px rgba(0,0,0,.18);
}
.site-header .wordmark {
  font-size: 22px; letter-spacing: .55em; padding-inline-start: .55em;
}
.hdr-side { display: flex; align-items: center; gap: 2px; }
.hdr-end { justify-content: flex-end; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  border-radius: 50%;
  transition: background .15s, transform .15s;
}
.icon-btn:hover { background: rgba(0,0,0,.05); transform: rotate(-4deg); }
.ico { display: inline-flex; width: 28px; height: 28px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 4px; left: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--ink-soft); color: var(--white);
  border-radius: 999px;
  font: 500 11px/1 var(--font-body);
}

/* ---------- פוטר ---------- */
.site-footer {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 16px 52px;
  background: var(--white);
  font-size: 13px; letter-spacing: .3em;
  text-align: center;
}
.site-footer a:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 64px 20px 86px;
}
.hero-title {
  font-weight: 300;
  font-size: clamp(64px, 15vw, 128px);
  letter-spacing: .35em; padding-inline-start: .35em;
  line-height: 1.05;
}
.hero-sub {
  margin-top: 10px;
  font-size: clamp(17px, 3.4vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
.pill-btn {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 44px;
  background: var(--pill);
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  font-size: clamp(16px, 3vw, 22px);
  box-shadow: 0 3px 6px rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s;
}
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,.15); }

/* ---------- תמונה עם אטב (משותף) ---------- */
.clipped-photo {
  position: relative;
  margin: 0;
}
.clipped-photo .photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--photo-bg);
  box-shadow: 4px 6px 10px rgba(0,0,0,.22);
}
.clipped-photo .clip {
  position: absolute;
  top: -15%; inset-inline-start: 62%;
  width: 34%;
  z-index: 2;
  transform: rotate(8deg);
}

/* ---------- קטגוריות (עמוד הבית) ---------- */
.categories {
  position: relative;
  padding: 70px 0 110px;
  overflow: visible;
}
.category-list {
  max-width: var(--col); margin: 0 auto;
  padding: 0 4%;
  display: flex; flex-direction: column; gap: 40px;
}
.cat-row {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}
.cat-row .clipped-photo { width: 92%; justify-self: center; transform: rotate(7deg); }
.cat-row.flip .clipped-photo { order: 2; transform: rotate(-2deg); }
.cat-row.flip .clipped-photo .clip { inset-inline-start: auto; inset-inline-end: 58%; transform: rotate(-4deg) scaleX(-1); }
.cat-label {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 0;
}
.cat-label .hand { font-size: clamp(30px, 7vw, 56px); line-height: 1; }
.cat-label .arrow {
  width: auto;
  height: clamp(110px, 22vw, 200px);
  margin-top: 10px;
  transform: scaleX(-1) rotate(35deg);   /* חץ שמצביע ימינה, אל התמונה */
}
.cat-row.flip .cat-label .arrow { transform: rotate(35deg); }   /* חץ שמצביע שמאלה */
.cat-row.is-link { cursor: pointer; }
.cat-row.is-link:hover .clipped-photo { transform: rotate(5deg) scale(1.02); }
.cat-row.is-link.flip:hover .clipped-photo { transform: rotate(0deg) scale(1.02); }
.cat-row .clipped-photo { transition: transform .25s; }

.deco { position: absolute; pointer-events: none; }
.categories .star-big { width: clamp(50px, 9vw, 86px); top: 27%; right: max(0px, calc(50% - var(--col)/2 - 20px)); transform: rotate(-14deg); }
.categories .star-doodle { width: clamp(26px, 5vw, 48px); bottom: 11%; left: max(6%, calc(50% - var(--col)/2 + 70px)); }

/* ---------- הנמכרים ביותר ---------- */
.bestsellers {
  text-align: center;
  padding: 76px 20px 110px;
}
.bestsellers .burst { width: 70px; margin: 0 auto 8px; }
.bestsellers h2 { font-size: clamp(24px, 5vw, 36px); padding-inline-start: .45em; }
.bestseller-list {
  max-width: 620px; margin: 40px auto 0;
  display: flex; flex-direction: column; gap: 26px;
}
.best-row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.best-row .best-photo { width: 100%; max-width: 280px; justify-self: center; mix-blend-mode: multiply; }
.best-row .tape { order: 2; }
.best-row.flip .best-photo { order: 2; }
.best-row.flip .tape { order: 1; }
.best-row:nth-child(3) .best-photo { width: auto; height: clamp(160px, 30vw, 260px); transform: rotate(28deg); }
.tape {
  justify-self: center;
  padding: 14px 34px;
  font-size: clamp(16px, 3.2vw, 24px);
  background: url("../images/decor/tape.webp") center / 100% 100% no-repeat;
  white-space: nowrap;
}
a.best-row:hover .tape { text-decoration: underline; }

/* ---------- קצת עליי ---------- */
.about {
  padding: 60px 20px 120px;
  text-align: center;
}
.about h2 { font-size: clamp(24px, 5vw, 38px); padding-inline-start: .45em; }
.about-text {
  max-width: 640px; margin: 36px auto 0;
  font-size: clamp(14px, 2.3vw, 17px);
  line-height: 1.6;
  font-weight: 400;
}
.about-text p + p { margin-top: 22px; }
.about-text b { font-weight: 700; }
.about-row {
  max-width: 740px; margin: 56px auto 0;
  display: grid; grid-template-columns: 62% 38%; align-items: center;
}
.about-row.flip { grid-template-columns: 38% 52%; justify-content: space-between; margin-top: 28px; }
.about-row.flip .about-photo { order: 2; }
.about-photo { width: 100%; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.about-note { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.about-note .hand { font-size: clamp(18px, 3.6vw, 30px); line-height: 1.15; }
.about-note .loop-arrow { width: clamp(60px, 12vw, 110px); }
.about-note .hamsa { width: 54px; margin-top: 30px; }

/* ---------- כוכבים ---------- */
.stars {
  position: relative;
  height: clamp(560px, 110vw, 980px);
  overflow: hidden;
}
.star {
  position: absolute;
  aspect-ratio: 2400 / 2277;
  background: url("../images/decor/star-big.webp") center / contain no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.star .hand { font-size: clamp(14px, 3vw, 26px); line-height: 1.15; }
.star.s1 { width: min(62vw, 560px); top: 4%;  left: calc(50% - min(4vw, 40px)); transform: rotate(0deg); }
.star.s2 { width: min(72vw, 640px); top: 26%; left: calc(50% - min(62vw, 520px)); transform: rotate(-15deg); }
.star.s3 { width: min(86vw, 760px); top: 46%; left: calc(50% - min(10vw, 90px)); transform: rotate(69deg); }
.star.s1 .hand { transform: translate(-4%, 6%); }
.star.s2 .hand { transform: rotate(15deg) translate(-12%, 8%); }
.star.s3 .hand { transform: rotate(-69deg) translate(10%, -6%); }

/* ---------- עמוד קטגוריה ---------- */
.page-body {
  padding: 34px 6% 70px;
  min-height: 70vh;
}
.page-title {
  text-align: center;
  font-size: clamp(26px, 5.5vw, 42px);
  margin-bottom: 44px;
}
.product-grid {
  max-width: 680px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 12%; row-gap: 56px;
}
.product-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-card .clipped-photo { width: 100%; }
.product-card .photo { aspect-ratio: 4 / 5; }
.product-card .clip { top: -12%; inset-inline-start: 50%; width: 30%; }
.product-card .product-name { margin-top: 14px; font-size: clamp(20px, 4vw, 30px); }
.product-card .price { font-size: clamp(14px, 2.4vw, 18px); margin-top: 2px; }
.product-card:hover .photo { transform: translateY(-3px); }
.product-card .photo { transition: transform .2s; }
.empty { text-align: center; font-size: 22px; }
.back-link {
  display: block; width: max-content; margin: 70px auto 0;
  font-size: clamp(14px, 2.6vw, 20px);
  letter-spacing: .5em;
}
.back-link:hover { text-decoration: underline; }

/* ---------- עמוד מוצר ---------- */
.product-page { padding-top: 40px; }
.product-photos-wrap { position: relative; max-width: 700px; margin: 0 auto; }
.product-photos {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-top: 20px;
}
.product-photos .clipped-photo .photo { aspect-ratio: 4 / 5; }
.product-photos .p1 { width: 100%; transform: rotate(4deg); z-index: 1; }
.product-photos .p2 { width: 80%; margin-top: 30%; margin-inline-start: 4%; transform: rotate(-20deg); }
.product-photos .p1 .clip { inset-inline-start: 66%; }
.product-photos .p2 .clip { inset-inline-start: auto; inset-inline-end: 60%; transform: rotate(-6deg) scaleX(-1); width: 26%; }
.product-photos:has(.p1:only-child) { grid-template-columns: 1fr; max-width: 60%; margin: 0 auto; }
.product-page .star-filled { width: clamp(50px, 10vw, 80px); top: 0; inset-inline-end: 12%; z-index: 3; transform: rotate(-8deg); }
.product-page .burst-small { width: clamp(30px, 6vw, 50px); top: 40%; inset-inline-start: 34%; z-index: 3; transform: rotate(160deg); }

.product-info { max-width: 640px; margin: 36px auto 0; }
.product-title { font-size: clamp(26px, 5.5vw, 42px); }
.product-price { font-size: clamp(16px, 3vw, 22px); letter-spacing: .3em; margin-top: 6px; }
.product-description { margin-top: 14px; font-size: 16px; line-height: 1.6; font-weight: 400; }
.product-description:empty { display: none; }
.option-block { margin-top: 34px; }
.option-block h2 { font-size: clamp(16px, 3vw, 22px); margin-bottom: 14px; }
.options { display: flex; flex-wrap: wrap; gap: 12px; }
.opt {
  font: inherit; font-size: 15px; letter-spacing: .3em;
  min-width: 46px; height: 42px; padding: 0 10px 0 calc(10px - .3em);
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink-soft);
  cursor: pointer;
  transition: background .15s;
}
.opt:hover { background: rgba(0,0,0,.05); }
.opt.on { background: var(--ink-soft); color: var(--white); }
.opt.wide { min-width: 170px; }
.materials { gap: 16px; }
.mat-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.mat-wrap .extra { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.mat-wrap .extra img { width: 22px; transform: scaleX(-1); }
.order-btn {
  display: block; width: max-content; max-width: 100%;
  margin: 34px 0 0;
  padding: 12px 30px;
  background: var(--cta);
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  font-size: clamp(14px, 2.6vw, 18px);
  letter-spacing: .25em;
  transition: transform .15s;
}
.order-btn:hover { transform: translateY(-2px); }
.more-info { margin-top: 36px; font-size: 15px; line-height: 1.7; font-weight: 400; }
.more-info a, .more-info span { text-decoration: underline; }

@media (max-width: 520px) {
  .site-header { height: 56px; }
  .site-header .wordmark { font-size: 18px; }
  .product-grid { column-gap: 8%; row-gap: 44px; }
  .opt.wide { min-width: 140px; }
}

/* =========================================================
   חנות: תפריט, חיפוש, מועדפים, עגלה, חשבון, פופאפ
   ========================================================= */

/* ---------- טקסט "רציני" ---------- */
.muted { color: #6b625b; }
.small { font-size: 13px; }
.center { text-align: center; }
.big { font-size: 1.6em; }
.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.small-btn {
  font: 500 14px var(--font-body);
  padding: 0 16px; height: 42px;
  background: var(--ink-soft); color: var(--white);
  border: 0; cursor: pointer;
}
.load-error { background: #fff3cd; padding: 12px; text-align: center; margin: 0; }
.dev-note {
  max-width: 640px; margin: 0 auto 26px; padding: 10px 14px;
  background: rgba(255,255,255,.6); border: 1px dashed #b49c86;
  font-size: 13px; text-align: center; color: #6b625b;
}

/* ---------- כרטיס נייר (פתקים) ---------- */
.note-card {
  position: relative;
  background: rgba(255,255,255,.72);
  padding: 30px 26px 26px;
  box-shadow: 3px 5px 12px rgba(0,0,0,.12);
}
.note-card > .clip {
  position: absolute; top: -26px; inset-inline-start: 22px;
  width: 64px; transform: rotate(-6deg);
}

/* ---------- תפריט המבורגר ---------- */
.menu-layer { position: fixed; inset: 0; z-index: 100; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(35,31,32,.35); opacity: 0; transition: opacity .25s; }
.menu-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(86vw, 360px);
  padding: 22px 30px 30px;
  overflow-y: auto;
  box-shadow: 6px 0 24px rgba(0,0,0,.2);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.menu-layer.open .menu-backdrop { opacity: 1; }
.menu-layer.open .menu-panel { transform: none; }
.menu-close { margin-inline-start: -10px; }
.menu-hello { font-size: 30px; margin: 10px 0 18px; }
.menu-list, .menu-list ul { list-style: none; margin: 0; padding: 0; }
.menu-list > li { border-bottom: 1px solid rgba(35,31,32,.15); }
.menu-list a, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0;
  font: 400 18px var(--font-body); letter-spacing: .08em;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: start;
}
.menu-list a:hover, .sub-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.sub-toggle .ico { width: 22px; height: 22px; transition: transform .2s; }
.sub-toggle[aria-expanded="false"] .ico { transform: rotate(90deg); }
.sub-toggle[aria-expanded="false"] + .sub { display: none; }
.sub { padding: 0 18px 10px !important; }
.sub a, .sub .soon { display: block; padding: 8px 0; font: 26px var(--font-hand); letter-spacing: 0; }
.sub .soon { color: #9b8f85; }
.sub .soon small { font: 12px var(--font-body); }
.menu-star { width: 46px; margin: 26px auto 0; transform: rotate(-12deg); }
.menu-contact { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.menu-contact a { display: inline-flex; align-items: center; gap: 8px; }
.menu-contact .ico { width: 22px; height: 22px; }

/* ---------- חיפוש ---------- */
.search-layer { position: fixed; inset: 0; z-index: 90; }
.search-backdrop { position: absolute; inset: 0; background: rgba(35,31,32,.3); opacity: 0; transition: opacity .2s; }
.search-panel {
  position: relative;
  max-width: 640px; margin: 0 auto;
  max-height: 85vh; overflow-y: auto;
  padding: 16px 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transform: translateY(-20px); opacity: 0;
  transition: transform .2s, opacity .2s;
}
.search-layer.open .search-backdrop { opacity: 1; }
.search-layer.open .search-panel { transform: none; opacity: 1; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid var(--ink-soft);
  padding-bottom: 6px;
}
.search-bar input {
  flex: 1; min-width: 0;
  font: 300 20px var(--font-body);
  border: 0; background: none; outline: none; padding: 8px 0;
}
.search-hint { font-size: 20px; margin: 18px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  padding: 6px 16px; border: 1.5px solid var(--ink-soft); border-radius: 999px;
  font: 20px var(--font-hand); background: rgba(255,255,255,.6);
}
.chip:hover { background: var(--ink-soft); color: var(--white); }
.search-list { list-style: none; margin: 16px 0 0; padding: 0; }
.search-list a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(35,31,32,.12);
}
.search-list img { width: 56px; height: 56px; object-fit: cover; }
.sr-name { font: 22px var(--font-hand); display: flex; flex-direction: column; }
.sr-name small { font: 13px var(--font-body); color: #6b625b; }
.sr-price { font-size: 15px; }

/* ---------- הודעה קופצת ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; z-index: 120;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 22px;
  background: var(--ink-soft); color: var(--white);
  border-radius: 999px;
  font-size: 15px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .25s, opacity .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { text-decoration: underline; margin-inline-start: 6px; }

/* ---------- כרטיס מוצר + לב ---------- */
.product-card { position: relative; }
.product-card .card-link { display: flex; flex-direction: column; align-items: center; width: 100%; }
.fav-btn {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3;
  width: 40px; height: 40px; padding: 7px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85); border: 0; border-radius: 50%;
  cursor: pointer; color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.1) rotate(-6deg); }
.fav-btn .ico { width: 24px; height: 24px; }
.fav-btn.on svg { fill: #c0523e; stroke: #c0523e; }
.fav-btn.big { position: static; width: 46px; height: 46px; flex: none; }
.product-card.sold-out .photo { filter: grayscale(.6); opacity: .75; }
.sold-tape {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  font-size: 18px; padding: 10px 26px; z-index: 2;
}
.product-grid.small { grid-template-columns: repeat(3, 1fr); column-gap: 6%; row-gap: 40px; max-width: none; }
.product-grid.small .product-name { font-size: 20px; }
.soon-note { font-size: 14px; color: #6b625b; margin-top: 4px; }

/* ---------- עמוד מוצר: אפשרויות, כמות, הוספה לעגלה ---------- */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stock-note { min-height: 0; font-size: 22px; color: #a2482f; margin-top: 4px; }
.options { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.opt-wrap { display: flex; flex-direction: column; align-items: center; position: relative; }
.wide-opts .opt-wrap { align-items: flex-end; }
.opt.out {
  color: #9b8f85; border-color: #bcb2a8; cursor: not-allowed;
  background: linear-gradient(to top left, transparent calc(50% - .8px), #9b8f85 50%, transparent calc(50% + .8px));
}
.opt-wrap .extra { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.opt-wrap .extra img { width: 22px; transform: scaleX(-1); }
.out-note { font: 15px var(--font-hand); color: #a2482f; margin-top: 2px; }
.buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.buy-row .order-btn { margin: 0; cursor: pointer; font-family: var(--font-body); color: var(--ink); }
.order-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--ink-soft); height: 46px;
}
.qty button {
  width: 42px; height: 100%; border: 0; background: none; cursor: pointer;
  font: 300 22px var(--font-body); color: var(--ink);
}
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 30px; text-align: center; font-size: 17px; }
.qty.small { height: 34px; margin-top: 8px; align-self: flex-start; }
.qty.small button { width: 32px; font-size: 18px; }
.choose-hint { margin-top: 10px; font: 18px var(--font-hand); color: #a2482f; min-height: 1em; }
.more-info a { text-decoration: underline; }

/* ---------- עגלה ---------- */
.cart-layout {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start;
}
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cart-line {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: start;
  padding: 14px; background: rgba(255,255,255,.6);
  box-shadow: 2px 4px 10px rgba(0,0,0,.08);
}
.cart-line:nth-child(odd) { transform: rotate(-.5deg); }
.cart-line:nth-child(even) { transform: rotate(.4deg); }
.cart-line.invalid { outline: 1.5px dashed #a2482f; }
.cl-img img { width: 92px; height: 92px; object-fit: cover; box-shadow: 2px 3px 6px rgba(0,0,0,.15); }
.cl-info { display: flex; flex-direction: column; gap: 3px; }
.cl-name { font-size: 24px; line-height: 1.1; }
.cl-sel { font-size: 14px; color: #6b625b; }
.cl-warn { font: 16px var(--font-hand); color: #a2482f; }
.cl-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 100%; }
.cl-price { font-size: 17px; font-weight: 400; }
.cl-end .icon-btn { width: 38px; height: 38px; }
.cl-end .ico { width: 22px; height: 22px; }
.checkout { display: flex; flex-direction: column; gap: 40px; position: sticky; top: 90px; }
.summary h2, .form h2 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 16px; }
.sum-row.total { border-top: 1.5px solid var(--ink-soft); margin-top: 8px; padding-top: 12px; font-size: 20px; font-weight: 500; }
.coupon { display: flex; margin-top: 18px; }
.coupon input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid var(--ink-soft); border-inline-end: 0; font: 15px var(--font-body); background: rgba(255,255,255,.8); }
.coupon-msg { font-size: 14px; margin-top: 8px; min-height: 1em; }
.coupon-msg.ok { color: #3f6b3a; }
.coupon-msg.err { color: #a2482f; }
.signup-perk { margin-top: 10px; font-size: 15px; }
.signup-perk a { text-decoration: underline; text-underline-offset: 3px; }
.signup-perk .hand { font-size: 18px; }
.wa-btn { width: 100%; text-align: center; font-family: var(--font-body); cursor: pointer; color: var(--ink); margin-top: 8px; }

/* ---------- טפסים ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 15px; font-weight: 400; }
.form label small { font-weight: 300; color: #6b625b; }
.form input, .form textarea {
  font: 300 16px var(--font-body);
  padding: 10px 12px;
  border: 1.5px solid var(--ink-soft);
  background: rgba(255,255,255,.85);
  border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: 2px solid #c4ab97; outline-offset: 1px; }
.form .pill-btn { align-self: center; cursor: pointer; font-family: var(--font-hand); color: var(--ink); }
.form-err { color: #a2482f; font-size: 14px; min-height: 1em; }

/* ---------- מצב ריק / תודה ---------- */
.empty-state { text-align: center; padding: 30px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state .hand { font-size: clamp(24px, 5vw, 34px); }
.empty-state .hand.big { font-size: clamp(40px, 8vw, 60px); }
.empty-state p { line-height: 1.7; }
.empty-state a:not(.pill-btn):not(.back-link) { text-decoration: underline; }
.empty-star { width: 70px; transform: rotate(-12deg); }

/* ---------- חשבון ---------- */
.account-page { max-width: 860px; margin: 0 auto; }
.auth-card {
  max-width: 420px; margin: 10px auto 0;
  background: rgba(255,255,255,.72); padding: 26px 28px 30px;
  box-shadow: 3px 5px 12px rgba(0,0,0,.12);
}
.tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 10px; background: none; cursor: pointer;
  border: 0; border-bottom: 2px solid transparent;
  font: 26px var(--font-hand); color: #9b8f85;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink-soft); }
.perks { margin: 0 0 20px; padding-inline-start: 20px; line-height: 1.9; font-size: 15px; }
.perks .hand { font-size: 22px; }
.auth-sub { text-align: center; font-size: 22px; margin-bottom: 14px; }
.coupon-card {
  position: relative; max-width: 420px; margin: 0 auto 50px; padding: 26px 22px 20px;
  text-align: center;
  background: url("../images/decor/tape.webp") center / 100% 100% no-repeat;
  transform: rotate(-1.5deg);
}
.coupon-card .clip { position: absolute; top: -30px; inset-inline-end: 24px; width: 60px; transform: rotate(10deg); }
.coupon-card .hand { font-size: 22px; }
.coupon-card .code { font: 500 26px var(--font-body); letter-spacing: .18em; margin: 8px 0 4px; }
.coupon-card.used { filter: grayscale(1); opacity: .6; }
.acc-section { margin-top: 50px; }
.acc-section h2 { font-size: 18px; margin-bottom: 22px; }
.acc-section .form { max-width: 420px; }
.orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.orders li { background: rgba(255,255,255,.6); padding: 12px 16px; }
.o-head { display: flex; gap: 16px; justify-content: space-between; margin-bottom: 4px; }
.logout { display: block; margin: 50px auto 0; }

/* ---------- עמודי מידע ---------- */
.info-page { max-width: 720px; margin: 0 auto; }
.prose h2 { font: 400 26px var(--font-hand); margin: 26px 0 6px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.75; font-weight: 400; }
.prose a { text-decoration: underline; }

/* ---------- פופאפ הצטרפות ---------- */
.popup-layer { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; }
.popup-backdrop { position: absolute; inset: 0; background: rgba(35,31,32,.4); opacity: 0; transition: opacity .3s; }
.popup-card {
  position: relative;
  width: min(100%, 400px);
  padding: 44px 30px 26px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  transform: rotate(-2deg) scale(.9); opacity: 0;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1), opacity .3s;
}
.popup-layer.open .popup-backdrop { opacity: 1; }
.popup-layer.open .popup-card { transform: rotate(-1.5deg); opacity: 1; }
.popup-card > .clip { position: absolute; top: -34px; left: 50%; width: 80px; transform: translateX(-50%) rotate(6deg); }
.popup-x { position: absolute; top: 8px; inset-inline-start: 8px; }
.popup-star { position: absolute; top: 18px; inset-inline-end: 18px; width: 52px; transform: rotate(14deg); }
.popup-kicker { font-size: 24px; }
.popup-title { font: 300 26px/1.25 var(--font-body); letter-spacing: .06em; margin: 8px 0 12px; }
.popup-title .big { font-size: 64px; line-height: 1; display: inline-block; transform: rotate(-4deg); }
.popup-text { font-size: 15px; line-height: 1.6; font-weight: 400; }
.popup-card .pill-btn { margin-top: 22px; }
.popup-card .link-btn { display: block; margin: 12px auto 0; color: #6b625b; }

@media (max-width: 820px) {
  .cart-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .product-grid.small { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .ico { width: 25px; height: 25px; }
  .cart-line { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .cl-img img { width: 72px; height: 72px; }
  .note-card { padding: 26px 18px 20px; }
}
