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

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

:root {
  --blue:    #1e3a5f;
  --blue2:   #2a4f80;
  --accent:  #e8a020;
  --gray:    #6b7280;
  --gray-lt: #f3f4f6;
  --border:  #e5e7eb;
  --white:   #ffffff;
  --text:    #111827;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
  --font:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  background: var(--gray-lt);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

.header-rate {
  margin-left: auto;
  font-size: .8rem;
  opacity: .8;
  white-space: nowrap;
}

.header-cart-btn {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.header-cart-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
}
.cart-count {
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SEARCH & FILTERS ───────────────────────────────────────────────────── */
.search-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.search-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--blue); }

.categories-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.cat-scroll-end { min-width: 16px; flex-shrink: 0; }
.categories-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.categories-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .85rem;
  white-space: nowrap;
  transition: all .2s;
  color: var(--gray);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.cat-arrow { font-size: .6rem; opacity: .75; line-height: 1; }

/* ── CATEGORY DROPDOWN ──────────────────────────────────────────────────── */
/* .cat-group is a flex child — same alignment as plain .cat-tab */
.cat-group {
  flex-shrink: 0;
}
/* Dropdown uses position:fixed to escape overflow-x:auto clipping on parent.
   top/left are set by JS on open. */
.cat-sub-panel {
  display: none;
  position: fixed;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
  min-width: 180px;
  max-width: 260px;
  z-index: 9000;
  padding: 6px 0;
  overflow: hidden;
}
.cat-sub-panel.open { display: block; }

.cat-dd-link {
  display: block;
  padding: 8px 14px;
  font-size: .875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .12s;
}
.cat-dd-link:hover { background: var(--gray-lt); }
.cat-dd-link.active { color: var(--blue); font-weight: 600; }
.cat-dd-indent { color: var(--gray); font-size: .8rem; }

/* ── GRID ───────────────────────────────────────────────────────────────── */
.catalog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  flex: 1;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ── PRODUCT CARD ───────────────────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e4eaf5;
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 4px 12px rgba(30,58,95,.07),
    0 12px 28px rgba(30,58,95,.06);
  transition: transform .28s cubic-bezier(.2,.8,.2,1),
              box-shadow .28s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(0,0,0,.05),
    0 10px 24px rgba(30,58,95,.13),
    0 28px 52px rgba(30,58,95,.14);
}

/* — IMAGE WRAP — */
.card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(140deg, #1a3356 0%, #2d5491 100%);
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.06);
}
.card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.18);
}
.card-img-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,18,40,.75) 0%,
    rgba(8,18,40,.22) 42%,
    transparent 68%
  );
  pointer-events: none;
}

/* — PRICE CHIP floating on image — */
.card-price-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1e3a5f;
  font-size: .9rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 10px;
  letter-spacing: -.01em;
  box-shadow: 0 2px 12px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.9) inset;
  line-height: 1.2;
}

/* — TOP BADGES WRAPPER (sale + sold-out) — */
.card-top-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

/* — SALE chip — */
.card-sale-chip {
  background: #F5C518;
  color: #6B3A00;
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 2px 8px rgba(245,197,24,.45);
}

/* — SOLD OUT chip — */
.card-sold-chip {
  background: rgba(220,38,38,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
}
.card-soldout .card-img-wrap img {
  opacity: .72;
  filter: grayscale(25%);
}

/* — CARD BODY — */
.card-body {
  padding: 14px 14px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-cat {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--blue);
  font-weight: 700;
  opacity: .65;
}
.card-name {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0d1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-uah {
  font-size: .76rem;
  color: var(--gray);
  margin-top: 1px;
}

/* — CARD FOOTER — */
.card-footer {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}
.card-btn-main {
  flex: 1;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5491 100%);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 0 #0e1f3a, 0 5px 14px rgba(30,58,95,.28);
  transition: opacity .15s;
}
.card-btn-main::after {
  content: '→';
  font-size: .88rem;
  opacity: .8;
}
.card-btn-main:hover { opacity: .87; }
.card-btn-cart {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #b07010, 0 5px 14px rgba(232,160,32,.32);
  transition: opacity .15s;
}
.card-btn-cart:hover { opacity: .85; }
.card-btn-cart.added {
  background: #22c55e;
  box-shadow: 0 3px 0 #166534, 0 5px 14px rgba(34,197,94,.32);
}

/* — MOBILE TWEAKS — */
@media (max-width: 480px) {
  .product-card { border-radius: 16px; }
  .card-body { padding: 10px 10px 2px; gap: 3px; }
  .card-footer { padding: 8px 10px 12px; gap: 6px; }
  .card-name { font-size: .82rem; }
  .card-uah { font-size: .72rem; }
  .card-price-chip { font-size: .8rem; padding: 4px 9px; bottom: 8px; left: 8px; border-radius: 8px; }
  .card-btn-main { font-size: .76rem; padding: 9px 8px; border-radius: 10px; }
  .card-btn-cart { width: 37px; height: 37px; border-radius: 10px; }
}

/* ── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1rem; }

/* ── PAGINATION ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: .85rem;
  transition: all .2s;
  color: var(--text);
}
.page-btn:hover, .page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── LOAD MORE ───────────────────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  padding: 24px 0 36px;
}
.btn-load-more {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 10px 36px;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-load-more:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-load-more:disabled {
  opacity: .5;
  cursor: default;
}

/* ── PRODUCT PAGE ───────────────────────────────────────────────────────── */
.page-main {
  flex: 1;
}
.product-page {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) {
  .product-page { grid-template-columns: 1fr; gap: 20px; }
  .product-desc {
    margin-right: 8px;
    box-shadow: 3px 3px 0 0 #d5dfef, 6px 6px 0 0 #e4eaf6;
  }
}
.product-gallery {}
.gallery-main {
  background: var(--blue);
  border-radius: 16px;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow:
    /* глибина / підняття */
    0 10px 36px rgba(20,45,90,.32),
    0 3px 10px rgba(20,45,90,.18),
    /* скляні відблиски зверху і зліва (світло) */
    inset 0 2px 4px rgba(255,255,255,0.7),
    inset 2px 0 4px rgba(255,255,255,0.45),
    /* скляні тіні знизу і справа (об'єм) */
    inset 0 -2px 4px rgba(0,0,0,0.14),
    inset -2px 0 4px rgba(0,0,0,0.08);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
  flex-shrink: 0;
  background: var(--blue);
}
.gallery-thumb.active { border-color: var(--blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.product-category-tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--blue);
  background: #eef2ff;
  border: 1px solid #c7d4f0;
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 600;
}
.product-sale-tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #6B3A00;
  background: #FFF3CC;
  border: 1px solid #F5C518;
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 700;
}

/* — "Акції" tab special color when active — */
.cat-tab.sale-tab:hover,
.cat-tab.sale-tab.active {
  background: #F5C518;
  border-color: #F5C518;
  color: #6B3A00;
}
.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.product-price-block {
  background: linear-gradient(120deg, #eef2ff 0%, var(--gray-lt) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--blue);
  padding: 14px 0 14px 14px;
  margin-bottom: 20px;
}
.product-price-usd {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
}
.product-price-uah {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 2px;
}
.product-avail {
  display: inline-block;
  font-size: .8rem;
  margin-top: 8px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.product-avail.in  { color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; }
.product-avail.out { color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; }
.product-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
  background: #f7f9ff;
  border: 1.5px solid #d5dfef;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin-bottom: 32px;
  margin-right: 10px;
  box-shadow:
    4px 4px 0 0 #d5dfef,
    8px 8px 0 0 #e4eaf6;
  position: relative;
}
.product-desc::before {
  content: '❝';
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  background: #f7f9ff;
  padding: 0 4px;
}
/* ── VARIANTS ────────────────────────────────────────────────────────────── */
.product-variants {
  margin-bottom: 20px;
}
.variants-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.variants-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.variant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: .88rem;
  line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
  min-width: 80px;
  flex: 0 0 auto;
}
.variant-btn-label {
  font-weight: 600;
}
.variant-btn-price {
  font-size: .78rem;
  color: var(--gray);
  margin-top: 2px;
}
.variant-btn.active {
  border-color: var(--blue);
  background: #dce8f7;
  color: var(--blue);
}
.variant-btn.active .variant-btn-price {
  color: var(--blue2);
}
.variant-btn:hover:not(.active) {
  border-color: var(--blue2);
  background: #f0f4f8;
}

/* ── CART VARIANT TAG ────────────────────────────────────────────────────── */
.cart-variant-tag {
  display: inline-block;
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .75rem;
  color: var(--gray);
  margin-left: 4px;
  vertical-align: middle;
}

.btn-add-cart {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 5px 0 0 #0f2040, 0 6px 12px rgba(30,58,95,.25);
  margin-bottom: 36px;
}
.btn-add-cart:hover {
  background: var(--blue2);
  box-shadow: 0 5px 0 0 #0c1a30, 0 6px 14px rgba(30,58,95,.3);
}
.btn-add-cart:active {
  box-shadow: 0 2px 0 0 #0f2040, 0 2px 6px rgba(30,58,95,.2);
}
.btn-add-cart:disabled {
  background: var(--gray);
  box-shadow: 0 4px 0 0 #4b5563;
  cursor: not-allowed;
}

/* ── CART PAGE ──────────────────────────────────────────────────────────── */
.cart-page {
  max-width: 640px;
  margin: 24px auto;
  padding: 0 16px;
  flex: 1;
}
.cart-page h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--gray);
}
.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--blue);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.cart-item-price { font-size: .85rem; color: var(--gray); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-val { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.1rem;
  padding: 4px;
}
.cart-total {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-label { font-size: .9rem; color: var(--gray); }
.cart-total-sum { font-size: 1.3rem; font-weight: 700; color: var(--blue); }

.order-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.order-form h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 5px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--blue); }
textarea.form-control { resize: vertical; min-height: 80px; }

.btn-order {
  width: 100%;
  background: #16a34a;
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  transition: background .2s;
}
.btn-order:hover { background: #15803d; }
.btn-order:disabled { background: var(--gray); cursor: not-allowed; }

.order-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.order-success .icon { font-size: 3rem; margin-bottom: 12px; }
.order-success h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.order-success p { color: var(--gray); }

/* ── TOAST ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 999;
  transition: transform .3s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-owner {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.footer-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .footer-sep { display: none; }
  .footer-contacts { gap: 6px; }
}
.footer-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.op-icon {
  flex-shrink: 0;
  display: block;
}
.footer-phone-link {
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .15s;
}
.footer-phone-link:hover { opacity: .7; }
.footer-viber-btn {
  display: flex;
  align-items: center;
  opacity: .9;
  transition: opacity .15s;
}
.footer-viber-btn:hover { opacity: 1; }
.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
}

/* ── BACK LINK ──────────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: .88rem;
  margin: 16px 16px 0;
  transition: color .2s;
}
.back-link:hover { color: var(--blue); }

/* ── WHOLESALE / PRICE BADGES ───────────────────────────────────────────── */
.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}
.price-badge--retail    { background: #E6F1FB; color: #185FA5; }
.price-badge--wholesale { background: #E1F5EE; color: #0F6E56; }

.wholesale-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 600;
  color: #185FA5;
  background: #E6F1FB;
  border: 1.5px solid #b8d4f0;
  border-radius: 20px;
  padding: 5px 14px;
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.wholesale-hint {
  font-size: .82rem;
  color: #185FA5;
  background: #E6F1FB;
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 8px;
}
.wholesale-hint--active {
  color: #0F6E56;
  background: #E1F5EE;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.qty-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 1rem;
  font-weight: 600;
}
.qty-total {
  font-size: .9rem;
  color: var(--gray);
  font-weight: 600;
  margin-left: 4px;
}

.wholesale-cart-hint {
  font-size: .75rem;
  color: #185FA5;
  margin-top: 3px;
}
.cart-savings {
  background: #E1F5EE;
  color: #0F6E56;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 8px;
}
