@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #f4f6f8;
  --ink: #0b1f2a;
  --ink-soft: #3c4e5a;
  --primary: #0c3d5a;
  --primary-dark: #082b40;
  --accent: #0f4a6b;
  --card: #ffffff;
  --border: #e2e7ec;
  --shadow: 0 16px 36px rgba(7, 25, 42, 0.12);
  --shadow-soft: 0 10px 22px rgba(7, 25, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --about-bg: #ecebe9;
  --bottom-nav-height: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.35;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom: 1px solid #d9e4ee;
  box-shadow: 0 8px 18px rgba(7, 25, 42, 0.08);
}

.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b3f5f 0%, #1a7095 100%);
}

.header-brand {
  display: grid;
  gap: 2px;
}
.header-topline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
  color: #2a556f;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.logo img { height: 24px; }
.header-actions.header-empty { width: 1px; }

.header-actions { display: flex; gap: 8px; position: relative; z-index: 210; }

.icon-button {
  position: relative;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  color: var(--primary);
}
.icon-button:hover {
  border-color: rgba(12, 61, 90, 0.25);
  box-shadow: 0 6px 14px rgba(8, 43, 64, 0.12);
}

.icon-svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  pointer-events: none;
}

.main {
  padding: 16px 16px calc(var(--bottom-nav-height) + 16px);
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
}

body.embedded-app {
  font-size: 17px;
}

body.embedded-app .main {
  width: 100%;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

body.embedded-app .header {
  padding-left: 12px;
  padding-right: 12px;
}

body.embedded-app .screen-head {
  padding-left: 2px;
  padding-right: 2px;
}

body.embedded-app .product-list {
  gap: 14px;
}

body.embedded-app .product-card {
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px;
}

body.embedded-app .product-card img {
  width: 112px;
  height: 112px;
}

body.embedded-app .product-card .product-title {
  font-size: 16px;
}

body.embedded-app #screen-product .product-view {
  gap: 14px;
}

body.embedded-app #screen-product .product-title {
  font-size: 20px;
  line-height: 1.2;
}

body.embedded-app #screen-product .product-meta {
  font-size: 14px;
}

body.embedded-app #screen-product .product-price-row {
  padding: 12px 14px;
}

body.embedded-app #screen-product .detail-section {
  padding: 16px 14px;
}

body.embedded-app #screen-product .section-body,
body.embedded-app #screen-product .product-specs {
  font-size: 14px;
  line-height: 1.6;
}

body.embedded-app .product-meta,
body.embedded-app .product-price,
body.embedded-app .request-button {
  font-size: 14px;
}

body.embedded-app .bottom-nav {
  left: 10px;
  right: 10px;
  transform: none;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

body.embedded-app .bottom-nav button {
  font-size: 12px;
}

.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.22s ease; }

.screen.closing { animation: screenOut 0.2s ease; }

@keyframes screenIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes screenOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(12px); }
}

.hero-grid { display: grid; gap: 16px; }
.hero-grid-inline { grid-template-columns: repeat(2, 1fr); }
.hero-grid-premium {
  gap: 14px;
  margin-top: 6px;
}
.hero-tile {
  border: none;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #d7e3ee;
  box-shadow: 0 12px 24px rgba(8, 43, 64, 0.12);
  padding: 0;
  text-align: left;
}
.hero-image { height: 140px; background-size: cover; background-position: center; }
.hero-label { padding: 12px 14px 4px; font-size: 18px; font-weight: 700; color: var(--primary); }
.hero-sub {
  padding: 0 14px 14px;
  font-size: 12px;
  color: #466072;
  line-height: 1.35;
}
.hero-tile:active { transform: translateY(1px); }
.hero-image[data-image="equipment"] { background-image: url("assets/home-catalog.jpg"); }
.hero-image[data-image="stainless"] { background-image: url("assets/home-production.jpg"); }

.home-premium-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #0a3550 0%, #0f4e73 70%, #176a92 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 30px rgba(8, 43, 64, 0.24);
}
.home-premium-hero::after {
  content: "";
  position: absolute;
  top: -54px;
  right: -28px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.home-premium-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}
.home-premium-title {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.home-premium-text {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.home-premium-shortcuts {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.premium-shortcut {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.premium-shortcut:active {
  transform: translateY(1px);
}
.home-premium-actions {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-premium-actions .primary-button {
  background: #fff;
  color: #0b3e5d;
  box-shadow: 0 10px 18px rgba(7, 25, 42, 0.16);
}
.home-premium-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.home-premium-title-link {
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 0;
}
.home-premium-title-link:active {
  opacity: 0.9;
}

.home-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 2px;
}
.home-trust::-webkit-scrollbar {
  display: none;
}
.trust-chip {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d8e4ee;
  background: #fff;
  color: #20465e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 12px rgba(7, 25, 42, 0.08);
}

.about-card {
  margin-top: 4px;
  background: #f1f3f5;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.about-card-compact .about-title { font-size: 20px; }
.about-card-compact .about-text { font-size: 13px; }
.about-card-compact .about-underline { width: 70px; height: 3px; }

.about-title {
  font-size: 22px;
  font-weight: 800;
}

.about-underline {
  width: 80px;
  height: 4px;
  background: var(--primary);
}

.about-text {
  font-size: 14px;
  line-height: 1.45;
  color: #2b2b2b;
}

.about-button { width: auto; }
.home-search {
  margin: 2px 0 14px;
}
.home-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #d8e4ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 25, 42, 0.06);
}
.home-search-icon {
  width: 20px;
  height: 20px;
  color: #6e7f90;
  flex: 0 0 auto;
}
.home-search-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}
.home-search-field input::placeholder {
  color: #94a3b2;
  font-weight: 500;
}
.home-section-title {
  margin: 10px 4px 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-section-title-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.home-section-title::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0c3d5a, #1e7398);
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin: 4px 0 12px;
}
.filter-sheet-trigger {
  flex: 0 0 auto;
  min-width: 118px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.filter-sheet-trigger::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"21\" y1=\"4\" x2=\"14\" y2=\"4\"/><line x1=\"10\" y1=\"4\" x2=\"3\" y2=\"4\"/><line x1=\"21\" y1=\"12\" x2=\"12\" y2=\"12\"/><line x1=\"8\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"21\" y1=\"20\" x2=\"16\" y2=\"20\"/><line x1=\"12\" y1=\"20\" x2=\"3\" y2=\"20\"/><line x1=\"14\" y1=\"2\" x2=\"14\" y2=\"6\"/><line x1=\"8\" y1=\"10\" x2=\"8\" y2=\"14\"/><line x1=\"16\" y1=\"18\" x2=\"16\" y2=\"22\"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"21\" y1=\"4\" x2=\"14\" y2=\"4\"/><line x1=\"10\" y1=\"4\" x2=\"3\" y2=\"4\"/><line x1=\"21\" y1=\"12\" x2=\"12\" y2=\"12\"/><line x1=\"8\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"21\" y1=\"20\" x2=\"16\" y2=\"20\"/><line x1=\"12\" y1=\"20\" x2=\"3\" y2=\"20\"/><line x1=\"14\" y1=\"2\" x2=\"14\" y2=\"6\"/><line x1=\"8\" y1=\"10\" x2=\"8\" y2=\"14\"/><line x1=\"16\" y1=\"18\" x2=\"16\" y2=\"22\"/></svg>') center / contain no-repeat;
}
.filter-sheet-trigger-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-input {
  flex: 2;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.filter-select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.filters-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6, 20, 31, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.filters-sheet {
  width: min(100%, 560px);
  max-height: min(78vh, 780px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 31, 45, 0.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.filters-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}
.filters-sheet-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.filters-sheet-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #f2f5f8;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.filters-sheet-content {
  overflow-y: auto;
  padding: 0 18px 8px;
}
.filters-empty {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 18px 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.filters-group {
  border-top: 1px solid #e2e8ef;
}
.filters-group:first-child {
  border-top: none;
}
.filters-group-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.filters-group-toggle::after {
  content: "›";
  font-size: 24px;
  color: #6d7e8b;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}
.filters-group.open .filters-group-toggle::after {
  transform: rotate(90deg);
}
.filters-group-body {
  display: none;
  padding: 0 0 18px;
}
.filters-group.open .filters-group-body {
  display: block;
}
.filters-price-range {
  position: relative;
  padding-top: 12px;
}
.filters-range-track {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: #dfe6ed;
}
.filters-range-fill {
  position: absolute;
  top: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e4f78, #1f84ac);
}
.filters-range-sliders {
  position: relative;
  height: 32px;
}
.filters-range-sliders input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.filters-range-sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(8, 43, 64, 0.18);
  pointer-events: auto;
  cursor: pointer;
}
.filters-range-sliders input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(8, 43, 64, 0.18);
  pointer-events: auto;
  cursor: pointer;
}
.filters-range-sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.filters-range-sliders input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}
.filters-price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.filters-price-inputs input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.filters-price-divider {
  color: #74828f;
  font-weight: 700;
}
.filters-options {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.filters-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.42;
}
.filters-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.filters-check-count {
  color: var(--ink-soft);
  font-size: 13px;
}
.filters-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: #fff;
  border-top: 1px solid #e2e8ef;
}
.filters-sheet-actions .primary-button,
.filters-sheet-actions .ghost-button {
  width: 100%;
}
.filters-result-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.promo-row {
  margin-top: 6px;
  padding-bottom: 4px;
  overflow: hidden;
}
.promo-row-home {
  margin-top: 8px;
}
.promo-row-home .promo-track {
  gap: 10px;
  padding-bottom: 6px;
}
.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 calc((100% - 24px) / 3);
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.promo-row-home .promo-card {
  flex: 0 0 calc((100% - 12px) / 2.15);
  border-radius: 16px;
  min-height: 176px;
}
.promo-row-home .promo-card img {
  height: 96px;
  padding: 10px 10px 0;
}
.promo-row-home .promo-title {
  padding: 8px 10px 0;
  font-size: 12px;
  line-height: 1.24;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: initial;
  font-weight: 700;
}
.promo-row-home .promo-price {
  padding: 6px 10px 12px;
  gap: 5px;
  margin-top: auto;
}
.promo-row-home .promo-price .promo-new {
  font-size: 13px;
}
.promo-row-home .promo-price .promo-old {
  font-size: 10px;
}
.promo-row-home .promo-badge {
  width: 34px;
  height: 34px;
  font-size: 11px;
  top: 8px;
  right: 8px;
}
.promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2aa645;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.promo-badge-inline {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2aa645;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.promo-card img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.promo-card .promo-title {
  padding: 6px 8px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  min-height: 28px;
  flex: 1;
}
.promo-card .promo-price {
  padding: 3px 8px 8px;
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-top: auto;
}
.promo-card .promo-price .promo-new {
  font-size: 11px;
  color: var(--primary);
  font-weight: 800;
}
.promo-card .promo-price .promo-old {
  font-size: 10px;
  color: #8a97a5;
  text-decoration: line-through;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.promo-grid .promo-card img {
  height: 120px;
  object-fit: contain;
  background: #fff;
}
.promo-grid .promo-card .promo-title { font-size: 13px; min-height: 40px; }
.promo-grid .promo-card .promo-price .promo-new { font-size: 13px; }
.production-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #f1f3f5;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.production-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.production-underline {
  width: 70px;
  height: 3px;
  background: var(--primary);
}
.production-text {
  font-size: 13px;
  color: #4c5a67;
  line-height: 1.45;
  margin-bottom: 4px;
}

.screen-head {
  position: sticky;
  top: 56px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px -6px 12px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}
.back-button { display: grid; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.category-grid-home {
  gap: 26px 22px;
  padding-top: 8px;
}
.empty-state {
  padding: 16px;
  border-radius: 16px;
  background: #f4f6f8;
  border: 1px solid #e2e6ea;
}
.empty-title {
  font-weight: 700;
  color: #163147;
  margin-bottom: 6px;
}
.empty-text {
  color: #4c5a67;
  font-size: 14px;
}

.data-status {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid #d9e1e8;
  font-size: 13px;
  color: #173246;
}
.data-status.hidden { display: none; }
.category-card { border: none; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.category-card img {
  width: 100%;
  height: 184px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  object-position: center;
}
.category-card.category-side-image img {
  object-fit: contain;
  object-position: center;
}
.category-card span {
  display: block;
  padding: 0 2px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.18;
  min-height: 0;
  font-size: 15px;
}
.category-card-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #597183;
}
.category-card:active {
  transform: translateY(1px);
  box-shadow: none;
}

.category-card-home {
  display: grid;
  gap: 8px;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  text-align: left;
}

.category-card-home img {
  height: 184px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.category-card-home span {
  padding: 0 2px;
  min-height: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.18;
  overflow: visible;
}

.category-card-home:active {
  transform: translateY(1px);
  box-shadow: none;
}

.home-info-carousel {
  margin-top: 16px;
  overflow: hidden;
}

.home-info-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.home-info-track::-webkit-scrollbar {
  display: none;
}

.home-info-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  text-align: left;
  min-height: 178px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background-color: #103852;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 36px rgba(7, 25, 42, 0.18);
}

.home-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 20, 31, 0.1) 0%, rgba(9, 20, 31, 0.54) 50%, rgba(9, 20, 31, 0.82) 100%),
    radial-gradient(circle at top right, rgba(43, 136, 177, 0.28), transparent 32%);
}

.home-info-card > * {
  position: relative;
  z-index: 1;
}

.home-info-card-about {
  background-image: url('assets/home/about-people.png');
}

.home-info-card-production {
  background-image: url('assets/home/production-metal.png');
}

.home-info-card-title {
  max-width: 78%;
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.home-info-card-text {
  max-width: 86%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.home-info-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
}

.home-info-card-link::after {
  content: "→";
  font-size: 14px;
}

.home-info-card:active {
  transform: translateY(1px);
}

.product-list { display: grid; gap: 12px; }
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: var(--radius-md);
  padding: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.product-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.product-title { font-weight: 700; }
.product-meta { font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.product-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { font-weight: 700; margin-top: 6px; }
.product-card .product-title {
  line-height: 1.28;
}
.product-price .promo-new { font-weight: 800; color: var(--primary); margin-right: 6px; }
.product-price .promo-old { font-weight: 600; color: #8a97a5; text-decoration: line-through; font-size: 12px; }
.request-button {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.product-actions.icon-actions { gap: 8px; align-items: center; }
.favorites-controls { justify-content: flex-end; margin-top: 8px; }

.card-icon {
  position: absolute;
  border: none;
  background: #fff;
  color: var(--primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(8, 43, 64, 0.12);
  cursor: pointer;
}

.card-icon .icon-svg {
  width: 18px;
  height: 18px;
}

.card-icon.favorite {
  top: 8px;
  right: 8px;
}

.card-icon.favorite.active {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon.cart {
  bottom: 8px;
  right: 8px;
}

.card-qty {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 6px 14px rgba(8, 43, 64, 0.12);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.qty-count {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.product-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
}

.primary-button, .secondary-button, .ghost-button {
  border: none; border-radius: 10px; padding: 8px 10px; font-weight: 700; cursor: pointer;
}
.primary-button { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(8, 43, 64, 0.2); }
.secondary-button { background: var(--accent); color: var(--ink); }
.ghost-button { background: #fff; border: 1px solid var(--border); }
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
}
.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.product-view { display: grid; gap: 16px; min-width: 0; }
.product-view > * { min-width: 0; }
.product-hero {
  position: relative;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
  min-width: 0;
}
.product-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  min-width: 0;
  width: 100%;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: center;
}
.product-view > .product-title {
  font-size: clamp(22px, 5.8vw, 30px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.product-view > .product-meta {
  font-size: 13px;
  margin-top: -6px;
  overflow-wrap: anywhere;
}
.product-back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border);
  min-width: 0;
}
.detail-section { background: #fff; border-radius: var(--radius-md); padding: 18px 16px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); min-width: 0; }
.section-title { font-weight: 800; margin-bottom: 12px; color: var(--primary); font-size: 18px; }
.section-body { color: var(--ink); line-height: 1.68; font-size: 15px; overflow-wrap: anywhere; }
.product-specs { display: grid; gap: 8px; font-size: 15px; line-height: 1.56; min-width: 0; }
.product-specs > div { min-width: 0; overflow-wrap: anywhere; }
.detail-accordion {
  padding-top: 12px;
  padding-bottom: 12px;
}
.section-toggle {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.section-toggle .section-title {
  margin-bottom: 0;
}
.section-chevron {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}
.detail-accordion.open .section-chevron {
  transform: rotate(180deg);
}
.section-content {
  margin-top: 12px;
}
.section-content.hidden {
  display: none;
}
.recommended-section {
  padding-bottom: 10px;
}
.recommended-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  min-width: 0;
  width: 100%;
}
.recommended-track::-webkit-scrollbar { display: none; }
.recommended-card {
  flex: 0 0 178px;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  text-align: left;
  scroll-snap-align: start;
}
.recommended-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7fafc;
}
.recommended-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.recommended-price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.favorites-actions { display: flex; gap: 8px; margin-bottom: 10px; }

.select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  margin-bottom: 6px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.check input { width: 18px; height: 18px; }

.select-actions { display: flex; gap: 8px; }

.select-dot {
  position: absolute;
  top: 8px;
  left: 8px;
}

.select-dot input {
  display: none;
}

.select-dot span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-block;
}

.select-dot input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  position: relative;
}

.select-dot input:checked + span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cart-list { display: grid; gap: 8px; }
.cart-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px 10px 36px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}
.cart-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f3f5;
}
.cart-info { display: grid; gap: 4px; }
.cart-price { font-weight: 700; }
.cart-controls { grid-column: 2; }
.cart-title-link {
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.cart-sku {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}
.cart-controls { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn .icon-svg { width: 16px; height: 16px; }
.icon-btn.active {
  background: #0a2f46;
  color: #fff;
  border-color: #0a2f46;
}

.cart-summary { margin: 12px 0; font-weight: 700; }

.order-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; display: grid; gap: 10px; box-shadow: var(--shadow-soft); }
.order-form label { display: grid; gap: 4px; font-size: 14px; }
.order-form input { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.checkbox { grid-template-columns: 20px 1fr; align-items: start; }
.consent-text {
  font-size: 12px;
  line-height: 1.45;
  color: #365468;
}
.consent-text a {
  color: #0d4f78;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.status { font-size: 13px; color: var(--ink-soft); }
.order-status { font-size: 13px; color: var(--ink-soft); }

.cart-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
}

.cart-checkout {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 8px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.cart-checkout-button {
  width: 100%;
  margin-top: 12px;
}

.order-form.flat {
  border: none;
  padding: 0;
  box-shadow: none;
  gap: 12px;
}

.order-form.flat input {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 2px;
}
.order-form.flat select {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 2px;
  background: transparent;
}

.feedback-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.feedback-note {
  margin-bottom: 10px;
  font-size: 14px;
  color: #365468;
}
.feedback-direct-contact {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d4e2ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f7fb 100%);
}
.feedback-direct-label {
  margin-bottom: 6px;
  font-size: 13px;
  color: #4d6778;
}
.feedback-direct-phone {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0b4266;
  text-decoration: none;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
}

.order-title {
  font-size: 16px;
}

.order-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-total {
  font-weight: 700;
}

.order-repeat {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.order-toggle {
  background: #f3f6f8;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.order-items ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.order-item-title {
  color: var(--text);
}

.order-item-qty {
  color: var(--text-muted);
  white-space: nowrap;
}

.cart-totals {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.confirmation-head {
  margin-bottom: 14px;
}

.confirmation {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d8e4ee;
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(8, 43, 64, 0.1);
  display: grid;
  gap: 10px;
}

.confirmation::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(12, 61, 90, 0.08), transparent 54%);
  pointer-events: none;
}

.confirmation > * {
  position: relative;
  z-index: 1;
}

.confirmation-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0c4d72 0%, #0a3550 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(8, 43, 64, 0.26);
}

.confirmation-icon .icon-svg {
  width: 24px;
  height: 24px;
}

.confirmation-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #0b2f47;
}

.confirmation-text {
  font-size: 17px;
  line-height: 1.45;
  color: #13394f;
}

.confirmation-note {
  background: rgba(12, 61, 90, 0.07);
  border: 1px solid rgba(12, 61, 90, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #23495f;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}

.confirmation-actions .primary-button,
.confirmation-actions .ghost-button {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.text-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.text-card p {
  margin: 0 0 12px;
}
.text-card p:last-child {
  margin-bottom: 0;
}
.about-sections {
  display: grid;
  gap: 18px;
}
.about-lead {
  font-size: 16px;
  line-height: 1.55;
}
.about-section {
  display: grid;
  gap: 10px;
}
.about-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.about-heading {
  font-size: 20px;
  font-weight: 800;
}
.about-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.about-list li {
  line-height: 1.55;
}

.menu-head { margin-bottom: 6px; }
.menu-list { display: grid; gap: 12px; margin-top: 8px; }
.menu-item {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
}
.menu-caret { font-size: 14px; margin-left: 6px; }
.menu-sublist { display: block; }
.menu-catalog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 8px 0;
  box-shadow: var(--shadow-soft);
}
.menu-catalog-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.menu-catalog-item + .menu-catalog-item {
  border-top: none;
}
.menu-catalog-item .menu-caret {
  font-size: 14px;
  transition: transform 0.2s ease;
}
.menu-catalog-item.open .menu-caret {
  transform: rotate(180deg);
}
.menu-catalog-children {
  padding: 4px 18px 12px;
  display: grid;
  gap: 8px;
}
.menu-subitem {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  font-size: 15px;
}
.menu-footer { margin-top: 24px; display: grid; gap: 12px; }
.menu-phone { font-size: 22px; font-weight: 700; color: var(--ink); }
.drawer-socials { display: flex; gap: 10px; }
.social-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
}
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.production-slider {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.production-track {
  display: flex;
  transition: transform 0.25s ease;
}

.production-track img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.production-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: #fff;
}

.production-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #dfe6eb;
  cursor: pointer;
}

.production-dots .dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.production-list {
  display: grid;
  gap: 6px;
  padding-left: 16px;
}
.call-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  width: 220px;
}

.hidden { display: none !important; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  gap: 6px;
  z-index: 260;
  border-radius: 0;
  margin: 0;
  box-shadow: 0 -6px 18px rgba(7, 25, 42, 0.08);
  transform: scale(0.96);
  transform-origin: bottom center;
}

.bottom-item {
  border: none;
  background: transparent;
  color: var(--primary);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  line-height: 1.1;
  white-space: nowrap;
  padding: 6px 2px 4px;
  border-radius: 12px;
}

.bottom-item .icon-svg {
  width: 20px;
  height: 20px;
}

.bottom-center {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 6px 5px;
  margin-top: -14px;
  box-shadow: 0 10px 20px rgba(8, 43, 64, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-center .icon-svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.bottom-item .badge {
  top: -4px;
  right: 18%;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(12, 61, 90, 0.2);
}

.bottom-item.active {
  color: var(--primary);
  background: rgba(12, 61, 90, 0.18);
  border: 1px solid rgba(12, 61, 90, 0.5);
}

.bottom-center.active {
  background: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 26px rgba(8, 43, 64, 0.28);
}

.bottom-center .icon-svg {
  stroke: #fff;
}

.product-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-head h2 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.screen-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.screen-head h2,
.product-head h2 {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 8px;
}

.icon-only {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.filter-bar-sticky {
  position: sticky;
  top: 118px;
  z-index: 65;
  margin: 0 -4px 12px;
  padding: 8px 4px;
  background: rgba(244, 246, 248, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

.filter-input,
.filter-select {
  min-height: 42px;
  font-size: 14px;
}

.product-card:active,
.order-card:active,
.category-card:active,
.menu-catalog-item:active,
.menu-subitem:active,
.promo-card:active {
  transform: translateY(1px);
}

.bottom-item {
  min-height: 54px;
}

@media (max-width: 420px) {
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .filter-sheet-trigger {
    min-width: 0;
    flex: 1 1 100%;
  }

  .filter-input,
  .filter-select {
    flex: 1 1 calc(50% - 5px);
  }

  .header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .screen-head h2,
  .product-head h2 {
    font-size: 19px;
    padding-inline: 4px;
  }

  .product-card {
    grid-template-columns: 88px 1fr;
  }

  .product-card img {
    width: 88px;
    height: 88px;
  }

  .category-card img {
    height: 126px;
  }

  .hero-grid-inline {
    grid-template-columns: 1fr;
  }

  .home-premium-title {
    font-size: 28px;
  }

  .product-view {
    gap: 14px;
  }

  .product-hero {
    padding: 0;
  }

  .product-gallery img {
    aspect-ratio: 1 / 1;
    padding: 12px;
  }

  .product-view > .product-title {
    font-size: 21px;
  }

  .product-view > .product-meta {
    font-size: 13px;
  }

  .product-price-row {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .detail-section {
    padding: 16px 14px;
  }

  .section-title {
    font-size: 17px;
  }

  .section-chevron {
    font-size: 20px;
  }

  .section-body,
  .product-specs {
    font-size: 14px;
    line-height: 1.62;
  }

  .recommended-card {
    flex-basis: 166px;
  }

  .recommended-card img {
    height: 112px;
  }

  .filters-modal {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .filters-sheet {
    width: 100%;
    max-height: calc(100vh - 72px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .filters-sheet-head {
    padding: 16px 16px 10px;
  }

  .filters-sheet-title {
    font-size: 21px;
  }

  .filters-sheet-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .filters-group-toggle {
    font-size: 17px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .filters-price-inputs {
    gap: 8px;
  }

  .filters-sheet-actions {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

}

.icon-only.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
