/* ============================================================
   Hani Len — Shop (חנות), WooCommerce archive. Prefix: sh-
   Cart drawer + cart-icon rules live in main.css since the cart
   icon appears in the header on every page, not just here.
   ============================================================ */

/* .hl-section's shared padding-block (var(--section-y), 64–200px) leaves a
   much bigger gap above the toolbar than the ~20px below it — scoped
   override for the shop page only, doesn't touch the shared token other
   pages rely on. */
.sh-main { padding-top: 20px; }

/* ---- Hero (low, matches inner pages) ---- */
.sh-hero { position: relative; background: var(--navy); overflow: hidden;
  min-height: clamp(280px, 38vh, 420px); display: flex; align-items: center; }
.sh-hero__inner { position: relative; z-index: 2; padding-block: clamp(44px,6vw,84px); max-width: 760px; }
.sh-crumb { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .04em;
  color: rgba(255,255,255,.6); display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.sh-crumb a { color: rgba(255,255,255,.78); }
.sh-crumb a:hover { color: var(--gold); }
.sh-crumb span { color: rgba(255,255,255,.35); }
.sh-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-lg);
  line-height: 1.04; color: #fff; margin: .12em 0 0; }
.sh-hero__lead { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: rgba(255,255,255,.82); max-width: 520px; margin-top: 18px; }

/* ---- Shell: sidebar + grid ---- */
.sh-shell {
  display: grid; grid-template-columns: 280px 1fr;
  gap: clamp(28px, 3.4vw, 56px);
  align-items: start;
}

/* ---- Sidebar ---- */
.sh-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 34px; }
.sh-block__title {
  font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 14px; margin: 0 0 16px; border-bottom: 1px solid var(--hairline);
}
/* categories */
.sh-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-cat {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
  background: none; border: none; cursor: pointer; text-align: start;
  padding: 9px 12px; border-radius: 8px; width: 100%;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.sh-cat:hover { background: var(--sand); color: var(--gold-deep); }
.sh-cat.on { background: var(--navy); color: #fff; }
.sh-cat__n { font-size: .8rem; color: var(--muted); }
.sh-cat.on .sh-cat__n { color: rgba(255,255,255,.6); }

/* filter groups */
.sh-filter + .sh-filter { margin-top: 26px; }
.sh-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.sh-opt { display: flex; align-items: center; gap: 11px; cursor: pointer;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); }
.sh-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.sh-box {
  width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid var(--pale-border, #BFC8CB);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.sh-box svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; }
.sh-opt input:checked + .sh-box { background: var(--gold-gradient); border-color: transparent; }
.sh-opt input:checked + .sh-box svg { opacity: 1; }
.sh-opt input:focus-visible + .sh-box { box-shadow: 0 0 0 3px rgba(242,184,97,.3); }
.sh-opt__n { margin-inline-start: auto; font-size: .8rem; color: var(--muted); }
.sh-opt__brand { display: inline-flex; align-items: center; }
.sh-opt__brand img { height: 15px; width: auto; object-fit: contain; }

.sh-clear {
  margin-top: 22px; font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; color: var(--gold-deep-text); background: none; border: none; cursor: pointer;
  padding: 0; display: inline-flex; align-items: center; gap: 6px;
}
.sh-clear:hover { color: var(--ink); }

/* ---- Toolbar ---- */
.sh-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.sh-count { font-family: var(--font-body); font-size: .95rem; color: var(--muted); }
.sh-count b { color: var(--ink); font-weight: 600; }
.sh-sort {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
}
.sh-mobile-filter { display: none; }
/* Mobile-only duplicate of .sh-sort that lives inside the filter panel
   (.sh-side) instead of the toolbar — hidden on desktop, shown at the
   900px breakpoint below where the toolbar's own copy gets hidden instead. */
.sh-block--sort { display: none; }

/* ---- Product grid ---- */
.sh-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 1.8vw, 28px);
}
.sh-prod { display: flex; flex-direction: column; min-width: 0; }
.sh-prod[hidden] { display: none; }
.sh-prod__media {
  position: relative; display: block; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius-card); background: #f3efe9; box-shadow: var(--shadow-card);
}
.sh-prod__media img { width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s var(--ease-out); }
.sh-prod__media:hover img { transform: scale(1.04); }

/* labels */
.sh-labels { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sh-label {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  color: #fff; background: var(--navy);
}
.sh-label--sale { background: var(--dusty-rose, #A57F74); }
.sh-label--best { background: var(--gold-gradient); color: var(--navy); }
.sh-label--new { background: var(--teal); }

.sh-prod__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.sh-prod__brand { font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep-text); }
.sh-prod__name { font-family: var(--font-display); font-weight: 400; font-size: 1.28rem;
  line-height: 1.2; color: var(--ink); margin: 6px 0 0; }
.sh-prod__name a { color: inherit; }
.sh-prod__name a:hover { color: var(--gold-deep); }
.sh-prod__desc { font-family: var(--font-body); font-size: .9rem; line-height: 1.5;
  color: var(--muted); margin: 7px 0 0; }
.sh-prod__foot { margin-top: auto; padding-top: 15px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.sh-price { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-body); }
.sh-price__now { font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.sh-price__was { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.sh-price--sale .sh-price__now { color: var(--dusty-rose, #A57F74); }

.sh-add {
  font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  color: var(--navy); background: transparent; border: 1.5px solid var(--navy);
  border-radius: 999px; padding: 10px 16px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .22s var(--ease-out), color .22s var(--ease-out);
}
.sh-add svg { width: 15px; height: 15px; }
.sh-add:hover { background: var(--navy); color: #fff; }
.sh-add.added, .sh-add.loading { background: var(--teal); border-color: var(--teal); color: #fff; }
/* "אזל המלאי" used opacity:.5 on the whole pill, which faded the text below
   readable contrast along with the border — keep the border faded (purely
   decorative here) but the text at a color that still passes 4.5:1. */
.sh-add--disabled { color: var(--muted); border-color: var(--hairline); cursor: default; }

.sh-empty { grid-column: 1/-1; text-align: center; padding: 60px 0;
  font-family: var(--font-body); color: var(--muted); font-size: 1.05rem; }

@media (max-width: 900px) {
  .sh-shell { grid-template-columns: 1fr; }
  .sh-side { position: static; display: none; }
  .sh-side.open { display: flex; }
  .sh-block--sort { display: block; }
  .sh-mobile-filter { display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--hairline); border-radius: 999px;
    padding: 9px 16px; cursor: pointer; order: 1; }
  /* The toolbar's own sort select moves into the filter panel above instead —
     reorder so the count lands exactly where it used to sit. */
  .sh-toolbar .sh-sort { display: none; }
  .sh-count { order: 2; }
  .sh-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .sh-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sh-prod__name { font-size: 1.1rem; }
  .sh-add span { display: none; }
  .sh-add { padding: 10px; }
}
