[hidden] { display: none !important; }

:root {
  --color-bg: #fffaf8;
  --color-bg-soft: #fdf3f0;
  --color-pink: #f7dbe3;
  --color-pink-soft: #fcecf1;
  --color-lilac: #ece0f5;
  --color-beige: #f6ead9;
  --color-mint: #dff0e6;

  --color-accent: #c85b7f;
  --color-accent-dark: #a8395f;
  --color-accent-soft: #f1a8bf;

  --color-text: #3a2c33;
  --color-text-muted: #8a7580;
  --color-text-soft: #b39aa5;

  --color-border: #f0dee4;
  --color-white: #ffffff;

  --color-star: #e0a63d;
  --color-old-price: #b8a3ac;
  --color-sale: #d1477a;
  --color-success: #4f9c74;

  --shadow-sm: 0 2px 8px rgba(90, 40, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(90, 40, 60, 0.10);
  --shadow-lg: 0 16px 40px rgba(90, 40, 60, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container-w: 1280px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.delivery-bar {
  background: linear-gradient(90deg, var(--color-mint), #eaf6ee);
  color: #2f6b48;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.2px;
}
.delivery-bar span { margin: 0 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 248, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent-dark);
  white-space: nowrap;
}
.logo span { color: var(--color-text); font-weight: 400; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--color-accent-dark); border-color: var(--color-accent-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #229ed9;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.tg-button:hover, .tg-button:focus-visible { background: #1c8bc2; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tg-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.tg-button__label { white-space: nowrap; }

.max-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.max-button:hover, .max-button:focus-visible { border-color: #b3a0f7; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.max-button img { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.max-button__label { white-space: nowrap; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  transition: background .15s, border-color .15s;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--color-pink-soft); border-color: var(--color-accent-soft); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

.search-panel {
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  background: var(--color-pink-soft);
  transition: max-height .25s ease, border-color .25s ease;
}
.search-panel.is-open {
  max-height: 90px;
  border-color: var(--color-border);
}
.search-panel__inner { max-width: var(--container-w); margin: 0 auto; padding: 14px 24px; }
.search-panel input[type="search"] {
  width: 100%;
  max-width: 480px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 15px;
  outline-offset: 2px;
}
.search-panel input[type="search"]:focus-visible { outline: 2px solid var(--color-accent-soft); }

.hero {
  position: relative;
  min-height: 420px;
  height: clamp(360px, 52vw, 620px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(58, 30, 41, 0.52) 0%, rgba(58, 30, 41, 0.30) 45%, rgba(255, 250, 248, 0.05) 78%),
    url("/assets/img/hero.jpg");
  background-size: cover;
  background-position: center 38%;
  color: #fff;
}
.hero__inner { max-width: 620px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #fff;
  max-width: 480px;
  margin-bottom: 26px;
  background: rgba(40, 20, 28, 0.38);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 18px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 57, 95, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168, 57, 95, 0.45); }
.btn-block { width: 100%; }
.btn-glass {
  background: rgba(255, 250, 248, 0.94);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.btn-glass:hover, .btn-glass:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn img { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.btn svg { flex-shrink: 0; }
.btn-secondary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: #b3a0f7; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.contact-cta-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cta-pair .btn { flex: 1 1 180px; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--center { text-align: center; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head p { color: var(--color-text-muted); font-size: 15.5px; }

.badge-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 44px auto 8px;
  max-width: 900px;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 17px; height: 17px; color: var(--color-accent-dark); flex-shrink: 0; }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 14px;
  margin-bottom: 28px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 900px) {
  .chip-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .chip-group .chip { scroll-snap-align: start; flex-shrink: 0; }
  .chip-group::-webkit-scrollbar { height: 0; }
}
.chip {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--color-accent-soft); }
.chip.is-active {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.custom-select {
  position: relative;
  width: 190px;
  flex: 0 0 auto;
}
.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.custom-select__trigger:hover { border-color: var(--color-accent-soft); }
.custom-select__trigger:focus-visible { outline: none; border-color: var(--color-accent-dark); box-shadow: 0 0 0 3px rgba(200, 91, 127, 0.16); }
.custom-select.is-open .custom-select__trigger { border-color: var(--color-accent-dark); box-shadow: 0 0 0 3px rgba(200, 91, 127, 0.16); }

.custom-select__chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--color-text-soft);
  transition: transform .18s ease;
}
.custom-select.is-open .custom-select__chevron { transform: rotate(180deg); color: var(--color-accent-dark); }

.custom-select__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 4px;
  margin: 0;
  z-index: 30;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.custom-select.is-open .custom-select__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.custom-select__list li:hover { background: var(--color-bg-soft); }
.custom-select__list li.is-selected { background: var(--color-pink-soft); color: var(--color-accent-dark); font-weight: 700; }
.custom-select__list li .check { width: 14px; height: 14px; flex-shrink: 0; opacity: 0; }
.custom-select__list li.is-selected .check { opacity: 1; }

.results-meta {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.results-meta b { color: var(--color-text); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-soft);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-pink-soft);
  overflow: hidden;
  padding: 0;
  border: none;
  width: 100%;
  cursor: zoom-in;
  display: block;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__zoom {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.product-card__zoom svg { width: 16px; height: 16px; }
.product-card:hover .product-card__zoom { opacity: 1; transform: translateY(0); }

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-pink-soft);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.badge-row {
  position: absolute;
  top: 10px; left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.badge-row .badge-stack { display: flex; flex-direction: column; gap: 6px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-sm);
}
.badge--sale { background: var(--color-sale); color: #fff; }
.badge--hit { background: var(--color-beige); color: #8a5a1f; }
.badge--new { background: var(--color-lilac); color: #6a4a8f; }
.badge--free { background: var(--color-mint); color: #2f6b48; }

.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card__category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-soft);
}
.product-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  color: var(--color-text);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.stars { display: inline-flex; gap: 1px; color: var(--color-star); }
.stars svg { width: 13px; height: 13px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.price-new { font-size: 19px; font-weight: 800; color: var(--color-text); }
.price-old { font-size: 13.5px; color: var(--color-old-price); text-decoration: line-through; }

.buy-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}
.buy-btn {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
}
.buy-btn--tg {
  flex: 1;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(168, 57, 95, 0.28);
}
.buy-btn--tg:hover, .buy-btn--tg:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(168, 57, 95, 0.4); }
.buy-btn--tg svg { width: 16px; height: 16px; }

.buy-btn--max {
  flex: 1;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.buy-btn--max:hover, .buy-btn--max:focus-visible { border-color: #b3a0f7; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.buy-btn--max img { display: block; width: 26px; height: 26px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}
.page-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s, border-color .15s;
}
.page-arrow svg { width: 18px; height: 18px; }
.page-arrow:hover:not(:disabled) { background: var(--color-pink-soft); border-color: var(--color-accent-soft); transform: translateY(-1px); }
.page-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

.page-status { font-size: 14px; font-weight: 600; color: var(--color-text-muted); min-width: 150px; text-align: center; }
.page-status b { color: var(--color-text); }

.page-dots { display: flex; gap: 6px; }
.page-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  transition: background .15s, transform .15s;
}
.page-dot.is-active { background: var(--color-accent-dark); transform: scale(1.2); }

.info-hero {
  background: linear-gradient(135deg, var(--color-pink-soft), var(--color-lilac));
  padding: 56px 0 40px;
  text-align: center;
}
.info-hero h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; }
.info-hero p { color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.card-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-panel h3 { font-size: 18px; margin-bottom: 14px; }
.card-panel p { color: var(--color-text-muted); margin-bottom: 12px; font-size: 15px; }
.card-panel ul { display: flex; flex-direction: column; gap: 10px; }
.card-panel li { font-size: 15px; color: var(--color-text); display: flex; gap: 10px; align-items: flex-start; }
.card-panel li svg { width: 18px; height: 18px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.card-cta { margin-top: 20px; }

.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.contact-list a, .contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.contact-list .icon-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-pink-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}
.contact-list .icon-circle svg { width: 18px; height: 18px; }
.contact-list .icon-circle--badge { background: transparent; }
.contact-list .icon-circle--badge img { width: 38px; height: 38px; display: block; }
.contact-note { margin-top: 18px; }

.error-code {
  font-size: 64px;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}
.error-text { color: var(--color-text-muted); margin-bottom: 24px; }

.site-footer {
  background: #3a2c33;
  color: #e7d9df;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: #cbb6bf; }
.footer-brand p { margin-top: 12px; color: #cbb6bf; font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: #f0dfe6; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #d8c3cc; font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #b39aa5;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 10px 24px 18px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: 10px 0; border-bottom: 1px solid var(--color-bg-soft); }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .tg-button, .max-button {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    justify-content: center;
  }
  .tg-button__label, .max-button__label { display: none; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 44px 0; }
  .container { padding: 0 16px; }
  .site-header__inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .logo { font-size: 18px; }
  .search-panel__inner { padding: 12px 16px; }
  .search-panel input[type="search"] { max-width: none; }
  .hero {
    background-position: center 30%;
    background-image:
      linear-gradient(100deg, rgba(58, 30, 41, 0.52) 0%, rgba(58, 30, 41, 0.30) 45%, rgba(255, 250, 248, 0.05) 78%),
      url("/assets/img/hero-mobile.jpg");
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .custom-select { width: 100%; min-width: 0; }
  .custom-select__list { left: 0; right: 0; }
  .product-card__name { font-size: 14px; min-height: 2.6em; }
  .price-new { font-size: 17px; }
  .pagination { gap: 10px; }
  .page-status { min-width: auto; font-size: 13px; }
  .buy-actions { flex-direction: column; }
  .buy-btn--max img { width: 22px; height: 22px; }
}

@media (max-width: 420px) {
  .product-grid { gap: 10px; }
  .product-card__body { padding: 10px 10px 12px; }
  .delivery-bar { font-size: 12.5px; padding: 8px 12px; }
  .header-actions { gap: 4px; }
  .site-header__inner { gap: 6px; }
  .buy-btn--tg span { font-size: 13px; }
}

body.modal-open { overflow: hidden; }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 30, 41, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.product-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 30px 80px rgba(58, 30, 41, 0.35);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
}
.product-modal__close:hover, .product-modal__close:focus-visible {
  background: #fff;
  transform: scale(1.05);
}
.product-modal__close svg { width: 20px; height: 20px; }

.product-modal__gallery {
  background: var(--color-pink-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.product-modal__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.product-modal__main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--color-bg-soft) 100%);
}
.product-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
}
.product-modal__nav:hover, .product-modal__nav:focus-visible {
  background: #fff;
}
.product-modal__nav svg { width: 20px; height: 20px; }
.product-modal__nav--prev { left: 12px; }
.product-modal__nav--next { right: 12px; }

.product-modal__counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(58, 30, 41, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.product-modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}
.product-modal__thumbs::-webkit-scrollbar { height: 4px; }
.product-modal__thumbs::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.product-modal__thumb {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg-soft);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.product-modal__thumb:hover { transform: translateY(-2px); }
.product-modal__thumb.is-active { border-color: var(--color-accent-dark); }
.product-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-modal__info {
  padding: 32px 28px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-modal__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-modal__category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-soft);
}
.product-modal__brand {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-pink-soft);
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.product-modal__title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.product-modal__rating .rating-row { font-size: 13.5px; }

.product-modal__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.product-modal__price .price-new { font-size: 26px; }

.product-modal__description {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  white-space: pre-line;
  overflow-y: auto;
  max-height: 220px;
  padding-right: 4px;
}
.product-modal__description::-webkit-scrollbar { width: 4px; }
.product-modal__description::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.product-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.product-modal__actions .btn { flex: 1; }

@media (max-width: 780px) {
  .product-modal { padding: 0; align-items: stretch; }
  .product-modal__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 100vh;
    max-width: none;
    border-radius: 0;
  }
  .product-modal__gallery { max-height: 55vh; }
  .product-modal__stage { aspect-ratio: auto; height: 300px; }
  .product-modal__info { padding: 20px 20px 24px; }
  .product-modal__title { font-size: 18px; }
  .product-modal__price .price-new { font-size: 22px; }
  .product-modal__actions { flex-direction: column; }
}
