/* The new header, on every page: Black Friday's bar, the header (sticky), the mega menu on a computer, the search
   sheet with suggestions, and the phone's two-level menu. */

/* Black Friday's bar, above the header; it scrolls away */
body .ah-msg .msg{display:block;background:#000;color:var(--paper);padding:7px 12px;line-height:18px;font-size:13px;font-weight:600;text-align:center;margin:0}
.ah-msg .cdt{color:var(--gold);font-variant-numeric:tabular-nums;white-space:nowrap}

/* the header stays at the top. The sticky element is the wrapper, a child of <body>, so it sticks the whole page down */
.ah-hdr{position:sticky;top:var(--ah-top,0px);z-index:9990}
.ah-hdr .hd{position:relative;background:var(--paper);border-bottom:1px solid var(--line)}
.ah-hdr .bar{height:var(--hd);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:4px}
.ah-hdr .start,.ah-hdr .end{display:flex;align-items:center;gap:6px}
.ah-hdr .logo{justify-self:center;display:block}
/* the logo keeps its shape: where there is no room it gets smaller, never narrower */
.ah-hdr .logo img{width:105px;height:auto;max-width:100%}
.ah .logo-txt{font:400 20px var(--f-display)}
.ah .ah-cart-n{position:absolute;top:6px;left:4px;min-width:17px;height:17px;border-radius:9px;background:var(--ink);color:var(--paper);font-size:11.5px;font-weight:700;display:grid;place-items:center;padding:0 4px;line-height:1}
.ah-hdr .nav{display:none}
/* the shop's phone, beside the cart: the icon on a phone, the number beside it on a wide computer */
.ah-hdr .tel .ico{width:21px;height:21px}
.ah-hdr .tel-n{display:none;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums;unicode-bidi:isolate;white-space:nowrap}
/* three icons on one side and two on the other: on a narrow phone the gaps go, and the logo gives way before anything overlaps */
.ah-hdr .logo{min-width:0}
@media (max-width:399.98px){
  .ah-hdr .bar{gap:0}
  .ah-hdr .start,.ah-hdr .end{gap:0}
}

/* search: a field anyone can see, on the phone under the header and on a computer inside it */
.ah-msearch{padding:6px var(--gut) 8px;background:var(--paper)}
body .ah .sfield{width:100%;height:46px;display:flex;align-items:center;gap:10px;padding:0 14px;border-radius:var(--r);background:var(--stone);color:var(--ink-2);font-size:15.5px;text-align:start;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .15s ease}
body .ah .sfield:hover{box-shadow:inset 0 0 0 1px #cfc8bd;background:var(--stone)}
.ah .sfield .ico{width:20px;height:20px;color:var(--ink)}
.ah .sfield b{font-weight:700;color:var(--ink)}
/* the examples that take turns after "חפשו": the next one rises in as the last one leaves */
.ah .sf-t{display:inline-flex;gap:.3em;min-width:0;overflow:hidden;white-space:nowrap}
.ah .rot{display:inline-grid;overflow:hidden;height:1.5em;line-height:1.5em;min-width:0}
.ah .rot-i{grid-area:1/1;transition:transform .45s var(--ease),opacity .3s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah .rot-i.in{transform:translateY(100%);opacity:0}
.ah .rot-i.out{transform:translateY(-100%);opacity:0}
.ah .rot-i b{color:var(--ink)}
body .ah-hdr .hsearch{display:none}

/* computer: the mega menu under the nav */
.ah-hdr .mega{position:absolute;top:100%;inset-inline:0;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 18px 30px -18px rgba(21,20,19,.22);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s ease,transform .25s var(--ease),visibility 0s linear .25s}
.ah-hdr .mega.on{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .25s var(--ease)}
.ah-hdr .mega-in{display:grid;grid-template-columns:200px 2fr 1fr 1.3fr;gap:28px;padding-block:26px 30px}
.ah-hdr .mega h3{font:700 13.5px var(--f-body);margin-bottom:10px}
.ah-hdr .mega h3:not(:first-child){margin-top:18px}
.ah-hdr .mega ul{display:grid;gap:2px}
.ah-hdr .mega .two{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.ah-hdr .mega li a{display:flex;align-items:center;min-height:30px;font-size:15px;color:var(--ink)}
.ah-hdr .mega li a:hover{text-decoration:underline;text-underline-offset:4px}
.ah-hdr .mega .quick a{font-weight:700;font-size:15.5px;min-height:34px}
.ah-hdr .mega .quick a.gold{box-shadow:inset 0 -2px 0 var(--gold);display:inline-flex}
.ah-hdr .mega .tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.ah-hdr .mega .tiles a{display:grid;gap:6px;font-weight:700;font-size:14px}
.ah-hdr .mega .tiles .ph{aspect-ratio:4/5;background:var(--stone);border-radius:var(--r);overflow:hidden;position:relative}
.ah-hdr .mega .tiles .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* the search sheet under the header */
.ah-hdr .search-sheet{position:absolute;top:100%;inset-inline:0;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 18px 30px -18px rgba(21,20,19,.22);padding-block:12px 16px;z-index:2}
.ah-hdr .search{position:relative;margin:0}
.ah-hdr .search label{position:absolute;inset-inline-start:14px;top:26px;transform:translateY(-50%);display:flex;color:var(--ink-2);pointer-events:none;margin:0}
body .ah-hdr .search input[type="search"]{width:100%;height:52px;border:1.5px solid var(--ink);border-radius:var(--r);padding:0 46px;margin:0;font:600 16px var(--f-body);color:var(--ink);background:var(--paper);outline:none;-webkit-appearance:none;appearance:none;box-shadow:none}
.ah-hdr .search input::placeholder{color:var(--ink-2);font-weight:400}
body .ah-hdr .search input[type="search"]:focus{box-shadow:0 0 0 3px var(--stone);border-color:var(--ink)}
.ah-hdr .search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.ah-hdr .search .clear{position:absolute;inset-inline-end:4px;top:26px;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;color:var(--ink)}
.ah-hdr .search .clear .ico{width:18px;height:18px}
.ah-hdr .sugg{display:grid;gap:10px;margin-top:12px;max-height:62vh;overflow:auto}
.ah-hdr .sugg h3{font:700 12.5px var(--f-body);color:var(--ink-2);letter-spacing:.02em}
.ah-hdr .sugg .row{display:flex;align-items:center;gap:10px;padding:6px 4px;border-radius:var(--r);font-weight:600}
.ah-hdr .sugg .row img{width:40px;height:40px;object-fit:cover;border-radius:var(--r);background:var(--stone);flex:none}
.ah-hdr .sugg .row small{color:var(--ink-2);font-weight:400;margin-inline-start:auto;font-size:13px;white-space:nowrap}
.ah-hdr .sugg .row:hover,.ah-hdr .sugg .row:focus-visible{background:var(--stone)}
.ah-hdr .sugg .wait{font-size:13.5px;color:var(--ink-2)}

/* the phone's menu: two levels, the Desenio way */
.ah-drawer-wrap .drawer{position:fixed;top:0;bottom:0;right:0;z-index:100001;width:min(90vw,420px);background:var(--paper);transform:translateX(100%);transition:transform .38s var(--ease);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px)}
.ah-drawer-wrap .drawer.on{transform:none}
.ah-drawer-wrap .top{display:flex;align-items:center;justify-content:space-between;height:var(--hd);padding-inline:6px 10px;border-bottom:1px solid var(--line);flex:none}
.ah-drawer-wrap .top .logo img{height:26px;width:auto}
.ah-drawer-wrap .panels{position:relative;flex:1;overflow:hidden}
.ah-drawer-wrap .mpanel{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;background:var(--paper);transition:transform .32s var(--ease)}
.ah-drawer-wrap .mpanel.sub{transform:translateX(-100%)}
.ah-drawer-wrap .mpanel.sub.on{transform:none}
.ah-drawer-wrap .mpanel.root.away{transform:translateX(18%)}
.ah-drawer-wrap .trend{background:var(--sand);padding:14px 16px 16px}
.ah-drawer-wrap .trend h3{font:700 13px var(--f-body);letter-spacing:.02em;margin-bottom:10px}
.ah-drawer-wrap .trend .rail{grid-auto-columns:42%;padding-inline:16px;margin-inline:-16px;scroll-padding-inline:16px}
.ah-drawer-wrap .trend a{display:grid;gap:6px;font:400 15px/1.2 var(--f-display)}
.ah-drawer-wrap .trend .ph{aspect-ratio:4/5;border-radius:var(--r);overflow:hidden;background:var(--stone);position:relative}
.ah-drawer-wrap .trend .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ah-drawer-wrap .mrows li{border-bottom:1px solid var(--line)}
body .ah-drawer-wrap .mrows :is(a,button){width:100%;min-height:58px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;font:700 16.5px var(--f-body);text-align:start;color:var(--ink)}
.ah-drawer-wrap .mrows :is(a,button):active{background:var(--stone)}
.ah-drawer-wrap .mrows .gold span{box-shadow:inset 0 -2px 0 var(--gold);padding-bottom:1px}
.ah-drawer-wrap .mrows small{font-weight:400;color:var(--ink-2);font-size:13.5px;margin-inline-start:auto;font-variant-numeric:tabular-nums}
.ah-drawer-wrap .mrows .ico{width:18px;height:18px;color:var(--ink-2)}
body .ah-drawer-wrap .mback{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;width:100%;min-height:56px;padding:0 14px;background:var(--sand);font:700 17px var(--f-body);border-bottom:1px solid var(--line)}
.ah-drawer-wrap .mback .ico{width:20px;height:20px}
.ah-drawer-wrap .mcols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;padding:20px 18px 28px}
.ah-drawer-wrap .mcols h3{font:700 14px var(--f-body);margin-bottom:6px}
.ah-drawer-wrap .mcols h3:not(:first-child){margin-top:18px}
.ah-drawer-wrap .mcols a{display:flex;align-items:center;min-height:44px;font-size:15.5px}
.ah-drawer-wrap .mcols a:active{background:var(--stone)}
.ah-drawer-wrap .msmall{display:grid;padding:14px 18px 40px}
.ah-drawer-wrap .msmall a{min-height:44px;display:flex;align-items:center;font-size:15px;color:var(--ink-2);font-weight:600}
.ah-drawer-wrap .msmall .tel{direction:ltr;justify-content:flex-end}

@media (min-width:900px){
  .ah-hdr .bar{grid-template-columns:auto auto 1fr auto;gap:22px}
  .ah-hdr .start .icon-btn.menu,.ah-hdr .start .icon-btn.search{display:none}
  .ah-hdr .logo{justify-self:start;order:-1}
  .ah-hdr .nav{display:flex;justify-self:center;gap:2px;height:100%}
  .ah-hdr .nav>a{display:flex;align-items:center;height:100%;padding-inline:9px;font-weight:700;font-size:15px;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
  .ah-hdr .nav>a:hover,.ah-hdr .nav>a.open{border-bottom-color:var(--ink)}
  .ah-hdr .nav>a.gold{box-shadow:inset 0 -2px 0 var(--gold);border-bottom:0}
  .ah-msearch{display:none}
  body .ah-hdr .hsearch{display:flex;width:clamp(200px,20vw,290px);height:42px;font-size:14.5px}
  .ah-drawer-wrap .drawer{display:none}
}
/* a narrow computer has no room for the whole nav beside the search field: the field becomes its icon */
@media (min-width:900px) and (max-width:1099.98px){
  body .ah-hdr .hsearch{width:44px;padding:0;justify-content:center;background:transparent}
  body .ah-hdr .hsearch .sf-t{display:none}
}
@media (min-width:1200px){
  .ah-hdr .icon-btn.tel{width:auto;display:flex;gap:7px;padding-inline:4px}
  .ah-hdr .tel-n{display:inline}
  .ah-hdr .tel:hover .tel-n{text-decoration:underline;text-underline-offset:4px}
}
@media (max-width:899.98px){
  .ah-hdr .mega{display:none}
}

/* ---------- the cart's preview ---------- */
.ah-drawer-wrap .minicart{position:fixed;z-index:100001;background:var(--paper);display:flex;flex-direction:column;color:var(--ink)}
/* on a computer: a card under the cart, opened by pointing at it */
.ah-drawer-wrap .minicart.mc-pop{width:min(390px,calc(100vw - 32px));max-height:min(78vh,640px);border-radius:10px;box-shadow:0 24px 60px -20px rgba(21,20,19,.45),0 0 0 1px rgba(21,20,19,.06);opacity:0;transform:translateY(-8px);transition:opacity .2s ease,transform .25s var(--ease);z-index:9995}
.ah-drawer-wrap .minicart.mc-pop.on{opacity:1;transform:none}
.ah-drawer-wrap .minicart.mc-pop::before{content:"";position:absolute;top:-6px;left:var(--mc-arrow,26px);width:12px;height:12px;background:var(--paper);transform:rotate(45deg);box-shadow:-1px -1px 0 rgba(21,20,19,.06)}
/* on a phone: a panel from the side the cart is on */
.ah-drawer-wrap .minicart.mc-side{top:0;bottom:0;left:0;width:min(88vw,400px);transform:translateX(-100%);transition:transform .38s var(--ease);padding-top:env(safe-area-inset-top,0px);box-shadow:20px 0 50px -20px rgba(0,0,0,.35)}
.ah-drawer-wrap .minicart.mc-side.on{transform:none}
.ah-drawer-wrap .mc-top{display:flex;align-items:center;gap:8px;min-height:58px;padding:0 18px 0 6px;border-bottom:1px solid var(--line);flex:none}
.ah-drawer-wrap .mc-top b{font:400 20px var(--f-display)}
.ah-drawer-wrap .mc-top .mc-n{font-size:14px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.ah-drawer-wrap .mc-top .icon-btn{margin-inline-start:auto}
.ah-drawer-wrap .mc-pop .mc-top .icon-btn{display:none}
.ah-drawer-wrap .mc-body{overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;flex:1;min-height:0}
.ah-drawer-wrap .mc-ship{padding:12px 18px 14px;background:var(--sand);font-size:14px;line-height:1.4;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:8px}
.ah-drawer-wrap .mc-ship .ico{width:20px;height:20px}
.ah-drawer-wrap .mc-ship .bar{grid-column:1/-1}
.ah-drawer-wrap .mc-ship b{font-variant-numeric:tabular-nums}
.ah-drawer-wrap .mc-ship .bar{height:6px;border-radius:3px;background:#e6dfd2;margin-top:8px;overflow:hidden}
.ah-drawer-wrap .mc-ship .bar i{display:block;height:100%;background:var(--gold);border-radius:inherit;transform-origin:right;transition:transform .6s var(--ease)}
.ah-drawer-wrap .mc-ship.done{color:var(--gold-text);font-weight:700}
.ah-drawer-wrap .mc-items{padding:4px 18px}
.ah-drawer-wrap .mc-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 8px;margin-inline:-8px;border-bottom:1px solid var(--line);border-radius:6px}
.ah-drawer-wrap .mc-item:last-child{border-bottom:0}
.ah-drawer-wrap .mc-item .ph{position:relative;width:64px;aspect-ratio:4/5;border-radius:4px;overflow:hidden;background:var(--stone);display:block;box-shadow:0 6px 14px -8px rgba(0,0,0,.35)}
.ah-drawer-wrap .mc-item .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ah-drawer-wrap .mc-item .nm{font-size:14.5px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ah-drawer-wrap .mc-item small{display:block;font-size:12.5px;color:var(--ink-2);margin-top:2px}
.ah-drawer-wrap .mc-item .pr{font-size:14.5px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
/* one more, one less (at one: a bin), and remove; the line that was removed stays a moment with "ביטול" */
.ah-drawer-wrap .mc-info{min-width:0}
.ah-drawer-wrap .mc-ctl{display:flex;align-items:center;gap:14px;margin-top:8px}
.ah-drawer-wrap .qty{display:inline-flex;align-items:center;height:36px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
body .ah-drawer-wrap .q-btn{position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--ink);transition:background-color .15s ease}
.ah-drawer-wrap .q-btn::after{content:"";position:absolute;inset:-4px}
.ah-drawer-wrap .q-btn .ico{width:16px;height:16px;stroke-width:2}
body .ah-drawer-wrap .q-btn:hover{background:var(--stone)}
body .ah-drawer-wrap .q-btn[disabled]{opacity:.32;cursor:default;background:none}
.ah-drawer-wrap .q-n{min-width:22px;text-align:center;font-weight:700;font-size:14.5px;font-variant-numeric:tabular-nums}
.ah-drawer-wrap .q-only{font-size:13.5px;color:var(--ink-2)}
body .ah-drawer-wrap .mc-rm{min-height:36px;padding:0 2px;font-size:13px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
body .ah-drawer-wrap .mc-rm:hover{color:var(--ink)}
.ah-drawer-wrap .mc-err{font-size:12.5px;font-weight:600;color:#a3321f;margin-top:6px}
.ah-drawer-wrap .mc-gone{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0;padding:6px 6px 6px 12px;padding-inline-start:12px;background:var(--sand);border-radius:6px;font-size:14px;animation:ah-in .3s var(--ease)}
.ah-drawer-wrap .mc-gone span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .ah-drawer-wrap .mc-gone button{flex:none;min-height:40px;padding:0 10px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.ah-drawer-wrap .mc-new{animation:ah-flash 1.8s ease}
@keyframes ah-flash{0%,35%{background:#fbf1d2}100%{background:transparent}}
@keyframes ah-in{from{opacity:0;transform:translateY(4px)}}
.ah-drawer-wrap .mc-more{display:block;text-align:center;font-size:13.5px;color:var(--ink-2);padding:6px 0 2px}
.ah-drawer-wrap .mc-foot{margin-top:auto;padding:14px 18px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);display:grid;gap:10px;background:var(--paper);position:sticky;bottom:0}
.ah-drawer-wrap .mc-off{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;color:var(--gold-text);font-weight:700;margin-bottom:-4px}
.ah-drawer-wrap .mc-off b{font-variant-numeric:tabular-nums}
.ah-drawer-wrap .mc-sub{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}
.ah-drawer-wrap .mc-sub b{font-size:19px;font-variant-numeric:tabular-nums}
.ah-drawer-wrap .mc-foot .btn{width:100%;height:48px}
.ah-drawer-wrap .mc-empty{padding:30px 22px;display:grid;gap:12px;justify-items:center;text-align:center}
.ah-drawer-wrap .mc-empty b{font:400 20px var(--f-display)}
.ah-drawer-wrap .mc-empty p{color:var(--ink-2);font-size:14.5px}
.ah-drawer-wrap .mc-wait{padding:26px 18px;display:grid;gap:14px}
.ah-drawer-wrap .mc-wait i{display:block;height:64px;border-radius:6px;background:linear-gradient(90deg,var(--stone),#faf8f5,var(--stone));background-size:200% 100%;animation:ah-shine 1.2s linear infinite}
@keyframes ah-shine{from{background-position:100% 0}to{background-position:-100% 0}}
.ah-hdr .cart.bump .ah-cart-n{animation:ah-bump .5s var(--ease)}
@keyframes ah-bump{50%{transform:scale(1.35)}}
