/* ==========================================================================
   Components: רכיבים משותפים לכל העמודים
   ========================================================================== */

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.rule-top { border-top: var(--bw) solid var(--ink); }
.rule-bottom { border-bottom: var(--bw) solid var(--ink); }
.bg-white { background: var(--surface); }
.bg-stage { background: var(--stage); }
.bg-accent { background: var(--accent); }
.bg-ink { background: var(--ink); color: #fff; }
.relative { position: relative; }
.clip { overflow: hidden; }

/* תמונת רקע דקורטיבית (חוטים, גיירואיד, מאקרו) */
.art { position: absolute; pointer-events: none; user-select: none; max-width: none; }
.art--cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-2); }
.eyebrow--ink { color: var(--ink); }
.muted { color: var(--ink-2); }
.lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); }
.outline-text { color: transparent; -webkit-text-stroke: 1px var(--ink); font-weight: 800; letter-spacing: -0.06em; line-height: .9; direction: ltr; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-size: 15px; font-weight: 800; text-align: center;
  background: var(--ink); color: #fff; border: 0;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); color: var(--ink); }
.btn--lg { min-height: 58px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 var(--bw-strong) var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--ink-2); color: #fff; cursor: not-allowed; }
.btn--between { justify-content: space-between; }
.link-underline { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- Tags ---------- */
.tag { display: inline-block; padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; }
.tag--basic { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag--premium { background: var(--ink); color: var(--accent); }
.tag--accent { background: var(--accent); color: var(--ink); }
.tag--ext { background: var(--stage); color: var(--ink-2); }

/* ---------- Chips / segmented ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  font-size: 14px; font-weight: 800; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 var(--bw-strong) var(--ink);
}
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--ink); color: #fff; }
.chip small { font-size: 11px; font-weight: 400; opacity: .7; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips > * { flex-shrink: 0; }

.segmented { display: grid; border: var(--bw) solid var(--ink); background: var(--surface); }
.segmented > button, .segmented > a {
  min-height: 52px; padding: 8px 12px; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--surface); color: var(--ink);
}
.segmented > * + * { border-inline-start: var(--bw) solid var(--ink); }
.segmented > [aria-checked="true"], .segmented > [aria-pressed="true"], .segmented > [aria-selected="true"], .segmented > .is-on { background: var(--ink); color: #fff; }
.hscroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex-shrink: 0; }

/* ---------- Forms ---------- */
.field { display: block; width: 100%; min-height: 50px; padding: 0 12px; background: var(--surface); border: var(--bw-strong) solid var(--ink); font-size: 16px; }
textarea.field { padding: 10px 12px; min-height: 96px; resize: vertical; }
.field[aria-invalid="true"] { border-color: var(--err); }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.error { display: block; margin-top: 4px; font-size: 13px; color: var(--err); }
.ok { color: var(--ok); }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; text-align: start; }
.checkbox__box { flex-shrink: 0; width: 22px; height: 22px; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.checkbox[aria-checked="true"] .checkbox__box { background: var(--accent); }
.checkbox[aria-checked="true"] .checkbox__box::after { content: "✓"; }
.checkbox.is-invalid .checkbox__box { box-shadow: inset 0 0 0 1.5px var(--err); }
.placeholder-box { min-height: 50px; display: flex; align-items: center; padding: 0 12px; border: 1.5px dashed var(--ink-2); background: #FAFAF7; font-size: 14px; color: var(--ink-2); }
.ph { display: flex; align-items: flex-end; padding: 12px; font-size: 12px; color: var(--ink-2); background: repeating-linear-gradient(135deg, #E6E3DA 0 10px, #DEDACF 10px 20px); }
.note-todo { border: 1px dashed var(--ink-2); padding: 10px 12px; font-size: 13px; line-height: 20px; color: var(--ink-2); }

/* ---------- Quantity stepper ---------- */
.stepper { display: inline-flex; height: 40px; box-shadow: inset 0 0 0 var(--bw-strong) var(--ink); background: var(--surface); }
.stepper button { width: 40px; font-size: 18px; }
.stepper button:hover { background: var(--accent); }
.stepper output { min-width: 32px; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--stage); }
.progress > span { display: block; height: 100%; background: var(--ink); transition: width .5s var(--ease); }

/* ---------- Swatch ---------- */
.swatch { display: inline-block; width: 12px; height: 12px; box-shadow: inset 0 0 0 1px rgba(17,17,17,.3); background: var(--c, #ccc); flex-shrink: 0; }
.swatch--lg { width: 44px; height: 44px; }

/* ---------- Accordion (details) ---------- */
.acc { border: var(--bw) solid var(--ink); background: var(--surface); }
.acc__item + .acc__item { border-top: var(--bw) solid var(--ink); }
.acc__q { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px; font-weight: 800; font-size: 17px; line-height: 1.4; }
.acc__q::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.acc__item[open] > .acc__q::after { content: "−"; background: var(--accent); }
.acc__a { padding: 0 16px 18px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }

/* ---------- Tabs ---------- */
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-block: var(--bw) solid var(--ink); background: var(--surface); }
.tabs::-webkit-scrollbar { display: none; }
.tabs > button, .tabs > a { flex-shrink: 0; min-height: 50px; padding: 0 18px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; border-inline-start: var(--bw) solid var(--ink); }
.tabs > :first-child { border-inline-start: 0; }
.tabs > [aria-selected="true"], .tabs > [aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Sheet / modal ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-sheet); background: rgba(17,17,17,.5); display: none; }
.overlay.is-open { display: block; animation: fp-fade .2s ease both; }
.sheet { position: absolute; inset-inline: 0; bottom: 0; max-height: 90vh; overflow-y: auto; background: var(--surface); border-top: var(--bw) solid var(--ink); animation: fp-rise .3s var(--ease) both; }
@media (min-width: 768px) {
  .sheet--side { inset-inline-start: 0; inset-inline-end: auto; top: 0; bottom: 0; width: 440px; max-height: none; border-top: 0; border-inline-end: var(--bw) solid var(--ink); }
}

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: var(--z-toast); inset-inline: 16px; bottom: 90px; max-width: 420px; margin-inline: auto; background: var(--ink); color: #fff; padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; animation: fp-rise .3s var(--ease) both; }
.toast[hidden] { display: none; }
.toast .swatch { width: 18px; height: 18px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: #fff; border-block: var(--bw) solid var(--ink); }
.marquee__track { display: flex; width: max-content; gap: 40px; padding: 14px 0; font-size: 15px; font-weight: 700; animation: fp-marquee 40s linear infinite; }
.marquee__track span::after { content: "●"; margin-inline-start: 40px; color: var(--accent); font-size: 10px; }
.marquee__track--plain { gap: 52px; font-weight: 700; }
.marquee__track--plain span::after { content: none; }
@keyframes fp-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: var(--bw) solid var(--ink); margin: 0 -1px -1px 0; }
.pcard__stage { position: relative; aspect-ratio: 1 / 1; background: var(--stage); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pcard__stage img { width: 104%; max-width: none; transition: transform .5s var(--ease); }
.pcard:hover .pcard__stage img { transform: scale(1.04) translateY(-2px); }
.pcard__tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.pcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__brand { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); }
.pcard__name { font-size: 17px; line-height: 1.3; font-weight: 800; }
.pcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pcard__dots { display: flex; gap: 4px; align-items: center; }
.pcard__dots .swatch { width: 14px; height: 14px; }
.pcard__price { font-size: 17px; font-weight: 800; }
.pcard__quick { width: 100%; min-height: 46px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; border-top: var(--bw) solid var(--ink); }
.pcard__quick:hover { background: var(--accent); color: var(--ink); }
.pcard__pop { padding: 12px; border-top: var(--bw) solid var(--ink); background: var(--surface); }
.pcard__pop[hidden] { display: none; }
.pcard__pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pcard__pop-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 6px 0; }
.pcard__pop-grid .swatch { width: 100%; height: 30px; }
.pcard__pop-grid button:hover .swatch { box-shadow: inset 0 0 0 2px var(--ink); }
.pcard.is-out .pcard__stage img { opacity: .45; }
.status { font-size: 12px; font-weight: 800; }
.status--low { color: var(--warn); }
.status--out { color: var(--ink-2); }
.status--in { color: var(--ok); }

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header { position: relative; z-index: var(--z-header); background: var(--surface); }
.topstrip { background: var(--ink); color: #fff; font-size: 12px; line-height: 16px; }
.topstrip__in { display: flex; gap: 28px; align-items: center; justify-content: center; padding: 8px var(--gutter); }
.topstrip__dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-inline-end: 8px; }
.topstrip__desk, .topstrip__links { display: none; }
.topbar { border-bottom: var(--bw) solid var(--ink); }
.topbar__in { display: flex; align-items: center; gap: 4px; height: 64px; max-width: var(--container); margin-inline: auto; padding-inline: 8px; }
.menu-btn { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.logo { display: inline-flex; align-items: baseline; flex-shrink: 0; white-space: nowrap; direction: ltr; font-weight: 800; font-size: 23px; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.logo svg { width: .58em; height: .58em; margin: 0 .01em; flex-shrink: 0; }
.mainnav { display: none; }
.topbar__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 0; }
.cart-btn { height: 44px; min-width: 44px; padding: 0 10px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 800; }
.cart-btn:hover { background: var(--accent); color: var(--ink); }
.cart-btn__label { display: none; }
.cart-btn__count { min-width: 20px; height: 20px; padding: 0 5px; background: var(--accent); color: var(--ink); font-size: 11px; line-height: 20px; text-align: center; }
.cart-btn:hover .cart-btn__count { background: var(--ink); color: var(--accent); }
.search { display: none; }
.drawer { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: var(--bw) solid var(--ink); box-shadow: 0 24px 40px rgba(17,17,17,.12); }
.drawer[hidden] { display: none; }
.drawer a.drawer__link { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 20px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 500; }
.drawer a.drawer__link[aria-current="page"] { font-weight: 800; background: var(--accent); }
.drawer a.drawer__link small { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.drawer__foot { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--bw) solid var(--ink); }
.drawer__foot a { height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.drawer__foot a + a { border-inline-start: var(--bw) solid var(--ink); background: var(--accent); font-weight: 800; }

@media (min-width: 1024px) {
  .topstrip__in { justify-content: flex-start; padding-block: 9px; max-width: var(--container); margin-inline: auto; font-size: 13px; }
  .topstrip__desk { display: inline; }
  .topstrip__links { display: flex; gap: 24px; margin-inline-start: auto; }
  .topstrip__links a:last-child { color: var(--accent); }
  .topbar__in { height: 84px; padding-inline: var(--gutter); gap: 40px; }
  .menu-btn, .drawer { display: none; }
  .logo { font-size: 29px; }
  .mainnav { display: flex; gap: 4px; height: 100%; }
  .mainnav a { height: 100%; padding: 0 14px; display: flex; align-items: center; font-size: 15px; font-weight: 500; }
  .mainnav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -4px 0 var(--accent); }
  .mainnav a:hover { box-shadow: inset 0 -4px 0 var(--line); }
  .search { display: flex; align-items: center; gap: 10px; width: 260px; height: 46px; padding: 0 14px; border: var(--bw) solid var(--ink); background: var(--surface); }
  .search input { border: 0; background: transparent; width: 100%; outline: none; font-size: 15px; }
  .icon-btn { border: var(--bw) solid var(--ink); }
  .icon-btn--search { display: none; }
  .cart-btn { height: 46px; padding: 0 16px; font-size: 15px; font-weight: 700; }
  .cart-btn__label { display: inline; }
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--paper); border-top: var(--bw) solid var(--ink); }
.site-footer__strands { position: absolute; top: 18px; inset-inline-start: 0; width: 104%; max-width: none; opacity: .22; pointer-events: none; }
.site-footer__in { position: relative; padding-top: 150px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; border-top: var(--bw) solid var(--ink); padding-top: 32px; }
.site-footer__news { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.site-footer__news strong { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.site-footer__form { display: flex; margin-top: 6px; }
.site-footer__form input { flex: 1; min-width: 0; height: 54px; border: var(--bw) solid var(--ink); border-inline-end: 0; padding: 0 16px; font-size: 16px; direction: ltr; text-align: left; background: var(--surface); }
.site-footer__form button { height: 54px; padding: 0 22px; background: var(--ink); color: #fff; font-weight: 700; }
.site-footer__form button:hover { background: var(--accent); color: var(--ink); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__col h3, .site-footer__col-h { font-size: 12px; font-weight: 700; letter-spacing: .16em; margin-bottom: 6px; }
.site-footer__col a:hover { text-decoration: underline; }
.site-footer__mark { margin-top: 48px; margin-bottom: -.14em; display: flex; justify-content: center; overflow: hidden; padding-top: 4px; user-select: none; pointer-events: none; }
.site-footer__mark img { width: min(100%, 1100px); height: auto; display: block; }
.site-footer__legal { background: var(--ink); color: #fff; position: relative; }
.site-footer__legal-in { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; padding-block: 16px; font-size: 13px; }
.site-footer__pay { display: flex; gap: 6px; direction: ltr; flex-wrap: wrap; }
.site-footer__pay span { border: 1px solid #555; padding: 2px 8px; }
@media (min-width: 1024px) {
  .site-footer__in { padding-top: 210px; }
  .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-top: 40px; }
  .site-footer__news { grid-column: span 5; }
  .site-footer__news strong { font-size: 32px; }
  .site-footer__col:nth-of-type(1) { grid-column: 7 / span 2; }
  .site-footer__col:nth-of-type(2), .site-footer__col:nth-of-type(3) { grid-column: span 2; }
  .site-footer__legal-in .site-footer__pay { margin-inline-start: auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
