/* SUZANA by Miri · storefront components that the sketch did not have
   (cart, product gallery, variants, quantity, filters, empty states).
   Uses the B5 tokens from site.css. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.config :focus-visible, .pbuild :focus-visible, .sx-bg-dark :focus-visible { outline-color: var(--gold-2); }
.config .scr :focus-visible, .sx-bg-dark :is(.sx-glass, .tcard, .tp-acc details, .c-card) :focus-visible { outline-color: var(--gold-ink); }
.btn:focus-visible, .seg a:focus-visible, .seg button:focus-visible { outline-offset: 2px; }
#app:focus { outline: none; }
.btn svg, .ov-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ov-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* header cart */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--peach); font-size: 15px; white-space: nowrap; }
.cart-link svg { width: 20px; height: 20px; }
.cart-link:hover { background: var(--blush); }
.cart-count { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold-ink); color: #fff; font-size: 12px; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 720px) { .cart-link .t { display: none; } .cart-link { padding: 11px; } }
body.nav-tight .cart-link .t { display: none; }

/* The socials, the bag and the message button share one height; once the labels are hidden, one round size. */
.navbar { --ico: 40px; }
.navbar .nav-social a { width: var(--ico); height: var(--ico); }
.navbar :is(.cart-link, .btn) { height: var(--ico); padding-block: 0; }
/* Phone: the logo a little bigger, the burger joins the same size, and nothing in the bar shrinks (3 socials still fit at 320px). */
@media (max-width: 720px) { .navbar { --ico: 34px; gap: 5px; } .navbar .logo img { height: 44px; } }
@media (max-width: 360px) { .navbar { --ico: 30px; gap: 4px; } .navbar .logo img { height: 34px; } .nav-social { gap: 3px; } }
body.nav-tight .navbar :is(.nav-social a, .cart-link, .btn, .burger) { width: var(--ico); height: var(--ico); padding: 0; gap: 0; }
@media (max-width: 720px) { .navbar :is(.nav-social a, .cart-link, .btn, .burger) { width: var(--ico); height: var(--ico); padding: 0; gap: 0; font-size: 17px; } }
.navbar :is(.nav-social, .cart-link, .btn) svg { width: 18px; height: 18px; }
.navbar :is(.cart-link, .btn, .burger, .nav-social a) { flex: 0 0 auto; }

/* Footer: the three columns stay side by side down to the phone layout, so "מידע" no longer drops to a row of its own. */
@media (min-width: 721px) and (max-width: 1050px) { .f .g { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; } }
@media (max-width: 720px) { .f :is(p, .bottom span) { text-wrap: balance; } }

/* lists that look like the sketch */
.strip, .proc { list-style: none; padding: 0; }
.season-wrap { display: block; }
.season-panel:not([hidden]) { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: stretch; }
@media (max-width: 1050px) { .season-panel:not([hidden]) { grid-template-columns: minmax(0, 1fr); } }
.tcard figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.c-form .lbl { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* cards */
.pc .pr { padding: 2px 8px 0; }
.pc .pr small, .facts .pr small { font-size: 12px; color: var(--ink-2); font-weight: 400; margin-inline-end: 4px; }
.pc .pr .demo-tag { margin-inline-start: 0; }
.av-out-of-stock { color: #9A4A3C; }
.av-made-to-order, .av-on-request { color: var(--gold-ink); }
.noimg { display: grid; place-content: center; text-align: center; gap: 4px; width: 100%; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--peach), var(--blush)); color: var(--gold-ink); border-radius: inherit; }
.noimg .en { font-size: clamp(18px, 2vw, 26px); letter-spacing: .08em; }
.noimg small { font-family: var(--hand); font-size: 14px; color: var(--ink-2); }
.noimg.big { aspect-ratio: 4 / 5; border-radius: var(--r); }
img.broken { visibility: hidden; }

/* catalog tools */
.ctools .seg { gap: 4px; }
.seg a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: .2s; white-space: nowrap; }
.ctools .seg a { border: 0; font-size: 15px; }
.seg a:hover { background: var(--peach); }
.seg a.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.ctools input[type="search"] { width: 190px; }
.ctools-go { padding: 9px 18px; }
.js .ctools-go { display: none; }
.res-count { text-align: center; color: var(--ink-2); font-size: 14px; margin: -14px 0 22px; }
.res-count a { text-decoration: underline; color: var(--ink); }
.nores-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .ctools { width: 100%; }
  .ctools .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; flex: 1 1 100%; }
  .ctools input[type="search"] { width: auto; flex: 1 1 100%; }
  .ctools select { flex: 1 1 40%; }
}

/* product page */
.pdp .stage { display: grid; gap: 14px; }
.stage-main { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: var(--r); display: block; width: 100%; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.thumb { border: 2px solid transparent; padding: 0; border-radius: 14px; overflow: hidden; background: var(--card); cursor: pointer; width: 72px; height: 72px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--ink); }
.pinfo { min-width: 0; }
.facts .pr { font-size: 15px; }
.buy { margin-top: 18px; }
.buy h2 { font-size: 34px; margin-bottom: 6px; }
.vgroup { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.vgroup legend { padding: 0; }
.vgroup legend span { color: var(--ink); }
.vopt { position: relative; }
.vopt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vopt span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: .2s; }
.vopt span small { color: var(--ink-2); font-size: 12px; }
.vopt input:checked + span { background: var(--ink); color: var(--card); border-color: var(--ink); }
.vopt input:checked + span small { color: var(--gold-2); }
.vopt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.vopt.off span { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; }
.vopt.off input { cursor: not-allowed; }
.sw { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); display: inline-block; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.buy-row .add { flex: 1 1 200px; padding-block: 15px; font-size: 16px; }
.qty { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--peach); font-size: 20px; line-height: 1; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; height: 32px; font-size: 17px; }
.qty .qv { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.hint { color: var(--ink-2); font-size: 14px; margin-top: 10px; }
.hint[data-added] { color: var(--ink); background: var(--peach); border-radius: 14px; padding: 10px 14px; }
.hint[data-added] a { text-decoration: underline; font-weight: 600; }
.disclaimer { font-size: 13px; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }
.disclaimer.warn { color: var(--gold-ink); }
.buy-alt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 1050px) { .pdp .stage { position: static; } }
@media (max-width: 720px) { .buy-row .qty { flex: 0 0 auto; } }

/* collections */
.colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; padding-bottom: 100px; }
.coll-card { position: relative; border-radius: var(--r); overflow: hidden; display: block; aspect-ratio: 4 / 3; background: var(--card); }
.coll-card img, .coll-card .noimg { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.coll-t { position: absolute; inset: auto 14px 14px; background: rgba(255,250,245,.92); border-radius: var(--r-s); padding: 14px 18px; display: grid; }
.coll-t small { font-family: var(--hand); color: var(--gold-ink); }
.coll-t b { font-family: var(--disp); font-weight: 400; font-size: 28px; line-height: 1.1; }
.coll-t span { font-size: 14px; color: var(--ink-2); }
.coll-hero { margin-top: 26px; border-radius: 40px; min-height: clamp(280px, 40vw, 460px); background: var(--coll-img, linear-gradient(160deg, var(--peach), var(--blush))) center / cover no-repeat; display: flex; align-items: flex-end; padding: clamp(16px, 3vw, 36px); }
.coll-glass { background: rgba(255,250,245,.86); backdrop-filter: blur(10px); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); max-width: 520px; }
.coll-glass .pre { font-family: var(--hand); color: var(--gold-ink); font-size: 20px; }
.coll-glass h1 { font-size: clamp(40px, 5vw, 72px); }
.coll-glass .sub { color: var(--ink-2); }
.coll-intro { text-align: center; font-size: clamp(20px, 2vw, 26px); max-width: 46ch; margin: 34px auto 36px; line-height: 1.6; }
.coll-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ink); color: var(--card); border-radius: var(--r); padding: 26px 32px; margin-bottom: 100px; }
.coll-cta p { font-family: var(--hand); font-size: 22px; }

/* cart */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 100px; }
.cart-side { position: sticky; top: 100px; }
.cart-side .paper { padding: 28px; }
.cart-side .paper::before { display: none; }
.send h2 { font-size: 32px; margin-bottom: 10px; }
.send label { display: block; font-size: 14px; color: var(--ink-2); margin: 10px 0 4px; }
.send input, .send textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 11px 14px; }
.send .btn { margin-top: 12px; }
.preview { margin-top: 12px; font-size: 14px; }
.preview summary { cursor: pointer; color: var(--ink-2); }
.preview .bub { max-width: 100%; margin: 10px 0 0; font-size: 14px; }
.cart-loading, .cart-empty { text-align: center; padding: 40px 20px; }
.cart-empty h2 { font-size: 44px; }
.cart-empty .hand { font-size: 20px; margin: 8px 0 20px; color: var(--ink-2); }
.cart-lines { list-style: none; padding: 0; display: grid; gap: 14px; }
.cline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto 44px; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 12px; }
.cline.is-off { background: #FBF3EC; }
.cline.is-off .cline-img { opacity: .55; }
.cline-img { display: block; border-radius: 18px; overflow: hidden; }
.cline-img img, .cline-img .noimg { width: 96px; height: 96px; object-fit: cover; aspect-ratio: 1; }
.cline-img .noimg small { display: none; }
.cline-name { font-family: var(--disp); font-size: 24px; line-height: 1.1; }
.cline-info .en { color: var(--ink-2); margin-inline-start: 8px; }
.cline-opts { font-size: 14px; color: var(--ink-2); }
.cline-note { font-size: 13px; color: var(--gold-ink); margin-top: 2px; }
.cline-note.warn { color: #9A4A3C; }
.cline-price { text-align: end; display: grid; font-variant-numeric: tabular-nums; min-width: 90px; }
.cline-price b { font-size: 18px; font-weight: 600; }
.cline-price small, .muted { color: var(--ink-2); font-size: 13px; }
.cline-rm { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.cline-rm:hover { background: var(--peach); color: var(--ink); }
.cline-rm svg { width: 20px; height: 20px; }
.cart-sum { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; display: grid; gap: 6px; }
.cart-sum .tot { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.cart-sum .tot b { font-family: var(--disp); font-weight: 400; font-size: 30px; font-variant-numeric: tabular-nums; }
@media (max-width: 1050px) { .cart { grid-template-columns: minmax(0, 1fr); } .cart-side { position: static; } }
@media (max-width: 720px) {
  .cline { grid-template-columns: 76px minmax(0, 1fr) 44px; grid-template-areas: "img info rm" "img qty price"; row-gap: 8px; }
  .cline-img { grid-area: img; align-self: start; }
  .cline-img img, .cline-img .noimg { width: 76px; height: 76px; }
  .cline-info { grid-area: info; } .cline-qty { grid-area: qty; } .cline-price { grid-area: price; min-width: 0; } .cline-rm { grid-area: rm; align-self: start; }
  .cline-name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm .lane, .names5 > div { animation: none !important; }
  .cart-count.bump { animation: none; }
}

/* order box on the product page keeps the sketch's dark "הודעה למירי" look */
.buy .vopt span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--card); }
.buy .vopt span small { color: rgba(255,250,245,.7); }
.buy .vopt input:checked + span { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.buy .vopt input:checked + span small { color: var(--gold-ink); }
.buy .vopt input { width: 100%; padding: 0; border: 0; border-radius: 999px; }
.buy .vgroup legend span { color: var(--card); opacity: 1; }
.buy .q { opacity: .8; }
.buy .qty { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.buy .qty button { background: rgba(255,255,255,.14); color: var(--card); }
.buy .qty input { color: var(--card); background: transparent; border: 0; padding: 0; width: 52px; border-radius: 0; }
.buy .add { background: linear-gradient(135deg, rgb(200, 155, 85), rgb(168, 122, 53)); color: #fff; }
.buy .add:hover { background: var(--gold-2); color: var(--ink); }
.buy .hint, .buy .disclaimer { color: rgba(255,250,245,.78); }
.buy .hint[data-added] { color: var(--ink); background: var(--peach); }
.buy :focus-visible { outline-color: var(--gold-2); }
.cline-price b, .cline-price small, .cart-sum .tot b { white-space: nowrap; }
/* equal columns even when a card has a long price line */
.cgrid, .fgrid, .rel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1050px) { .cgrid, .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cgrid, .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc .cap { gap: 6px; min-width: 0; }
.pc .cap b, .pc .cap .en { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
