:root {
  color-scheme: light;
  --ink: #1e2220;
  --muted: #66706b;
  --line: #d9ded9;
  --paper: #fbfaf6;
  --forest: #1f4b3a;
  --berry: #a73535;
  --ice: #eaf2f1;
  --shadow: 0 18px 50px rgba(31, 43, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 46px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(217, 222, 217, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  flex: 0 0 auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.header-link {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.header-link:hover {
  color: var(--forest);
}

.header-search {
  display: block;
}

.header-search input {
  width: clamp(150px, 16vw, 230px);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.header-search input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 75, 58, 0.12);
}

.header-checkout {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 42px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-weight: 900;
}

.header-checkout.has-items {
  border-color: var(--berry);
  background: var(--berry);
  color: #fff;
}

.header-checkout.has-items::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.header-checkout.cart-pulse {
  animation: cartPulse 0.65s ease;
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.cart-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.phone-link {
  justify-self: end;
  color: var(--forest);
  font-weight: 700;
}

.hero {
  min-height: min(760px, calc(100vh - 56px));
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.88) 42%, rgba(251, 250, 246, 0.08) 72%),
    url("assets/products/10012/vozhak-hero.webp") center right / contain no-repeat;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--berry);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(52px, 9vw, 112px);
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
}

.hero-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: #39413d;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--berry);
  color: #fff;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--forest);
}

.full {
  width: 100%;
}

.category-tile,
.product-card,
.delivery-list div,
.checkout-form {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.site-notice {
  position: fixed;
  left: 50%;
  top: 76px;
  z-index: 30;
  max-width: min(520px, calc(100vw - 28px));
  padding: 12px 16px;
  border: 1px solid rgba(167, 53, 53, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--berry);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: var(--shadow);
}

.site-notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.trust-strip span {
  padding: 18px clamp(18px, 4vw, 56px);
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.section,
.checkout-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.category-tile {
  min-height: 94px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.category-tile span {
  display: block;
  font-weight: 900;
}

.category-tile small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.category-tile.active {
  background: var(--ice);
  border-color: var(--forest);
}

.main-tabs .category-tile {
  min-height: 118px;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.subtab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.subtab.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.filters-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.filters-head strong {
  font-size: 18px;
}

.filters-head strong span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--forest);
  font-size: 13px;
}

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.reset-filters,
.toggle-filters {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

.toggle-filters {
  background: var(--forest);
  color: #fff;
}

.filters-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.filters-grid.open {
  display: grid;
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-group legend {
  padding: 0 4px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
}

.filter-group label span {
  flex: 1;
  min-width: 0;
}

.filter-group label em {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--forest);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.filter-group input {
  width: 16px;
  height: 16px;
}

.mobile-filter-fab {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.empty-products {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.load-more-sentinel {
  grid-column: 1 / -1;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.product-visual {
  display: block;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto minmax(88px, auto) auto;
  gap: 12px;
  padding: 18px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.product-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.product-code {
  margin: 0;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.product-price {
  white-space: nowrap;
  color: var(--berry);
  font-weight: 900;
}

.product-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.product-meta {
  margin: 0;
  color: var(--muted);
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 7px;
  min-height: 88px;
}

.size-chip {
  min-width: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.size-chip.selected {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.card-button {
  align-self: end;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--ice);
}

.delivery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-list div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.delivery-list span {
  color: var(--muted);
}

.checkout-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.checkout-modal {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog:not([open]) {
  display: none !important;
}

.checkout-modal::backdrop {
  background: rgba(20, 28, 24, 0.52);
}

.checkout-full {
  grid-template-columns: 1fr;
  min-height: calc(100vh - 64px);
  align-content: start;
}

.checkout-full .checkout-copy {
  max-width: 900px;
}

.checkout-full .checkout-form {
  width: min(1040px, 100%);
}

.checkout-copy p:last-child {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

.order-items {
  display: grid;
  gap: 8px;
}

.order-line {
  display: grid;
  grid-template-columns: 54px 72px 118px minmax(180px, 1fr) 84px 118px 110px auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 43, 37, 0.07);
}

.order-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.order-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.order-cell small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-cell strong {
  overflow-wrap: anywhere;
}

.order-number {
  place-items: center;
  min-height: 54px;
  color: var(--forest);
  font-weight: 900;
}

.order-name {
  background: #fff;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 4px;
}

.quantity-control button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.quantity-control strong {
  text-align: center;
}

.order-empty,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.order-empty {
  display: grid;
}

.order-empty span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-total {
  background: #fff;
}

.remove-item {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(167, 53, 53, 0.3);
  border-radius: 6px;
  background: #fff;
  color: var(--berry);
  cursor: pointer;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.checkout-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.checkout-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.delivery-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.delivery-choice label {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
}

.delivery-options {
  display: grid;
  gap: 6px;
}

.checkout-total {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.checkout-total div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-total span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-total .grand-total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
}

.delivery-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(160px, 0.7fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.delivery-main {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  color: var(--ink) !important;
  font-size: 14px !important;
}

.delivery-main input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
}

.delivery-main span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.delivery-main strong,
.delivery-main small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-card small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  white-space: nowrap;
}

.delivery-place,
.delivery-term {
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-price {
  color: var(--berry);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.delivery-card-unavailable {
  background: #fff8f4;
}

.delivery-card-unavailable .delivery-main {
  opacity: 0.82;
}

.delivery-retry {
  border-color: var(--berry);
  color: var(--berry);
  background: #fff;
}

.delivery-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.pickup-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.delivery-pickup-summary {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-pickup-summary.selected {
  color: var(--forest);
}

.pickup-point-panel {
  display: grid;
  gap: 10px;
}

.pickup-modal {
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pickup-modal::backdrop {
  background: rgba(20, 28, 24, 0.52);
}

.pickup-modal-content {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--paper);
}

.pickup-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pickup-modal-head h3 {
  margin: 0;
  font-size: 24px;
}

.pickup-view-tabs {
  display: flex;
  gap: 6px;
}

.pickup-view-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.pickup-view-tabs button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.pickup-view {
  display: none;
}

.pickup-view.active {
  display: block;
}

.pickup-list {
  display: grid;
  gap: 8px;
  max-height: min(520px, 58vh);
  overflow: auto;
}

.pickup-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.pickup-list-item.active {
  border-color: var(--forest);
  background: var(--ice);
}

.pickup-list-item span,
.pickup-list-item small {
  color: var(--muted);
}

.pickup-map-canvas {
  width: 100%;
  height: min(520px, 58vh);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.map-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.pickup-select {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pickup-select select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.pickup-point-details {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.pickup-point-details:empty {
  display: none;
}

.pickup-point-details span,
.pickup-point-details small {
  color: var(--muted);
}

.check-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  color: var(--ink) !important;
}

.check-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.required-mark {
  color: var(--berry);
  font-weight: 900;
}

.form-note.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(167, 53, 53, 0.32);
  border-radius: 8px;
  background: #fff4f1;
  color: var(--berry);
  font-size: 14px;
  font-weight: 900;
}

.social-widget {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.social-links img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 0;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
  min-height: 42px;
  padding: 7px clamp(12px, 3vw, 34px);
  background: var(--ink);
  color: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  box-shadow: 0 -10px 28px rgba(20, 28, 24, 0.14);
  scrollbar-width: thin;
}

.site-footer span {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
}

.site-footer a,
.footer-link {
  color: #dce8e2;
  flex: 0 0 auto;
  font-size: 13px;
}

.footer-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 58px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 14px;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner span {
  flex: 1;
}

.cookie-banner .footer-link {
  color: var(--forest);
  font-weight: 800;
}

.cookie-accept {
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.floating-contact {
  position: relative;
}

.contact-toggle,
.scroll-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(31, 75, 58, 0.22);
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.contact-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  border-color: rgba(167, 53, 53, 0.28);
  background: var(--berry);
}

.message-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-popover {
  position: absolute;
  right: 58px;
  bottom: 0;
  display: none;
  min-width: 270px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-popover.open {
  display: grid;
  gap: 10px;
}

.contact-popover > span {
  color: var(--muted);
  font-weight: 900;
}

.scroll-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-modal,
.legal-modal {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-modal::backdrop,
.legal-modal::backdrop {
  background: rgba(20, 28, 24, 0.52);
}

.legal-modal {
  width: min(720px, calc(100vw - 28px));
}

.legal-content {
  display: grid;
  gap: 12px;
  padding: 34px;
}

.legal-content h3 {
  margin: 0;
  font-size: 28px;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.rich-text {
  display: grid;
  gap: 12px;
  max-height: min(64vh, 680px);
  overflow: auto;
  padding-right: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.rich-text h4 {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--forest);
  border-radius: 8px;
  background: #eef6f2;
  color: var(--ink);
  font-size: 19px;
}

.rich-text p {
  margin: 0;
  padding: 0 2px;
}

.rich-text strong {
  color: var(--ink);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  padding: 24px;
}

.modal-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(1000px, calc(100vh - 80px));
  background: #fff;
}

.modal-gallery img {
  display: block;
  width: min(1000px, 100%);
  height: min(1000px, calc(100vh - 110px));
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 34px;
}

#prevImage {
  left: 10px;
}

#nextImage {
  right: 10px;
}

.modal-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 10px 10px 0;
}

.modal-info h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.modal-price {
  margin: 0;
  color: var(--berry);
  font-size: 24px;
  font-weight: 900;
}

.description-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.description-list li {
  padding-left: 2px;
}

.size-table-button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-weight: 900;
}

.modal-warning {
  min-height: 20px;
  margin: 0;
  color: var(--berry);
  font-weight: 900;
}

.spec-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: flex;
    justify-self: end;
  }

  .header-nav a,
  .header-nav .header-link {
    display: none;
  }

  .phone-link {
    justify-self: end;
    grid-column: 2;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.92) 50%, rgba(251, 250, 246, 0.7) 100%),
      url("assets/products/10012/vozhak-hero.webp") center bottom / contain no-repeat;
  }

  .hero-copy {
    padding-bottom: 250px;
  }

  .filters-grid,
  .split,
  .delivery-list,
  .modal-layout,
  .checkout-band {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-strip span {
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.2;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .category-tile,
  .main-tabs .category-tile {
    min-height: 54px;
    padding: 10px 8px;
  }

  .category-tile span {
    font-size: 14px;
    line-height: 1.15;
  }

  .category-tile small {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-visual {
    min-height: 130px;
    aspect-ratio: 1 / 1;
  }

  .product-body {
    grid-template-rows: auto auto minmax(72px, auto) auto;
    gap: 8px;
    padding: 10px;
  }

  .product-top {
    display: grid;
    gap: 6px;
  }

  .product-title {
    font-size: 15px;
    line-height: 1.15;
  }

  .product-price {
    font-size: 14px;
    white-space: normal;
  }

  .product-code {
    font-size: 12px;
  }

  .size-row {
    min-height: 72px;
    gap: 5px;
  }

  .size-chip {
    min-width: 34px;
    min-height: 34px;
    padding: 4px 7px;
    font-size: 13px;
  }

  .card-button {
    min-height: 40px;
    font-size: 14px;
  }

  .modal-layout {
    padding: 14px;
  }

  .modal-info {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .phone-link {
    font-size: 14px;
  }

  .hero-copy {
    padding-bottom: 210px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .section-heading {
    display: block;
  }

  .mobile-filter-fab {
    position: fixed;
    right: 0;
    top: 52%;
    z-index: 24;
    display: inline-grid;
    grid-auto-flow: row;
    align-items: center;
    justify-items: center;
    gap: 7px;
    width: 38px;
    min-height: 96px;
    padding: 8px 5px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: var(--berry);
    color: #fff;
    box-shadow: 0 12px 28px rgba(31, 43, 37, 0.22);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
  }

  .mobile-filter-fab span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--berry);
    font-size: 11px;
    writing-mode: horizontal-tb;
  }

  .filters-panel {
    margin-bottom: 16px;
  }

  .filters-head {
    padding: 10px;
  }

  .filters-head strong {
    font-size: 16px;
  }

  .filters-actions {
    gap: 6px;
  }

  .reset-filters,
  .toggle-filters {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .filters-panel.filters-open .filters-grid {
    position: fixed;
    inset: 74px 10px 12px;
    z-index: 23;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 250, 246, 0.98);
    box-shadow: 0 18px 44px rgba(31, 43, 37, 0.24);
  }

  .filter-group {
    padding: 10px;
  }

  .filter-group legend {
    font-size: 12px;
  }

  .filter-group label {
    gap: 6px;
    font-size: 12px;
  }

  .product-top,
  .form-grid,
  .site-footer {
    gap: 10px;
    min-height: 38px;
    padding: 6px 10px;
  }

  .site-footer span,
  .site-footer a,
  .footer-link {
    font-size: 12px;
  }

  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 50px;
    display: none;
    grid-template-columns: 1fr auto;
    font-size: 12px;
  }

  .cookie-banner.visible {
    display: grid;
  }

  .cookie-banner span {
    grid-column: 1 / -1;
  }

  .checkout-modal {
    width: min(100vw - 8px, 420px);
    max-height: calc(100vh - 8px);
  }

  .checkout-band {
    padding: 14px 8px;
  }

  .checkout-copy {
    display: none;
  }

  .checkout-form {
    padding: 10px;
  }

  .delivery-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 38px;
    padding: 5px 7px;
  }

  .delivery-main {
    font-size: 13px !important;
  }

  .delivery-main small {
    font-size: 11px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .delivery-price {
    font-size: 14px;
  }

  .pickup-action {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .delivery-pickup-summary {
    grid-column: 1 / -1;
    padding-left: 24px;
  }

  .pickup-modal {
    width: min(100vw - 8px, 420px);
    max-height: calc(100vh - 8px);
  }

  .pickup-modal-content {
    padding: 14px 10px;
  }

  .pickup-modal-head {
    align-items: flex-start;
    display: grid;
  }

  .pickup-modal-head h3 {
    font-size: 22px;
  }

  .order-line {
    grid-template-columns: 42px 76px minmax(0, 1fr);
    grid-template-areas:
      "num thumb name"
      "sku sku size"
      "price price qty"
      "remove remove remove";
    gap: 8px;
    padding: 10px;
  }

  .order-number {
    grid-area: num;
    min-height: 76px;
    padding: 0;
  }

  .order-thumb {
    grid-area: thumb;
    width: 76px;
    height: 76px;
  }

  .order-line .order-cell {
    min-height: 58px;
    padding: 8px;
  }

  .order-line .order-cell:nth-of-type(2) {
    grid-area: sku;
  }

  .order-name {
    grid-area: name;
    align-self: stretch;
  }

  .order-line .order-cell:nth-of-type(4) {
    grid-area: size;
  }

  .quantity-cell {
    grid-area: qty;
    align-self: stretch;
  }

  .order-line .order-cell:nth-of-type(6) {
    grid-area: price;
  }

  .order-cell small {
    font-size: 10px;
    letter-spacing: 0;
  }

  .order-cell strong {
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }

  .order-name strong {
    font-size: 14px;
  }

  .quantity-control {
    grid-template-columns: 36px minmax(40px, 1fr) 36px;
    margin-top: auto;
  }

  .remove-item {
    grid-area: remove;
    width: 100%;
  }

  .brand span:last-child {
    font-size: 14px;
  }

  .modal-info h3 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .trust-strip span {
    padding: 8px 5px;
    font-size: 11px;
    line-height: 1.15;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    font-size: 12px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-title {
    font-size: 14px;
  }

  .size-chip {
    min-width: 31px;
    min-height: 32px;
    padding-inline: 6px;
  }
}
