/* Cozy web — site chrome (layout.gohtml + _header/_aside_filters/_footer/_toast).
   Design tokens below are copied 1:1 from design-system/tokens.css — that
   file (and COZY_MOBILE_DESIGN.md) is the single source of truth for
   color/shape; do not invent new values here, extend the token list
   there instead if a new one is needed. */

:root {
  /* ---- Brand / accent ---- */
  --cozy-accent:          #FF7A1A;
  --cozy-accent-hover:    #E06400;
  --cozy-accent-strong:   #F2600C;
  --cozy-accent-light:    #FF9438;
  --cozy-accent-ink:      #B35400;
  --cozy-accent-border:   #FFD9B3;

  /* ---- Accent surfaces ---- */
  --cozy-accent-bg:       #FFF3E9;
  --cozy-accent-bg-2:     #FFEEDF;
  --cozy-accent-bg-3:     #FFF8F2;

  /* ---- Neutrals ---- */
  --cozy-ink:             #1A1A1A;
  --cozy-ink-2:           #666666;
  --cozy-ink-3:           #999999;
  --cozy-ink-4:           #BBBBBB;
  --cozy-ink-5:           #CCCCCC;
  --cozy-ink-6:           #DDDDDD;

  --cozy-surface:         #FFFFFF;
  --cozy-surface-2:       #FAFAFA;
  --cozy-canvas:          #F5F5F3;
  --cozy-border:          #E5E5E3;

  /* ---- Tab bar (mobile-only token, kept for parity with tokens.css) ---- */
  --cozy-tabbar-bg:       #FF7A1A;
  --cozy-tabbar-active:   #FFFFFF;
  --cozy-tabbar-inactive: #FFD9B3;

  /* ---- Status ---- */
  --cozy-danger:          #E5484D;
  --cozy-geo:             #2F6FED;

  /* ---- Map (branches screen) ---- */
  --cozy-map-bg:          #EDEEEA;
  --cozy-map-grid:        #E2E4DD;
  --cozy-map-road:        #E4E1D8;

  /* ---- Typography ---- */
  --cozy-font: 'Manrope', 'Inter Kyrgyz', system-ui, -apple-system, sans-serif;
  --cozy-fs-10: 10px;
  --cozy-fs-11: 11px;
  --cozy-fs-12: 12px;
  --cozy-fs-13: 13px;
  --cozy-fs-14: 14px;
  --cozy-fs-15: 15px;
  --cozy-fs-16: 16px;
  --cozy-fs-17: 17px;
  --cozy-fs-19: 19px;
  --cozy-fs-21: 21px;
  --cozy-fs-22: 22px;
  --cozy-tracking-tight: -0.02em;

  /* ---- Radii ---- */
  --cozy-r-5:   5px;
  --cozy-r-6:   6px;
  --cozy-r-8:   8px;
  --cozy-r-9:   9px;
  --cozy-r-10:  10px;
  --cozy-r-11:  11px;
  --cozy-r-12:  12px;
  --cozy-r-14:  14px;
  --cozy-r-16:  16px;
  --cozy-r-18:  18px;
  --cozy-r-pill: 999px;

  /* ---- Spacing ---- */
  --cozy-pad-screen: 16px;
  --cozy-pad-card:   11px;
  --cozy-gap-grid:   12px;

  /* ---- Elevation ---- */
  --cozy-shadow-phone: 0 24px 60px rgba(26,26,26,.14);
  --cozy-shadow-drawer: 8px 0 24px rgba(26,26,26,.12);
  --cozy-shadow-pin:   0 3px 8px rgba(26,26,26,.25);
  --cozy-shadow-chip:  0 4px 10px rgba(26,26,26,.1);
  --cozy-scrim:        rgba(26,26,26,.35);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cozy-canvas);
  font-family: var(--cozy-font);
  color: var(--cozy-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

@keyframes sbUp {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Header (COZY_WEB_DESIGN.md §2) ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cozy-surface);
  border-bottom: 0.5px solid var(--cozy-border);
}
.header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo__icon {
  border-radius: var(--cozy-r-8);
  display: block;
}
.logo__mark {
  font-weight: 800;
  font-size: 20px;
  color: var(--cozy-ink);
  letter-spacing: var(--cozy-tracking-tight);
}
.nav { display: flex; gap: 22px; flex-shrink: 0; }
.nav__link { font-size: var(--cozy-fs-14); font-weight: 600; color: var(--cozy-ink); }
.nav__link--active { color: var(--cozy-accent); }
.search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cozy-surface-2);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-12);
  padding: 10px 14px;
}
.search i { font-size: 16px; color: var(--cozy-ink-3); }
.search input { flex: 1; border: none; background: none; outline: none; font-size: var(--cozy-fs-14); color: var(--cozy-ink); min-width: 0; }
.header__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; margin-left: auto; }
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--cozy-ink);
  font-size: 22px;
}
.icon-btn--active { color: var(--cozy-accent); }
.icon-btn .badge {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--cozy-r-pill);
  background: var(--cozy-accent);
  color: var(--cozy-surface);
  font-size: var(--cozy-fs-10);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cozy-accent-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cozy-accent);
  font-size: 17px;
}

/* ---- Page shell: sticky aside (260px) + main ---- */
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px 60px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.aside {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside__card {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  padding: 16px;
}
.aside__title {
  font-size: var(--cozy-fs-12);
  font-weight: 800;
  color: var(--cozy-ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.aside__account { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.aside__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cozy-accent-bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cozy-accent); font-size: 19px; flex-shrink: 0;
}
.aside__account-info { min-width: 0; }
.aside__account-name { font-size: 13.5px; font-weight: 700; color: var(--cozy-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside__account-phone { font-size: var(--cozy-fs-11); color: var(--cozy-ink-3); }
.aside__link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 4px; font-size: var(--cozy-fs-13); color: var(--cozy-ink);
}
.aside__link i { color: var(--cozy-accent); font-size: 17px; }
.aside__link-count { margin-left: auto; color: var(--cozy-ink-3); }
.aside__login { display: block; width: 100%; text-align: center; }
.aside__pill {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--cozy-r-9);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cozy-ink);
  margin-bottom: 2px;
}
.aside__pill:hover { background: var(--cozy-surface-2); }
.aside__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface-2);
  color: var(--cozy-ink);
  padding: 7px 12px;
  border-radius: var(--cozy-r-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.aside__checkbox { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: var(--cozy-fs-13); color: var(--cozy-ink); }
.aside__checkbox input { width: 15px; height: 15px; accent-color: var(--cozy-accent); }
.aside__reset { border: none; background: none; color: var(--cozy-accent); font-size: var(--cozy-fs-13); font-weight: 600; padding: 0; text-align: left; cursor: pointer; }

.main { flex: 1; min-width: 0; }

/* ---- Footer ---- */
.footer { border-top: 0.5px solid var(--cozy-border); margin-top: 24px; }
.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--cozy-fs-13);
  color: var(--cozy-ink-2);
}
.footer__links { display: flex; gap: 18px; }
.footer__links a:hover { color: var(--cozy-accent); }
.footer__legal {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 20px;
  font-size: var(--cozy-fs-13);
  color: var(--cozy-ink-3);
}

/* ---- Toast (COZY_WEB_DESIGN.md §2) ---- */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  background: var(--cozy-ink);
  color: var(--cozy-surface);
  border-radius: var(--cozy-r-12);
  padding: 14px 20px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: sbUp .22s ease;
  z-index: 30;
}
.toast i { color: var(--cozy-accent); font-size: 18px; }

/* ---- Shared buttons / cards / forms (used by placeholder screens) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 13px 20px;
  border-radius: var(--cozy-r-14);
  font-size: var(--cozy-fs-13);
  font-weight: 700;
  cursor: pointer;
}
.btn--primary { background: var(--cozy-accent); color: var(--cozy-surface); }
.btn--primary:hover { background: var(--cozy-accent-hover); }
.btn--danger { background: none; color: var(--cozy-danger); padding: 13px 0; }
.btn--ghost { background: var(--cozy-surface-2); color: var(--cozy-ink); border: 0.5px solid var(--cozy-border); }
.btn--ghost:hover { background: var(--cozy-accent-bg-3); }

.link-btn {
  border: none;
  background: none;
  color: var(--cozy-accent);
  font-size: var(--cozy-fs-13);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.link-btn--danger { color: var(--cozy-danger); }

.form-error {
  color: var(--cozy-danger);
  font-size: var(--cozy-fs-13);
  margin: -4px 0 4px;
}

.card {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-18);
  padding: 24px;
  max-width: 420px;
}
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-stack input {
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface-2);
  border-radius: var(--cozy-r-12);
  padding: 13px 16px;
  font-size: var(--cozy-fs-15);
  color: var(--cozy-ink);
  outline: none;
}

.muted { color: var(--cozy-ink-3); font-size: var(--cozy-fs-13); }
.screen-placeholder h1 { font-size: var(--cozy-fs-22); font-weight: 700; margin-bottom: 8px; }

.lang-options { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-14);
  padding: 14px 16px;
  font-size: var(--cozy-fs-15);
  color: var(--cozy-ink);
  cursor: pointer;
}
.lang-option--active { background: var(--cozy-accent-bg-3); border-color: var(--cozy-accent-border); color: var(--cozy-accent-ink); }
.lang-option i { color: var(--cozy-accent); }

.done-screen { text-align: center; padding: 60px 20px; }
.done-screen__check { font-size: 56px; color: var(--cozy-accent); margin-bottom: 16px; }
.done-screen__number { font-size: var(--cozy-fs-17); font-weight: 700; color: var(--cozy-ink); margin: 0 0 4px; }
.done-screen__total { font-size: var(--cozy-fs-15); color: var(--cozy-ink-2); margin: 0 0 12px; }

/* ---- Cart (COZY_WEB_DESIGN.md §3.3) ---- */
.cart-page h1 { font-size: var(--cozy-fs-22); font-weight: 700; margin: 0 0 20px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 48px; color: var(--cozy-ink-4); margin-bottom: 12px; display: block; }
.cart-empty h1 { font-size: var(--cozy-fs-19); margin: 0 0 6px; }
.cart-empty .btn { margin-top: 16px; }

.cart-layout { display: flex; gap: 24px; align-items: flex-start; }
.cart-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  padding: 14px;
}
.cart-line__thumb {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--cozy-accent-bg);
  border-radius: var(--cozy-r-12);
  display: flex; align-items: center; justify-content: center;
  color: var(--cozy-accent); font-size: 24px;
}
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__name { font-size: var(--cozy-fs-14); font-weight: 700; color: var(--cozy-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line__meta { font-size: var(--cozy-fs-12); color: var(--cozy-ink-3); margin-top: 2px; }
.cart-line__sum { font-size: var(--cozy-fs-14); font-weight: 700; color: var(--cozy-ink); flex-shrink: 0; min-width: 72px; text-align: right; }

.stepper { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.stepper form { display: contents; }
.stepper__btn {
  width: 30px; height: 30px;
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cozy-ink); font-size: 14px; cursor: pointer;
}
.stepper__btn:hover { background: var(--cozy-accent-bg); color: var(--cozy-accent); }
.stepper__qty { min-width: 18px; text-align: center; font-size: var(--cozy-fs-14); font-weight: 700; }

.cart-summary {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  padding: 18px;
}
.cart-summary__title { font-size: var(--cozy-fs-13); font-weight: 800; color: var(--cozy-ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.cart-summary__row { display: flex; justify-content: space-between; font-size: var(--cozy-fs-13); color: var(--cozy-ink-2); padding: 6px 0; }
.cart-summary__row--total { border-top: 0.5px solid var(--cozy-border); margin-top: 6px; padding-top: 12px; font-size: var(--cozy-fs-15); font-weight: 800; color: var(--cozy-ink); }
.cart-summary__cta { display: flex; width: 100%; margin-top: 14px; }

/* ---- Checkout (new screen, not in COZY_WEB_DESIGN.md 1:1 — see
   web-plan Task 3 / Open Questions; styled to match .lang-option) ---- */
.checkout-page h1 { font-size: var(--cozy-fs-22); font-weight: 700; margin: 0 0 20px; }
.checkout-form { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
/* Left column: delivery, payment and the order comment, stacked; the
   summary card sits beside it (below it on narrow screens). */
.checkout-main { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 20px; }
.checkout-options { display: flex; flex-direction: column; gap: 8px; }
.checkout-option {
  display: flex;
  align-items: center;
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-14);
  padding: 14px 16px;
  cursor: pointer;
}
.checkout-option--active { border-color: var(--cozy-accent-border); background: var(--cozy-accent-bg-3); }
.checkout-option input { accent-color: var(--cozy-accent); margin-right: 10px; }
.checkout-option__title { display: flex; align-items: center; gap: 8px; font-size: var(--cozy-fs-15); font-weight: 700; color: var(--cozy-ink); }
.checkout-option__title i { color: var(--cozy-accent); }
.checkout-sublist { display: flex; flex-direction: column; gap: 6px; margin: 0 0 4px 30px; }
.checkout-suboption { display: flex; align-items: center; gap: 9px; font-size: var(--cozy-fs-13); color: var(--cozy-ink); padding: 6px 2px; cursor: pointer; }
.checkout-suboption input { accent-color: var(--cozy-accent); }
.checkout-hint { margin: 0 0 4px 30px; }
/* Order comment: label above a full-width textarea, same field look as
   .address-form textarea. */
.checkout-comment { display: flex; flex-direction: column; gap: 8px; }
.checkout-comment .field-label { margin-bottom: 0; }
.checkout-comment textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface);
  border-radius: var(--cozy-r-12);
  padding: 13px 16px;
  font-family: inherit;
  font-size: var(--cozy-fs-15);
  line-height: 1.4;
  color: var(--cozy-ink);
  outline: none;
  resize: vertical;
}

.checkout-summary {
  width: 280px;
  flex-shrink: 0;
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  padding: 18px;
}
.checkout-summary__row { display: flex; justify-content: space-between; font-size: var(--cozy-fs-13); color: var(--cozy-ink-2); padding: 6px 0 16px; }
.checkout-summary__row[hidden] { display: none; }
.checkout-summary__cta { display: flex; width: 100%; justify-content: center; }

@media (max-width: 700px) {
  .cart-layout, .checkout-form { flex-direction: column; }
  .cart-summary, .checkout-summary { width: 100%; position: static; }
}

.screen-title { font-size: var(--cozy-fs-22); font-weight: 700; color: var(--cozy-ink); margin: 0 0 18px; }

/* ---- Orders (COZY_WEB_DESIGN.md §3.6) ---- */
.orders-list { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.order-card {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  padding: 18px;
}
.order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.order-card__number { font-size: var(--cozy-fs-14); font-weight: 700; color: var(--cozy-ink); }
.order-card__date { margin-top: 2px; }
.order-status {
  font-size: var(--cozy-fs-12);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--cozy-r-6);
  white-space: nowrap;
}
.order-status--placed,
.order-status--confirmed { background: var(--cozy-surface-2); color: var(--cozy-ink-2); }
.order-status--transit { background: var(--cozy-accent-bg); color: var(--cozy-accent-ink); }
.order-status--delivered { background: var(--cozy-surface-2); color: var(--cozy-ink-2); }
.order-status--cancelled { background: #FDECEC; color: var(--cozy-danger); }

.order-card__items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.order-item { display: flex; align-items: center; gap: 12px; }
.order-item__thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--cozy-r-10);
  background: var(--cozy-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cozy-ink-4); font-size: 20px;
}
.order-item__title { flex: 1; min-width: 0; font-size: var(--cozy-fs-14); color: var(--cozy-ink); }
.order-item__qty { flex-shrink: 0; }

.order-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; border-top: 0.5px solid var(--cozy-border);
}
.order-card__total { font-size: var(--cozy-fs-15); font-weight: 700; color: var(--cozy-ink); }
.order-card__actions { display: flex; gap: 8px; }
.btn--track, .btn--repeat {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; padding: 10px 16px; border-radius: var(--cozy-r-10);
  font-size: var(--cozy-fs-13); font-weight: 700; cursor: pointer;
}
.btn--track { background: var(--cozy-accent-bg); color: var(--cozy-accent-ink); cursor: default; }
.btn--repeat { background: var(--cozy-surface-2); color: var(--cozy-ink); }
.btn--repeat:hover { background: var(--cozy-border); }

.orders-empty { text-align: center; padding: 60px 24px; color: var(--cozy-ink-3); }
.orders-empty__icon { font-size: 40px; color: var(--cozy-ink-5); display: block; margin-bottom: 12px; }
.orders-empty__title { font-size: var(--cozy-fs-15); font-weight: 700; color: var(--cozy-ink); margin-bottom: 6px; }
.orders-empty__cta { margin-top: 18px; }

/* ---- Branches (COZY_WEB_DESIGN.md §3.7) ---- */
.branches-layout { display: flex; gap: 20px; align-items: flex-start; }
.branches-map {
  flex: 1.4;
  height: 480px;
  border-radius: var(--cozy-r-18);
  background-color: var(--cozy-map-bg);
  overflow: hidden;
}
.branches-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.branches-list { flex: 1; min-width: 0; }
.branch-card {
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface);
  border-radius: var(--cozy-r-16);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}
.branch-card--active { border-color: var(--cozy-accent); background: var(--cozy-accent-bg-3); }
.branch-card__row { display: flex; align-items: flex-start; gap: 12px; }
.branch-card__badge {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--cozy-r-9);
  background: var(--cozy-ink);
  color: var(--cozy-surface);
  font-size: var(--cozy-fs-13);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.branch-card--active .branch-card__badge { background: var(--cozy-accent); }
.branch-card__info { flex: 1; min-width: 0; }
.branch-card__name { font-size: 14.5px; font-weight: 700; color: var(--cozy-ink); margin-bottom: 3px; }
.branch-card__address { font-size: 12.5px; color: var(--cozy-ink-2); margin-bottom: 2px; }
.branch-card__footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 10px; }
.branch-card__route {
  border: none;
  background: var(--cozy-accent-bg);
  color: var(--cozy-accent);
  font-size: var(--cozy-fs-12);
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--cozy-r-8);
  display: flex;
  align-items: center;
  gap: 5px;
}
.branch-card__route:hover { background: var(--cozy-accent-bg-2); }

/* ---- Profile (COZY_WEB_DESIGN.md §3.5) ---- */
.profile { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.profile-card { max-width: none; display: flex; align-items: center; gap: 14px; padding: 20px; }
.profile-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cozy-accent-bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cozy-accent); font-size: 24px; flex-shrink: 0;
}
.profile-card__name { font-size: var(--cozy-fs-17); font-weight: 700; }
.profile-card__phone { color: var(--cozy-ink-3); font-size: var(--cozy-fs-13); margin-top: 2px; }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stat {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-14);
  padding: 14px 16px;
  text-align: center;
}
.profile-stat__value { font-size: var(--cozy-fs-21); font-weight: 800; color: var(--cozy-ink); }
.profile-stat__label { font-size: var(--cozy-fs-12); color: var(--cozy-ink-3); margin-top: 2px; }

.profile-menu {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  overflow: hidden;
}
.profile-menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  font-size: var(--cozy-fs-14); font-weight: 600; color: var(--cozy-ink);
  border-bottom: 0.5px solid var(--cozy-border);
}
.profile-menu__item:last-child { border-bottom: none; }
.profile-menu__item i:first-child { color: var(--cozy-accent); font-size: 18px; }
.profile-menu__item span:not(.muted) { flex: 1; }
.profile-menu__chevron { color: var(--cozy-ink-4); font-size: 16px; }
.profile-menu__item--disabled { color: var(--cozy-ink-3); cursor: default; }
.profile-menu__item--disabled i:first-child { color: var(--cozy-ink-4); }

.account-delete { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.account-delete__title { font-size: var(--cozy-fs-15); font-weight: 700; margin: 0; }
.account-delete__text { font-size: var(--cozy-fs-13); color: var(--cozy-ink-2); margin: 0; }
.account-delete__text a { color: var(--cozy-accent-ink); text-decoration: underline; }
.account-delete .form-error { margin: 0; }
.account-delete .btn--danger { align-self: flex-start; }
.static-notice { background: var(--cozy-accent-bg-2); border-radius: var(--cozy-r-14); padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }

/* ---- Favorites (COZY_WEB_DESIGN.md §3.4) ---- */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--cozy-gap-grid);
}
.fav-card {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fav-card__photo {
  aspect-ratio: 1;
  background: var(--cozy-accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--cozy-accent-border);
  font-size: 48px;
}
.fav-card__body { padding: 12px 14px 6px; }
.fav-card__brand { font-size: var(--cozy-fs-11); color: var(--cozy-ink-3); text-transform: uppercase; letter-spacing: 0.03em; }
.fav-card__name { font-size: var(--cozy-fs-14); font-weight: 600; margin: 2px 0 4px; }
.fav-card__price { font-size: var(--cozy-fs-15); font-weight: 800; }
.fav-card__actions { display: flex; gap: 8px; padding: 10px 14px 14px; }
.fav-card__actions .btn { flex: 1; padding: 10px 8px; font-size: 12.5px; gap: 6px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---- Addresses (profile menu item, no §3.x design section) ---- */
.address-panel { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.address-list { display: flex; flex-direction: column; gap: 10px; }
.address-card {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-14);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.address-card--default { border-color: var(--cozy-accent-border); background: var(--cozy-accent-bg-3); }
.address-card__label { font-size: var(--cozy-fs-13); font-weight: 700; margin-bottom: 2px; }
.address-card__text { font-size: var(--cozy-fs-14); color: var(--cozy-ink-2); }
.address-card__actions { display: flex; gap: 12px; flex-shrink: 0; }

.address-form {
  background: var(--cozy-surface);
  border: 0.5px solid var(--cozy-border);
  border-radius: var(--cozy-r-16);
  padding: 16px;
}
.address-form textarea {
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface-2);
  border-radius: var(--cozy-r-12);
  padding: 13px 16px;
  font-size: var(--cozy-fs-15);
  color: var(--cozy-ink);
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.address-form__actions { display: flex; align-items: center; gap: 16px; }

/* ---- Shop screen (COZY_WEB_DESIGN.md §3.1, Task 2) ---- */
.shop-banner {
  /* --banner-bg / --banner-ink come from the admin-edited banner
     (inline style in shop.gohtml); unset = the design tokens. */
  background-color: var(--banner-bg, var(--cozy-accent-bg));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.shop-banner__eyebrow { font-size: var(--cozy-fs-13); color: var(--banner-eyebrow, var(--cozy-accent-ink)); font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; }
.shop-banner__title { font-size: 28px; font-weight: 700; color: var(--banner-ink, var(--cozy-ink)); line-height: 1.25; overflow-wrap: anywhere; }
.shop-banner__text { flex: 1; min-width: 0; }
.shop-banner__btn { margin-top: 16px; }
.shop-banner__img { width: 240px; height: 160px; object-fit: contain; flex-shrink: 0; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip--tab {
  font-size: var(--cozy-fs-13);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--cozy-r-pill);
  white-space: nowrap;
  border: 0.5px solid var(--cozy-border);
  background: var(--cozy-surface);
  color: var(--cozy-ink);
}
.chip--tab--active { border-color: var(--cozy-accent); background: var(--cozy-accent-bg); color: var(--cozy-accent-ink); }
.shop-count { font-size: var(--cozy-fs-13); color: var(--cozy-ink-3); }

.shop-empty { text-align: center; padding: 60px 0; color: var(--cozy-ink-3); font-size: var(--cozy-fs-14); }
.shop-empty i { display: block; font-size: 34px; margin-bottom: 10px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* Home page category rails (catalog_rails.go): one horizontally
   scrollable row per subcategory — swipe on phones, scroll/shift-wheel on
   desktop — ending in a "see all" card. */
.shop-rail { margin-bottom: 28px; }
.shop-rail__title { font-size: var(--cozy-fs-19); font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.shop-rail__parent { color: var(--cozy-ink-3); font-weight: 600; }
.shop-rail__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-bottom: 8px;
}
.shop-rail__item, .shop-rail__all { flex: 0 0 220px; scroll-snap-align: start; }
.shop-rail__all {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--cozy-r-16); border: 0.5px solid var(--cozy-accent-border); background: var(--cozy-accent-bg);
  color: var(--cozy-accent-ink); font-size: var(--cozy-fs-15); font-weight: 800; text-align: center; min-height: 200px;
}
.shop-rail__all i { font-size: 28px; }
.shop-rail__all:hover { background: var(--cozy-accent-bg-2); }
/* Ported from the mobile design's catalog card (COZY_WEB_DESIGN.md §3.1):
   solid bright accent background, white photo square, white text, plus
   the "Купить" quick-buy button (.product-card__buy) — see
   shop.gohtml's _quickbuy_modal. Client explicitly asked for the plain
   bright --cozy-accent (#FF7A1A) with white text, matching the design
   1:1, over the higher-contrast --cozy-accent-aa/dark-ink pairing this
   started with — white-on-accent here is ~2.6:1, below WCAG AA's 4.5:1
   for this text size; flagged, but this is the approved visual. */
.product-card { position: relative; border-radius: var(--cozy-r-16); padding: 12px 14px 14px; background: var(--cozy-accent); }
.product-card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.25); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--cozy-surface); font-size: 17px;
}
.product-card__link { display: block; color: inherit; }
.product-card__thumb {
  background: var(--cozy-surface); border-radius: var(--cozy-r-12);
  aspect-ratio: 1; margin-top: 34px; margin-bottom: 12px; padding: 10px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card__brand { font-size: 11.5px; color: rgba(255, 255, 255, 0.8); margin-bottom: 3px; }
.product-card__name { font-size: var(--cozy-fs-14); font-weight: 700; color: var(--cozy-surface); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__price { font-size: 15px; font-weight: 800; color: var(--cozy-surface); }
.product-card__buy {
  width: 100%; margin-top: 12px; height: 40px; border: none; border-radius: var(--cozy-r-pill);
  background: var(--cozy-surface); color: var(--cozy-accent-ink); font-family: inherit; font-size: 13.5px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}

.shop-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.shop-pager__link { display: flex; align-items: center; gap: 4px; font-size: var(--cozy-fs-13); font-weight: 600; color: var(--cozy-accent); }
.shop-pager__page { font-size: var(--cozy-fs-13); color: var(--cozy-ink-3); }

.aside__pill--active { background: var(--cozy-accent-bg); color: var(--cozy-accent-ink); }

/* ---- Quick-buy modal (COZY_WEB_DESIGN.md §3.1 "Быстрая покупка",
   ported from the mobile design's quick-buy sheet — see shop.gohtml's
   _quickbuy_modal and internal/web/quickbuy_handlers.go). Centered, not
   a bottom sheet, since the web design is desktop-first. */
.modal-overlay { position: fixed; inset: 0; background: rgba(26, 26, 26, 0.45); z-index: 40; }
.quickbuy-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  z-index: 41; background: var(--cozy-surface); border-radius: 24px; padding: 24px; box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.2);
}
.quickbuy-modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: none; border-radius: 50%;
  background: var(--cozy-surface-2); color: var(--cozy-ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.quickbuy-modal__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding-right: 34px; }
.quickbuy-modal__photo {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--cozy-r-16); background: var(--cozy-accent-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px; box-sizing: border-box;
}
.quickbuy-modal__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.quickbuy-modal__info { flex: 1; min-width: 0; }
.quickbuy-modal__brand { font-size: var(--cozy-fs-13); color: var(--cozy-ink-2); margin-bottom: 3px; }
.quickbuy-modal__name { font-size: var(--cozy-fs-19); font-weight: 800; color: var(--cozy-ink); margin-bottom: 6px; }
.quickbuy-modal__price { font-size: var(--cozy-fs-19); font-weight: 800; color: var(--cozy-accent-strong); }
.quickbuy-modal__actions { display: flex; gap: 12px; margin-top: 4px; }
.quickbuy-modal__actions .btn { flex: 1; justify-content: center; }

/* ---- Product screen (COZY_WEB_DESIGN.md §3.2, Task 2) ---- */
.product-page { max-width: 1040px; margin: 0 auto; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.product-gallery { position: sticky; top: 84px; }
.product-photo {
  background: var(--cozy-accent-bg); border-radius: 20px; padding: 24px;
  display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 12px;
  aspect-ratio: 1;
}
.product-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--cozy-r-12); }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb { width: 68px; height: 68px; padding: 0; border: 1.5px solid var(--cozy-border); border-radius: var(--cozy-r-10); background: var(--cozy-surface); cursor: pointer; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-thumb--active { border-color: var(--cozy-accent); }
.product-stock { margin-bottom: 20px; }
.product-stock .product-section-title i { color: var(--cozy-accent-ink); }
.product-stock__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.product-stock__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 12px; background: var(--cozy-surface); border: 0.5px solid var(--cozy-border); border-radius: var(--cozy-r-10); }
.product-stock__name { font-weight: 700; }
.product-stock__addr { color: var(--cozy-ink-2); }
.product-stock__qty { color: var(--cozy-ink); font-weight: 600; white-space: nowrap; }
.product-stock__qty--few { color: var(--cozy-accent-ink); }
.product-stock__none { font-size: 13.5px; color: var(--cozy-ink-2); }
.product-delivery__more { font-size: var(--cozy-fs-13); color: var(--cozy-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.product-description { margin-top: 28px; }
.product-description__text { font-size: var(--cozy-fs-15); line-height: 1.6; color: var(--cozy-ink); white-space: pre-line; }
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery { position: static; }
}
.product-photo__fav {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px;
  border: none; border-radius: 50%; background: var(--cozy-surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--cozy-ink-4); font-size: 20px;
}
.product-meta__brand { font-size: var(--cozy-fs-13); color: var(--cozy-ink-3); margin-bottom: 5px; }
.product-meta__name { font-size: 26px; font-weight: 700; color: var(--cozy-ink); margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.25; }
.product-meta__price { font-size: 24px; font-weight: 700; color: var(--cozy-accent); margin-bottom: 26px; }

.product-section-title { font-size: var(--cozy-fs-14); font-weight: 600; color: var(--cozy-ink); margin-bottom: 10px; }
.product-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-option {
  min-width: 52px; height: 46px; padding: 0 12px; border-radius: var(--cozy-r-12);
  font-size: var(--cozy-fs-14); font-weight: 600;
  border: 0.5px solid var(--cozy-border); background: var(--cozy-surface); color: var(--cozy-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.product-option--color { min-width: 0; padding: 0 18px; font-size: 13.5px; font-weight: 400; }
.product-option--active { border-color: var(--cozy-accent); background: var(--cozy-accent); color: var(--cozy-surface); }
.product-option--unavailable { opacity: 0.4; }

.product-delivery { background: var(--cozy-surface-2); border-radius: var(--cozy-r-16); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.product-delivery__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--cozy-ink); }
.product-delivery__row i { font-size: 19px; color: var(--cozy-accent); }

.product-unavailable { margin-bottom: 16px; }

.product-actions { display: flex; gap: 12px; }
.product-actions__cart {
  width: 56px; height: 56px; flex-shrink: 0; background: var(--cozy-accent-bg); color: var(--cozy-accent);
  border: none; border-radius: var(--cozy-r-14); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.product-actions__buy { flex: 1; }
.product-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Responsive: collapse the sidebar below the aside's own width ---- */
@media (max-width: 860px) {
  .page { flex-direction: column; }
  .aside { position: static; width: 100%; }
  .header__inner { flex-wrap: wrap; padding: 12px 16px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .page { padding: 16px 16px 40px; }
  .footer__inner { padding: 20px 16px; }
  .branches-layout { flex-direction: column; }
  .branches-map { width: 100%; height: 320px; }
  .order-card__footer { flex-wrap: wrap; }
}

/* ---- Error page (404/500, internal/web/errors.go) ---- */
.error-screen { text-align: center; padding: 60px 20px; max-width: 520px; margin: 0 auto; }
.error-screen__code { font-size: 72px; font-weight: 800; color: var(--cozy-accent-border); line-height: 1; letter-spacing: var(--cozy-tracking-tight); }
.error-screen__title { font-size: var(--cozy-fs-22); font-weight: 700; margin: 16px 0 8px; }
.error-screen__text { font-size: var(--cozy-fs-15); color: var(--cozy-ink-2); margin: 0 0 24px; }
.error-screen__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.toast--error i { color: var(--cozy-danger); }

/* ---- Legal/info pages (web/templates/pages/*) ---- */
.static-page { max-width: 760px; background: var(--cozy-surface); border: 0.5px solid var(--cozy-border); border-radius: var(--cozy-r-18); padding: 28px 32px; line-height: 1.6; font-size: var(--cozy-fs-15); color: var(--cozy-ink); }
.static-page h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.25; }
.static-page h2 { font-size: var(--cozy-fs-17); font-weight: 700; margin: 26px 0 8px; display: flex; align-items: center; gap: 8px; }
.static-page h2 i { color: var(--cozy-accent-ink); font-size: 20px; }
.static-page p, .static-page ul { margin: 0 0 12px; }
.static-page ul { padding-left: 22px; }
.static-page li { margin-bottom: 6px; }
.static-page a:not(.btn) { color: var(--cozy-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.static-page ul.static-requisites { list-style: none; padding-left: 0; }
.static-page__meta { color: var(--cozy-ink-2); font-size: var(--cozy-fs-13); }
.static-page mark.fill { background: var(--cozy-accent-bg-2); color: var(--cozy-ink); padding: 0 3px; border-radius: 3px; }
.static-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.static-contacts__item { display: flex; gap: 12px; align-items: flex-start; background: var(--cozy-surface-2); border-radius: var(--cozy-r-14); padding: 14px; }
.static-contacts__item i { font-size: 22px; color: var(--cozy-accent-ink); }
.static-contacts__label { font-size: var(--cozy-fs-12); color: var(--cozy-ink-2); font-weight: 700; margin-bottom: 2px; }
.footer__links { flex-wrap: wrap; }
@media (max-width: 700px) { .static-page { padding: 20px 16px; } }

/* ---- Shop filters + sort (aside form #shop-filters, toolbar select) ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.aside__filters { display: flex; flex-direction: column; gap: 16px; }
.aside__fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
.aside__fieldset .aside__title { padding: 0; }
.chip-radio { position: relative; display: inline-flex; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span {
  border: 0.5px solid var(--cozy-border); background: var(--cozy-surface-2); color: var(--cozy-ink);
  padding: 7px 12px; border-radius: var(--cozy-r-pill); font-size: 12.5px; font-weight: 600;
}
.chip-radio input:checked + span { background: var(--cozy-ink); border-color: var(--cozy-ink); color: var(--cozy-surface); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--cozy-accent-ink); outline-offset: 2px; }
.aside__price { display: flex; gap: 8px; }
.aside__price-field { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: var(--cozy-fs-12); color: var(--cozy-ink-2); }
.aside__price-field input {
  width: 100%; border: 0.5px solid var(--cozy-border); background: var(--cozy-surface-2); border-radius: var(--cozy-r-10);
  padding: 9px 10px; font-size: var(--cozy-fs-14); color: var(--cozy-ink); font-family: inherit;
}
.aside__filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aside__apply { padding: 9px 14px; }
.shop-title { font-size: var(--cozy-fs-22); font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.shop-toolbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.shop-sort select {
  border: 0.5px solid var(--cozy-border); background: var(--cozy-surface); border-radius: var(--cozy-r-10);
  padding: 8px 10px; font-size: var(--cozy-fs-13); color: var(--cozy-ink); font-family: inherit; cursor: pointer;
}
.shop-empty__reset { margin-top: 14px; }

/* ==== Accessibility (WCAG 2.1 AA) overrides ====
   Kept as one block at the end so the design-derived rules above stay
   readable and this can be reviewed against the design in one place.
   --cozy-accent-aa is the darkest-needed shade of the brand orange for
   white text (4.5:1 on #C85000); propose adding it to
   design-system/tokens.css. */
:root {
  --cozy-accent-aa:       #C85000;
  --cozy-accent-aa-hover: #A84300;
  --cozy-focus:           #1A1A1A;
}

/* Visible keyboard focus everywhere (the rules above remove outlines on
   inputs); mouse clicks don't show it thanks to :focus-visible. */
:focus-visible { outline: 2px solid var(--cozy-focus); outline-offset: 2px; }
.search:focus-within { border-color: var(--cozy-ink-2); box-shadow: 0 0 0 2px var(--cozy-accent-border); }
.search input:focus-visible { outline: none; }
.form-stack input:focus-visible,
.address-form textarea:focus-visible,
.checkout-comment textarea:focus-visible,
.aside__price-field input:focus-visible,
.shop-sort select:focus-visible { outline: 2px solid var(--cozy-focus); outline-offset: 1px; border-color: var(--cozy-ink-2); }

/* Skip link: first focusable element, visible only on focus. */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--cozy-ink); color: var(--cozy-surface); padding: 10px 14px; border-radius: var(--cozy-r-10); font-size: var(--cozy-fs-14); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Field labels (previously placeholder-only inputs). */
.field-label { font-size: var(--cozy-fs-13); font-weight: 600; color: var(--cozy-ink-2); margin-bottom: -6px; }

/* White text on brand orange: 2.6:1 → 4.5:1+. */
.btn--primary,
.product-option--active,
.icon-btn .badge { background: var(--cozy-accent-aa); }
.product-option--active { border-color: var(--cozy-accent-aa); }
.btn--primary:hover { background: var(--cozy-accent-aa-hover); }

/* Orange text on white/light backgrounds → accent-ink (≈5:1). */
.nav__link--active,
.link-btn,
.aside__reset,
.shop-pager__link,
.branch-card__route,
.icon-btn--active { color: var(--cozy-accent-ink); }
/* Large price text needs 3:1. It sits on the #F5F5F3 canvas, where
   accent-strong is only 2.98:1 (Lighthouse); accent-aa gives ~4.2:1. */
.product-meta__price { color: var(--cozy-accent-aa); }

/* Secondary text: #999 (2.8:1) → #666 (5.7:1). */
.muted,
.aside__title,
.aside__account-phone,
.aside__link-count,
.cart-line__meta,
.cart-summary__title,
.orders-empty,
.profile-card__phone,
.profile-stat__label,
.profile-menu__item--disabled,
.fav-card__brand,
.shop-count,
.shop-empty,
.shop-pager__page,
.product-meta__brand { color: var(--cozy-ink-2); }

.product-option--unavailable { opacity: 1; color: var(--cozy-ink-3); text-decoration: line-through; }
.product-option--active.product-option--unavailable { color: var(--cozy-surface); }

/* ---- Product photos in cart / order history / favourites ---- */
.cart-line__thumb, .order-item__thumb { overflow: hidden; }
.cart-line__thumb img, .order-item__thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--cozy-surface); display: block; }
.fav-card__photo img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--cozy-surface); }
.fav-card__name { display: block; color: inherit; }
.fav-card__name:hover { color: var(--cozy-accent-ink); }

/* ---- Phones: less chrome before the content ---- */
.aside__filters-summary { display: none; }
@media (max-width: 860px) {
  .page:not(.page--shop) .aside { display: none; }
  .page--shop .aside__login,
  .page--shop #aside-categories { display: none; }
  .aside__filters-summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--cozy-fs-14); font-weight: 700; list-style: none; }
  .aside__filters-summary::-webkit-details-marker { display: none; }
  .aside__filters-wrap[open] .aside__filters-summary { margin-bottom: 14px; }
  .aside__filters-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cozy-accent-aa); display: inline-block; }
}
@media (max-width: 860px) {
  .page { align-items: stretch; }
  .main { width: 100%; }
  .shop-banner { padding: 20px; }
  .shop-banner__title { font-size: var(--cozy-fs-19); }
  .shop-banner svg { display: none; }
  .shop-banner__img { width: 96px; height: 72px; }
  .shop-banner__btn { margin-top: 12px; }
  .shop-toolbar__right { flex-wrap: wrap; justify-content: flex-end; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-rail__track { gap: 10px; }
  .shop-rail__item, .shop-rail__all { flex-basis: 44%; }
  .product-card { padding: 10px; }
  .product-card__thumb { margin-top: 26px; }
  .quickbuy-modal { padding: 18px; }
  .quickbuy-modal__photo { width: 72px; height: 72px; }
}
.footer__legal { color: var(--cozy-ink-2); }
@media (max-width: 860px) { .footer__legal { padding: 0 16px 20px; } }

/* fix/checkout-payments: delivery zone + payment method at checkout, and
   the online payment result page (pay_return.gohtml). */
.checkout-zone { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 4px 30px; font-size: var(--cozy-fs-13); color: var(--cozy-ink-2); }
.checkout-zone select { padding: 9px 10px; border: 0.5px solid var(--cozy-border); border-radius: 10px; background: var(--cozy-surface); color: var(--cozy-ink); font: inherit; font-size: var(--cozy-fs-13); max-width: 360px; }
.checkout-section-title { font-size: var(--cozy-fs-15); font-weight: 700; color: var(--cozy-ink); margin: 14px 0 2px; }
.checkout-summary__row--total { font-weight: 700; color: var(--cozy-ink); }
.pay-status__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.pay-status__actions .btn { min-width: 240px; justify-content: center; }
.pay-status__icon--bad { color: var(--cozy-danger); }
.pay-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; text-align: center; }
.pay-qr__image { width: 240px; height: 240px; border: 0.5px solid var(--cozy-border); border-radius: 12px; background: #fff; }
.pay-qr__hint { font-size: var(--cozy-fs-13); color: var(--cozy-ink-2); margin: 0; }
.pay-qr__link { display: block; max-width: 320px; word-break: break-all; font-size: var(--cozy-fs-13); color: var(--cozy-ink); background: var(--cozy-surface); border-radius: 8px; padding: 8px 10px; }
.pay-qr__error { color: var(--cozy-danger); font-size: var(--cozy-fs-13); }
.quickbuy-modal__unavailable { margin: 8px 0 0; color: #b3261e; font-size: 14px; }
