/* Cortez Next — language switcher for 7 languages (owner 25/11: "make the switcher fit many languages").
   One dropdown in the header actions: globe + current code + chevron. Desktop: a 248px panel under the button.
   Phones: the button is a round header icon with a code badge, the panel becomes a full-width sheet in 2 columns.
   The mobile drawer lists the languages in a 2-column grid. Each link carries its own lang/dir so names render natively. */
.czl{position:relative;flex:0 0 auto}
.czl-b{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);font:700 13px/1 "Heebo","Noto Sans Arabic","Noto Sans SC","Noto Sans Thai","Noto Sans",system-ui,sans-serif;letter-spacing:.02em;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}
.czl-b::-webkit-details-marker{display:none}
.czl-b:hover,.czl[open] .czl-b{background:rgba(255,255,255,.16);color:#fff}
.czl-b b{font-weight:800}
.czl-cv{opacity:.7;transition:transform .2s}
.czl[open] .czl-cv{transform:rotate(180deg)}
.czl-b:focus-visible,.czl-p a:focus-visible,.czlang-d a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.czl-p{position:absolute;top:calc(100% + 10px);inset-inline-end:0;z-index:300;width:248px;max-height:min(70vh,460px);overflow:auto;padding:8px;border-radius:16px;background:#17171b;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:2px;animation:czl-in .16s ease-out}
@keyframes czl-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.czl-h{display:flex;align-items:center;gap:8px;margin:2px 6px 6px;padding:0 0 8px;border-bottom:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.6);font:700 12px/1.2 "Heebo","Noto Sans Arabic","Noto Sans SC","Noto Sans Thai","Noto Sans",system-ui,sans-serif;text-transform:uppercase;letter-spacing:.06em}
.czl-p a,.czlang-d a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:#fff;text-decoration:none;font:600 15px/1.2 "Heebo","Noto Sans Arabic","Noto Sans SC","Noto Sans Thai","Noto Sans",system-ui,sans-serif;transition:background .12s}
.czl-p a:hover{background:rgba(255,255,255,.08)}
.czl-p a[aria-current],.czlang-d a[aria-current]{background:#e30613;color:#fff}
.czl-c{font:700 11px/1 "Heebo","Noto Sans SC","Noto Sans Thai",system-ui,sans-serif;color:rgba(255,255,255,.5);letter-spacing:.04em}
.czl-ck{flex:0 0 auto}

/* drawer (mobile menu): 2-column grid */
.czlang-d{padding:14px 16px;border-top:1px solid rgba(255,255,255,.1)}
.czlang-d .czl-h{margin:0 0 10px;padding:0;border:0}
.czlang-d>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.czlang-d a{border:1px solid rgba(255,255,255,.18);border-radius:12px;font-size:14px}
.czlang-d a[aria-current]{border-color:#e30613}

@media (max-width:760px){
.hact{gap:8px!important}
.czl-b{width:44px;padding:0;justify-content:center;position:relative;border-radius:50%}
.czl-b .czl-cv{display:none}
.czl-b b{position:absolute;bottom:-3px;inset-inline-start:-4px;min-width:18px;height:16px;padding:0 4px;border-radius:999px;background:#e30613;color:#fff;font:800 9px/16px "Heebo","Noto Sans Arabic","Noto Sans SC","Noto Sans Thai",system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #17171b;white-space:nowrap}
.czl-p{position:fixed;top:72px;left:12px;right:12px;width:auto;max-height:calc(100vh - 96px);display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px}
.czl-p .czl-h{grid-column:1/-1}
.czl-p a{min-height:48px;background:rgba(255,255,255,.05)}
}
@media (max-width:374px){
.hact{gap:6px!important}
.hact .hicon,.czl-b{width:38px!important;height:38px!important}
}
@media (prefers-reduced-motion:reduce){.czl-p{animation:none}.czl-cv{transition:none}}

/* Color swatches on product cards (Next only, owner 24/11; benchmark XI Mobility). Dots come from each product's own
   color picker. Mouse hover / tap on a dot swaps the card image; the dots are decorative, the "N גוונים" label is read with the link. */
.pc .czsw{display:flex;align-items:center;gap:8px;margin:6px 0 2px;min-height:22px}
.pc .czsw-d{display:inline-flex;align-items:center;gap:5px}
.pc .czsw-d i{display:block;width:16px;height:16px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.55);cursor:pointer;transition:transform .15s,box-shadow .15s;position:relative}
.pc .czsw-d i::after{content:"";position:absolute;inset:-7px}
.pc .czsw-d i.on{box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 2px #fff,0 0 0 3.5px #e30613}
.pc .czsw-d i:hover{transform:scale(1.15)}
.pc .czsw em{font:600 12px/1 "Heebo","Noto Sans Arabic",system-ui,sans-serif;font-style:normal;opacity:.72}
.pc .pc-im>img.czsw-fade{opacity:0!important}
.pc.czsw-on .pc-im>img.pc-alt{display:none!important}
/* 25/11 owner bug: after a color pick the hover image is hidden, but the site's own .pc:hover rule still fades the main image to 0 → blank card. Keep it visible. */
.pc.czsw-on:hover .pc-im>img:not(.pc-alt):not(.czsw-fade){opacity:1!important}
/* 25/11 owner: a card with no colors must keep "לדגם המלא" on the bottom line, level with its neighbours */
.pc>.pc-b{flex:1 1 auto}
.pc .pc-b>.pc-go,.pc .pc-b>.pc-act{margin-top:auto}
@media (prefers-reduced-motion:reduce){.pc .czsw-d i{transition:none}.pc .pc-im>img{transition:none!important}}

/* product gallery thumbs: one swipeable row on phones instead of a 5+1 wrap (Next only, 24/11) */
@media (max-width:760px){
  html body .pdp .pg-th{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;grid-template-columns:none!important}
  html body .pdp .pg-th::-webkit-scrollbar{display:none}
  html body .pdp .pg-th .pgt{flex:0 0 64px!important;width:64px!important;height:64px!important;aspect-ratio:auto!important;scroll-snap-align:start}
}
/* sticky product bar hides while the test-ride form is in view */
html.czbar-off #pdpBar{transform:translateY(120%)!important;opacity:0!important;pointer-events:none!important;transition:transform .25s ease,opacity .25s ease}
@media (prefers-reduced-motion:reduce){html.czbar-off #pdpBar{transition:none}}

/* 25/11 owner: category + shop on phones. One swipeable filter row with sort beside it, two-column product grid, less dead space */
@media (max-width:900px){
  html body .fbar-in{flex-wrap:nowrap!important;align-items:center;gap:8px!important;padding:8px 16px!important}
  html body .fbar .fchips{flex:1 1 auto;min-width:0;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding:2px 0 2px 6px!important;-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 22px),transparent)}
  html[dir=ltr] body .fbar .fchips{padding:2px 6px 2px 0!important;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent)}
  html body .fbar .fchips::-webkit-scrollbar{display:none}
  html body .fbar .fchip{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;min-height:40px}
  @media (max-width:600px){html body .fbar .fchip{font-size:13px!important}}
  html body .fbar .fbar-r{flex:0 0 auto}
  html body .fbar .fsort{width:auto!important}
  html body .fbar #fsort{width:108px!important;height:40px!important;font-size:13px!important;font-weight:700;padding:4px 10px!important;border-radius:999px!important;border:1px solid rgba(20,20,24,.18)!important}
}
@media (max-width:600px){
  html body .s-bone:has(#catGrid){padding-top:18px!important}
  html body #catGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body #catGrid .pc-im{padding:6px!important}
  html body #catGrid .pc-b{padding:12px 10px 10px!important}
  html body #catGrid .pc-n{font-size:15px!important;line-height:1.25}
  html body #catGrid .pspecs{gap:4px!important}
  html body #catGrid .pspecs .ps:nth-child(n+3){display:none}
  html body #catGrid .pspecs .ps{font-size:11.5px!important;padding:3px 7px!important}
  html body #catGrid .pc-act{flex-direction:column;flex-wrap:nowrap!important;gap:6px!important}
  html body #catGrid .pc-act>.btn{width:100%!important;justify-content:center;padding:10px 6px!important;font-size:13px!important;min-height:40px}
  html body #catGrid .pc-p{flex-direction:column;align-items:flex-start;gap:1px!important}
  html body #catGrid .pc-p>b{font-size:19px!important;white-space:nowrap}
  html body #catGrid .pc-p>span{font-size:11.5px!important}
  html body #catGrid .czsw{flex-wrap:wrap;gap:4px 6px}
  /* comparison table: one line per cell, model column stays put, swipe hint */
  html body .ctab-w{position:relative;-webkit-overflow-scrolling:touch}
  html body .ctab th,html body .ctab td{white-space:nowrap}
  html body .ctab th:first-child,html body .ctab td:first-child{position:sticky;inset-inline-start:0;z-index:1;box-shadow:-6px 0 8px -6px rgba(0,0,0,.25)}
  html[dir=ltr] body .ctab th:first-child,html[dir=ltr] body .ctab td:first-child{box-shadow:6px 0 8px -6px rgba(0,0,0,.25)}
  html body .ctab td:first-child{background:#fff}
  html body .ctab th:first-child{background:#141418}
  /* test-ride form labels readable */
  html body .tride-f label{font-size:13px!important}
}
html body .tf-note bdi{white-space:nowrap}
/* chat close button: real finger target */
html body .sm-sa-x{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
