/* Homepage QA fixes (owned by the homepage family).
   The combo styles live in @scope blocks inside index.html; scoped rules beat unscoped ones of equal
   specificity, so every rule here is anchored on #main / body[data-page] to win cleanly. */

/* footer sits flush under the beige FAQ band (no stray white strip) */
body[data-page="home"] .hm-footer{margin-top:0}

/* ---- category tiles ---- */
/* deals tile: the "N מבצעים פעילים" count overlapped the title -> becomes a small kicker above it */
#main .ct.deal .cnt{position:static;order:-1;margin:0 0 6px;font-size:14px;color:rgba(255,255,255,.8)}
/* deal rows are real links now: one line each, the price never breaks */
#main .ct.deal .dl a{gap:10px;align-items:baseline;min-height:40px;align-items:center}
#main .ct.deal .dl a>span{min-width:0;line-height:1.25;font-size:14px}
#main .ct.deal .dl a>b{white-space:nowrap;flex:none}
#main .ct.deal .dl a:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* the big "₪109" was clipped on laptop widths */
#main .ct.deal .num{font-size:clamp(96px,9.6vw,124px)}
/* small tiles: one line of sub-links, so bottles never sit on top of text */
#main .ct:not(.big):not(.deal) .subs{max-height:1.75em;overflow:hidden}
/* sub-links: comfortable tap height without moving the layout */
#main .ct .subs a{padding-block:10px;margin-block:-10px}

/* section links / tabs / arrows: 44px targets */
#main .sec-h .lnk{display:inline-flex;align-items:center;min-height:44px;padding-bottom:0}
#main .tabs button{height:44px}
#main .rnav .ar{width:44px;height:44px}
#main .rec .kb{min-height:44px}
#main .rec .kb:focus-visible{outline:3px solid #fff;outline-offset:2px}
#main .card .addbtn{min-height:44px}
#main .card .fav::after{content:"";position:absolute;inset:-6px}

@media (max-width:900px){
  /* tiles overlapped: fixed 250px rows but the big/deal tiles are taller */
  #main .cat-grid{grid-auto-rows:minmax(250px,auto)}
  #main .ct.deal{height:auto;min-height:230px}
  /* "-25%" sat on the left while the heading is right-aligned */
  #main .saleh .big{text-align:right;align-self:stretch}
  /* "לפי הרגע": heading first, then the photo, then the rows */
  #main .moments-in>div:first-child{display:contents}
  #main .moments-in .sec-h{order:-2}
  #main .moments-in .mphoto{order:-1}
  #main .moments-in #mrows{order:0}
}
@media (max-width:900px){
  #main .moments-in{gap:22px}
  #main .ct.deal .num{margin-bottom:76px}
}
/* tablet/mobile: the combo hid the 4 deal rows; they are the quickest way into each deal, so show them */
@media (max-width:1100px){
  #main .ct.deal .dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
  #main .ct.deal .num{font-size:96px;margin-bottom:72px;margin-top:22px}
}
@media (max-width:560px){
  #main .ct.deal .dl{grid-template-columns:1fr}
  #main .ct.deal .num{font-size:84px}
}
/* 901-1100: the combo left an empty cell and clipped the deals tile -> big wine tile spans all 3 rows, deals row grows */
@media (min-width:901px) and (max-width:1100px){
  #main .cat-grid{grid-template-rows:290px auto 290px}
  #main .ct.big{grid-row:span 3}
  #main .ct.big .bot{max-height:400px}
  #main .ct.deal{min-height:290px}
  #main .ct.deal .num{flex-direction:row;align-items:baseline;gap:10px;margin-bottom:76px}
}

/* =====================================================================
   2026-12-04 · homepage + deals fixes (persona walkthrough)
   ===================================================================== */

/* ---- category tiles: the whole tile is the link. The bottles and the arrow circle used to sit on top of
   a.hit (the bottle image swallowed the tap on mobile); now they let the tap through to the link. ---- */
#main .ct .bot,#main .ct .go{pointer-events:none}
#main .ct .hit{cursor:pointer}
#main .ct .hit:focus-visible{outline:3px solid var(--red);outline-offset:-3px;border-radius:24px}
#main .ct.deal .hit:focus-visible{outline-color:#fff}
#main .ct:has(.hit:focus-visible) .go{background:var(--red);color:#fff}
#main .ct.deal .num small{font-size:.3em;letter-spacing:.01em}

/* ---- intent chips (under the header search) ---- */
.hp-intents{position:relative;z-index:3;padding:14px var(--gut,16px) 4px}
.hp-int-in{max-width:1320px;margin:0 auto;display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.hp-intents a{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px 0 16px;border-radius:999px;background:#fff;
  box-shadow:inset 0 0 0 1.5px #e6dccd;font-weight:700;font-size:15.5px;color:#141414;text-decoration:none;transition:background .2s,box-shadow .2s,transform .25s cubic-bezier(.16,1,.3,1)}
.hp-intents a svg{width:20px;height:20px;flex:none;color:#A31D2B}
.hp-intents a:hover{background:#F6F1E9;box-shadow:inset 0 0 0 1.5px #141414;transform:translateY(-1px)}
.hp-intents a:focus-visible{outline:3px solid #A31D2B;outline-offset:2px}
.hp-intents a.deal{background:#A31D2B;color:#fff;box-shadow:none}
.hp-intents a.deal svg{color:#fff}
.hp-intents a.deal:hover{background:#8A1824}
@media (max-width:860px){
  .hp-intents{padding:10px 12px 2px}
  .hp-int-in{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
  .hp-intents a{height:auto;min-height:56px;flex-direction:column;justify-content:center;gap:3px;padding:7px 4px;border-radius:16px;font-size:13px;line-height:1.15;text-align:center}
  .hp-intents a svg{width:20px;height:20px}
}

/* ---- hero: calm rotation + clean crossfade ---- */
/* the incoming slide fades in over the outgoing one, which stays opaque underneath (.was) -> no muddy double image */
#pvHero .slide{visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s}
#pvHero .slide.on{visibility:visible;transition:opacity .9s ease,visibility 0s}
#pvHero .slide.was{visibility:visible;opacity:1;z-index:1;transition:none}
/* the outgoing text leaves first, the incoming text arrives after it: never two tags / two headlines at once */
#pvHero .slide .stext{transition:opacity .25s ease}
#pvHero .slide:not(.on) .stext{opacity:0}
#pvHero .slide.on .stext{opacity:1;transition:opacity .45s ease .4s}
/* the progress bar on the active dot is the timer (JS advances on animationend) */
#pvHero .dots button.on i{animation-duration:var(--hd,9s)}
#pvHero.hp-hold .dots button.on i{animation-play-state:paused}
#pvHero .hnav .pp{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92);color:#141414;display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.14);flex:none}
#pvHero .hnav .pp svg{width:10px;height:10px;fill:currentColor}
#pvHero .hnav .pp .i-play,#pvHero.hp-user .hnav .pp .i-pause{display:none}
#pvHero.hp-user .hnav .pp .i-play{display:block}
#pvHero .hnav .pp:focus-visible,#pvHero .hnav .arr:focus-visible,#pvHero .dots button.on::before{background:#fff}
#pvHero .dots button:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* "חוסכים עד ₪X" on the price sticker */
#pvHero .pricebox .sv{display:block;font-family:var(--body);font-weight:900;font-size:15px;line-height:1.1;letter-spacing:.01em;color:#fff;background:rgba(0,0,0,.22);border-radius:999px;padding:4px 12px;margin:2px 0 4px;white-space:nowrap}
@media (max-width:760px){#pvHero .pricebox .sv{font-size:12.5px;padding:3px 10px}}

/* ---- the marquees: slower, pause on hover/focus; desktop tape is static (it fits), reduced motion stops all ---- */
#pvHero .tape:hover .row,#pvHero .tape:focus-within .row{animation-play-state:paused}
/* Sharon 2026-12-04: the tape runs on desktop too (it was static here) */
#pvHero .tape .row{animation-duration:60s}
#k2 .mq-card .mq-track{animation-duration:110s}
#k2 .mq-card:hover .mq-track,#k2 .mq-card:focus-within .mq-track{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){
  #pvHero .dots button.on i{animation:none;transform:none}
  #pvHero .tape .row,#k2 .mq-card .mq-track{animation:none}
  #pvHero .slide img{transition:none}
}

/* ---- Mix&Match builder ---- */
#k2 #dealsSel .dl{position:relative}
#k2 #dealsSel .hp-best{position:absolute;top:-11px;inset-inline-start:14px;background:#D9BC8C;color:#141414;font-style:normal;font-weight:900;font-size:12.5px;line-height:1;border-radius:999px;padding:5px 10px;box-shadow:0 4px 12px rgba(60,0,10,.25)}
#k2 #dealsSel .hp-sv{display:inline-block;margin-top:6px;font-weight:900;font-size:13px;color:#D9BC8C}
#k2 #dealsSel .dl.on .hp-sv{color:#A31D2B}
#k2 #mmGrid>.hm-card{align-self:stretch;color:#141414}
#k2 #mmGrid .hm-card h3 a{color:#141414}
#k2 #mmGrid .hm-card{animation:k2-cardin .5s var(--ease) both}
#k2 #basket .slots{display:grid;grid-template-columns:repeat(var(--n,2),1fr);gap:8px;min-height:0}
#k2 #basket .slots.hp-s6{grid-template-columns:repeat(6,1fr);gap:6px}
#k2 #basket .slots.hp-s6 .slot{border-radius:10px;font-size:18px}
#k2 #basket .slots.hp-s6 .slot .x{width:24px;height:24px;top:-8px;left:-8px;font-size:13px}
#k2 #basket .slot{width:auto;height:auto;aspect-ratio:3/4}
#k2 #basket .slot .x{width:28px;height:28px;top:-9px;left:-9px;background:#141414;color:#fff;border:0;font-size:15px}
#k2 #basket .slot .x::after{content:"";position:absolute;inset:-8px}
#k2 #basket .slot.hp-pop{animation:k2-wig .6s var(--spring)}
#k2 #basket .msg{font-size:16px;line-height:1.35}
#k2 #basket .hp-sets{display:block;font-size:13px;font-weight:700;color:var(--muted);margin-top:4px}
#k2 #basket .tot s:empty{display:none}
#k2 #basket .btn{width:100%;white-space:normal;text-align:center;min-height:54px;height:auto;padding:10px 18px;line-height:1.2}
#k2 #basket .btn.hp-line{background:#fff;color:#141414;box-shadow:inset 0 0 0 2px #141414}
#k2 #basket .btn.hp-line:hover{background:#141414;color:#fff}
#k2 #basket .hp-note{font-size:13px;color:var(--muted);text-align:center;margin:10px 0 0;line-height:1.35}
@media (max-width:760px){
  #k2 #basket .slots{grid-template-columns:repeat(var(--n,2),54px);margin:4px 0}
  #k2 #basket .slots.hp-s6{grid-template-columns:repeat(6,minmax(0,40px));gap:5px}
  #k2 #basket .slots.hp-s6 .slot{font-size:15px;border-width:1.5px}
  #k2 #basket .slots.hp-s6 .slot .x{width:20px;height:20px;top:-7px;left:-7px;font-size:12px}
  #k2 #basket .slot .x{width:24px;height:24px;top:-8px;left:-8px}
  #k2 #basket #bact,#k2 #basket .hp-note{grid-column:1/-1}
  #k2 #basket .btn{min-height:46px;margin-top:6px;font-size:15.5px}
  #k2 #basket .hp-note{font-size:12px;margin-top:6px}
  #k2 #basket .hp-sets{font-size:12px}
  #k2 #dealsSel .hp-best{font-size:11.5px;top:-10px}
}

/* ---- "מה שותים הערב?" category tiles: living loops of the real bestsellers (img/home/cats/, see home.js catPhotos) ----
   Only the title + arrow sit on the tile (sub-links and counts removed). The key frame (<picture>) is the poster; the
   <video> fades in over it once it actually plays. A soft cream veil keeps the title readable over the calm top wall. */
#main .ct.hp-photo{background:#e9dcc6}
#main .ct.hp-photo .subs,#main .ct.hp-photo .cnt{display:none}
#main .ct .hp-ctph{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
#main .ct .hp-ctph picture{position:absolute;inset:0}
#main .ct .hp-ctph img,#main .ct .hp-ctph video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%;transform-origin:50% 90%;transition:transform 1.1s var(--out,cubic-bezier(.2,.8,.2,1)),opacity .7s ease}
#main .ct .hp-ctph video{opacity:0}
#main .ct .hp-ctph video.on{opacity:1}
#main .ct .hp-ctph::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(246,240,231,.9) 0,rgba(246,240,231,.6) 22%,rgba(246,240,231,0) 44%)}
#main .ct.hp-photo:hover .hp-ctph img,#main .ct.hp-photo:hover .hp-ctph video{transform:scale(1.035)}
/* small tiles: the 3:4 frame is taller than the tile; keep the products' feet in frame and the top wall under the title */
#main .ct.hp-photo:not(.big) .hp-ctph :is(img,video){object-position:50% 30%}
#main .ct.hp-photo h3{position:relative;z-index:2;pointer-events:none}
#main .ct.hp-photo .go{box-shadow:0 4px 14px rgba(60,30,10,.16)}
@media (max-width:1100px){#main .ct.hp-photo:not(.big) .hp-ctph :is(img,video){object-position:50% 62%}}
@media (max-width:900px){#main .ct.hp-photo:not(.big) .hp-ctph :is(img,video){object-position:50% 100%}}
@media (max-width:900px){
  /* wine becomes a full-width ~square tile: wide frame, bottles + glass across, title over the calm top-right wall */
  #main .ct.big.hp-photo .hp-ctph :is(img,video){object-position:30% 100%}
  #main .ct.big.hp-photo .hp-ctph::after{background:radial-gradient(120% 60% at 100% 0,rgba(246,240,231,.85) 0,rgba(246,240,231,.45) 40%,rgba(246,240,231,0) 70%)}
}
@media (prefers-reduced-motion:reduce){#main .ct .hp-ctph :is(img,video){transition:none}#main .ct.hp-photo:hover .hp-ctph :is(img,video){transform:none}}
/* 901-1100: the wine tile is ~1:2.7 tall; a cover crop would cut the outer bottles, so the frame keeps its full width at
   the bottom and the tile above it takes the frame's wall tone (the top edge is faded into it) */
@media (min-width:901px) and (max-width:1100px){
  #main .ct.big.hp-photo{background:#d9c6a6}
  #main .ct.big.hp-photo .hp-ctph :is(img,video){top:auto;bottom:0;left:0;height:auto;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%);mask-image:linear-gradient(180deg,transparent 0,#000 14%)}
}

/* =====================================================================================================
   PANEL 2026-12-04 · expert panel round (content truth, Hanukkah, first screen, a11y, perf)
   ===================================================================================================== */

/* ---- hero frame + slides ---- */
#pvHero{--hd:5s}
#pvHero .hero{padding-bottom:0}
#pvHero .slide picture{position:absolute;inset:0;display:block}
#pvHero .slide .hp-sa{position:absolute;inset:0;display:block;color:inherit;text-decoration:none;border-radius:inherit}
#pvHero .slide .hp-sa:focus-visible{outline:3px solid #fff;outline-offset:-8px;border-radius:24px}
/* the combo put a WHITE glow behind white headlines (it lowered their contrast) */
#pvHero .slide .stext h2{text-shadow:0 2px 26px rgba(20,12,10,.28)}
#pvHero .slide.light .stext h2{text-shadow:none}
#pvHero .slide .stext p{text-wrap:pretty}

/* Hanukkah (slide 1, static HTML): the limestone wall carries the text, so no veil at any width */
#pvHero .slide.hk::before{display:none}
#pvHero .slide.hk .stext{max-width:520px}
#pvHero .hk .stext h2 em{font-style:normal;color:var(--red)}
/* Hebrew kickers ("מיקס אנד מץ׳", "חנוכה שמח · נר ראשון"): the body face, no Latin tracking */
#pvHero .stext .kick{display:inline-block;font-family:var(--body);font-weight:900;font-size:15px;letter-spacing:.01em;line-height:1.2;padding:6px 12px 5px}
#pvHero .hk-cut{display:flex;align-items:center;gap:8px;margin-top:14px;min-height:1.5em;font-size:16.5px!important;font-weight:700;color:var(--ink)}
#pvHero .hk-cut svg{width:22px;height:22px;flex:none;color:var(--red)}
#pvHero .hk-cut bdi{white-space:nowrap}
#pvHero .hk-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
#pvHero .hk-ctas .cta{margin-top:0}
#pvHero .slide.light .stext .cta.hk-2{background:rgba(255,255,255,.55);color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
#pvHero .stext .cta:focus-visible{outline:3px solid var(--red);outline-offset:3px}

/* the price-badge smile: one stroke drawn end to end (full dasharray, round caps), the end dots fade in after it;
   nothing scales from 0, so it never shows as a blob mid-draw. Static under reduced motion. */
#pvHero .hp-smd svg{display:block;width:100%;height:auto;overflow:visible}
#pvHero .hp-smd path{fill:none;stroke:#fff;stroke-width:120;stroke-linecap:round;stroke-dasharray:1 1.2;stroke-dashoffset:1.1}
#pvHero .hp-smd circle{fill:#fff;opacity:0}
#pvHero .hp-smd.in path{stroke-dashoffset:0;transition:stroke-dashoffset .85s cubic-bezier(.65,0,.35,1)}
#pvHero .hp-smd.in circle{opacity:1;transition:opacity .25s ease .72s}
@media (prefers-reduced-motion:reduce){#pvHero .hp-smd path{stroke-dashoffset:0;transition:none}#pvHero .hp-smd circle{opacity:1;transition:none}}

/* ---- carousel controls: 44px targets, a pill so the bars read on light and dark photos ---- */
#pvHero .hnav{display:flex;align-items:center;gap:2px;background:rgba(20,12,10,.34);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:999px;padding:0 4px 0 6px}
#pvHero .dots{gap:0}
#pvHero .dots button{position:relative;width:44px;height:44px;background:none;box-shadow:none;border-radius:0;overflow:visible;cursor:pointer}
#pvHero .dots button::before{content:"";position:absolute;inset:20px 7px auto;height:4px;border-radius:2px;background:rgba(255,255,255,.55)}
#pvHero .dots button i{position:absolute;inset:20px 7px auto;height:4px;border-radius:2px}
#pvHero .dots button.on i{inset:20px 7px auto;height:4px}
#pvHero .dots button.on::before{background:#fff}
#pvHero .dots button:focus-visible{outline:2px solid #fff;outline-offset:-6px;border-radius:10px}
#pvHero .hnav .pp{position:relative;width:32px;height:32px;margin:6px}
#pvHero .hnav .pp::after{content:"";position:absolute;inset:-6px}
#pvHero .hnav .pp svg{width:11px;height:11px}
#pvHero .hnav .arr{flex:none}
/* the active bar is the timer: it (and so the rotation) pauses on hover, keyboard focus, the pause button and off-screen */
#pvHero:hover .dots button.on i,#pvHero:focus-within .dots button.on i,#pvHero.hp-user .dots button.on i,#pvHero.hp-off .dots button.on i{animation-play-state:paused}
#pvHero.hp-user .dots button.on i{animation-play-state:paused}

/* ---- trust strip (was the moving tape): static, real numbers, each claim links to its proof ---- */
#pvHero .tape.hp-trust{margin-top:14px;color:var(--ink);-webkit-mask-image:none;mask-image:none}
#pvHero .hp-trust .row{list-style:none;margin:0;padding:6px 0;animation:none!important;width:auto;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0}
#pvHero .hp-trust li{display:flex;align-items:center;font-family:var(--body);font-weight:700;font-size:17px;letter-spacing:0;line-height:1.3;white-space:nowrap}
#pvHero .hp-trust li+li::before{content:"";flex:none;width:24px;height:11px;margin-inline:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -6 1000 420'%3E%3Cpath d='M80 80 C 210 390, 790 390, 920 80' fill='none' stroke='%23a31d2b' stroke-width='120' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='80' r='76' fill='%23a31d2b'/%3E%3Ccircle cx='920' cy='80' r='76' fill='%23a31d2b'/%3E%3C/svg%3E") no-repeat center/contain}
#pvHero .hp-trust a{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:inherit;text-decoration:none;border-radius:8px}
#pvHero .hp-trust a:hover{color:var(--red)}
#pvHero .hp-trust a:focus-visible{outline:2px solid var(--red);outline-offset:2px}
#pvHero .hp-trust .st{color:#D49A1F;font-size:1.1em}

/* the empty cream band under the strip: the next section starts right after it */
#main #cats{padding-top:clamp(28px,3vw,44px)}

/* ---- tablet 601–860: the desktop layout (text beside the bottles, no veil over them), a shorter frame ---- */
@media (min-width:601px) and (max-width:860px){
  #pvHero .slides{height:auto;aspect-ratio:1.85;min-height:400px;max-height:none}
  #pvHero .slide img{object-position:left center}
  #pvHero .stext{top:50%;bottom:auto;left:auto;right:26px;transform:translateY(-50%);max-width:min(380px,48%)}
  #pvHero .stext h2{font-size:clamp(38px,6vw,50px)}
  #pvHero .stext p{font-size:16px}
  #pvHero .slide::before{background:linear-gradient(270deg,rgba(20,12,10,.74) 0%,rgba(20,12,10,.42) 40%,rgba(20,12,10,0) 64%)}
  #pvHero .slide.light::before{display:none}
  #pvHero .slide.bdb::before{display:block;background:linear-gradient(270deg,rgba(251,247,241,.55) 0%,rgba(251,247,241,0) 50%)}
  #pvHero .pricebox{margin-top:10px}
  #pvHero .hk-ctas .cta{padding:11px 16px;font-size:15px}
  #pvHero .hk-cut{font-size:15px!important}
}

/* ---- phone ≤600: about 70svh so the "מה שותים הערב?" tiles peek; light photos get a real bottom scrim ---- */
@media (max-width:600px){
  #pvHero .slides{height:min(62svh,540px);min-height:440px;max-height:none}
  #pvHero .slide::before,#pvHero .slide.light:not(.hk)::before{background:linear-gradient(0deg,rgba(20,12,10,.9) 0%,rgba(20,12,10,.78) 34%,rgba(20,12,10,.38) 56%,rgba(20,12,10,0) 74%)}
  #pvHero .slide.light:not(.hk) .stext{color:#fff}
  #pvHero .slide.light:not(.hk) .stext h2{text-shadow:0 2px 26px rgba(20,12,10,.3)}
  #pvHero .slide.light:not(.hk) .stext .cta{background:#fff;color:var(--ink)}
  #pvHero .stext h2{font-size:44px}
  #pvHero .stext p{font-size:15.5px;line-height:1.45}
  #pvHero .pricebox{margin-top:8px}
  #pvHero .pricebox b{font-size:36px}
  /* Hanukkah: the 800w crop keeps the gift + menorah on top and a clean limestone table below for the text */
  #pvHero .slide.hk img{object-position:50% 0;top:-3%!important;height:106%!important}
  #pvHero .hk .stext h2{font-size:38px;margin:8px 0 4px}
  #pvHero .hk .stext p:not(.hk-cut){display:none}
  #pvHero .stext .kick{font-size:13.5px;padding:5px 10px 4px}
  #pvHero .hk-cut{font-size:14px!important;margin-top:8px;align-items:flex-start}
  #pvHero .hk-cut svg{width:19px;height:19px;margin-top:1px}
  #pvHero .hk-ctas{gap:8px;margin-top:12px}
  #pvHero .hk-ctas .cta{padding:11px 16px;font-size:15px}
  /* controls move to the top corner on phones, so the copy gets the bottom of the frame */
  #pvHero .hnav{top:10px;bottom:auto;left:10px;right:auto}
  #pvHero .stext,#pvHero .slide.hk .stext{bottom:20px}
  #pvHero .tape.hp-trust{margin-top:8px}
  #pvHero .hp-trust .row{padding:2px 4px}
  #pvHero .hp-trust li{font-size:14px}
  #pvHero .hp-trust li:nth-child(3){display:none}   /* the header bar already says "משלוח חינם לכל הארץ"; one line here */
  #pvHero .hp-trust li+li::before{width:16px;height:8px;margin-inline:10px}
  /* the tiles peek above the fold: one-line heading, the counts line moves under the grid's first look */
  #main #cats{padding-top:18px}
  #main #cats .sec-h{margin-bottom:12px}
  #main #cats .sec-h h2{font-size:40px;line-height:1}
  #main #cats .sec-h h2{display:flex;flex-wrap:wrap;column-gap:.22em}
  #main #cats .sec-h p{display:none}
  #pvHero .hp-trust a{min-height:36px}
}
@media (max-width:374px){#pvHero .hp-trust li:nth-child(2) a{font-size:0}#pvHero .hp-trust li:nth-child(2) a::after{content:"בשוק מחנה יהודה";font-size:13.5px}}

/* ---- category tiles: the grid is drawn by script; reserve its final height so nothing jumps ---- */
#main #catGrid:empty{min-height:610px}
@media (min-width:901px) and (max-width:1100px){#main #catGrid:empty{min-height:906px}}
@media (max-width:900px){#main #catGrid:empty{min-height:1300px}}

/* ---- "מבצעי השבוע": the headline is the MAXIMUM discount, so it says "עד" (small, stacked) ---- */
#main .saleh .big{display:inline-flex;flex-direction:column;align-items:flex-end;align-self:end}
#main .saleh .big small{font-family:var(--body);font-weight:900;font-size:max(22px,.2em);line-height:1;letter-spacing:0;margin:0 .1em .12em 0;color:var(--ink)}
#main .saleh .big bdi{display:block}
@media (max-width:900px){#main .saleh .big{align-self:flex-start;align-items:flex-start;direction:rtl}}

/* ---- reviews: Hebrew quotes, clamped by CSS (no mid-word "…" from script), chip = the catalog product ---- */
#main .qt q{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;quotes:"״" "״";unicode-bidi:plaintext}
#main .qt q::before{content:open-quote}
#main .qt q::after{content:close-quote}
#main .qt .pb span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:22ch}
#main .qt .pb img.wb{mix-blend-mode:multiply}

/* ---- the market band: real illustration (contact page), 3 true proof points, gold thread ending in a smile ---- */
#main .hp-shuk{position:relative;background:#F4ECDD;overflow:hidden;padding-block:clamp(48px,6vw,88px) clamp(80px,8vw,120px)}
#main .hp-shuk-in{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(28px,4vw,64px);align-items:center}
#main .hp-shuk-ill{margin:0;border-radius:26px;overflow:hidden;box-shadow:0 30px 60px rgba(92,15,25,.16);background:#fff;aspect-ratio:1344/576}
#main .hp-shuk-ill img{display:block;width:100%;height:100%;object-fit:cover}
#main .hp-kick{display:inline-block;color:var(--red);font-weight:900;font-size:15px;letter-spacing:.02em}
#main .hp-shuk h2{font-family:var(--tz,var(--disp));font-weight:900;font-size:clamp(42px,4.4vw,66px);line-height:.95;margin:10px 0 22px;color:var(--ink)}
#main .hp-shuk h2 em{font-style:normal;color:var(--red);white-space:nowrap}
#main .hp-shuk-pts{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:14px}
#main .hp-shuk-pts li{display:flex;gap:14px;align-items:flex-start}
#main .hp-shuk-pts .ic{flex:none;width:46px;height:46px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--red);box-shadow:0 6px 16px rgba(92,15,25,.08)}
#main .hp-shuk-pts .ic svg{width:24px;height:24px}
#main .hp-shuk-pts b{display:block;font-size:18px;font-weight:900;line-height:1.25}
#main .hp-shuk-pts li span:not(.ic){display:block;color:var(--muted);font-size:15.5px;line-height:1.4}
#main .hp-shuk-cta{display:flex;flex-wrap:wrap;gap:10px}
#main .hp-shuk-cta .btn.hp-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
#main .hp-shuk-cta .btn.hp-line:hover{background:var(--ink);color:#fff}
#main .hp-shuk-th{position:absolute;left:0;right:0;bottom:6px;width:100%;height:auto;pointer-events:none;overflow:visible}
#main .hp-shuk-th path{fill:none;stroke:#C9A56E;stroke-linecap:round;vector-effect:non-scaling-stroke}
#main .hp-shuk-th .ln{stroke-width:2}
#main .hp-shuk-th .sm{stroke-width:4.5}
#main .hp-shuk-th circle{fill:#C9A56E}
@media (max-width:900px){
  #main .hp-shuk-in{grid-template-columns:1fr;gap:24px}
  #main .hp-shuk h2{font-size:40px}
  #main .hp-shuk-th{width:220%;left:auto;right:-6%;bottom:0}
}

/* ---- brands marquee: pause button + pause on focus; clone set is inert (built in _build_index.py) ---- */
#k2 .mq-card .hp-mqpp{position:absolute;z-index:3;left:16px;top:50%;margin-top:-18px;width:36px;height:36px;border-radius:50%;background:#141414;color:#fff;display:grid;place-items:center;opacity:.86;transition:opacity .2s;box-shadow:0 0 0 10px #fff,14px 0 26px 14px #fff}
#k2 .mq-card .hp-mqpp::after{content:"";position:absolute;inset:-4px}
#k2 .mq-card .hp-mqpp:hover,#k2 .mq-card .hp-mqpp:focus-visible{opacity:1}
#k2 .mq-card .hp-mqpp:focus-visible{outline:2px solid #A31D2B;outline-offset:2px}
#k2 .mq-card .hp-mqpp svg{width:11px;height:11px;fill:currentColor}
#k2 .mq-card .hp-mqpp .i-play,#k2 .mq-card .hp-mqpp[aria-pressed="true"] .i-pause{display:none}
#k2 .mq-card .hp-mqpp[aria-pressed="true"] .i-play{display:block}
#k2 .mq-card.hp-paused .mq-track{animation-play-state:paused}
#k2 .mq-card .mq-track a:focus-visible{outline:2px solid #A31D2B;outline-offset:4px;border-radius:6px}

/* ---- infinite animations stop while off-screen (pages/home.js toggles .hp-off) ---- */
#k2 .mq-card.hp-off .mq-track,#pick.hp-off .ringd,#pick.hp-off *{animation-play-state:paused!important}

/* ---- club card: the reveal animates transform only (was width) ---- */
#main #ccard .bar i{width:100%!important;transform:scaleX(0);transform-origin:right center;transition:transform 1.4s var(--out,cubic-bezier(.2,.8,.2,1)) .3s}
#main #ccard.in .bar i{transform:scaleX(.72)}

/* ---- below the fold: skip rendering work until near the viewport ---- */
#main :is(#moments,#sale,#reviews,#shuk,#recipes,#club,#close){content-visibility:auto;contain-intrinsic-size:auto var(--hp-ci,800px)}
/* placeholder heights ≈ the real ones, so anchors and the scrollbar barely move when a block renders */
#main #moments{--hp-ci:760px}#main #sale{--hp-ci:900px}#main #reviews{--hp-ci:520px}#main #shuk{--hp-ci:470px}#main #recipes{--hp-ci:590px}#main #club{--hp-ci:530px}#main #close{--hp-ci:650px}
@media (max-width:900px){#main #moments{--hp-ci:880px}#main #sale{--hp-ci:970px}#main #reviews{--hp-ci:1000px}#main #shuk{--hp-ci:600px}#main #recipes{--hp-ci:715px}#main #club{--hp-ci:725px}#main #close{--hp-ci:1080px}}

/* ---- the gold thread: its box is main's box from the first paint (it was 300×150, then resized to the page) ---- */
#main>svg.thread{inset:0;width:100%!important;height:100%!important}

/* ---- best sellers on mobile (fix-home H4): the tabs wrap and centre, no clipped scroll strip ("חדש" was cut at 390px) ---- */
@media (max-width:760px){
  #main #btabs{flex-wrap:wrap;justify-content:center;overflow:visible;gap:8px;row-gap:8px}
  #main #btabs button{flex:none;height:44px;padding:0 18px;box-shadow:inset 0 0 0 1.5px var(--line)}
  #main #btabs button.on{box-shadow:none}
}

/* ---- member bar: "ההזמנה האחרונה · להזמין שוב" (one factual row) ---- */
#meBar .hp-again{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:4px 14px 4px 6px;margin-inline-start:auto;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px #e6dccd;font-size:15px;color:#141414;cursor:pointer}
#meBar .hp-again:hover{box-shadow:inset 0 0 0 1.5px #141414}
#meBar .hp-again:focus-visible{outline:2px solid #A31D2B;outline-offset:2px}
#meBar .hp-again b{color:#A31D2B;font-weight:900}
#meBar .hp-again .th{display:inline-flex}
#meBar .hp-again .th img{width:22px;height:32px;object-fit:contain;margin-inline-start:-6px}
#meBar .hp-again .th img:first-child{margin-inline-start:0}
#meBar .hp-again .th img.wb{mix-blend-mode:multiply}
#meBar .hp-again{white-space:nowrap}
@media (max-width:760px){#meBar .hp-again{margin-inline-start:auto;font-size:14px;padding:3px 12px 3px 6px;min-height:36px}#meBar .hp-again .l{display:none}#meBar .hp-again .th img:nth-child(3){display:none}}
/* phone: the first row of tiles is part of the first screen, so it is visible as soon as it peeks (no reveal fade) */
@media (max-width:600px){#main #catGrid .ct.rv{opacity:1;transform:none;transition:none}}

/* =====================================================================================================================
   fix-home 2026-12-04 (review round): H6 Mix&Match basket, H8 contrast, H3 member club.
   ===================================================================================================================== */
/* H8: the moments step numbers 01–05 on cream: darker gold (2.58:1 -> 5:1) */
#main #moments .mrow .n{color:#8A6A3A}

/* H6: empty basket shows the deal, not a big ₪0 */
#k2 #basket #btot.hp-deal{font-size:clamp(22px,2.2vw,28px);color:#141414}
#k2 #basket .hp-bsum{display:none}

/* H6 phone: a ~60px bar fixed to the bottom while the builder is on screen; tap the summary to open the full basket */
@media (max-width:760px){
  #k2 #mmGrid>#basket{position:fixed;top:auto;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:70;margin:0;
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;padding:8px 8px 8px 8px;border-radius:20px;
    box-shadow:0 14px 40px rgba(20,0,5,.35),0 0 0 1px rgba(20,20,20,.06);max-height:calc(100dvh - 120px);overflow:auto;
    transform:translateY(calc(100% + 24px));visibility:hidden;transition:transform .35s cubic-bezier(.2,.8,.2,1),visibility 0s linear .35s}
  html.hp-mmvis #k2 #mmGrid>#basket{transform:none;visibility:visible;transition:transform .35s cubic-bezier(.2,.8,.2,1),visibility 0s}
  #k2 #basket .hp-bsum{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 10px;border-radius:14px;text-align:start;color:#141414;font-size:15px;line-height:1.2;grid-column:1;grid-row:1}
  #k2 #basket .hp-bsum .c{font-weight:900;white-space:nowrap}
  #k2 #basket .hp-bsum .d{color:#A31D2B;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #k2 #basket .hp-bsum .d::before{content:"·";color:#9a8f80;margin-inline-end:8px}
  #k2 #basket .hp-bsum .ch{width:9px;height:9px;flex:none;margin-inline-start:auto;border:solid #141414;border-width:2px 2px 0 0;transform:rotate(-45deg) translateY(2px);transition:transform .25s}
  #k2 #basket.hp-open .hp-bsum .ch{transform:rotate(135deg) translateY(2px)}
  #k2 #basket .hp-bsum:focus-visible{outline:2px solid #A31D2B;outline-offset:2px}
  #k2 #basket #badd{grid-column:2;grid-row:1;width:auto;min-height:46px;margin:0;padding:0 18px;font-size:0;white-space:nowrap;gap:0}
  #k2 #basket #badd>*{display:none}
  #k2 #basket #badd::before{content:"הוספה לסל";font-size:15px;line-height:1}
  #k2 #basket.hp-open>.bt span{display:none}
  #k2 #basket:not(.hp-open)>:is(.bt,.slots,.meter,.msg,.tot){display:none}
  #k2 #basket.hp-open>:is(.bt,.slots,.meter,.msg,.tot){grid-column:1/-1}
  #k2 #basket.hp-open>.bt{grid-row:2;margin-top:8px;padding:0 10px}
  #k2 #basket.hp-open>.slots{grid-row:3;padding:0 10px}
  #k2 #basket.hp-open>.meter{grid-row:4;margin:8px 10px 0}
  #k2 #basket.hp-open>.msg{grid-row:5;padding:0 10px}
  #k2 #basket.hp-open>.tot{grid-row:6;padding:0 10px 6px}
  /* the builder's .wrap is a stacking context (z-index:2): lift it while the bar is up, so the brands card below can't cover the bar */
  html.hp-mmvis #k2 .wrap:has(>#mmGrid),html.hp-mmvis #k2 .wrap:has(#mmGrid){z-index:30}
  #k2 #mmGrid{padding-bottom:12px}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){#k2 #mmGrid>#basket,html.hp-mmvis #k2 #mmGrid>#basket{transition:none}}

/* H3: member club column (no perks list): keep the CTA's breathing room */
#main #club .hp-member>a.btn{margin-top:24px}

/* H7 phone: the card grows with its content (the red progress strip was clipped by the fixed aspect ratio) and the
   smile moves to the bottom-left corner at 64px, clear of the big number */
@media (max-width:600px){
  #main #ccard{aspect-ratio:auto;min-height:200px;padding:22px 22px 24px;gap:14px}
  #main #ccard .pts b{font-size:clamp(64px,19vw,84px)}
  #main #ccard .sm{left:18px;right:auto;bottom:20px;width:64px}
  #main #ccard .pts small:last-of-type{display:block;padding-inline-end:76px}
  #main #ccard .bar{width:calc(100% - 84px)}
}

/* =====================================================================================================================
   fix-home 2026-12-05 (Sharon): wine picker bottle on phones + club login for guests.
   ===================================================================================================================== */
/* Picker bottle: a fixed box (object-fit:contain) instead of a fixed height with free width, so every bottle keeps its real
   aspect ratio and a wide or short image can never spill out. Desktop: the box is wider than any current bottle and the
   image is pinned bottom-left, so the desktop look is unchanged. */
#pick .stage .bt{width:240px;max-width:none;object-fit:contain;object-position:0 100%}
/* ≤900px (single column, the stage above the text): bottle + porthole are one centred composition sized from the viewport.
   --ps porthole size, --bw bottle box width, --W composition width (the bottle overlaps the porthole by 34px).
   Everything sits inside the stage box (height = porthole + 130px), so nothing can reach the heading, chips or list below. */
@media (max-width:900px){
  #pick .stage{--ps:min(270px,66vw);--bw:132px;--W:calc(var(--bw) + var(--ps) - 34px);height:calc(var(--ps) + 130px)}
  #pick .porthole{width:var(--ps);height:var(--ps);top:58px;margin-top:0;left:auto;right:calc(50% - var(--W) / 2)}
  #pick .ringd{width:calc(var(--ps) + 60px);height:calc(var(--ps) + 60px);top:28px;margin-top:0;left:auto;right:calc(50% - var(--W) / 2 - 30px)}
  #pick .stage .bt{left:calc(50% - var(--W) / 2);bottom:20px;width:var(--bw);height:calc(var(--ps) + 70px);object-position:50% 100%}
  #pick .stage .lbl{top:12px;left:auto;right:calc(50% - var(--W) / 2);max-width:calc(var(--ps) - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Club: "כבר חברים? התחברות" next to the join CTA for guests (data-hm-auth → the kit auth sheet); members don't see it */
#main #club .hp-login{display:inline-block;vertical-align:middle;margin-inline-start:22px;font-size:16px;color:var(--muted)}
#main #club .hp-login a{display:inline-block;padding:12px 2px;color:var(--ink);font-weight:800;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px;transition:color .2s}
#main #club .hp-login a:hover{color:var(--red)}
#main #club .hp-login a:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:4px}
#main #club .hp-member .hp-login{display:none}
@media (max-width:600px){#main #club .hp-login{display:block;margin:10px 0 0}}

/* Hero controls on phones (Sharon 2026-12-05): no pill over the photo. Swipe changes the slide (pages/home.js); small
   progress dashes are centred UNDER the photo on the cream band, with a quiet pause button beside them (WCAG 2.2.2).
   No arrows on phones. Works for any number of slides (one dash per slide, built by the combo script). */
/* the swipe belongs to the carousel: no browser back/forward gesture, vertical scroll and pinch stay native */
#pvHero .slides{touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain}
@media (max-width:760px){
  #pvHero .hnav{position:relative;inset:auto;top:auto;right:auto;bottom:auto;left:auto;z-index:1;display:flex;justify-content:center;align-items:center;gap:6px;width:max-content;max-width:100%;margin:6px auto 0;padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0;box-shadow:none}
  #pvHero .hnav .arr{display:none}
  #pvHero .dots{gap:0;flex-wrap:nowrap}
  #pvHero .dots button{width:30px;height:32px;padding:0;background:none}
  #pvHero .dots button::before,#pvHero .dots button i,#pvHero .dots button.on i{inset:14px 5px auto;height:4px;border-radius:2px}
  #pvHero .dots button::before,#pvHero .dots button.on::before{background:rgba(20,20,20,.16);box-shadow:none}
  #pvHero .dots button:focus-visible{outline:2px solid var(--red);outline-offset:-4px;border-radius:8px}
  #pvHero .hnav .pp{order:9;width:28px;height:28px;margin:0 0 0 2px;background:transparent;color:#141414;box-shadow:inset 0 0 0 1.5px rgba(20,20,20,.22)}
  #pvHero .hnav .pp svg{width:9px;height:9px}
  #pvHero .hnav .pp:focus-visible{background:transparent;outline:2px solid var(--red);outline-offset:2px}
  #pvHero .tape.hp-trust{margin-top:2px}
}

/* Reviews block (2026-12-05): each customer photo tile links to its product; the link fills the polaroid frame */
#main #reviews .ugc figure>a{display:block;width:100%;height:100%;border-radius:0;overflow:hidden;position:static}
#main #reviews .ugc figure>a::after{display:none}
#main #reviews .ugc figure>a:focus-visible{outline:2px solid var(--red);outline-offset:3px}
/* Google review attribution inside a quote card (2026-12-05) */
#main #reviews .qt .who .gsrc{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:inherit;text-decoration:none;white-space:nowrap}
#main #reviews .qt .who .gsrc:hover{text-decoration:underline}
#main #reviews .qt .who .gsrc .gg{display:inline-block;flex:none;width:14px;height:14px}
