/* Layout: a picture shelf. A photo mosaic of the real range up top, brand cards that each show their
   packs, then a grid of product cards (photo when we have one, a drawn pack in the brand's colours when
   we do not) with a carton stepper on every card and one enquiry list that follows the buyer. */
:root {
  --stone: #ebeeee; --stone-2: #f8f9f8; --stone-3: #d2d7d8;
  --rice: #1e2327; --rice-dim: #555e66; --turmeric: #9b5a00;
  --card: #ffffff; --card-line: #dde2e3;
  --header-bg: rgba(235, 238, 238, .9); --header-line: rgba(30, 35, 39, .10);
  --hover-tint: rgba(30, 35, 39, .05);
  --field-bg: #ffffff; --panel-bg: #f8f9f8; --shade: rgba(16, 18, 20, .5);
  --art-a: #ffffff; --art-b: #eef0f0;
  --band: #191b1e; --on-band: #f2ebdd; --on-band-dim: #bdb5a7; --saffron: #e9a923;
  --chili: #d22a1f; --chili-deep: #a81f16; --forest: #15301f; --wa: #1f8f4e;
  --font-display: "Yatra One", "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --stone: #24272b; --stone-2: #2e3237; --stone-3: #43494f;
  --rice: #f2ebdd; --rice-dim: #bdb5a7; --turmeric: #e9a923;
  --card: #2b2f33; --card-line: #3c4247;
  --header-bg: rgba(30, 33, 36, .9); --header-line: rgba(67, 73, 79, .6);
  --hover-tint: rgba(242, 235, 221, .06);
  --field-bg: #24272b; --panel-bg: #1f2225; --shade: rgba(0, 0, 0, .65);
  --art-a: #33383c; --art-b: #26292d;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--rice); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; border-radius: 6px; }
[lang="ne"] { font-family: var(--font-display); }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-inline: 20px; }
.dim { color: var(--rice-dim); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-chili { background: var(--chili); color: #fff; }
.btn-chili:hover { background: var(--chili-deep); }
.btn-line { border-color: var(--rice-dim); background: transparent; color: var(--rice); }
.btn-line:hover { background: var(--hover-tint); border-color: var(--rice); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.92); }

/* Switches */
.mock-note { background: repeating-linear-gradient(135deg, rgba(233, 169, 35, .14) 0 12px, transparent 12px 24px); border-bottom: 1px dashed var(--turmeric); font-size: .93rem; }
.mock-note .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 9px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--stone-3); position: relative; transition: background-color .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .track { background: var(--chili); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--turmeric); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--header-line); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--rice-dim); margin-top: 4px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--rice-dim); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rice); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--chili); }
.icon-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--stone-3); background: none; cursor: pointer; color: var(--rice); }
.icon-btn:hover { background: var(--hover-tint); }
.icon-btn svg { width: 20px; height: 20px; }
.i-sun, :root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
.list-btn { padding: .55em 1.05em; font-size: .95rem; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--chili-deep); font-size: .8rem; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Hero with a photo mosaic of the real range */
.hero { padding-block: clamp(28px, 5vw, 56px) 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px 52px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
.hero .lede { margin-top: 14px; color: var(--rice-dim); font-size: 1.12rem; max-width: 52ch; }
.hero-search { position: relative; margin-top: 22px; max-width: 520px; }
.hero-search svg, .search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--rice-dim); pointer-events: none; }
.hero-search input, .search input { width: 100%; padding: .85em 1em .85em 48px; border-radius: 999px; border: 1.5px solid var(--stone-3); background: var(--field-bg); font-size: 1.05rem; }
.search input { padding: .6em .9em .6em 44px; font-size: 1rem; }
.hero-search input:focus, .search input:focus { outline: none; border-color: var(--turmeric); box-shadow: 0 0 0 3px rgba(233, 169, 35, .22); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 18px 0 0; padding: 0; color: var(--rice-dim); font-size: .98rem; }
.hero-facts b { color: var(--rice); }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 10px; aspect-ratio: 1.15; }
.mosaic figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: var(--card); box-shadow: 0 10px 30px rgba(20, 24, 28, .12); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; padding: .15em .65em; border-radius: 999px; background: rgba(20, 22, 24, .72); color: #fff; font-size: .8rem; font-weight: 600; }
.m1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.m1 img { object-position: 50% 40%; }
.m2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.m3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.m4 { grid-column: 1 / 3; grid-row: 4 / 5; }
.m5 { grid-column: 3 / 5; grid-row: 4 / 5; }

.how { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stone-3); border-bottom: 1px solid var(--stone-3); counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 16px 0; }
.how li + li { padding-left: 18px; border-left: 1px solid var(--stone-3); }
.how li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rice); color: var(--stone); font-weight: 700; font-size: .9rem; }
.how b { display: block; line-height: 1.3; }
.how span { color: var(--rice-dim); font-size: .92rem; }

/* Brands */
.brands { padding-block: 30px 34px; }
.label { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.own { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); width: 100%; padding: 0; border: 2px solid transparent; border-radius: 22px; overflow: hidden; background: var(--forest); color: var(--on-band); text-align: left; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.own:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(21, 48, 31, .25); }
.own[aria-pressed="true"] { border-color: var(--saffron); }
.own-photo { position: relative; display: block; min-height: 300px; background: #fff; }
.own-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.own-text { display: grid; gap: 12px; align-content: center; padding: clamp(22px, 3vw, 36px); }
.own-top { display: flex; align-items: center; gap: 14px; }
.own-top img { width: 56px; }
.own-name { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1; }
.own-what { color: #c9d6cc; }
.own-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.own-cats span { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(242, 235, 221, .12); font-size: .84rem; font-weight: 600; }
.own-cats img, .own-cats .dot { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: rgba(242,235,221,.2); }
.own-go { color: var(--saffron); font-weight: 700; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; margin-top: 28px; }
.btile { display: grid; grid-template-rows: auto 1fr; padding: 0; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--card-line); background: var(--card); text-align: left; cursor: pointer; min-width: 0; transition: border-color .2s, transform .25s, box-shadow .25s; }
.btile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 24, 28, .12); }
.btile[aria-pressed="true"] { border-color: var(--chili); box-shadow: 0 0 0 2px var(--chili); }
.btile-art { position: relative; display: block; height: 128px; overflow: hidden; background: color-mix(in srgb, var(--c1) 16%, var(--card)); }
.btile-art svg { position: absolute; bottom: -8px; width: 42%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.btile-art svg:nth-child(1) { left: 6%; transform: rotate(-9deg); }
.btile-art svg:nth-child(2) { left: 29%; bottom: 0; width: 44%; z-index: 2; }
.btile-art svg:nth-child(3) { right: 6%; transform: rotate(9deg); }
.btile-body { display: grid; gap: 3px; align-content: start; padding: 12px 14px 14px; }
.btile b { font-size: 1.04rem; line-height: 1.25; }
.btile .count { font-size: .84rem; font-weight: 600; color: var(--turmeric); }
.btile .what { font-size: .87rem; color: var(--rice-dim); line-height: 1.4; }
.btile.all .btile-art { background: var(--stone-2); display: grid; place-items: center; }
.btile.all .btile-art span { font-family: var(--font-display); font-size: 2.6rem; color: var(--rice-dim); }

/* Drawn packs: stand-ins for products without a photo */
.art { position: relative; display: block; width: 100%; height: 100%; container-type: inline-size; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c1) 8%, var(--art-a)), color-mix(in srgb, var(--c1) 20%, var(--art-b))); }
.art svg { position: absolute; left: 10%; top: 6%; width: 80%; height: 88%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); }
.art-label { position: absolute; left: calc(10% + var(--lx) * .8); top: calc(6% + var(--ly) * .88); width: calc(var(--lw) * .8); height: calc(var(--lh) * .88); display: grid; align-content: center; justify-items: center; gap: .4cqw; text-align: center; color: #1e2327; overflow: hidden; padding: 0 1.5cqw; }
.art-brand { font-size: clamp(7px, 3.6cqw, 12px); font-weight: 700; color: var(--c1); line-height: 1.1; }
.art-name { font-size: clamp(8px, 4.6cqw, 15px); font-weight: 700; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-size { font-size: clamp(7px, 3.4cqw, 11px); color: #555e66; font-weight: 600; }
.art .c1, .btile-art .c1 { fill: var(--c1); }
.art .c2, .btile-art .c2 { fill: var(--c2); }
.art .lbl, .btile-art .lbl { fill: rgba(255, 255, 255, .94); }
.art .shade, .btile-art .shade { fill: rgba(0, 0, 0, .14); }
.art .shine, .btile-art .shine { fill: rgba(255, 255, 255, .22); }

/* Catalog */
.catalog { padding-block: 0 150px; }
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 69px); z-index: 20; background: var(--stone); padding-block: 12px 10px; border-bottom: 1px solid var(--stone-3); display: grid; gap: 10px; }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.current { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.current img { width: 28px; }
.current .cdot { width: 22px; height: 22px; border-radius: 6px; background: var(--c1); }
.change { font-size: .9rem; font-weight: 600; color: var(--rice-dim); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.showing { color: var(--rice-dim); font-size: .95rem; margin-left: auto; }
.showing b { color: var(--rice); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1.5px solid var(--stone-3); background: var(--card); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--rice-dim); white-space: nowrap; }
.chip img, .chip .ci { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; overflow: hidden; display: block; flex: none; }
.chip.noimg { padding-left: 14px; }
.chip:hover { border-color: var(--rice-dim); color: var(--rice); }
.chip[aria-pressed="true"] { background: var(--rice); border-color: var(--rice); color: var(--stone); }
.chip .n { opacity: .7; font-variant-numeric: tabular-nums; }

.group { margin-top: 34px; }
.ghead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.ghead h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ghead small { color: var(--rice-dim); font-size: .95rem; }
.bubbles { display: flex; margin-left: auto; padding-left: 12px; }
.bubbles img, .bubbles .bb { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid var(--stone); margin-left: -12px; background: var(--card); overflow: hidden; display: block; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr auto; border-radius: 18px; overflow: hidden; background: var(--card); border: 1.5px solid var(--card-line); transition: border-color .2s, box-shadow .25s, transform .25s; min-width: 0; }
.card:hover { box-shadow: 0 14px 34px rgba(20, 24, 28, .12); transform: translateY(-2px); }
.card.on { border-color: var(--chili); box-shadow: 0 0 0 1.5px var(--chili); }
.media { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--stone-2); cursor: zoom-in; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .media img { transform: scale(1.05); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: .1em .6em; border-radius: 999px; background: rgba(20, 22, 24, .72); color: #fff; font-size: .75rem; font-weight: 600; }
.inlist { position: absolute; top: 10px; right: 10px; z-index: 2; display: none; align-items: center; gap: 5px; padding: .15em .65em .15em .45em; border-radius: 999px; background: var(--chili); color: #fff; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.inlist svg { width: 14px; height: 14px; }
.card.on .inlist { display: inline-flex; }
.cbody { display: grid; gap: 3px; align-content: start; padding: 12px 14px 4px; min-width: 0; }
.cbody .ne { color: var(--turmeric); font-size: 1.08rem; line-height: 1.25; }
.cbody .name { font-weight: 700; line-height: 1.28; }
.facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.facts span { font-size: .76rem; font-weight: 600; padding: .05em .55em; border-radius: 6px; background: var(--hover-tint); border: 1px solid var(--stone-3); color: var(--rice-dim); }
.price { display: none; margin-top: 6px; font-size: .88rem; color: var(--rice-dim); font-variant-numeric: tabular-nums; }
.price b { color: var(--rice); font-size: 1rem; }
.price .ask { font-style: italic; }
:root.show-prices .price { display: block; }
.cfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 14px; }
.ql { display: grid; line-height: 1.2; }
.ql > span:first-child { font-size: .8rem; font-weight: 700; }
.units { font-size: .75rem; color: var(--rice-dim); font-variant-numeric: tabular-nums; min-height: 1.1em; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--stone-3); border-radius: 999px; background: var(--field-bg); overflow: hidden; flex: none; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 600; color: var(--rice); }
.stepper button:hover { background: var(--hover-tint); }
.stepper button:disabled { color: var(--stone-3); cursor: default; background: none; }
.stepper input { width: 42px; height: 36px; border: 0; background: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card.on .stepper { border-color: var(--chili); }
.empty { padding: 40px 0; color: var(--rice-dim); }
.empty b { color: var(--rice); }

/* Enquiry bar */
.enq-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--band); color: var(--on-band); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 -12px 30px rgba(0, 0, 0, .2); }
.enq-bar.show { transform: none; }
.enq-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 10px; }
.bar-thumbs { display: flex; padding-left: 10px; }
.bar-thumbs img, .bar-thumbs .bb { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--band); margin-left: -10px; background: #fff; overflow: hidden; display: block; }
.bar-thumbs .more { width: 42px; height: 42px; border-radius: 50%; margin-left: -10px; display: grid; place-items: center; background: #3a3f44; font-size: .8rem; font-weight: 700; border: 2px solid var(--band); }
.enq-bar .sum { margin-right: auto; display: flex; flex-wrap: wrap; gap: 0 18px; }
.enq-bar .sum b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.enq-bar .est { display: none; color: var(--on-band-dim); }
:root.show-prices .enq-bar .est { display: inline; }

/* Large view of a product */
dialog.zoom { width: min(980px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 0; border-radius: 22px; background: var(--panel-bg); color: var(--rice); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
dialog.zoom::backdrop, dialog.drawer::backdrop { background: var(--shade); }
dialog.zoom[open] { animation: pop .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.zoom-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.zoom-media { background: var(--stone-2); min-height: 320px; display: grid; place-items: center; }
.zoom-media img { width: 100%; height: 100%; object-fit: contain; max-height: 78vh; }
.zoom-media .art { aspect-ratio: 1; height: auto; }
.zoom-text { display: grid; gap: 10px; align-content: start; padding: 28px 26px; }
.zoom-text .ne { color: var(--turmeric); font-size: 1.5rem; line-height: 1.2; }
.zoom-text h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; line-height: 1.25; }
.zoom-text .from { color: var(--rice-dim); font-weight: 600; }
.zoom-text .facts span { font-size: .85rem; }
.zoom-qty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--stone-3); }
.zoom-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--panel-bg); }

/* Drawer */
dialog.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(500px, 100%); max-width: 100%; padding: 0; border: 0; background: var(--panel-bg); color: var(--rice); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
dialog.drawer[open] { animation: slidein .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-inner { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--stone-3); }
.drawer-head h2 { font-size: 1.6rem; margin-right: auto; }
.drawer-body { overflow: auto; padding: 6px 20px 28px; }
.d-brand { margin-top: 16px; font-weight: 700; font-size: .95rem; color: var(--rice-dim); }
.d-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--stone-3); }
.d-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; grid-row: span 2; background: var(--stone-2); display: block; }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-item .name { font-weight: 600; line-height: 1.3; }
.d-item .sub { font-size: .8rem; color: var(--rice-dim); grid-column: 2; }
.d-item .stepper { grid-row: span 2; }
.d-item .stepper button { width: 32px; height: 32px; }
.d-item .stepper input { width: 38px; height: 32px; }
.remove { grid-row: span 2; border: 0; background: none; color: var(--rice-dim); cursor: pointer; padding: 6px; border-radius: 8px; }
.remove:hover { color: var(--chili); background: var(--hover-tint); }
.remove svg { width: 18px; height: 18px; display: block; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--hover-tint); }
.totals div { display: grid; }
.totals span { font-size: .8rem; color: var(--rice-dim); font-weight: 600; }
.totals b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.totals .est-row { grid-column: 1 / -1; display: none; border-top: 1px solid var(--stone-3); padding-top: 8px; }
:root.show-prices .totals .est-row { display: grid; }
.est-row small { color: var(--rice-dim); }
.d-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.d-form h3 { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.35rem; }
.field { display: grid; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--rice-dim); }
.field input, .field textarea { width: 100%; padding: .6em .8em; border-radius: 10px; border: 1.5px solid var(--stone-3); background: var(--field-bg); font-size: 1rem; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--turmeric); box-shadow: 0 0 0 3px rgba(233, 169, 35, .22); }
.d-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.d-note { grid-column: 1 / -1; font-size: .88rem; color: var(--rice-dim); }
.d-status { grid-column: 1 / -1; color: var(--chili); font-weight: 600; min-height: 1.4em; }
.d-empty { padding: 36px 4px; color: var(--rice-dim); display: grid; gap: 14px; justify-items: start; }
.d-empty b { color: var(--rice); font-size: 1.1rem; }
.preview { display: grid; gap: 14px; padding-top: 18px; }
.preview h3 { font-family: var(--font-display); font-size: 1.5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.preview pre { margin: 0; padding: 16px; border-radius: 12px; background: var(--field-bg); border: 1px solid var(--stone-3); font: .86rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 52vh; overflow: auto; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .own { grid-template-columns: minmax(0, 1fr); }
  .own-photo { min-height: 220px; }
  .zoom-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .header-row { gap: 10px; }
  .brand-name small { display: none; }
  .list-btn .lbl { display: none; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--stone-3); }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .btile-art { height: 100px; }
  .btile .what { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cbody { padding: 10px 10px 2px; }
  .cbody .ne { font-size: .95rem; }
  .cbody .name { font-size: .95rem; }
  .cfoot { flex-direction: column; align-items: stretch; padding: 8px 10px 12px; }
  .cfoot .stepper { width: 100%; }
  .cfoot .stepper input { flex: 1; width: auto; min-width: 0; }
  .bubbles { display: none; }
  .showing { margin-left: 0; }
  .bar-thumbs { display: none; }
  .enq-bar .btn { flex: 1 1 100%; }
  .d-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
