/* =========================================================
   Voltex-Plus B2B Order Constructor
   Строгий B2B-стиль: світлий фон, темно-синій, таблиці, B2B-CTA
   ========================================================= */

:root {
  --c-primary: #002554;
  --c-primary-dark: #001a3d;
  --c-primary-light: #0a3b7a;
  --c-accent: #c8102e;
  --c-accent-dark: #9b0c23;
  --c-text: #15233d;
  --c-text-muted: #5a6573;
  --c-text-light: #8a95a5;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fb;
  --c-bg-alt: #eef2f7;
  --c-border: #dde3ec;
  --c-border-strong: #c5cdd8;
  --c-success: #1d8f4c;
  --c-warning: #c47b00;
  --c-info: #2070c4;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 30, 60, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 30, 60, 0.12);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --container: 1320px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Backward-compat aliases (for older pages) */
  --color-primary: var(--c-primary);
  --color-primary-dark: var(--c-primary-dark);
  --color-primary-light: var(--c-primary-light);
  --color-accent: var(--c-accent);
  --color-accent-dark: var(--c-accent-dark);
  --color-text: var(--c-text);
  --color-text-muted: var(--c-text-muted);
  --color-text-light: var(--c-text-light);
  --color-bg: var(--c-bg);
  --color-bg-soft: var(--c-bg-soft);
  --color-bg-alt: var(--c-bg-alt);
  --color-border: var(--c-border);
  --color-success: var(--c-success);
  --color-warning: var(--c-warning);
  --font-sans: var(--font);
  --radius-md: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent); }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Typography ============ */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.18;
  color: var(--c-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: 12px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
h4 { font-size: 1.02rem; margin-bottom: 4px; }
p  { margin-bottom: 12px; color: var(--c-text-muted); }
.lead {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-primary); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-header { max-width: 760px; margin-bottom: 36px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-outline {
  background: #fff;
  border-color: var(--c-border-strong);
  color: var(--c-primary);
}
.btn-outline:hover { border-color: var(--c-primary); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); padding: 8px 12px; }
.btn-ghost:hover { color: var(--c-accent); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.btn-lg { padding: 13px 24px; font-size: 0.95rem; }
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
}
.btn-icon:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.topbar {
  background: var(--c-primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 24px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,0.9); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-status { display: flex; align-items: center; gap: 6px; }
.topbar-status::before {
  content: ''; width: 7px; height: 7px;
  background: #2ecc71; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--c-primary);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 0.95rem;
  letter-spacing: -0.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.05rem; color: var(--c-primary); font-weight: 800; }
.logo-text span {
  font-size: 0.68rem; color: var(--c-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 11px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.main-nav a.active { color: var(--c-primary); font-weight: 700; }

.header-cta { display: flex; gap: 8px; align-items: center; }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
}
.cart-button:hover { background: var(--c-accent-dark); color: #fff; }
.cart-button .badge-count {
  background: #fff;
  color: var(--c-accent);
  border-radius: 11px;
  padding: 1px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--c-primary); }

@media (max-width: 1200px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open a { padding: 12px 14px; }
  .menu-toggle { display: flex; }
}
@media (max-width: 700px) {
  .cart-button span:not(.badge-count) { display: none; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #002554 0%, #001a3d 100%);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.hero .eyebrow { color: #ff7589; }
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 580px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
}
.hero-badge::before {
  content: '✓';
  color: #5ec486;
  font-weight: 700;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-card h3 { color: #fff; }
.hero-card-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
}
.hero-card-row:last-child { border-bottom: 0; }
.hero-card-row span:first-child { color: rgba(255,255,255,0.7); }
.hero-card-row span:last-child { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ Cards & Grids ============ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--c-border-strong); }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { font-size: 0.88rem; line-height: 1.55; margin-bottom: 0; }

.feature-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.feature-card .icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.feature-card h4 { font-size: 1rem; margin-bottom: 4px; color: var(--c-primary); }
.feature-card p { font-size: 0.85rem; margin: 0; }

/* ============ Product cards ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.product-card-img {
  aspect-ratio: 4/3;
  background: var(--c-bg-soft);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--c-success);
  color: #fff;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.product-card-badge.warn { background: var(--c-warning); }
.product-card-badge.muted { background: var(--c-text-light); }
.product-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-light);
  margin-bottom: 4px;
  font-weight: 600;
}
.product-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 6px;
}
.product-card-desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
}
.product-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 0.74rem;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
  margin-bottom: 12px;
}
.product-card-specs dt { color: var(--c-text-light); }
.product-card-specs dd { color: var(--c-text); font-weight: 600; }
.product-card-actions {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.product-card-actions .btn { flex: 1; padding: 8px 10px; font-size: 0.78rem; }
.product-card-actions .btn-icon { flex: 0 0 32px; }

/* ============ Catalog layout ============ */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
}
@media (max-width: 1000px) { .catalog-layout { grid-template-columns: 1fr; } }

.filters {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  font-size: 0.88rem;
}
.filters h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}
.filter-group { margin-bottom: 18px; }
.filter-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  font-weight: 700;
}
.filter-group input[type="search"],
.filter-group select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
}
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
}
.filter-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--c-text);
  cursor: pointer;
  padding: 2px 0;
}
.filter-list label:hover { color: var(--c-primary); }
.filter-list input { accent-color: var(--c-primary); }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}
.catalog-toolbar .results { font-size: 0.85rem; color: var(--c-text-muted); }
.catalog-toolbar select {
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
}

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; }
table.b2b {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.b2b th {
  background: var(--c-bg-soft);
  font-weight: 700;
  color: var(--c-primary);
  text-align: left;
  padding: 11px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
table.b2b td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
table.b2b tr:last-child td { border-bottom: 0; }
table.b2b tr:hover td { background: var(--c-bg-soft); }
table.b2b input,
table.b2b select {
  padding: 6px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
}
table.b2b .qty-input { max-width: 90px; }
table.b2b .pos-num {
  display: inline-flex;
  width: 22px; height: 22px;
  background: var(--c-bg-alt);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-text);
}
.row-color-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-color-swatch {
  width: 22px; height: 22px;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  flex-shrink: 0;
}

/* ============ Badges ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.badge-stock { background: rgba(29, 143, 76, 0.12); color: var(--c-success); }
.badge-order { background: rgba(196, 123, 0, 0.12); color: var(--c-warning); }
.badge-incoming { background: rgba(32, 112, 196, 0.12); color: var(--c-info); }
.badge-muted { background: var(--c-bg-alt); color: var(--c-text-muted); }
.badge-accent { background: rgba(200, 16, 46, 0.1); color: var(--c-accent); }
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============ Forms ============ */
.form { display: grid; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-field label .req { color: var(--c-accent); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0, 37, 84, 0.08);
}
.form-field textarea { min-height: 88px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--c-text);
  cursor: pointer;
}
.form-check input { margin-top: 3px; }
.form-note {
  font-size: 0.78rem;
  color: var(--c-text-light);
  line-height: 1.5;
}
.form-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ============ Page header ============ */
.page-header {
  background: var(--c-bg-soft);
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--c-border);
}
.page-header h1 { margin-bottom: 6px; }
.page-header p { max-width: 720px; font-size: 1rem; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { color: var(--c-text); font-weight: 500; }

/* ============ Palette page ============ */
.palette-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
@media (max-width: 900px) { .palette-toolbar { grid-template-columns: 1fr 1fr; } }
.palette-toolbar label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.palette-toolbar input,
.palette-toolbar select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: #fff;
}
.palette-toolbar .btn { align-self: end; }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.color-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.color-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.color-card-swatch {
  height: 100px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.color-card-swatch .av {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.65rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.color-card-body { padding: 12px 14px; }
.color-card-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-primary);
}
.color-card-name { font-size: 0.82rem; color: var(--c-text); margin: 4px 0 8px; }
.color-card-lines {
  font-size: 0.7rem;
  color: var(--c-text-light);
  margin-bottom: 10px;
  line-height: 1.4;
}
.color-card-actions { display: flex; gap: 6px; }
.color-card-actions .btn { flex: 1; padding: 6px 8px; font-size: 0.75rem; }

.color-warning {
  background: #fff8e1;
  border: 1px solid #ecd57b;
  border-left: 4px solid var(--c-warning);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--c-text);
}
.color-warning strong { color: var(--c-warning); }

/* ============ Order constructor ============ */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) { .order-layout { grid-template-columns: 1fr; } }

.order-summary {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.order-summary h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 0.88rem;
}
.order-summary-row:last-of-type { border-bottom: 0; }
.order-summary-row strong { color: var(--c-primary); }
.order-summary-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--c-primary);
  font-size: 1rem;
  font-weight: 700;
}

.upload-zone {
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  background: var(--c-bg-soft);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--c-primary);
  background: rgba(0, 37, 84, 0.03);
}
.upload-zone strong { display: block; color: var(--c-primary); margin-bottom: 4px; }
.upload-zone span { font-size: 0.82rem; color: var(--c-text-muted); }

.upload-preview {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.upload-preview header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.85rem;
}

/* ============ Status cards on shipping/VAT info ============ */
.info-block {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 18px 0;
}
.info-block.accent { border-left-color: var(--c-accent); }
.info-block.success { border-left-color: var(--c-success); }
.info-block.warn { border-left-color: var(--c-warning); }
.info-block h3 { margin-bottom: 8px; }
.info-block p { margin-bottom: 8px; color: var(--c-text); font-size: 0.95rem; line-height: 1.55; }
.info-block p:last-child { margin-bottom: 0; }
.info-block ul { padding-left: 22px; color: var(--c-text-muted); font-size: 0.92rem; }
.info-block ul li { margin-bottom: 4px; }

/* ============ FAQ ============ */
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--c-primary);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-text-muted);
  transition: transform .15s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 20px;
  font-size: 0.88rem;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.88rem; margin-bottom: 12px; font-weight: 700; letter-spacing: 0.02em; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 6px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo .logo-mark { background: #fff; color: var(--c-primary); }
.footer-logo strong { color: #fff; font-size: 1rem; }
.footer-logo span { color: rgba(255,255,255,0.6); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}
.social-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ============ Toast & notifications ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.success { background: var(--c-success); }
.toast.error { background: var(--c-accent); }

/* ============ CTA strip ============ */
.cta-strip {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  padding: 40px 0;
  margin: 40px 0;
  border-radius: var(--radius-lg);
}
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 0 32px;
}
@media (max-width: 700px) { .cta-strip-inner { grid-template-columns: 1fr; padding: 0 24px; } }
.cta-strip h2 { color: #fff; margin-bottom: 4px; font-size: 1.4rem; }
.cta-strip p { color: rgba(255,255,255,0.8); margin: 0; }

/* ============ Empty state ============ */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--c-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--c-border-strong);
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 18px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ============ Utility ============ */
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--c-border); margin: 24px 0; }
.flex-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.hide-mobile { }
@media (max-width: 700px) { .hide-mobile { display: none; } }

/* =========================================================
   MOBILE-FIRST OPTIMIZATIONS (≤900px)
   Drawer-фільтри, sticky bottom-bar, card-view замість таблиці,
   accordion для довгих секцій, sticky CTA, форми 44px+
   ========================================================= */

/* ============ Global mobile fixes ============ */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 16px; }
  body { font-size: 14.5px; }
  h1 { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  h3 { font-size: 1.05rem; }
  .lead { font-size: 0.95rem; }
  .section { padding: 36px 0; }
  .section-tight { padding: 24px 0; }
  .section-header { margin-bottom: 24px; }
  .page-header { padding: 24px 0 20px; }
  .page-header p { font-size: 0.92rem; }

  /* Buttons readable on tap */
  .btn { padding: 12px 18px; font-size: 0.92rem; min-height: 44px; }
  .btn-sm { padding: 9px 14px; min-height: 38px; }
  .btn-lg { padding: 14px 22px; }
  .btn-group { gap: 8px; }
}

/* ============ Header: compact mobile ============ */
@media (max-width: 900px) {
  .topbar { font-size: 0.7rem; }
  .topbar-inner { padding: 5px 16px; gap: 4px; }
  .topbar-links { gap: 10px; }
  .topbar-links a:not(:first-child) { display: none; }
  .topbar-status { font-size: 0.7rem; }

  .nav-wrap { padding: 10px 0; gap: 10px; }
  .logo-mark { width: 36px; height: 36px; font-size: 0.85rem; }
  .logo-text strong { font-size: 0.95rem; }
  .logo-text span { font-size: 0.62rem; }

  /* Hide desktop nav, show only cart + burger */
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 70px 20px 100px;
    gap: 0;
    z-index: 200;
    overflow-y: auto;
    border-bottom: none;
  }
  .main-nav.open a {
    padding: 16px 18px;
    font-size: 1rem;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }
  .main-nav.open a:first-child { border-top: 1px solid var(--c-border); }
  .main-nav.open a.active {
    color: var(--c-accent);
    background: var(--c-bg-soft);
  }

  .menu-toggle { display: flex; width: 42px; height: 42px; }
  .cart-button { padding: 8px 12px; font-size: 0.8rem; min-height: 42px; }
  .cart-button .badge-count { padding: 2px 7px; font-size: 0.72rem; min-width: 20px; }
}

/* Close burger button visible inside open menu */
@media (max-width: 900px) {
  .main-nav.open::before {
    content: '✕';
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.7rem;
    color: var(--c-text-muted);
    cursor: pointer;
  }
  .main-nav.open::after {
    content: 'Меню';
    position: absolute;
    top: 22px;
    left: 22px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-light);
    font-weight: 700;
  }
}

/* ============ Hero: compact mobile ============ */
@media (max-width: 900px) {
  .hero { padding: 32px 0 36px; }
  .hero::before { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 2.05rem); }
  .hero p { font-size: 0.94rem; margin-bottom: 18px; }
  .hero .eyebrow { font-size: 0.65rem; }
  .hero .btn-group { flex-direction: column; align-items: stretch; }
  .hero .btn-group .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 6px; margin-top: 18px; padding-top: 0; border: none; }
  .hero-badge { font-size: 0.72rem; padding: 5px 10px; }
  .hero-card { padding: 18px; }
  .hero-card-row { padding: 8px 0; font-size: 0.83rem; }
}

/* ============ Grids: collapse to 1 column ============ */
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) and (min-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Product cards on mobile ============ */
@media (max-width: 700px) {
  .product-card { display: grid; grid-template-columns: 110px 1fr; }
  .product-card-img { aspect-ratio: 1; border-right: 1px solid var(--c-border); border-bottom: none; }
  .product-card-body { padding: 12px 14px; }
  .product-card-title { font-size: 0.92rem; }
  .product-card-desc { display: none; }
  .product-card-specs {
    grid-template-columns: 1fr;
    font-size: 0.7rem;
    padding-top: 6px;
    margin-bottom: 8px;
    gap: 2px;
  }
  .product-card-specs dt { display: inline; }
  .product-card-specs dd { display: inline; margin-left: 4px; }
  .product-card-actions { flex-direction: row; gap: 4px; }
  .product-card-actions .btn { padding: 7px 6px; font-size: 0.72rem; min-height: 36px; }
  .product-card-actions .btn-icon { display: none; }
}

/* ============ Catalog filters: drawer mode ============ */
@media (max-width: 1000px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 12px; }

  /* Hide filters by default on mobile, show as drawer */
  .filters {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 85vh;
    border-radius: 14px 14px 0 0;
    z-index: 150;
    transform: translateY(100%);
    transition: transform .25s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
    border: none;
    border-top: 1px solid var(--c-border);
    overflow-y: auto;
    padding: 16px 20px 80px;
  }
  .filters.open { transform: translateY(0); }
  .filters::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--c-border-strong);
    border-radius: 2px;
    margin: 0 auto 12px;
  }
  .filters h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
  }
  .filters h3::after {
    content: '✕';
    font-size: 1.3rem;
    color: var(--c-text-muted);
    cursor: pointer;
    line-height: 1;
  }
  .filter-list { max-height: none; }

  /* Mobile filter toolbar */
  .catalog-toolbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 14px;
    position: sticky;
    top: 64px;
    background: #fff;
    z-index: 80;
  }
  .catalog-toolbar .results {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 0.82rem;
  }
  .catalog-toolbar select {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }
  .catalog-toolbar::before {
    content: '⚙ Фільтри';
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 0 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
  }

  /* Filters backdrop */
  body.filters-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 140;
  }
}

/* ============ Palette: bigger swatches, sticky search ============ */
@media (max-width: 900px) {
  .palette-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    position: sticky;
    top: 60px;
    z-index: 80;
    background: var(--c-bg-soft);
  }
  .palette-toolbar > div:first-child { grid-column: 1 / -1; }
  .palette-toolbar .btn { grid-column: 1 / -1; }
  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .color-card-swatch { height: 80px; }
  .color-card-code { font-size: 1rem; }
  .color-card-name { font-size: 0.78rem; }
  .color-card-lines { font-size: 0.68rem; }
  .color-card-actions .btn { padding: 7px 6px; font-size: 0.72rem; min-height: 36px; }
  .color-warning { font-size: 0.82rem; padding: 12px 14px; }
}
@media (max-width: 360px) {
  .palette-grid { grid-template-columns: 1fr; }
}

/* ============ Order constructor: card view on mobile ============ */
@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .order-summary {
    position: static;
    padding: 16px;
  }

  /* Hide desktop table, show cards (rendered by JS via data attrs) */
  table.b2b { font-size: 0.82rem; }
  .table-wrap { overflow-x: auto; }
}

/* Card-view fallback: convert table rows into stacked cards via CSS */
@media (max-width: 700px) {
  table.b2b,
  table.b2b thead,
  table.b2b tbody,
  table.b2b tr,
  table.b2b td,
  table.b2b th { display: block; }
  table.b2b thead { display: none; }
  table.b2b tbody { display: flex; flex-direction: column; gap: 10px; }
  table.b2b { border: none; }
  table.b2b tr {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 14px;
    position: relative;
  }
  table.b2b tr:hover td { background: transparent; }
  table.b2b td {
    padding: 4px 0;
    border-bottom: none;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
    align-items: center;
    font-size: 0.86rem;
  }
  table.b2b td::before {
    content: attr(data-label);
    color: var(--c-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
  }
  table.b2b td:first-child {
    grid-template-columns: 1fr auto;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--c-border);
  }
  table.b2b td:first-child::before { display: none; }
  table.b2b td.row-action {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
    grid-template-columns: 1fr;
  }
  table.b2b td.row-action::before { display: none; }
  table.b2b .qty-input { max-width: 100%; width: 100%; min-height: 38px; }
  table.b2b input,
  table.b2b select { min-height: 38px; }
}

/* Sticky CTA на сторінці order */
@media (max-width: 900px) {
  .order-cta-mobile {
    position: fixed;
    bottom: 64px;
    left: 12px;
    right: 12px;
    z-index: 90;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 22px rgba(200, 16, 46, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
  }
  .order-cta-mobile[hidden] { display: none !important; }
  .order-cta-mobile .count {
    background: rgba(255,255,255,0.25);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
  }
}

/* ============ Forms: 44px+ inputs, full-width ============ */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; gap: 10px; }
  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 44px;
    font-size: 16px; /* avoid iOS zoom */
    padding: 11px 14px;
  }
  .form-field label { font-size: 0.74rem; }
  .form-card { padding: 18px 16px; }
  .form-check { font-size: 0.82rem; align-items: flex-start; }
  .form-check input { width: 20px; height: 20px; margin-top: 1px; }
}

/* ============ Bottom navigation bar ============ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  z-index: 100;
  padding: 4px 0;
  box-shadow: 0 -4px 16px rgba(15,30,60,0.06);
}
.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  text-align: center;
  font-size: 0.66rem;
  color: var(--c-text-muted);
  text-decoration: none;
  position: relative;
  min-height: 56px;
}
.bottom-nav a .icon {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.bottom-nav a.active { color: var(--c-accent); font-weight: 700; }
.bottom-nav a .bn-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--c-accent);
  color: #fff;
  border-radius: 11px;
  min-width: 18px;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}
.bottom-nav a .bn-badge[hidden] { display: none; }

@media (max-width: 900px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 64px; }
  .site-footer { margin-bottom: 0; }
}

/* ============ Accordion (details) global mobile look ============ */
@media (max-width: 900px) {
  .info-block { padding: 16px 18px; font-size: 0.92rem; }
  .info-block h3 { font-size: 1rem; }
  .info-block p, .info-block ul { font-size: 0.88rem; }
  .feature-card { padding: 14px 16px; gap: 12px; }
  .feature-card h4 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.82rem; }

  .faq-item summary { padding: 14px 16px; font-size: 0.92rem; }
  .faq-item .faq-body { padding: 0 16px 16px; font-size: 0.88rem; }

  .cta-strip { padding: 28px 0; margin: 24px 0; }
  .cta-strip-inner { grid-template-columns: 1fr; padding: 0 20px; gap: 14px; }
  .cta-strip h2 { font-size: 1.15rem; }
  .cta-strip p { font-size: 0.88rem; }
  .cta-strip .btn-group { flex-direction: column; }
  .cta-strip .btn-group .btn { width: 100%; justify-content: center; }
}

/* ============ Forms on order page mobile ============ */
@media (max-width: 700px) {
  .upload-zone { padding: 18px 14px; }
  .upload-zone strong { font-size: 0.92rem; }
  .upload-zone span { font-size: 0.78rem; }
}

/* ============ Hide unused on mobile ============ */
@media (max-width: 700px) {
  .hero-card { display: none; }   /* sticky card в hero займає весь екран на телефоні */
  .breadcrumb { font-size: 0.72rem; margin-bottom: 6px; }
}

/* ============ Sticky CTA badge on bottom-nav ============ */
@media (max-width: 900px) {
  .cart-button { display: none; }  /* у мобільному nav-bar є цей самий лічильник */
}

/* ============ Page header narrower on mobile ============ */
@media (max-width: 700px) {
  .page-header h1 { font-size: clamp(1.4rem, 6vw, 1.7rem); }
}

/* ============ Filter chips above catalog ============ */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.active-chips:empty { display: none; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--c-bg-alt);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--c-primary);
  font-weight: 500;
  cursor: pointer;
}
.active-chip::after {
  content: '✕';
  color: var(--c-text-muted);
  font-size: 0.85rem;
  line-height: 1;
}
.active-chip:hover { background: var(--c-border); }
