/* ==========================================================================
   BanSek Trade v2 — chrome: navbar and its dropdowns, menu, search, basket,
   assistant, footer, floating controls
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  color: var(--ink);
  transition: transform var(--dur-mid) var(--ease-soft),
              background-color var(--dur-mid) var(--ease-soft),
              color var(--dur-mid) var(--ease-soft);
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-soft);
}
.nav.is-scrolled {
  background: var(--paper-92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-scrolled .nav__bar { border-bottom-color: var(--paper-3); }
.nav.is-hidden { transform: translateY(-100%); }
.nav[data-tone="dark"]:not(.is-scrolled) { color: var(--paper); }

.nav__brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: inherit; }
.nav__mark { width: 36px; height: auto; }
.nav__mark--paper { display: none; }
.nav[data-tone="dark"]:not(.is-scrolled) .nav__mark--ink { display: none; }
.nav[data-tone="dark"]:not(.is-scrolled) .nav__mark--paper { display: block; }
.nav__word {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.nav__menu { flex: 1; display: none; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
  opacity: .82;
  transition: opacity var(--dur-fast) var(--ease-soft);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link[aria-expanded="true"], .nav__link[data-current] { opacity: 1; }
/* The underline draws in, in the brand green — on a link it is the link, on
   a dropdown button it is the label span. */
.nav__link.u-draw, .nav__link .u-draw {
  background-image: linear-gradient(var(--lime-ink), var(--lime-ink));
  padding-block: 3px;
}
.nav__link[aria-current="page"].u-draw,
.nav__link[aria-expanded="true"] .u-draw,
.nav__link[data-current] .u-draw,
.nav__link:hover .u-draw { background-size: 100% 1px; }
.nav__caret { transition: transform var(--dur-mid) var(--ease-soft); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
html.js .nav__nojs, html:not(.js) .nav__js { display: none; }

.nav__icons { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav .icon-btn { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.nav .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--night);
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__icons { margin-left: 0; }
}
.nav__link { white-space: nowrap; }
/* Laptop widths: the six items and three carets need the brand word's room. */
@media (min-width: 1024px) and (max-width: 1279.98px) { .nav__list { gap: 16px; } .nav__bar { gap: 18px; } }
@media (min-width: 1024px) and (max-width: 1199.98px) { .nav__word { display: none; } }
/* Small phones: brand, three 44px controls and the gutters fit 360px. */
@media (max-width: 399.98px) {
  .nav__bar { gap: 12px; }
  .nav__brand { gap: 8px; }
  .nav__word { font-size: 18px; }
  .nav__icons { gap: 4px; }
}

/* --------------------------------------------------------------------------
   Dropdowns (Part B) — the Program and Proizvodi mega menus and the
   Tehnička podrška list. Paper, hairline border, 16px radius, a soft
   clip-path reveal. Mega panels hang from the whole navbar (the fixed header
   is their containing block); the list hangs from its own item.
   -------------------------------------------------------------------------- */
.drop {
  position: absolute;
  z-index: 2;
  border: var(--hairline);
  border-radius: var(--r-tile);
  background: var(--paper);
  color: var(--ink);
  clip-path: inset(0 0 100% 0 round var(--r-tile));
  transition: clip-path var(--dur-mid) var(--ease-out);
}
.drop.is-open { clip-path: inset(0 0 0 0 round var(--r-tile)); }
.drop--mega {
  top: calc(100% - 4px);
  left: 50%;
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
}
.nav__item--podrska { position: relative; }
.drop--list { top: calc(100% + 10px); left: -18px; min-width: 260px; padding: 8px 18px; }
.drop--list .drop__list li + li { border-top: var(--hairline); }

.drop__inner { display: grid; gap: 0 36px; padding: 32px 36px 36px; }
.drop__inner--program { grid-template-columns: repeat(3, minmax(0, 1fr)) 220px; }
.drop__inner--products { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)) 240px; }
.drop__col + .drop__col { border-left: var(--hairline); padding-left: 36px; }
.drop__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.2;
}
.drop__title a:hover { color: var(--lime-text); }
.drop__title--micro { margin-bottom: 12px; font-size: var(--fs-micro); }
.drop__count { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--steel); }
.drop__list li + li { border-top: var(--hairline); }
.drop__list--quiet { columns: 2; column-gap: 24px; }
.drop__list--quiet li { break-inside: avoid; }
.drop__list--quiet li + li { border-top: 0; }
.drop__link { display: block; padding: 9px 0; font-size: 15px; color: var(--ink-2); }
.drop__list--quiet .drop__link { padding: 5px 0; font-size: 13px; }
.drop__link:hover { color: var(--ink); }
.drop__link.is-empty { color: var(--steel); }
.drop__link.is-empty:hover { color: var(--ink-2); }
.drop__feature { display: grid; gap: 12px; align-content: start; }
.drop__tile { display: grid; gap: 14px; }
.drop__img { aspect-ratio: 4 / 5; }
.drop__eyebrow { margin-bottom: -2px; }
.drop__product { display: grid; gap: 6px; }
.drop__pimg { aspect-ratio: 4 / 5; background: var(--paper-2); }
.drop__pname { font-family: var(--font-serif); font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.drop__product:hover .drop__pname { color: var(--lime-text); }
.drop__req { color: var(--lime-text); }
.drop__more { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* --------------------------------------------------------------------------
   Overlays — shared surface (menu, search). Hidden attribute governs
   presence; .is-open governs the transition.
   -------------------------------------------------------------------------- */
.menu, .search {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-soft);
}
.menu.is-open, .search.is-open { opacity: 1; }
html.is-locked, html.is-locked body { overflow: hidden; }

.menu__head, .search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  border-bottom: var(--hairline);
}

/* --------------------------------------------------------------------------
   Menu
   -------------------------------------------------------------------------- */
.menu__body {
  display: grid;
  gap: 48px;
  padding-block: 32px 64px;
}
.menu__list > li { border-bottom: var(--hairline); }
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  text-align: left;
}
.menu__link[aria-current="page"] { font-style: italic; }
.menu__link:hover { color: var(--lime-text); }
.menu__plus { flex: none; transition: transform var(--dur-mid) var(--ease-soft); }
.menu__link[aria-expanded="true"] .menu__plus { transform: rotate(45deg); }
.menu__sub { display: grid; gap: 24px; padding: 4px 0 28px; }
.menu__group-title { font-size: 18px; margin-bottom: 6px; color: var(--steel); }
.menu__sublink { display: block; padding: 6px 0; font-size: 16px; color: var(--ink-2); }
.menu__sublink:hover { color: var(--ink); }
.menu__sublink.is-empty { color: var(--steel); }
.menu__group-title a { color: inherit; }
.menu__all { justify-self: start; font-size: 14px; }

.menu__aside { display: grid; gap: 32px; align-content: start; }
.menu__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.menu__block { display: grid; gap: 8px; }
.menu__block > a { justify-self: start; }
.menu__phone { font-size: clamp(28px, 3vw, 40px); font-weight: 300; color: var(--ink); line-height: 1.1; }
.menu__phones li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: var(--hairline);
  font-size: 15px;
}
.menu__phones a { color: var(--ink); }
.menu__phones .menu__flag { margin-left: auto; color: var(--lime-text); }
.lang { display: inline-flex; gap: 4px; }
.lang__btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.lang__btn[aria-current="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lang__btn:disabled { cursor: not-allowed; opacity: .55; }

@media (min-width: 1024px) {
  .menu__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 96px; padding-top: 56px; }
  .menu__sub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu__all { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Search overlay — the v1 parts search, on paper
   -------------------------------------------------------------------------- */
.search__body { display: grid; gap: 48px; padding-block: clamp(32px, 6vw, 80px) 64px; }
.search__main { min-width: 0; }
.search__title { margin-bottom: 32px; max-width: 14ch; }
.psearch__tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--paper-3);
}
.psearch__tabs::-webkit-scrollbar { display: none; }
.psearch__pill {
  position: absolute;
  left: 0;
  top: 4px;
  border-radius: var(--r-pill);
  background: var(--ink);
  transform-origin: left center;
  opacity: 0;
}
.psearch__tabs.has-pill .psearch__pill { opacity: 1; }
.psearch__pill.is-moving { transition: transform var(--dur-mid) var(--ease-out); }
.psearch__tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color var(--dur-mid) var(--ease-soft);
}
.psearch__tab[aria-selected="true"] { color: var(--paper); }
.psearch__tabs:not(.has-pill) .psearch__tab[aria-selected="true"] { background: var(--ink); }

.psearch__panel { margin-top: 28px; }
.psearch__row { display: grid; gap: 16px; }
.psearch__field {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-3);
}
.psearch__panel.is-focused .psearch__field { border-bottom-color: var(--lime-ink); }
.psearch__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink);
  outline: none;
}
.psearch__input::placeholder { color: var(--steel); }
.psearch__input::-webkit-search-cancel-button { display: none; }
.psearch__clear { display: none; width: 32px; height: 32px; place-items: center; border-radius: var(--r-pill); color: var(--ink-2); }
.psearch__clear.is-visible { display: grid; }
.psearch__submit { justify-self: start; }
.psearch__selects { display: grid; gap: 12px; }
.psearch__select select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
.psearch__select select:disabled { color: var(--ink-3); }
.psearch__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.psearch__chips-label { margin-right: 6px; }
.psearch__chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--paper-3);
  color: var(--ink-2);
}
.psearch__chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.psearch__result {
  display: none;
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
  color: var(--ink-2);
}
.psearch__result.is-visible { display: flex; }
.psearch__result-icon { flex: none; color: var(--lime-ink); margin-top: 2px; }
.psearch__result.is-error .psearch__result-icon { color: var(--ink); }
.psearch__result-title { font-family: var(--font-serif); font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.psearch__result-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-ink); text-underline-offset: 3px; }
.search__catalog { display: inline-block; margin-top: 24px; font-size: 14px; }
.search__aside { display: grid; gap: 12px; align-content: start; }
.search__help { font-size: 17px; color: var(--ink-2); max-width: 36ch; }
.search__list li { padding: 8px 0; border-bottom: var(--hairline); font-size: 15px; }

@media (min-width: 768px) {
  .psearch__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .psearch__selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .search__body { grid-template-columns: minmax(0, 1fr) 320px; gap: 96px; }
}

/* --------------------------------------------------------------------------
   Inquiry basket drawer
   -------------------------------------------------------------------------- */
.basket {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--night-40);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-soft);
}
.basket.is-open { opacity: 1; }
.basket__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  transform: translateX(24px);
  transition: transform var(--dur-mid) var(--ease-out);
}
.basket.is-open .basket__panel { transform: none; }
.basket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 0 24px;
  border-bottom: var(--hairline);
}
.basket__title { font-size: 26px; }
.basket__body { flex: 1; overflow-y: auto; padding: 24px; }
.basket__empty { color: var(--ink-2); font-size: 15px; max-width: 32ch; }

/* --------------------------------------------------------------------------
   Assistant panel (js/ai-assistant.js toggles .is-open on #ai)
   -------------------------------------------------------------------------- */
/* The launcher: the floating "Asistent" pill, bottom left, on night (A5). */
.ai__launcher {
  position: fixed;
  left: var(--gutter);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px 0 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color var(--dur-fast) var(--ease-soft);
}
.ai__launcher.night:hover { background-color: var(--night-2); }
.ai__launcher.night .ai__launcher-icon { color: var(--lime); }
.ai__panel {
  position: fixed;
  left: var(--gutter);
  bottom: 76px;
  z-index: var(--z-float);
  display: none;
  flex-direction: column;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  height: min(560px, calc(100svh - 120px));
  border: var(--hairline);
  border-radius: var(--r-tile);
  background: var(--paper);
  color: var(--ink-2);
  overflow: hidden;
}
.ai.is-open .ai__panel { display: flex; }
.ai__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: var(--hairline); }
.ai__head img { width: 32px; height: auto; }
.ai__head-text { flex: 1; }
.ai__head-title { font-size: 18px; color: var(--ink); line-height: 1.2; }
.ai__log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg--bot { background: var(--paper-2); color: var(--ink-2); justify-self: start; }
.msg--user { background: var(--ink); color: var(--paper); justify-self: end; }
.msg a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime-ink); text-underline-offset: 3px; }
.msg--typing { color: var(--steel); }
.ai__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ai__chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--paper-3);
  font-size: 12px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
}
.ai__chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.ai__form { display: flex; gap: 8px; padding: 12px 16px; border-top: var(--hairline); }
.ai__input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--paper-3); border-radius: var(--r-pill); background: var(--paper); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-l);
  border-top: var(--hairline);
  background: var(--paper);
  color: var(--ink-2);
}
.footer__inner {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 64px 48px;
}
.footer__brand, .footer__contact { grid-column: 1 / -1; }
.footer__mark { width: 72px; height: auto; margin-bottom: 20px; }
.footer__tagline { max-width: 34ch; font-size: 15px; }
.footer__badge { margin-top: 14px; color: var(--lime-text); }
.footer__col h2 { margin-bottom: 16px; }
.footer__col li + li { margin-top: 8px; }
.footer__link { font-size: 15px; color: var(--ink-2); text-align: left; }
.footer__link:hover { color: var(--ink); }
.footer__contact p { font-size: 14px; line-height: 1.6; }
.footer__contact p + p { margin-top: 14px; }
.footer__label { display: block; color: var(--ink); font-weight: 500; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px;
  border-top: var(--hairline);
  font-size: 12px;
  color: var(--steel);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__word {
  margin: 8px 0 0;
  padding-inline: var(--gutter);
  font-size: clamp(64px, 13.5vw, 220px);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--paper-3);
  margin-bottom: -0.12em;
  user-select: none;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.3fr; }
  .footer__brand, .footer__contact { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   Floating — back-to-top, bottom right: night, lime chevron, lime progress
   ring (A5). The Asistent pill is bottom left, with the assistant above.
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  right: var(--gutter);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-soft), visibility 0s linear var(--dur-mid);
}
.totop.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.totop > * { grid-area: 1 / 1; }
.totop__ring { transform: rotate(-90deg); }
.totop__track, .totop__bar { fill: none; stroke-width: 1.5; }
.totop.night .totop__track { stroke: var(--night-line); }
.totop.night .totop__bar { stroke: var(--lime); transition: stroke-dashoffset 120ms linear; }
.totop.night .totop__chevron { color: var(--lime); }
html:not(.js) .totop { display: none; }

/* --------------------------------------------------------------------------
   No JavaScript: overlays cannot open, so the controls that only open them
   step aside and the primary links stay reachable as plain links — on small
   screens as a scrollable second row under the bar.
   -------------------------------------------------------------------------- */
html:not(.js) .ai__launcher,
html:not(.js) [data-add],
html:not(.js) .pgallery__zoom,
html:not(.js) #search-open,
html:not(.js) #basket-open,
html:not(.js) #menu-open { display: none; }
@media (max-width: 1023.98px) {
  html:not(.js) .nav__bar { flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  html:not(.js) .nav__menu {
    display: flex;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  html:not(.js) .nav__list { gap: 20px; }
  html:not(.js) .nav__link { white-space: nowrap; }
}
html:not(.js) .nav { position: relative; }
.menu__group-title.micro { font-size: var(--fs-micro); margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Basket — list, form, ready step (spec §6.2) and the toast
   -------------------------------------------------------------------------- */
.basket__intro { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.basket__step { display: grid; gap: 18px; outline: none; }
.basket__list { display: grid; }
.bitem {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: var(--hairline);
}
.bitem__img { display: block; width: 64px; aspect-ratio: 4 / 5; border-radius: 10px; }
.bitem__img img { width: 100%; height: 100%; object-fit: cover; }
.bitem__text { display: grid; gap: 6px; min-width: 0; }
.bitem__name { font-family: var(--font-serif); font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.bitem__name:hover { color: var(--lime-text); }
.bitem__no { font-size: 12px; }
.bitem__qty { display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--paper-3); border-radius: var(--r-pill); }
.bitem__step { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); color: var(--ink-2); }
.bitem__step:hover { color: var(--ink); background: var(--paper-2); }
.bitem__input { width: 40px; border: 0; background: none; text-align: center; font-size: 14px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.bitem__input::-webkit-inner-spin-button, .bitem__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bitem__remove { width: 36px; height: 36px; border-color: var(--paper-3); }
.bform { display: grid; gap: 14px; padding-top: 8px; }
.bform__title { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.bfield { display: grid; gap: 6px; }
.bfield__label { font-size: 13px; color: var(--ink-2); }
.bfield__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  resize: vertical;
}
.bfield__input:hover { border-color: var(--ink-3); }
.bfield__input[aria-invalid] { border-color: var(--error); }
.bfield__error { font-size: 13px; color: var(--error); }
.bform__hint { font-size: 13px; color: var(--steel); margin-top: -6px; }
.bform__submit { justify-self: start; }
.basket__ready { font-size: 26px; }
.basket__text { min-height: 160px; font-size: 13px; }
.basket__after { display: grid; gap: 12px; justify-items: start; padding-top: 18px; border-top: var(--hairline); }
.basket__back { font-size: 14px; }
.basket__copied { color: var(--lime-text); min-height: 1.4em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(80px, calc(env(safe-area-inset-bottom) + 72px));
  z-index: var(--z-overlay);
  max-width: min(92vw, 460px);
  padding: 14px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast.night::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }

/* Inner pages start below the fixed navbar; without JS the navbar is static. */
.page-inner main { padding-top: var(--nav-h); }
html:not(.js) .page-inner main { padding-top: 0; }
