/* Storefront header, categories menu and search. Loaded after shop.css.
   It speaks the home page's language: warm paper, ink, brand blue for browsing, red
   for deals and the appliance drawings
   on one navy stage. Logical properties only, no inline styles. */

body.store { --header-h: 76px; --nh-paper: #fffdf8; --nh-cream: #f1eadd; --nh-line: #e5dccb; }

/* ---------- Top bar: announcement with the running countdown ---------- */
.nh-top { position: relative; z-index: 46; background: var(--ink); color: var(--on-ink-2); font-size: 12.5px; }
.nh-top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); min-block-size: 40px; }
.nh-top a, .nh-top .nav-sum { display: inline-flex; align-items: center; gap: 6px; color: var(--on-ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nh-top-start a, .nh-service > a, .nh-service .nav-sum { padding: 4px 10px; border-radius: var(--r-full); transition: color var(--t-fast), background var(--t-fast); }
.nh-top-start a:hover, .nh-service > a:hover, .nh-service .nav-sum:hover { color: #fff; background: rgb(255 255 255 / .1); text-decoration: none; }
.nh-top .i { inline-size: 14px; block-size: 14px; }
.nh-service { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-1); }
.nh-service .nav-sum { cursor: pointer; list-style: none; }
.nh-service .nav-sum::-webkit-details-marker { display: none; }
.nh-service .menu-panel { inset-inline: auto 0; font-size: var(--fs-sm); }
.nh-service .menu-panel a { display: flex; color: var(--text); }
.nh-news { display: flex; align-items: center; justify-content: center; gap: 14px; min-inline-size: 0; padding-block: 6px; }
.nh-announce { margin: 0; color: var(--on-ink); font-weight: 550; text-align: center; }
.nh-top .nh-announce a { display: inline; white-space: normal; color: inherit; border-block-end: 1px solid rgb(255 255 255 / .4); }
.nh-top .nh-cd { gap: 4px; direction: ltr; }
.nh-cd[hidden] { display: none !important; }
.nh-cd > span:not(.sr-only) { display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 6px; border-radius: 7px; background: var(--hot); color: #fff; }
.nh-cd b { font-weight: 700; font-variant-numeric: tabular-nums; }
.nh-cd i { font-style: normal; font-size: 9px; text-transform: uppercase; opacity: .85; }

/* ---------- Main row (stays on screen) ---------- */
.nh { position: sticky; inset-block-start: 0; z-index: 45; background: var(--nh-paper); border-block-end: 1px solid var(--nh-line); transition: box-shadow var(--t-med); }
.nh::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); pointer-events: none; }
html[dir="rtl"] .nh::after { transform-origin: right; }
.nh.scrolled { box-shadow: 0 18px 34px -24px rgb(40 24 8 / .45); }
.nh.scrolled::after { transform: scaleX(1); }
.nh-row { position: relative; display: flex; align-items: center; gap: var(--s-4); min-block-size: var(--header-h); }
.nh .logo { flex: none; gap: 10px; }
.nh .logo img { block-size: 44px; inline-size: auto; transition: rotate 600ms var(--ease-out); }
.nh .logo:hover img { rotate: -12deg; }
.nh-burger { display: none; }

/* Categories button */
.nh-mega { position: static; flex: none; }
.nh-mega-btn { display: inline-flex; align-items: center; gap: 10px; min-block-size: 48px; padding-inline: 18px 14px; border-radius: var(--r-full); background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; user-select: none; transition: background var(--t-fast), transform var(--t-med) var(--ease-out); }
.nh-mega-btn::-webkit-details-marker { display: none; }
.nh-mega-btn:hover { background: var(--ink-2); }
.nh-mega-btn:active { transform: scale(.97); }
.nh-mega-btn > .i { opacity: .7; transition: rotate var(--t-slow) var(--ease-out); }
.nh-mega[open] .nh-mega-btn > .i { rotate: 180deg; }
.nh-grid-ic { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.nh-grid-ic i { block-size: 6px; border-radius: 2px; background: currentColor; transition: border-radius var(--t-slow) var(--ease-out), background var(--t-fast); }
.nh-mega-btn:hover .nh-grid-ic i, .nh-mega[open] .nh-grid-ic i { border-radius: 50%; }
.nh-grid-ic i:last-child { background: var(--blue); }

/* The appliance on its stage, shared by the menu, rail, drawer and search. One navy for every category:
   --h is pinned here so the per-category hues don't reach the header. */
:is(.nh-art, .sx-thumb-art) { --h: 252; --nh-stage: radial-gradient(80% 45% at 50% 95%, oklch(0.55 0.09 var(--h) / .8), transparent 75%), linear-gradient(180deg, oklch(0.35 0.07 var(--h)), oklch(0.2 0.045 var(--h))); }
.nh-art { flex: none; display: grid; place-items: end center; overflow: hidden; inline-size: 64px; block-size: 56px; border-radius: 15px; background: var(--nh-stage); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.nh-art .ca, .sx-thumb .ca { direction: ltr; display: block; inline-size: 94%; block-size: auto; overflow: visible; translate: 0 4%; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .45)); transition: scale 500ms var(--ease-out), translate 500ms var(--ease-out); }
:is(.nh-tile, .sx-cat) .nh-art { grid-template: minmax(0, 1fr) / minmax(0, 1fr); justify-items: center; }
.nh-art img { inline-size: 100%; block-size: 100%; object-fit: cover; }
/* small drawings stay still and uncluttered; they come alive under the pointer */
:is(.nh-art, .sx-thumb) .ca * { animation-play-state: paused; }
:is(.nh-art, .sx-thumb) :is(.ca-air-g, .ca-flakes, .ca-sparks, .ca-mist, .ca-waves, .ca-bubs, .ca-remote) { display: none; }
:is(.nh-tile, .sx-cat, .nh-rail a):is(:hover, [aria-selected="true"]) .ca { scale: 1.14; translate: 0 0; }
:is(.nh-tile, .sx-cat, .nh-rail a):is(:hover, [aria-selected="true"]) .ca * { animation-play-state: running; }

/* Categories menu panel */
.nh-mega .nh-panel { position: absolute; inset-inline: var(--gutter); inset-block-start: calc(100% + 10px); z-index: 60; inline-size: auto; min-inline-size: 0; max-block-size: calc(100dvh - var(--header-h) - 70px); overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; padding: 14px; border: 1px solid var(--nh-line); border-radius: 28px; background: var(--nh-paper); box-shadow: 0 40px 80px -30px rgb(20 10 0 / .45); animation: nh-drop 380ms var(--ease-out); }
.nh-mega:not([open]) .nh-panel { display: none; }
body.store:has(.nh-mega[open])::before { content: ""; position: fixed; inset: 0; z-index: 44; background: rgb(12 9 6 / .4); animation: nh-fade 300ms ease both; }
.nh-panel-main { min-inline-size: 0; padding: 6px; }
.nh-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-block-end: 12px; padding-inline: 4px; }
.nh-panel-head strong { white-space: nowrap; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.03em; }
.nh-mega a[aria-current]::after { content: none; }
.nh-mega .nh-all { inline-size: auto; flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.nh-mega .nh-all:hover { background: var(--blue-soft); color: var(--blue); }
.nh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nh-tiles li { display: grid; animation: nh-rise 500ms var(--ease-out) both; }
.nh-tiles li:nth-child(2) { animation-delay: 30ms; } .nh-tiles li:nth-child(3) { animation-delay: 60ms; } .nh-tiles li:nth-child(4) { animation-delay: 90ms; }
.nh-tiles li:nth-child(5) { animation-delay: 120ms; } .nh-tiles li:nth-child(6) { animation-delay: 150ms; } .nh-tiles li:nth-child(7) { animation-delay: 180ms; } .nh-tiles li:nth-child(n+8) { animation-delay: 210ms; }
.nh-tiles a.nh-tile { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 8px 12px; border: 1px solid var(--nh-line); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; transition: translate var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-fast); }
.nh-tiles a.nh-tile:hover { translate: 0 -4px; border-color: var(--blue); box-shadow: 0 18px 30px -18px oklch(0.28 0.06 252 / .6); text-decoration: none; }
.nh-tiles a.nh-tile[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.nh-tile .nh-art { inline-size: 100%; block-size: 100px; }
.nh-tile .nh-art .ca { inline-size: auto; block-size: 96%; max-inline-size: 100%; }
.nh-tile-t { display: grid; padding-inline: 6px; line-height: 1.3; }
.nh-tile-t strong { font-size: 14px; font-weight: 650; }
.nh-tile-t small { color: var(--text-3); font-size: 12px; }

.nh-promo { display: flex; flex-direction: column; gap: 10px; }
.nh-mega a.nh-deal { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 24px; border-radius: 20px; color: #fff; text-decoration: none; background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--hot) 70%, transparent), transparent 70%), #0e1015; }
.nh-deal[hidden] { display: none !important; }
.nh-deal-k { display: inline-flex; align-items: center; gap: 6px; color: #ffb4b6; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nh-deal strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.nh-deal-l { color: rgb(255 255 255 / .6); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.nh-deal-cd { display: flex; gap: 6px; direction: ltr; }
.nh-deal-cd > span { display: grid; justify-items: center; min-inline-size: 48px; padding: 7px 4px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .07); }
.nh-deal-cd b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.nh-deal-cd i { font-style: normal; font-size: 9px; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.nh-deal-go { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 6px; padding: 11px 18px; border-radius: var(--r-full); background: var(--hot); font-weight: 650; font-size: var(--fs-sm); transition: gap var(--t-med) var(--ease-out); }
.nh-deal:hover .nh-deal-go { gap: 14px; }
.nh-help { display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--nh-cream); }
.nh-mega .nh-help a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); font-size: var(--fs-sm); font-weight: 550; text-decoration: none; }
.nh-mega .nh-help a:hover { background: #fff; color: var(--blue); }

/* ---------- Account, wishlist, bag ---------- */
.nh-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.nh-act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-inline-size: 62px; min-block-size: 54px; padding: 4px 8px; border-radius: 16px; color: var(--ink); font-size: 11.5px; font-weight: 550; line-height: 1; text-decoration: none; transition: background var(--t-fast); }
.nh-act:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.nh-act[aria-current="page"] { background: var(--nh-cream); }
.nh-act .i { inline-size: 22px; block-size: 22px; stroke-width: 1.6; transition: translate var(--t-med) var(--ease-out); }
.nh-act:hover .i { translate: 0 -2px; }
.nh-act.nh-bag { margin-inline-start: 6px; background: var(--ink); color: var(--on-ink); }
.nh-act.nh-bag:hover { background: var(--ink-2); color: #fff; }
.store .nh-act .badge-dot { position: absolute; inset-block-start: 0; inset-inline-end: 6px; inset-inline-start: auto; margin: 0; transform: none; box-sizing: border-box; display: inline-grid; place-items: center; inline-size: auto; min-inline-size: 19px; block-size: 19px; padding: 0 5px; border: 2px solid var(--nh-paper); border-radius: var(--r-full); background: var(--hot); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.store .nh-act .badge-dot[hidden] { display: none; }
.store .bag-btn.bump .badge-dot { animation: bump 600ms var(--ease-out); }

/* ---------- Category rail (inner pages; the home hero has its own) ---------- */
.nh-rail { background: var(--nh-paper); border-block-end: 1px solid var(--nh-line); }
.nh-rail-row { display: flex; align-items: center; gap: 10px; }
.nh-rail ul { flex: 1; min-inline-size: 0; display: flex; gap: 2px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.nh-rail ul::-webkit-scrollbar { display: none; }
/* a soft fade says there is more to scroll to */
.nh-rail ul { --fade-s: 0px; --fade-e: 0px; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-s), #000 calc(100% - var(--fade-e)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade-s), #000 calc(100% - var(--fade-e)), transparent); }
.nh-rail ul.more-start { --fade-s: 48px; } .nh-rail ul.more-end { --fade-e: 48px; }
html[dir="rtl"] .nh-rail ul.more-start { --fade-s: 0px; --fade-e: 48px; } html[dir="rtl"] .nh-rail ul.more-end { --fade-e: 0px; --fade-s: 48px; }
.nh-rail li { flex: none; }
.nh-rail a { display: flex; align-items: center; gap: 8px; block-size: 44px; padding-inline: 4px 11px; border: 1px solid transparent; border-radius: var(--r-full); color: var(--ink); font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast); }
.nh-rail a:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); text-decoration: none; }
.nh-rail a[aria-current="true"] { background: var(--blue); color: #fff; }
.nh-rail .nh-art { inline-size: 34px; block-size: 34px; border-radius: 50%; place-items: center; }
.nh-rail a.nh-hot { flex: none; padding-inline: 16px; background: var(--hot); color: #fff; font-weight: 650; }
.nh-rail a.nh-hot:hover { background: color-mix(in srgb, var(--hot) 86%, #000); border-color: transparent; color: #fff; }

/* ---------- Search ---------- */
.sx-slot { position: relative; flex: 1 1 280px; min-inline-size: 0; block-size: 52px; }
.sx { position: absolute; inset-inline: 0; inset-block-start: 0; }
.sx-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; block-size: 52px; padding-inline: 18px 5px; border: 2px solid var(--ink); border-radius: var(--r-full); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out); }
.sx.is-open .sx-bar, .sx-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 15%, transparent); }
.sx-ic { display: grid; color: var(--text-2); }
.store .sx input.sx-input { flex: 1; min-inline-size: 0; inline-size: 100%; block-size: 100%; min-block-size: 0; padding: 0 4px; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; color: var(--ink); font-size: 15px; font-weight: 500; text-overflow: ellipsis; }
.sx-input::placeholder { color: var(--text-3); font-weight: 450; transition: opacity 200ms; }
.sx-input.ph-swap::placeholder { opacity: 0; }
.sx-input::-webkit-search-cancel-button { display: none; }
.sx-clear, .sx-back { flex: none; display: grid; place-items: center; inline-size: 30px; block-size: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--nh-cream); color: var(--ink); cursor: pointer; }
.sx-clear[hidden] { display: none; }
.sx-back { display: none; }
.sx-kbd { flex: none; display: grid; place-items: center; inline-size: 24px; block-size: 24px; margin-inline-end: 6px; border: 1px solid var(--nh-line); border-radius: 7px; background: var(--nh-paper); color: var(--text-3); font: 600 12px/1 var(--font-mono); }
.sx.is-open .sx-kbd, .sx-clear:not([hidden]) + .sx-kbd { display: none; }
html:not(.js) .sx-kbd, html:not(.js) .sx-clear { display: none; }
.sx-go { flex: none; display: inline-flex; align-items: center; gap: 8px; block-size: 38px; padding-inline: 18px; border: 0; border-radius: var(--r-full); background: var(--blue); color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background var(--t-fast); }
.sx-go:hover { background: color-mix(in srgb, var(--blue) 84%, #000); }
.sx-go .i { inline-size: 17px; block-size: 17px; stroke-width: 2.2; }

/* the page dims behind an open search */
body.store.search-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgb(12 9 6 / .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: nh-fade 260ms ease both; cursor: default; }
body.search-open .nh { z-index: 60; }
body.search-open .nh-top { z-index: auto; }

/* The panel: wider than the box on desktop so rows have room, centred under it */
.sx-panel { position: absolute; inset-block-start: calc(100% + 12px); inset-inline-start: 50%; z-index: 1; display: flex; flex-direction: column; inline-size: max(100%, min(680px, calc(100vw - 32px))); max-block-size: min(620px, calc(100dvh - var(--header-h) - 64px)); translate: -50% 0; overflow: hidden; border: 1px solid var(--nh-line); border-radius: 26px; background: var(--nh-paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .55); animation: nh-drop 320ms var(--ease-out); }
html[dir="rtl"] .sx-panel { translate: 50% 0; }
.sx-panel[hidden] { display: none; }
.sx-progress { position: absolute; inset-inline: 0; inset-block-start: 0; z-index: 2; block-size: 3px; opacity: 0; background: linear-gradient(90deg, transparent, var(--blue), transparent) 0 0 / 40% 100% no-repeat; }
.sx.is-loading .sx-progress { opacity: 1; animation: sx-load 900ms linear infinite; }
.sx-scroll { flex: 1; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px 14px; }
.sx-scroll [hidden] { display: none !important; }
.sx-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px 6px 8px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sx-h button { padding: 2px 8px; border: 0; border-radius: var(--r-full); background: none; color: var(--blue); font: inherit; letter-spacing: .06em; cursor: pointer; }
.sx-h button:hover { background: var(--blue-soft); }
.sx-count { letter-spacing: .04em; text-transform: none; font-weight: 600; }
html[dir="rtl"] .sx-h { letter-spacing: 0; }
.sx a[role="option"] { color: var(--ink); text-decoration: none; scroll-margin: 8px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx a.sx-chip { display: inline-flex; align-items: center; gap: 7px; max-inline-size: 100%; padding: 8px 14px; border: 1px solid var(--nh-line); border-radius: var(--r-full); background: #fff; font-size: var(--fs-sm); font-weight: 550; }
.sx-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-chip .i { color: var(--text-3); }
.sx a.sx-chip[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sx-chip[aria-selected="true"] .i { color: inherit; }
.sx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.sx a.sx-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 6px 10px; border: 1px solid transparent; border-radius: 18px; font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; transition: background var(--t-fast), border-color var(--t-fast); }
.sx a.sx-cat[aria-selected="true"] { background: #fff; border-color: var(--blue); }
.sx-cat .nh-art { inline-size: 100%; block-size: 76px; }
.sx-cat .nh-art .ca { inline-size: auto; block-size: 96%; max-inline-size: 100%; }
.sx-cats-hit { display: flex; flex-wrap: wrap; }
.sx-cats-hit a.sx-cat { flex-direction: row; gap: 10px; padding: 6px 16px 6px 6px; border-color: var(--nh-line); background: #fff; border-radius: 16px; font-size: var(--fs-sm); }
.sx a.sx-cat[aria-selected="true"]:is(.sx-cats-hit > a) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.sx-cats-hit .nh-art { inline-size: 52px; block-size: 44px; border-radius: 11px; }
.sx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--nh-line); }
.sx-quick a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-full); background: var(--nh-cream); font-size: var(--fs-sm); font-weight: 600; }
.sx .sx-quick a:first-child { background: var(--hot); color: #fff; }
.sx-quick a[aria-selected="true"] { outline: 2px solid var(--blue); outline-offset: 1px; }
.sx-results { display: grid; gap: 4px; }
.sx a.sx-item { display: flex; align-items: center; gap: 14px; padding: 8px; border: 1px solid transparent; border-radius: 18px; animation: nh-rise 360ms var(--ease-out) both; }
.sx-item:nth-child(2) { animation-delay: 25ms !important; } .sx-item:nth-child(3) { animation-delay: 50ms !important; } .sx-item:nth-child(4) { animation-delay: 75ms !important; } .sx-item:nth-child(n+5) { animation-delay: 100ms !important; }
.sx a.sx-item[aria-selected="true"] { background: #fff; border-color: var(--nh-line); box-shadow: inset 3px 0 0 var(--blue), 0 10px 22px -18px rgb(40 24 8 / .6); }
html[dir="rtl"] .sx a.sx-item[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--blue), 0 10px 22px -18px rgb(40 24 8 / .6); }
.sx-thumb { flex: none; display: grid; place-items: center; inline-size: 64px; block-size: 64px; overflow: hidden; border-radius: 14px; background: var(--nh-cream); }
.sx-thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sx-thumb-art { background: var(--nh-stage); color: #fff; }
.sx-txt { flex: 1; display: grid; gap: 3px; min-inline-size: 0; }
.sx-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.sx-name mark { background: none; color: var(--blue); }
.sx-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-3); font-size: 12px; }
.sx-out { color: var(--hot); font-weight: 650; }
.sx-item.is-out .sx-thumb { opacity: .55; }
.sx-price { flex: none; display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-price strong { font-size: 14px; font-weight: 700; }
.sx-was { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; }
.sx-was em { padding: 1px 6px; border-radius: var(--r-full); background: var(--hot-soft); color: var(--hot); font-style: normal; font-weight: 700; }
.sx a.sx-all { position: sticky; inset-block-end: 0; z-index: 1; box-shadow: 0 0 0 6px var(--nh-paper); display: flex; align-items: center; justify-content: center; gap: 10px; margin-block-start: 10px; min-block-size: 48px; padding: 8px 18px; border-radius: var(--r-full); background: var(--ink); color: var(--on-ink); font-size: var(--fs-sm); font-weight: 650; text-align: center; }
.sx a.sx-all[aria-selected="true"], .sx a.sx-all:hover { background: var(--blue); color: #fff; }
.sx-all span { min-inline-size: 0; overflow-wrap: anywhere; }
.sx-none { display: grid; gap: 4px; justify-items: center; margin-block: 8px; padding: 22px 16px; border-radius: 18px; background: var(--nh-cream); text-align: center; overflow-wrap: anywhere; }
.sx-none span { color: var(--text-2); font-size: var(--fs-sm); }
.sx-keys { display: flex; gap: 18px; justify-content: flex-end; padding: 10px 20px; border-block-start: 1px solid var(--nh-line); background: #fff; color: var(--text-3); font-size: 11.5px; }
.sx-keys span { display: inline-flex; align-items: center; gap: 5px; }
.sx-keys kbd { min-inline-size: 20px; padding: 2px 5px; border: 1px solid var(--nh-line); border-radius: 6px; background: var(--nh-paper); font: 600 11px/1.3 var(--font-mono); text-align: center; }
@media (hover: none) { .sx-keys, .sx-kbd { display: none !important; } }

/* Related categories on the results page */
.q-cats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.page-title + .q-cats { justify-content: flex-start; margin-block-end: var(--s-5); color: var(--text-2); font-size: var(--fs-sm); font-weight: 550; }
.empty .q-cats { margin-block-start: var(--s-4); }

/* ---------- Drawer ---------- */
dialog.nh-drawer { background: var(--nh-paper); }
.nh-drawer .nh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nh-drawer .nh-tile .nh-art { block-size: 82px; }
.nh-drawer-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-block-start: 12px; min-block-size: 48px; border-radius: var(--r-full); background: var(--ink); color: var(--on-ink); font-weight: 650; text-decoration: none; }
.nh-drawer-all:hover { color: #fff; text-decoration: none; }
.nh-drawer > * { flex: none; }

@keyframes nh-drop { from { opacity: 0; margin-block-start: -10px; scale: .985; } }
@keyframes nh-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes nh-fade { from { opacity: 0; } }
@keyframes sx-load { from { background-position: -70% 0; } to { background-position: 170% 0; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) { .nh-mega .nh-panel { grid-template-columns: minmax(0, 1fr) 260px; } .nh-deal strong { font-size: 1.7rem; } .nh-deal-cd > span { min-inline-size: 42px; } }
@media (max-height: 780px) {
  .nh-tile .nh-art { block-size: 70px; }
  .nh-mega .nh-tiles a.nh-tile { gap: 6px; padding-block-end: 8px; }
  .nh-mega a.nh-deal { padding: 18px; gap: 8px; }
}
@media (max-width: 420px) { .nh-rail a.nh-hot { inline-size: 44px; padding: 0; justify-content: center; } .nh-rail a.nh-hot span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 1180px) {
  .nh-top-start a { display: none; }
  .nh-act:not(.nh-bag) { min-inline-size: 46px; }
  .nh-act > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nh-act { min-inline-size: 48px; min-block-size: 48px; }
  .nh-mega-btn { padding-inline: 16px; }
  .nh-mega-btn > span:not(.nh-grid-ic) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .sx-go { inline-size: 40px; padding: 0; justify-content: center; }
  .sx-go span { display: none; }
}
@media (max-width: 900px) {
  body.store { --header-h: 120px; }
  .nh-top-row { grid-template-columns: minmax(0, 1fr); min-block-size: 36px; }
  .nh-top-start, .nh-service { display: none; }
  .nh-news { flex-wrap: wrap; gap: 4px 10px; }
  .nh-row { flex-wrap: wrap; gap: 4px; padding-block: 6px 8px; }
  .js .nh-burger { display: inline-grid; }
  .nh .logo { margin-inline-end: auto; min-inline-size: 0; flex: 0 1 auto; }
  .nh .logo img { block-size: 38px; }
  .nh .logo .word { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
  .nh-mega, .nh-hide-sm { display: none !important; }
  html:not(.js) .nh-mega { display: block !important; order: 4; }
  .nh-act { min-inline-size: 44px; min-block-size: 44px; }
  .sx-slot { order: 5; flex: 1 0 100%; block-size: 48px; }
  .sx-bar { block-size: 48px; padding-inline: 14px 4px; }
  .store .sx input.sx-input { font-size: 16px; } /* 16px stops iOS zooming into the field */
  .sx-kbd { display: none; }

  /* search takes over the whole screen */
  body.search-open { overflow: hidden; }
  .sx.is-open { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; block-size: 100dvh; background: var(--nh-paper); animation: nh-fade 180ms ease; }
  .sx.is-open .sx-bar { flex: none; margin: 10px 10px 8px; box-shadow: none; padding-inline-start: 5px; }
  .sx.is-open .sx-back { display: grid; inline-size: 36px; block-size: 36px; }
  .sx.is-open .sx-ic, .sx.is-open .sx-go { display: none; }
  .sx.is-open .sx-bar { padding-inline-end: 8px; }
  .sx.is-open .sx-panel { position: relative; inset: auto; flex: 1; min-block-size: 0; inline-size: 100%; max-block-size: none; translate: none; border: 0; border-block-start: 1px solid var(--nh-line); border-radius: 0; box-shadow: none; animation: none; }
  .sx-scroll { padding-inline: 10px; padding-block-end: calc(20px + env(safe-area-inset-bottom)); }
  .sx-keys { display: none; }
}
@media (max-width: 520px) {
  .sx-cats:not(.sx-cats-hit) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-cat .nh-art { block-size: 62px; }
  .sx a.sx-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .sx-thumb { inline-size: 60px; block-size: 60px; grid-row: span 2; }
  .sx-price { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 8px; }
}
@media (max-width: 380px) { .nh .logo .word { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .nh-panel, .nh-tiles li, .sx-panel, .sx.is-open, .sx a.sx-item, body.store::after, body.store::before { animation: none !important; }
  .nh::after, .nh-art .ca, .nh .logo img { transition: none; }
  :is(.nh-art, .sx-thumb) .ca * { animation: none !important; }
}
