:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --accent: #1f4ed8;
  --accent-hover: #183dae;
  --accent-border: rgba(31, 78, 216, 0.22);
  --accent-border-hover: rgba(31, 78, 216, 0.42);
  --line: #e8ecf0;
  --radius: 16px;
  --shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
  --shadow-card: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.05);
  --header-bg: rgba(255, 255, 255, 0.92);
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0b1018;
  --surface: #151c27;
  --surface-2: #1c2533;
  --text: #e8eef7;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --accent: #7b95ff;
  --accent-hover: #9cb0ff;
  --accent-border: rgba(123, 149, 255, 0.35);
  --accent-border-hover: rgba(123, 149, 255, 0.55);
  --line: #2a3548;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(11, 16, 24, 0.9);
  color-scheme: dark;
}

html[data-theme="dark"] .promo-banner {
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(123, 149, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 100% 12%, rgba(123, 149, 255, 0.1) 0%, transparent 58%),
    linear-gradient(180deg, #121826 0%, var(--bg) 100%);
}
html[data-theme="dark"] .shop-featured-hero {
  background:
    radial-gradient(ellipse 88% 68% at 0% 0%, rgba(123, 149, 255, 0.14) 0%, transparent 56%),
    radial-gradient(ellipse 72% 52% at 100% 100%, rgba(123, 149, 255, 0.1) 0%, transparent 52%),
    linear-gradient(168deg, var(--bg) 0%, #121826 50%, #0e141e 100%);
}
html[data-theme="dark"] .card-image-wrap,
html[data-theme="dark"] .promo-card__media,
html[data-theme="dark"] .promo-card img {
  background: var(--surface);
}
html[data-theme="dark"] .shop-featured-hero::after {
  mix-blend-mode: overlay;
  opacity: 0.18;
}
html[data-theme="dark"] .shop-featured-hero__title {
  text-shadow: none;
}
html[data-theme="dark"] .shop-featured-hero__figure {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
}
html[data-theme="dark"] .fav-btn {
  background: rgba(21, 28, 39, 0.9);
  border-color: var(--line);
  color: var(--muted);
}
html[data-theme="dark"] .fav-btn:hover {
  color: var(--accent);
  background: var(--surface);
}
html[data-theme="dark"] .fav-btn.active,
html[data-theme="dark"] .fav-btn.active:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(21, 28, 39, 0.95);
}
html[data-theme="dark"] .card .btn,
html[data-theme="dark"] .promo-card .btn,
html[data-theme="dark"] .btn.gallery-buy {
  color: var(--text);
}
html[data-theme="dark"] .card:hover {
  border-color: var(--line);
}
html[data-theme="dark"] .checkout-success-icon {
  background: rgba(5, 150, 105, 0.2);
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  color-scheme: dark;
}

* { box-sizing: border-box; }
#contact,
#about,
#folders {
  scroll-margin-top: 88px;
}
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main {
  padding-left: var(--sal);
  padding-right: var(--sar);
  box-sizing: border-box;
}
#shopFilters {
  scroll-margin-top: 8px;
}

/* Кнопка переходу в магазин на головній */
.home-shop-cta {
  display: flex;
  justify-content: center;
  padding: clamp(16px, 4vw, 28px) 0 clamp(40px, 8vw, 72px);
}
.home-shop-cta__btn {
  min-width: min(100%, 280px);
  justify-content: center;
}

/* Секція «Магазин» — короткий наратив перед фільтрами */
.shop-intro {
  padding: 10px 0 8px;
  scroll-margin-top: 72px;
}
.shop-intro__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.shop-intro__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.shop-intro__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.shop-intro.shop-intro--sub {
  padding: clamp(18px, 3.5vw, 28px) 0 clamp(20px, 4vw, 36px);
  scroll-margin-top: 72px;
}
.shop-intro__lead--solo {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

/* Hero: лінійка Individual Classic — Elegant Bell (кольори сайту: --accent, --bg) */
.shop-featured-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 88% 68% at 0% 0%, rgba(31, 78, 216, 0.07) 0%, transparent 56%),
    radial-gradient(ellipse 72% 52% at 100% 100%, rgba(31, 78, 216, 0.05) 0%, transparent 52%),
    linear-gradient(168deg, var(--bg) 0%, var(--surface) 46%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 5vw, 44px) 0 clamp(28px, 5.5vw, 52px);
  scroll-margin-top: 64px;
}
.shop-featured-hero[hidden] {
  display: none !important;
}
.shop-featured-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(31, 78, 216, 0.25) 18%,
    rgba(31, 78, 216, 0.55) 50%,
    rgba(31, 78, 216, 0.25) 82%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
.shop-featured-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.shop-featured-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(22px, 4.5vw, 48px);
  align-items: center;
}
.shop-featured-hero__text {
  min-width: 0;
  position: relative;
  padding-left: clamp(14px, 2.2vw, 22px);
}
.shop-featured-hero__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(31, 78, 216, 0.45) 100%);
  opacity: 0.95;
  box-shadow: 0 0 14px rgba(31, 78, 216, 0.22);
}
.shop-featured-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.shop-featured-hero__title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(2.1rem, 4.6vw, 2.85rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.shop-featured-hero__lead {
  margin: 0 0 22px;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 36em;
}
.shop-featured-hero .shop-featured-hero__cta.btn--ghost {
  margin-top: 0;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 18px rgba(31, 78, 216, 0.22);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 24px;
}
.shop-featured-hero .shop-featured-hero__cta.btn--ghost:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 78, 216, 0.28);
}
.shop-featured-hero__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}
.shop-featured-hero__figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow-card),
    0 18px 40px rgba(31, 78, 216, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.shop-featured-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
@media (min-width: 521px) {
  .shop-featured-hero__figure:nth-child(2) {
    transform: translateY(10px);
  }
}
@media (min-width: 521px) and (hover: hover) {
  .shop-featured-hero__figure:hover {
    transform: translateY(-6px);
    box-shadow:
      0 8px 16px rgba(15, 23, 42, 0.06),
      0 28px 52px rgba(31, 78, 216, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .shop-featured-hero__figure:nth-child(2):hover {
    transform: translateY(4px);
  }
}
.shop-featured-hero__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 40%;
}
@media (max-width: 880px) {
  .shop-featured-hero__inner {
    grid-template-columns: 1fr;
  }
  .shop-featured-hero__gallery {
    order: -1;
    max-width: min(100%, 520px);
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .shop-featured-hero__gallery {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .shop-featured-hero__figure:nth-child(2) {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shop-featured-hero .shop-featured-hero__cta.btn--ghost,
  .shop-featured-hero .shop-featured-hero__cta.btn--ghost:hover {
    transition: none;
    transform: none;
  }
}

.promo-banner {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(31, 78, 216, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 55% at 100% 8%, rgba(31, 78, 216, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 4vw, 36px) 0 clamp(22px, 4vw, 40px);
}
.promo-banner[hidden] {
  display: none !important;
}
body.is-searching .promo-banner {
  display: none !important;
}
#shop {
  scroll-margin-top: calc(var(--sat) + 148px);
}
.promo-banner__inner {
  display: grid;
  gap: 20px;
}
.promo-banner__slogan {
  margin: 0;
  position: relative;
  align-self: center;
  justify-self: start;
}
.promo-banner__slogan-text {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Manrope, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 900px) {
  .promo-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head slogan"
      "track track";
    column-gap: 28px;
    align-items: center;
  }
  .promo-banner__head { grid-area: head; }
  .promo-banner__slogan {
    grid-area: slogan;
    justify-self: end;
    text-align: right;
  }
  .promo-banner__track-wrap { grid-area: track; }
}
.promo-banner__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.promo-banner__title {
  margin: 0 0 8px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.promo-banner__lead {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 36em;
  line-height: 1.55;
  font-size: 15px;
}
.promo-banner__cta {
  border-radius: 999px;
}
.promo-banner__cta.is-on {
  box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.18);
}
.promo-banner__track-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.promo-banner__nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.promo-banner__nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.promo-banner__nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}
.promo-banner__scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: auto;
  scrollbar-color: var(--accent) var(--line);
}
.promo-banner__scroller::-webkit-scrollbar {
  height: 10px;
}
.promo-banner__scroller::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 99px;
}
.promo-banner__scroller::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}
.promo-banner__scroller::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
@media (max-width: 699px) {
  .promo-banner__nav {
    display: none;
  }
  .promo-banner__track-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(72vw, 220px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: left;
}
.promo-card__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  padding-top: 36px;
  --fav-btn-size: 34px;
  --fav-btn-inset: 4px;
}
.promo-card__media:has(.badge:not(.sale) + .badge.sale) {
  padding-top: 64px;
}
.promo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface);
  border-radius: 12px;
}
.promo-card h3 {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.promo-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.price--sale {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1px;
  line-height: 1.25;
}
.price--sale s {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.promo-card .price {
  margin: 0;
  font-size: 16px;
}
.promo-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.promo-card .price--sale {
  flex: 1 1 auto;
  min-width: 0;
}

/* Чіпи типів годинників */
.shop-filters__group--categories {
  width: 100%;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
}
.shop-filters__cat-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  margin: 0;
  text-align: right;
  line-height: 1.2;
  padding-right: 12px;
  border-right: 2px solid var(--accent);
}
.shop-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
}
.shop-filters__group--price .price-range {
  width: 100%;
  min-width: 0;
}
.price-range__values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.price-range__sep {
  color: var(--muted);
  font-weight: 600;
}
.price-range__sliders {
  position: relative;
  height: 28px;
}
.price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: var(--line);
  border-radius: 99px;
}
.price-range__fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.price-range__sliders input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.price-range__sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.price-range__sliders input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}
.price-range__sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}
.price-range__sliders input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}
#priceRangeMin {
  z-index: 2;
}
#priceRangeMax {
  z-index: 3;
}
.shop-category-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  line-height: 1.2;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.shop-category-chip:hover {
  border-color: var(--accent-border-hover);
  background: var(--surface-2);
}
.shop-category-chip.active {
  border-color: var(--accent);
  background: rgba(31, 78, 216, 0.08);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(31, 78, 216, 0.12);
}
.shop-category-chip:disabled,
.shop-category-chip[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
  background: var(--surface-2);
  color: var(--muted);
}
.shop-category-chip:disabled:hover,
.shop-category-chip[aria-disabled="true"]:hover {
  border-color: var(--line);
  background: var(--surface-2);
}
.shop-category-chip[hidden] {
  display: none !important;
}
.shop-category-chip__soon {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ca8a04;
}
.shop-filters__toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  padding-top: 4px;
}
.shop-filters__group--brand {
  width: 100%;
}
.shop-filters__group--brand select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  box-sizing: border-box;
  background: var(--surface-2);
  color: var(--text);
}
.shop-filters__group--brand select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filters-topbar {
  display: none;
}
.filters-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--surface);
  box-shadow: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.filters-fab:hover {
  border-color: var(--accent);
}
.filters-fab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filters-fab:active {
  transform: scale(0.98);
}
.filters-fab__icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}
.filters-fab__label {
  white-space: nowrap;
}

body.filters-sheet-open {
  overflow: hidden;
}
.filters-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}
body.filters-sheet-open .filters-sheet {
  pointer-events: auto;
  visibility: visible;
}
.filters-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}
body.filters-sheet-open .filters-sheet__backdrop {
  opacity: 1;
}
.filters-sheet__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100% - 32px));
  max-height: min(86vh, 740px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -48%) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.28s ease;
}
body.filters-sheet-open .filters-sheet__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.filters-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.filters-sheet__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.filters-sheet__close {
  width: 40px;
  height: 40px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.filters-sheet__close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.filters-sheet__foot {
  flex-shrink: 0;
  padding: 12px 18px calc(14px + var(--sab));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.filters-sheet__apply {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.shop-filters.shop-filters--in-sheet {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 18px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.shop-filters.shop-filters--in-sheet .shop-filters__inner {
  max-width: none;
  margin-inline: 0;
}

.container { width: min(1400px, calc(100% - 24px)); margin: 0 auto; }
main > .container,
footer .container {
  width: min(1400px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  /* Контент шапки нижче за статус-бар / виріз; фон тягнеться на весь екран */
  padding-top: var(--sat);
  padding-left: var(--sal);
  padding-right: var(--sar);
  box-sizing: border-box;
}
.nav { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; padding: 0; min-height: 64px; column-gap: 12px; }
.logo {
  position: relative;
  display: block;
  width: 168px;
  height: 44px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  background: none !important;
  background-image: none !important;
}
.logo img {
  display: none !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
html:not([data-theme="dark"]) .logo .logo__light,
html:not([data-theme="dark"]) a.logo img.logo__light {
  display: block !important;
}
html[data-theme="dark"] .logo .logo__dark,
html[data-theme="dark"] a.logo img.logo__dark {
  display: block !important;
}
.nav-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 44px;
}
@media (min-width: 1101px) {
  .nav-mid {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: center;
    gap: 12px;
  }
  .nav-mid .menu {
    flex-shrink: 0;
  }
  .nav-mid .header-rate-search {
    flex-shrink: 1;
    min-width: min(200px, 36vw);
    max-width: min(360px, 42vw);
  }
}
.header-rate-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 140px;
  min-width: 100px;
  max-width: min(360px, 100%);
}
.header-search__icon {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 10px 0 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.header-search input::placeholder {
  color: #94a3b8;
}
.header-search input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  border-color: rgba(31, 78, 216, 0.35);
}
.menu { display: flex; gap: 8px; justify-self: center; padding: 0; flex-wrap: wrap; align-items: center; }
.menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.menu a:hover {
  color: var(--accent);
  background: rgba(31, 78, 216, 0.07);
}
.menu a.is-active,
.menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 800;
  background: rgba(31, 78, 216, 0.12);
  box-shadow: 0 0 0 1px rgba(31, 78, 216, 0.22);
}
html[data-theme="dark"] .menu a {
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .menu a:hover {
  color: #fff;
  background: rgba(123, 149, 255, 0.22);
}
html[data-theme="dark"] .menu a.is-active,
html[data-theme="dark"] .menu a[aria-current="page"] {
  color: #fff;
  background: rgba(123, 149, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(155, 176, 255, 0.55);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}

a.icon-btn {
  text-decoration: none;
  color: inherit;
}

.icon-btn--phone svg {
  fill: currentColor;
  stroke: none;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-theme="dark"] .cabinet-product-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .favorite-remove-btn:hover {
  background: var(--surface-2);
}

.cart-icon-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.cart-badge[hidden] {
  display: none;
}
.fav-header-btn.has-items {
  color: #e11d48;
}
.fav-header-btn.has-items svg {
  fill: currentColor;
}

.burger-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 8px max(4%, var(--sar)) calc(8px + var(--sab)) max(4%, var(--sal));
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a,
.mobile-menu button.mobile-menu-link {
  padding: 12px 6px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}
.mobile-menu button.mobile-menu-link {
  color: var(--accent);
  font-weight: 600;
}
.mobile-menu a.is-active,
.mobile-menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
  background: rgba(31, 78, 216, 0.08);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
  margin-left: -2px;
}

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: .25s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.home-main {
  padding-bottom: 8px;
}
.hero {
  display: block;
  padding: clamp(36px, 7vw, 72px) 0 clamp(20px, 4vw, 40px);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; margin: 0 0 14px; }
.hero p { color: var(--muted); margin: 0; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.55; max-width: 42em; }
.hero-copy { max-width: 760px; }

.home-teaser {
  padding: 0 0 clamp(20px, 4vw, 36px);
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}
.home-teaser__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.hero-brands-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 10px;
  margin: clamp(8px, 2vw, 16px) auto clamp(24px, 5vw, 40px);
  width: 100%;
  max-width: 100%;
}

.hero-brands-carousel .hero-brands-viewport {
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
}

.hero-brands-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

@media (min-width: 981px) {
  .hero-brands-carousel {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }
  .hero-brands-carousel .hero-brands-viewport {
    overflow: visible;
  }
  .hero-brands-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    transform: none !important;
  }
}

.hero-brand-card {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
  min-width: 0;
  flex: 0 0 100%;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hero-brand-card:hover {
  border-color: rgba(31, 78, 216, 0.35);
  background: var(--surface-2);
}
.hero-brand-card:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}
.hero-brand-card.active {
  border-color: var(--accent);
  background: rgba(31, 78, 216, 0.06);
  box-shadow: 0 0 0 1px rgba(31, 78, 216, 0.12);
}

@media (min-width: 981px) {
  .hero-brand-card {
    flex: none;
  }
}

.hero-brand-card img {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hero-brand-card__title {
  display: block;
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.hero-brands-nav {
  display: none;
  grid-row: 1;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.hero-brands-nav:hover {
  background: rgba(31, 78, 216, 0.06);
  border-color: rgba(31, 78, 216, 0.35);
}

.hero-brands-nav:active {
  transform: scale(0.96);
}

@media (max-width: 980px) {
  .hero-brands-carousel {
    grid-template-columns: 44px 1fr 44px;
  }
  .hero-brands-carousel .hero-brands-viewport {
    grid-column: 2;
  }
  .hero-brands-prev {
    display: inline-grid;
    place-items: center;
    grid-column: 1;
  }
  .hero-brands-next {
    display: inline-grid;
    place-items: center;
    grid-column: 3;
  }
}

.hero-brands-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .hero-brands-dots {
    display: flex;
  }
}

.hero-brands-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-brands-dot[aria-selected="true"] {
  background: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 980px) {
  .hero-brands-carousel.hero-brands-carousel--no-motion .hero-brands-track {
    transition: none;
  }
}

/* Фільтри: на телефоні — дві групи колонкою; на ПК — один ряд (display:contents на групах) без «розносу» по краях */
.shop-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 clamp(22px, 4vw, 32px);
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.shop-filters__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.shop-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  min-width: 0;
}

.shop-filters__group select {
  flex: 1 1 0;
  min-width: min(100%, 160px);
  max-width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
  background: var(--surface);
}

.shop-filters__group .smart-quick-btn {
  flex: 0 0 auto;
  align-self: flex-start;
}

.shop-filters__group--tail .filter-reset.btn {
  margin-left: auto;
}

/* ПК: фільтри без «коробки» — лише делікатний поділ, у єдиному ритмі з hero (без інтро-тексту над фільтрами) */
@media (min-width: 641px) {
  .shop-filters {
    padding: 14px 0 20px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-top: 1px solid var(--line);
    margin-top: 0;
  }
  .shop-filters__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    max-width: 980px;
    margin-inline: auto;
  }
  .shop-filters__group--categories {
    grid-template-columns: 10.5rem minmax(0, 1fr);
  }
  .shop-filters__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px 12px;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid var(--line);
  }
  .shop-filters__group--lead,
  .shop-filters__group--tail {
    display: contents;
  }
  .shop-filters__group select {
    max-width: none;
    flex: none;
    min-width: 0;
    width: 100%;
  }
  .shop-filters__group .smart-quick-btn {
    align-self: center;
    white-space: nowrap;
  }
  .shop-filters .stock-only {
    margin-left: 0;
    white-space: nowrap;
  }
  .shop-filters__group--tail .filter-reset.btn {
    margin-left: 0;
  }
}

.shop-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.smart-quick-btn {
  height: 42px;
  width: auto;
  border: 1px solid rgba(31, 78, 216, 0.22);
  border-radius: 999px;
  background: rgba(31, 78, 216, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 14px 0 10px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.smart-quick-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.smart-quick-btn:hover {
  border-color: rgba(31, 78, 216, 0.4);
  background: rgba(31, 78, 216, 0.09);
}
.smart-quick-btn.active {
  border-color: var(--accent);
  background: rgba(31, 78, 216, 0.1);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.1);
}

.stock-only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--muted);
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
}

.shop-filters .filter-reset.btn {
  flex: 0 0 auto;
  min-height: 42px;
  height: auto;
  max-height: none;
  padding: 10px 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.shop-filters .filter-reset.btn:hover {
  background: rgba(31, 78, 216, 0.06);
  border-color: var(--accent-border-hover);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(31, 78, 216, 0.12);
}

.catalog-boot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  gap: 18px;
  margin: 12px 0 48px;
  padding: 24px 16px;
}
.catalog-boot__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(31, 78, 216, 0.18);
  border-top-color: #1f4ed8;
  animation: catalog-spin 0.75s linear infinite;
}
.catalog-boot__text {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1f4ed8;
  text-align: center;
}
html[data-theme="dark"] .catalog-boot__spinner {
  border-color: rgba(123, 149, 255, 0.22);
  border-top-color: #7b95ff;
}
html[data-theme="dark"] .catalog-boot__text {
  color: #7b95ff;
}
@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 6px 0 80px;
  width: 100%;
  max-width: 100%;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
  border-color: var(--line);
}
.card-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  z-index: 0;
  flex: 0 0 auto;
  line-height: 0;
  padding-top: 36px;
  --fav-btn-size: 34px;
  --fav-btn-inset: 4px;
}
.card-image-wrap:has(.badge:not(.sale) + .badge.sale) {
  padding-top: 64px;
}
.card-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.75s ease;
}
.card:hover .card-image-wrap::before {
  transform: translateX(130%);
}

/* Усі блоки під фото — вище шару зображення, щоб кнопка «Купити» завжди отримувала кліки */
.card > :not(.card-image-wrap) {
  position: relative;
  z-index: 2;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
  image-rendering: auto;
}
.card:hover img { transform: scale(1.1); }
.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
  max-width: calc(100% - 46px);
}
.badge.sale {
  left: 6px;
  right: auto;
  background: #b91c1c;
  z-index: 4;
}
.badge:not(.sale) + .badge.sale {
  top: 34px;
}
.card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 8px 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card small { display: block; color: var(--muted); margin-bottom: 8px; font-size: 12px; }
.card-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc--in {
  color: #4cae4f;
  font-weight: 600;
  -webkit-line-clamp: 1;
}
html[data-theme="dark"] .card-desc--in {
  color: #8fd98a;
}
.card-desc--out {
  color: #c45c5c;
}
.price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.card .btn,
.promo-card .btn,
.btn.gallery-buy {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: auto;
  pointer-events: auto;
  touch-action: manipulation;
  text-align: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  transform: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.card .btn:hover,
.promo-card .btn:hover,
.btn.gallery-buy:hover {
  border-color: var(--accent-border-hover);
  color: var(--accent);
  background: rgba(31, 78, 216, 0.04);
  transform: none;
}
.card .btn:active,
.promo-card .btn:active,
.btn.gallery-buy:active {
  background: rgba(31, 78, 216, 0.07);
}
.card .btn:focus-visible,
.promo-card .btn:focus-visible,
.btn.gallery-buy:focus-visible {
  outline: 2px solid rgba(31, 78, 216, 0.25);
  outline-offset: 2px;
}
.promo-card .btn,
.btn.gallery-buy {
  width: auto;
  flex-shrink: 0;
  margin-top: 0;
  padding: 7px 12px;
  font-size: 12px;
}
.fav-btn {
  position: absolute;
  top: var(--fav-btn-inset);
  right: var(--fav-btn-inset);
  width: var(--fav-btn-size);
  height: var(--fav-btn-size);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.fav-btn:hover {
  background: var(--surface);
  color: var(--accent);
}
.fav-btn.active {
  color: #e11d48;
}
.fav-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .card:hover img { transform: none; }
  .card-image-wrap::before { display: none; }
}

.pagination {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 8px 0 48px;
}
.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.page-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}
.page-btn--more {
  min-width: 0;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(31, 78, 216, 0.08);
}
@media (hover: hover) {
  .page-btn--more:hover {
    background: var(--accent);
    color: #fff;
  }
}
.page-btn--more:active {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .pagination {
    width: 100%;
    padding: 4px 0 calc(28px + var(--sab, 0px));
    gap: 10px;
  }
  .page-btn--more {
    width: 100%;
    max-width: 100%;
    height: 48px;
    font-size: 15px;
  }
  .pagination__pages {
    display: flex;
    width: 100%;
    gap: 6px;
  }
  .pagination__pages .page-btn {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
    border-radius: 10px;
  }
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.page-btn.active {
  border-color: var(--accent);
  background: rgba(31, 78, 216, .1);
}

.page-info .info-page {
  padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 88px);
  min-height: calc(100vh - 280px);
}
.info-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.info-page h1 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.info-lead {
  margin: 0 0 36px;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
}
.info-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.info-card p,
.info-card a {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-decoration: none;
}
.info-card a {
  color: var(--accent);
  font-weight: 650;
}
.info-card a:hover { text-decoration: underline; }
.info-prose {
  max-width: 40rem;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.info-prose h2 {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}
.info-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  box-sizing: border-box;
  transform: none;
}
.info-actions .btn:hover {
  transform: none;
}
.info-actions .btn--ghost {
  margin-top: 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 calc(44px + var(--sab));
  padding-left: var(--sal);
  padding-right: var(--sar);
  box-sizing: border-box;
}
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer h3 { margin: 0 0 8px; }
.footer p { margin: 0; color: var(--muted); }
.footer-staff {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
}
.footer-staff:hover { color: var(--accent); }

.cart-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  bottom: 0;
  width: 390px;
  max-width: 100%;
  height: auto;
  padding-top: var(--sat);
  padding-bottom: var(--sab);
  box-sizing: border-box;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 30px rgba(15,23,42,.08);
  transition: .3s ease;
  z-index: 180;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-fab {
  position: fixed;
  right: max(16px, var(--sar));
  bottom: max(18px, var(--sab));
  z-index: 175;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(31, 78, 216, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cart-fab[hidden] {
  display: none !important;
}
.cart-fab svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-fab__count {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.cart-fab.is-pop {
  animation: cartFabPop 0.35s ease;
}
@keyframes cartFabPop {
  0% { transform: scale(0.7); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.hot-chat-fab {
  position: fixed;
  right: max(16px, var(--sar));
  bottom: calc(max(18px, var(--sab)) + 76px);
  z-index: 174;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hot-chat-fab.is-alert {
  background: #1f4ed8;
  color: #fff;
  animation: hotChatPulse 1.1s ease infinite;
}
@keyframes hotChatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.hot-chat-fab svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hot-chat-fab__dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px var(--surface);
}
.hot-chat {
  position: fixed;
  right: max(16px, var(--sar));
  bottom: calc(max(18px, var(--sab)) + 140px);
  width: min(360px, calc(100vw - 24px));
  height: min(520px, 62vh);
  z-index: 176;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hot-chat[hidden] { display: none !important; }
.hot-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.hot-chat__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
}
.hot-chat__about {
  margin: 0;
  padding: 6px 14px 0;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-chat__msgs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hot-chat__empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 12px;
}
.hot-chat__bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.hot-chat__bubble--me {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.hot-chat__bubble--them {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
}
.hot-chat__composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
}
.hot-chat__composer textarea {
  flex: 1;
  min-height: 40px;
  max-height: 96px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  line-height: 1.35;
}
.hot-chat__composer button {
  flex-shrink: 0;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hot-chat__composer button:disabled {
  opacity: 0.5;
  cursor: default;
}
.account-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  bottom: 0;
  width: 390px;
  max-width: 100%;
  height: auto;
  padding-top: var(--sat);
  padding-bottom: var(--sab);
  box-sizing: border-box;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 30px rgba(15,23,42,.08);
  transition: .3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.account-drawer.open { right: 0; }
.account-drawer-head {
  align-items: flex-start;
  gap: 12px;
}
.account-drawer-head__titles {
  flex: 1;
  min-width: 0;
}
.account-drawer-head__titles h3 {
  margin: 0;
  font-size: 1.1rem;
}
.account-drawer-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.account-drawer-head__actions {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.account-logout-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-2);
  white-space: nowrap;
}
.account-logout-btn:hover {
  background: var(--surface-2);
}
.account-login__title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}
.account-login-form {
  display: grid;
  gap: 0;
}
.account-login-form .btn {
  margin-top: 10px;
  width: 100%;
}
.btn--ghost {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.account-body {
  padding: 14px 16px;
  overflow: auto;
}
.account-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.account-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 14px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.account-section + .account-section {
  margin-top: 14px;
}
.account-section--cart {
  background: var(--surface);
}
.account-section--favorites {
  background: var(--surface-2);
}
.account-section__title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-cart-items {
  margin-bottom: 0;
}
.account-orders {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}
.account-orders-empty {
  margin: 0;
  color: var(--muted);
}
.order-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: var(--surface);
}
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.order-card__id {
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.order-card__status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  margin-bottom: 8px;
}
.order-card__status--closed {
  background: rgba(21, 128, 61, 0.16);
  color: #15803d;
}
.order-card__status--cancelled {
  background: rgba(220, 38, 38, 0.14);
  color: #dc2626;
}
.order-card__note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.order-card__who {
  margin: 0 0 8px;
  color: var(--muted);
}
.order-card__items {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.order-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px;
  margin: 0 -4px;
}
.order-line:hover {
  background: var(--surface-2);
}
.order-line__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}
.order-line__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-line__name {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}
.order-line__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.order-card__foot strong {
  font-size: 15px;
  color: var(--text);
}
.order-card__meta {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}
.favorites-list {
  display: grid;
  gap: 10px;
}
.favorite-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}
.cabinet-product-row {
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.cabinet-product-row:hover {
  background: rgba(15, 23, 42, 0.04);
}
.favorite-row.cabinet-product-row {
  padding: 6px 4px;
  margin: 0 -6px;
}
.favorite-row img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.favorite-remove-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.favorite-remove-btn:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: var(--surface-2);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 190;
}
.checkout-modal.open {
  display: block;
}
.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.checkout-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 28px));
  max-height: min(90vh, 720px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.checkout-scroll {
  padding: 20px 20px calc(22px + var(--sab));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.checkout-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #64748b);
  padding: 4px 8px;
  border-radius: 8px;
}
.checkout-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}
.checkout-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
}
.checkout-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.checkout-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 14px;
  margin: 0 0 14px;
}
.checkout-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.checkout-label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
}
.checkout-label:first-of-type {
  margin-top: 4px;
}
.checkout-label--autocomplete .checkout-autocomplete-wrap {
  position: relative;
}
.checkout-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
}
.checkout-suggest__item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
}
.checkout-suggest__item:hover,
.checkout-suggest__item:focus {
  background: var(--surface-2);
}
.checkout-field-hint--warn {
  color: #b45309;
}
.checkout-label select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  min-height: 42px;
  width: 100%;
  box-sizing: border-box;
}
.checkout-label input,
.checkout-label textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  resize: vertical;
  min-height: 42px;
}
.checkout-label textarea {
  min-height: 72px;
}
.checkout-label input:focus,
.checkout-label textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.5);
}
.checkout-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text-2);
}
.checkout-radio:first-of-type {
  margin-top: 4px;
}
.checkout-radio input {
  margin-top: 3px;
  flex-shrink: 0;
}
.checkout-field-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.checkout-conditional[hidden] {
  display: none !important;
}
.checkout-hint {
  margin: 12px 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.checkout-submit {
  width: 100%;
}
.checkout-success {
  text-align: center;
  padding: 12px 4px 8px;
}
.checkout-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 28px;
  line-height: 56px;
  font-weight: 700;
}
.checkout-success .checkout-title {
  margin-bottom: 10px;
}
.checkout-success p {
  margin: 0 0 10px;
  color: var(--text-2);
  line-height: 1.45;
}
.checkout-demo-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.checkout-empty {
  text-align: center;
  padding: 24px 8px 12px;
}
.checkout-empty p {
  margin: 0 0 18px;
  color: var(--text-2);
  line-height: 1.45;
}
.cart-foot .btn:disabled,
#openCheckoutBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 185;
}
.gallery-modal.open {
  display: block;
}
.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}
.gallery-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1080px, calc(100% - 24px));
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  padding: 46px 20px 20px;
  box-sizing: border-box;
}
.product-sheet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  gap: 16px 20px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.gallery-panel img,
.product-sheet__stage img {
  width: 100%;
  max-height: calc(min(92vh, 900px) - 120px);
  object-fit: contain;
  object-position: center;
  background: var(--surface-2);
  border-radius: 12px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: block;
}
.product-sheet__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.product-sheet__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}
.product-sheet__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}
.gallery-thumb.is-on {
  border-color: var(--accent);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.product-sheet__body {
  min-width: 0;
  height: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.product-sheet__pane {
  min-height: 0;
}
.product-sheet__warranty {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(31, 78, 216, 0.08);
  font-weight: 700;
  font-size: 13px;
}
.product-sheet__fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: var(--surface);
}
.product-sheet__fold summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.product-sheet__fold summary::-webkit-details-marker {
  display: none;
}
.product-sheet__fold summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
  font-weight: 500;
}
.product-sheet__fold[open] summary::after {
  content: "▴";
}
.product-sheet__fold-body {
  padding: 0 2px 12px;
}
.product-sheet__title {
  margin: 0 28px 4px 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.product-sheet__model {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.product-sheet__colors {
  margin: 0 0 14px;
}
.product-sheet__color-name {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}
.product-sheet__color-name strong {
  font-weight: 800;
}
.product-sheet__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-sheet__swatch {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2, #f8fafc);
  overflow: hidden;
  cursor: pointer;
}
.product-sheet__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-sheet__swatch.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 78, 216, 0.2);
}
.product-sheet__swatch.is-out {
  opacity: 0.45;
}
.product-sheet__swatch:hover {
  border-color: var(--accent);
}
.product-sheet__buyrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.product-sheet__buyrow .price {
  margin: 0;
}
.product-sheet__buy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.product-sheet__fav {
  position: relative;
  top: auto;
  right: auto;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  z-index: 4;
}
.product-sheet__buy-actions .gallery-buy {
  width: auto;
  min-width: 110px;
  margin-top: 0;
}
.product-sheet__tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.product-sheet__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.product-sheet__share {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.product-sheet__share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.product-sheet__share:hover,
.product-sheet__share.is-copied {
  border-color: var(--accent-border);
  color: var(--accent);
  background: rgba(31, 78, 216, 0.06);
}
.product-sheet__tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.product-sheet__tab.is-on {
  border-color: var(--accent-border);
  color: var(--accent);
  background: rgba(31, 78, 216, 0.06);
}
.product-sheet__desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.product-sheet__specs {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.product-sheet__specs th,
.product-sheet__specs td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.product-sheet__specs th {
  color: var(--muted);
  font-weight: 600;
  width: 54%;
  padding: 8px 16px 8px 0;
  line-height: 1.35;
}
.product-sheet__specs td {
  padding: 8px 0 8px 12px;
  word-break: break-word;
}
.product-sheet__empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.review-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.review-card__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.review-card__stars {
  color: var(--accent);
  letter-spacing: 0.06em;
}
.review-form {
  display: grid;
  gap: 8px;
}
.review-form input,
.review-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.review-form textarea {
  min-height: 72px;
  resize: vertical;
}
.review-stars {
  display: flex;
  gap: 4px;
}
.review-stars button {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  padding: 0 2px;
}
.review-stars button.is-on {
  color: #e6a817;
}
.product-sheet__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.product-sheet__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery-foot {
  display: none;
}
.gallery-buy[hidden] {
  display: none !important;
}
@media (max-width: 560px) {
  .gallery-foot {
    flex-wrap: wrap;
  }
  .gallery-buy {
    width: 100%;
  }
  .product-sheet__buy-actions {
    width: auto;
  }
  .product-sheet__buy-actions .gallery-buy {
    width: auto;
  }
}
.gallery-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 6;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.gallery-close:hover {
  background: var(--line);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}
.gallery-nav[hidden] {
  display: none !important;
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.cart-head, .cart-foot { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-foot { border-top: 1px solid var(--line); border-bottom: 0; margin-top: auto; flex-direction: column; gap: 12px; align-items: flex-start; }
.cart-head button { border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.cart-items { padding: 12px 16px; overflow: auto; display: grid; gap: 10px; }
.cart-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.cart-drawer .cart-row.cabinet-product-row,
.account-cart-items .cart-row.cabinet-product-row {
  padding: 6px 4px;
  margin: 0 -4px;
  border-radius: 10px;
  cursor: pointer;
}
.cart-row img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.cart-row small { color: var(--muted); }

@media (max-width: 1100px) {
  .nav {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
    min-height: unset;
    padding: 8px 0 10px;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    width: 140px;
    height: 38px;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
  }
  .nav-mid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    overflow: visible;
    flex-wrap: unset;
  }
  .nav-mid .menu {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    justify-content: flex-start;
  }
  .nav-mid .filters-fab {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .header-rate-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }
  .header-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  .menu a {
    font-size: 13px;
    padding: 6px 10px;
  }
  .hot-chat {
    left: max(12px, var(--sal));
    right: max(12px, var(--sar));
    width: auto;
    max-width: none;
    bottom: calc(max(12px, var(--sab)) + 72px);
    height: min(420px, 50vh);
  }
  .hot-chat-fab {
    bottom: max(14px, var(--sab));
  }
}
@media (max-width: 980px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 14px; }
}
@media (max-width: 640px) {
  body.filters-sheet-open {
    overflow: hidden;
  }
  .filters-sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s;
  }
  body.filters-sheet-open .filters-sheet {
    pointer-events: auto;
    visibility: visible;
  }
  .filters-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.28s ease;
    -webkit-tap-highlight-color: transparent;
  }
  body.filters-sheet-open .filters-sheet__backdrop {
    opacity: 1;
  }
  .filters-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 600px);
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.14);
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  body.filters-sheet-open .filters-sheet__panel {
    transform: translateY(0);
  }
  .filters-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .filters-sheet__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
  }
  .filters-sheet__close {
    width: 40px;
    height: 40px;
    margin: -6px -8px -6px 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .filters-sheet__close:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .filters-sheet__foot {
    display: flex;
    flex-shrink: 0;
    padding: 12px 16px calc(12px + var(--sab));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .filters-sheet__apply {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .shop-filters.shop-filters--in-sheet {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px calc(18px + var(--sab));
    width: 100%;
    max-width: 100%;
  }
  body.filters-sheet-open .filters-fab {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  #shopFilters {
    scroll-margin-top: 72px;
  }
  .container { width: calc(100% - 24px); }
  /* Два ряди: (1) логотип + дії, (2) курс НБУ + пошук на всю ширину — менше тисняви в одному рядку */
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
    min-height: unset;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 118px;
    height: 32px;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 2px;
    flex-wrap: nowrap;
  }
  .nav-mid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
  }
  .nav-mid .menu {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .nav-mid .filters-fab {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  .header-rate-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
  }
  .header-search {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
  /* Кабінет, тема і дзвінок у шапці; Контакти / Про нас уже в меню зверху */
  #openAccount {
    display: grid;
  }
  .header-actions .icon-btn--phone {
    display: grid;
  }
  .header-actions .theme-toggle {
    display: grid;
  }
  /* Назви розділів лишаються в шапці — компактна горизонтальна стрічка з прокруткою */
  .menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 2px 2px 4px;
    margin: 0 -2px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    justify-self: stretch;
  }
  .menu::-webkit-scrollbar {
    height: 0;
  }
  .menu a {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 11px;
    white-space: nowrap;
  }
  .burger-btn { display: none !important; }
  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }
  .header-search input { height: 32px; font-size: 12px; padding-left: 30px; }
  .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .burger-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 28px;
  }
  .card { padding: 8px; }
  .card img { padding: 4px; }
  .card-image-wrap,
  .promo-card__media {
    padding-top: 34px;
  }
  .badge {
    font-size: 10px;
    letter-spacing: 0.03em;
    padding: 4px 8px;
    top: 5px;
    left: 5px;
  }
  .card h3 {
    font-size: 12px;
    margin: 8px 0 4px;
    line-height: 1.25;
  }
  .promo-card h3 {
    font-size: 12px;
    margin: 8px 0 4px;
    line-height: 1.25;
    height: 2.5em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .card small {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .card-desc {
    font-size: 10px;
    min-height: 0;
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
  }
  .card .price {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .card .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .shop-filters {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 clamp(20px, 5vw, 28px);
  }
  .shop-filters__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .shop-filters__group--categories {
    grid-template-columns: 7.25rem minmax(0, 1fr);
  }
  .shop-filters__cat-label {
    text-align: left;
    font-size: 12px;
    padding-right: 10px;
  }
  .shop-category-chip {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
  }
  .shop-filters__group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .shop-filters__toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .shop-filters__group--lead .smart-quick-btn {
    align-self: flex-start;
  }
  .shop-filters__group select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  .shop-filters__group--tail .filter-reset.btn {
    margin-left: 0;
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  .shop-filters .stock-only {
    white-space: normal;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-panel {
    padding: 42px 12px 16px;
    width: calc(100% - 16px);
    max-height: calc(100vh - 12px);
    border-radius: 14px;
  }
  .product-sheet__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .product-sheet__media {
    position: relative;
    flex: 0 0 auto;
  }
  .product-sheet__media img {
    max-height: 42vh;
  }
  .product-sheet__body {
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
  }
    object-position: top center;
  }
  .product-sheet__body {
    max-height: none;
    flex: 1 1 auto;
  }
  main {
    padding-bottom: calc(24px + var(--sab));
  }
  .filters-topbar {
    display: none;
  }
  .filters-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: var(--surface);
    box-shadow: none;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .filters-fab:active {
    transform: scale(0.98);
  }
  .filters-fab__icon {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
  }
  .filters-fab__label {
    white-space: nowrap;
  }
}
