/* Opt-Drop — design tokens & layout */
:root {
  --primary: #70b535;
  --primary-hover: #5f9c2c;
  --primary-soft: #f5faf0;
  --bg: #f3f3f3;
  --bg-elevated: #ffffff;
  --bg-muted: #f5f5f5;
  --bg-soft: #e8efe2;
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.5);
  --text-soft: rgba(0, 0, 0, 0.7);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  --badge-hit: rgba(112, 181, 53, 0.7);
  --badge-new: rgba(139, 92, 246, 0.75);
  --badge-sale: rgba(239, 68, 68, 0.75);
  --grid-line: rgba(112, 181, 53, 0.12);
  --hero-glow: rgba(112, 181, 53, 0.35);
  --container: 1200px;
  --product-card-min: 285px; /* homepage: 1200 / 4 */
  --product-card-min-catalog: 251px; /* Figma catalog cards */
  --product-grid-gap: 20px;
  --radius: 6px;
  --radius-pill: 100px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Dela Gothic One", "Inter", sans-serif;
  --header-h: 64px;
  --header-block: 128px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-muted: #1a1a1a;
  --bg-soft: #151a12;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-soft: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  --primary-soft: #1a2414;
  --grid-line: rgba(112, 181, 53, 0.18);
  --hero-glow: rgba(112, 181, 53, 0.28);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.container {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn img,
.btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  min-width: 285px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-hover);
}

.btn--outline {
  border: 1px solid var(--primary);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--primary-soft);
}

.btn--sm {
  min-height: 40px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.btn--sm.btn--primary {
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.btn--sm img {
  width: 24px;
  height: 24px;
}

.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.icon--32 {
  width: 32px;
  height: 32px;
}

/* Top bar + header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 16px;
  background: transparent;
}

/* Після скролу: непрозорий верх → градієнт у прозорість донизу */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 32px);
  background: linear-gradient(
    180deg,
    var(--bg-elevated) 0%,
    var(--bg-elevated) 42%,
    color-mix(in srgb, var(--bg-elevated) 55%, transparent) 72%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.28s ease;
}

.site-header.is-solid::before {
  opacity: 1;
}

.site-header > .container {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--primary);
}

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

.topbar__side--end .icon-btn--logout {
  width: 32px;
  height: 32px;
}

.topbar__select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.topbar__select .icon {
  transition: transform 0.2s ease;
}

.topbar-dd {
  position: relative;
}

.topbar-dd.is-open .topbar__select .icon {
  transform: rotate(180deg);
}

.topbar-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.topbar-dd__menu--right {
  left: auto;
  right: 0;
  transform: none;
}

.topbar-dd__menu[hidden] {
  display: none;
}

.topbar-dd__menu li {
  margin: 0;
  padding: 0;
}

.topbar-dd__menu a,
.topbar-dd__menu button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.topbar-dd__menu a:hover,
.topbar-dd__menu a:focus-visible,
.topbar-dd__menu button:hover,
.topbar-dd__menu button:focus-visible,
.topbar-dd__menu button.is-active {
  color: var(--text);
  background: var(--bg-muted, rgba(0, 0, 0, 0.04));
}

[data-theme="dark"] .topbar-dd__menu a:hover,
[data-theme="dark"] .topbar-dd__menu a:focus-visible,
[data-theme="dark"] .topbar-dd__menu button:hover,
[data-theme="dark"] .topbar-dd__menu button:focus-visible,
[data-theme="dark"] .topbar-dd__menu button.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding: 12px 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

.header-bar__brand {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
}

.logo__mark {
  width: 36px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__word {
  width: 110px;
  height: 27px;
  object-fit: contain;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 40px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-btn:hover,
.catalog-btn:focus-visible {
  background: var(--primary-hover);
}

/* чорний SVG → білий лише на зеленій кнопці; у тегах/nav лишається чорним */
.catalog-btn img {
  filter: invert(1) brightness(1.05);
}

.search {
  --search-panel-w: 590px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.search.is-open {
  z-index: 130;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.search__icon {
  flex-shrink: 0;
  color: var(--primary);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.search input::placeholder {
  color: var(--text-muted);
}

.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration {
  display: none;
}

.search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
}

.search__clear[hidden] {
  display: none;
}

.search__image {
  flex-shrink: 0;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(0, 0, 0, 0.5);
}

.search-backdrop[hidden] {
  display: none;
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 131;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: var(--search-panel-w);
  max-width: min(var(--search-panel-w), calc(100vw - 24px));
  max-height: min(70vh, calc(100dvh - var(--header-block, 140px) - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-elevated);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  color: var(--text);
}

.search-panel[hidden] {
  display: none;
}

.search-panel__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.search-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.search-chip:hover,
.search-chip:focus-visible {
  border-color: var(--primary);
}

.search-chip span {
  color: var(--text-muted);
}

.search-panel__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.search-panel__block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.search-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.search-panel__block--products {
  gap: 0;
}

.search-products,
.search-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-products {
  gap: 2px;
}

.search-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

.search-product:hover,
.search-product:focus-visible {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.search-product__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
}

.search-product__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.search-product__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.search-product__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
}

.search-product__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 16px;
}

.search-product__price small {
  font-weight: 400;
  color: var(--text);
}

.search-product__price b {
  font-weight: 700;
}

.search-product__price--drop,
.search-product__price--drop small,
.search-product__price--drop b {
  color: var(--primary);
}

.search-product__stock {
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  color: #ef4444;
}

.search-product.is-out .search-product__cart {
  display: none;
}

.search-product__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.search-product__cart img {
  width: 22px;
  height: 22px;
  transition: filter var(--transition);
}

.search-product__cart:hover,
.search-product__cart:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(112, 181, 53, 0.28);
}

.search-product__cart:hover img,
.search-product__cart:focus-visible img {
  filter: brightness(0) invert(1);
}

.search-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  line-height: 20px;
}

.search-cat__text {
  flex: 1;
  min-width: 0;
}

.search-cat img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.55;
  /* icon fill is white — make it visible on light panel */
  filter: brightness(0);
}

[data-theme="dark"] .search-cat img {
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.search-cat__muted {
  color: var(--text-muted);
}

.search-cat__count {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.search-panel__all {
  width: 100%;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.search-panel__all-count {
  font-weight: 600;
  color: var(--text-muted);
}

.header-bar__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.header-bar__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-bar__phone {
  font-weight: 700;
  white-space: nowrap;
}

.header-bar__phone:hover {
  color: var(--primary);
}

.header-bar__icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* гість — біла іконка; залогінений — primary green */
.header-bar__icons .icon-btn--user img {
  filter: brightness(0) invert(1);
}

.header-bar__icons .icon-btn--user.is-logged-in img,
[data-theme="dark"] .header-bar__icons .icon-btn--user.is-logged-in img {
  filter: brightness(0) saturate(100%) invert(59%) sepia(51%) saturate(480%) hue-rotate(55deg) brightness(96%) contrast(87%);
}

/* light: біла на світлому барі майже невидима — тримаємо темну «нейтральну» для гостя */
[data-theme="light"] .header-bar__icons .icon-btn--user:not(.is-logged-in) img,
html:not([data-theme="dark"]) .header-bar__icons .icon-btn--user:not(.is-logged-in) img {
  filter: brightness(0);
}

/* обране: зелене серце + каунт */
.header-bar__icons .icon-btn--fav.is-active img,
[data-theme="dark"] .header-bar__icons .icon-btn--fav.is-active img {
  filter: brightness(0) saturate(100%) invert(59%) sepia(51%) saturate(480%) hue-rotate(55deg) brightness(96%) contrast(87%);
}

.v2-header-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  opacity: 0.75;
}

.theme-fab {
  position: fixed;
  right: 0;
  top: 400px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 40px;
  padding: 10px 16px;
  border-radius: 6px 0 0 6px;
  background: var(--primary);
  border: 0;
  box-shadow: none;
}

.theme-fab img {
  width: 24px;
  height: 24px;
  display: block;
}

.theme-fab:hover,
.theme-fab:focus-visible {
  background: var(--primary-hover);
}

.menu-toggle,
.mobile-only {
  display: none;
}

/* Shared mouse-warp grid plane */
.hero,
.section--soft,
.landing-split__content,
.cta-banner {
  --grid-x: 0px;
  --grid-y: 0px;
  --grid-ox: 50%;
  --grid-oy: 50%;
  --grid-rx: 0deg;
  --grid-ry: 0deg;
  --grid-sx: 1;
  --grid-sy: 1;
}

.hero::before,
.section--soft::before,
.landing-split__content::before,
.cta-banner::before,
.reviews__grid {
  transform: perspective(820px) rotateX(var(--grid-rx)) rotateY(var(--grid-ry))
    scale3d(var(--grid-sx), var(--grid-sy), 1) translate3d(var(--grid-x), var(--grid-y), 0);
  transform-origin: var(--grid-ox) var(--grid-oy);
  will-change: transform;
}

/* Hero — Figma first screen: 1920×840, grid under menu, devices 971×424 */
.hero {
  --hero-offset: var(--header-block, 128px);
  position: relative;
  min-height: 840px;
  display: flex;
  align-items: flex-start;
  margin-top: calc(-1 * var(--hero-offset));
  padding: 232px 0 116px;
  overflow: hidden;
  box-sizing: border-box;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: min(100% - 24px, var(--container));
}

.hero__grid {
  /* Figma content frame 1200×492 (copy top → social/cards bottom) */
  --hero-stage-h: 492px;
  position: relative;
  display: block;
  width: 100%;
  min-height: var(--hero-stage-h);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.eyebrow {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.display .accent {
  color: var(--primary);
}

.hero__lead {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 36em;
}

.hero__cta {
  margin-top: 28px;
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.avatars {
  display: flex;
  flex-shrink: 0;
}

.avatars img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -12px;
  border: 2px solid var(--bg);
}

.avatars img:first-child {
  margin-left: 0;
}

.hero__social-proof p {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

.hero__social-proof strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Devices: Figma x=848→488 inside 1200, w=971 (may overflow container right) */
.hero__visual {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: calc(488 / 1200 * 100%);
  width: calc(971 / 1200 * 100%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  left: 11.7%;
  top: -19.6%;
  width: 61.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
  pointer-events: none;
}

.hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.14));
}

/* Floating cards over devices (coords relative to visual 971×424) */
.hero__stats {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.hero__stats .stat-card {
  position: absolute;
  pointer-events: auto;
  width: min(285px, 44%);
}

/* 142 товари — content 915→ visual (915-488)/971 */
.hero__stats .stat-card:nth-child(1) {
  top: 0;
  left: 44%;
  right: auto;
}

/* +250 грн — content 610×244 → visual */
.hero__stats .stat-card:nth-child(2) {
  top: 52%;
  left: 12.5%;
  right: auto;
}

/* Нове замовлення — content 915×428 → visual */
.hero__stats .stat-card:nth-child(3) {
  top: auto;
  bottom: 0;
  left: 44%;
  right: auto;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.stat-card__text strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.stat-card__text span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1;
}

/* Sections */
.section {
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

#landings,
#arrivals,
#sale,
#back-in-stock,
#clearance,
#hits,
#partners,
#blog,
#catalog {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1100px;
}

/* Pin/sticky section must not use content-visibility */
.reviews {
  content-visibility: visible;
}

/* Інакше contain-intrinsic-size: 900px лишає порожнечу після картки */
.section.profit,
.section.pdp-desc {
  content-visibility: visible;
}

img[data-src]:not([src]) {
  content-visibility: auto;
  background: color-mix(in srgb, var(--border) 55%, transparent);
}

.section--soft {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-soft);
  perspective: 1200px;
}

.section--soft::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

.section--soft > *:not(.reviews__grid) {
  position: relative;
  z-index: 1;
}

/* Reviews already has its own grid layer */
.reviews__pin-sticky.section--soft::before {
  content: none;
}

.reviews__pin-sticky {
  --grid-x: 0px;
  --grid-y: 0px;
  --grid-ox: 50%;
  --grid-oy: 50%;
  --grid-rx: 0deg;
  --grid-ry: 0deg;
  --grid-sx: 1;
  --grid-sy: 1;
  perspective: 1200px;
}

.section__head {
  margin-bottom: 40px;
}

.section__head--center {
  text-align: center;
}

.section__title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #e73c2f;
  white-space: nowrap;
}

.link-more--below {
  display: none;
}

.link-more:hover,
.link-more:focus-visible {
  opacity: 0.85;
  color: #e73c2f;
}

.link-more img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* How it works */
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.how__cta {
  margin-top: 28px;
}

.steps {
  --steps-progress: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 0;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.steps::before {
  background-image: linear-gradient(
    to bottom,
    var(--border-strong) 50%,
    transparent 0
  );
  background-size: 2px 10px;
  background-repeat: repeat-y;
  opacity: 0.9;
}

.steps::after {
  bottom: auto;
  height: calc((100% - 40px) * var(--steps-progress));
  background: var(--primary);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 45%, transparent);
  z-index: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.step.is-active .step__num {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

[data-theme="dark"] .step__num {
  color: #0a0a0a;
}

[data-theme="dark"] .step.is-active .step__num {
  color: #fff;
}

.step__text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  transition: color var(--transition);
}

.step.is-active .step__text {
  color: var(--text);
}

.step:not(.is-active) .step__text {
  color: var(--text-soft);
}

/* Audience */
.audience {
  border-radius: var(--radius);
  padding: 80px 24px;
  text-align: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 794px;
  margin: 40px auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.audience .btn {
  margin-inline: auto;
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
  max-width: 320px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.checklist li::before {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../assets/icons/check.svg") center / 24px 24px no-repeat;
  mask: url("../assets/icons/check.svg") center / 24px 24px no-repeat;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.checklist li.is-accent {
  color: var(--primary);
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Profit — Figma 233:3203 */
.profit {
  text-align: center;
}

.profit__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

.profit__head {
  position: relative;
  z-index: 1;
  max-width: 794px;
}

.profit__head .eyebrow {
  margin-bottom: 12px;
}

.profit__values {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  margin: 0;
}

.profit__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 11.5em;
}

.profit__label {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.profit__amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  min-height: 1em;
}

.profit__amount [data-count] {
  display: inline-block;
  font-size: 48px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.profit__unit {
  font-size: 24px;
  line-height: 1;
}

.profit__amount--green {
  color: var(--primary);
}

.profit__amount--red {
  color: #e73c2f;
}

.profit__note {
  position: relative;
  z-index: 1;
  max-width: 794px;
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

/* Coins: full green asset + Figma crop offsets (234:12007 / 234:12008) */
.profit__coin {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: 147px;
  height: 300px;
  overflow: hidden;
  transform: translateY(-50%);
  pointer-events: none;
}

.profit__coin--a {
  left: 0;
}

.profit__coin--b {
  right: 0;
  width: 148px;
}

.profit__coin__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.profit__coin img {
  position: absolute;
  display: block;
  max-width: none;
}

/* Desktop left: show right half of coin */
.profit__coin--a img {
  left: -100.58%;
  top: -0.07%;
  width: 200.58%;
  height: 100.14%;
}

/* Desktop right: show left half of coin */
.profit__coin--b img {
  left: 0;
  top: -0.07%;
  width: 199.42%;
  height: 100.14%;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  margin-bottom: 40px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.category-card__media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.04);
}

.category-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

#catalog .btn {
  display: flex;
  margin-inline: auto;
}

/* Date tabs / products */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tabs button {
  min-height: 40px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 500;
}

.tabs button[aria-selected="true"],
.tabs button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--product-grid-gap);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .product-card:focus-within {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

[data-theme="dark"] .product-card__media {
  background: #101010;
}

.product-card__thumb {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition), filter var(--transition);
}

.product-card:hover .product-card__media img,
.product-card:focus-within .product-card__media img {
  transform: scale(1.03);
}

.product-card.is-out .product-card__media img {
  filter: grayscale(1) contrast(0.92) brightness(1.02);
}

.product-card.is-out:hover .product-card__media img,
.product-card.is-out:focus-within .product-card__media img {
  filter: grayscale(1) contrast(0.92) brightness(1.02);
}

/* Неактивний товар — бейджі сірі (різні відтінки замість кольорів) */
.product-card.is-out .badge--hit {
  background: rgba(120, 120, 120, 0.72);
}

.product-card.is-out .badge--new {
  background: rgba(150, 150, 150, 0.75);
}

.product-card.is-out .badge--sale {
  background: rgba(95, 95, 95, 0.78);
}

.product-card__title a {
  color: inherit;
  transition: color var(--transition);
}

.product-card__title a:hover,
.product-card__title a:focus-visible {
  color: var(--primary);
}

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.badge--hit {
  background: var(--badge-hit);
}

.badge--new {
  background: var(--badge-new);
}

.badge--sale {
  background: var(--badge-sale);
}

.product-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
  pointer-events: auto;
}

.product-card__actions button,
.product-card__actions a.product-card__fav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.product-card__actions button:hover,
.product-card__actions button:focus-visible,
.product-card__actions a.product-card__fav:hover,
.product-card__actions a.product-card__fav:focus-visible {
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(112, 181, 53, 0.4);
  transform: scale(1.08);
}

.product-card__actions img {
  width: 18px;
  height: 18px;
  transition: filter var(--transition);
}

/* Keep icons readable on white chips even in dark theme */
[data-theme="dark"] .product-card__actions img[src$="heart.svg"] {
  filter: none;
}

.product-card__actions button:hover img,
.product-card__actions button:focus-visible img,
[data-theme="dark"] .product-card__actions button:hover img,
[data-theme="dark"] .product-card__actions button:focus-visible img {
  filter: brightness(0) invert(1);
}

.product-card__actions .product-card__fav.is-fav {
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(112, 181, 53, 0.4);
}

.product-card__actions .product-card__fav.is-fav img,
[data-theme="dark"] .product-card__actions .product-card__fav.is-fav img {
  filter: brightness(0) invert(1);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.stock.is-out::before {
  background: #ef4444;
}

.product-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.prices strong {
  font-size: 16px;
  font-weight: 700;
}

.prices .drop {
  color: var(--primary);
}

.btn--muted,
.product-card .btn--sm:disabled {
  background: #9ca3af;
  color: #fff;
  cursor: not-allowed;
}

.btn--white {
  background: #fff;
  color: #000;
}

.btn--white:hover,
.btn--white:focus-visible {
  background: #f3f3f3;
}

/* Landing constructor */
.landing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 600px;
}

.landing-split__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  perspective: 1200px;
}

.landing-split__content::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.landing-split__content .eyebrow,
.landing-split__content .display,
.landing-split__text {
  color: #fff;
}

.landing-split__text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.landing-split__media {
  position: relative;
  background:
    linear-gradient(180deg, rgba(232, 239, 226, 0) 0%, #e8efe2 100%),
    #fff;
  display: grid;
  place-items: start center;
  overflow: hidden;
  min-height: 420px;
  padding: 41px 0 51px;
}

[data-theme="dark"] .landing-split__media {
  background:
    linear-gradient(180deg, rgba(21, 26, 18, 0) 0%, #151a12 100%),
    #1a1a1a;
}

.landing-phone {
  position: relative;
  width: 52.4%;
  max-width: 314.5px;
  aspect-ratio: 708 / 1601;
  margin: 0 auto;
  transform: translateY(0);
}

.landing-phone__shell {
  position: absolute;
  inset: 0;
  background: transparent;
}

.landing-phone__bezel {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.landing-phone__screen {
  position: absolute;
  z-index: 2;
  left: 4.8%;
  right: 4.8%;
  top: 2.05%;
  bottom: 2.05%;
  overflow: hidden;
  border-radius: 9.5% / 4.2%;
  background: #faf6ee;
  isolation: isolate;
  transform: translateZ(0);
}

.landing-phone__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: #faf6ee;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.landing-phone__screen.is-loading .landing-phone__loader {
  opacity: 1;
  visibility: visible;
}

.landing-phone__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--primary);
  animation: landing-spin 0.7s linear infinite;
}

@keyframes landing-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tall scaled page; page-scroll parallax translates this wrapper */
.landing-phone__scroller {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 480px;
  transform: scale(var(--lp-scale, 1)) translate3d(0, 0, 0);
  transform-origin: top left;
  will-change: transform;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-phone__screen.is-ready .landing-phone__scroller {
  opacity: 1;
}

.landing-phone__frame {
  display: block;
  width: 480px;
  height: 5600px;
  border: 0;
  background: #faf6ee;
  pointer-events: none;
  overflow: hidden;
}

/* Blocks mouse/touch on the live landing; scroll is driven by the page */
.landing-phone__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.landing-phone__page {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .landing-phone {
    width: min(68%, 390px);
  }
}

@media (max-width: 768px) {
  .landing-phone {
    width: min(84%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-phone__scroller,
  .landing-phone__page {
    will-change: auto;
  }
}

/* Partners slider */
.partners {
  text-align: center;
  overflow: hidden;
}

.partners__head {
  margin-bottom: 40px;
}

.partners__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.partners__slider {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.partners__item {
  display: grid;
  place-items: center;
  flex: 0 0 285px;
  height: 120px;
  padding: 10px 20px;
}

.partners__item img {
  max-width: 200px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 0.55;
  filter: grayscale(1);
}

.partners__item img[alt="LP-CRM"] {
  max-height: 48px;
  max-width: 214px;
}

[data-theme="dark"] .partners__item img {
  opacity: 0.85;
  filter: grayscale(1) invert(1) brightness(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .partners__track {
    animation: none !important;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 291px;
  border: 1px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.blog-card__media {
  aspect-ratio: 285 / 143;
  background: var(--bg-muted);
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.blog-card__date {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.blog-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
  height: 43px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Reviews index page */
.reviews-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.reviews-page__grid .review-card,
.reviews-page__grid .review-video {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 220px;
  position: relative;
  left: auto;
  top: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.reviews-page__grid .review-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid color-mix(in srgb, var(--border, #d9e2d2) 70%, transparent);
}

.reviews-page__grid .review-card__head {
  align-items: flex-start;
}

.reviews-page__grid .review-card__head strong {
  margin-bottom: 4px;
}

.reviews-page__grid .review-card__head time {
  color: var(--text-muted);
}

.reviews-page__grid .review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.reviews-page__grid .review-card__rating img {
  width: 16px;
  height: 16px;
}

.reviews-page__grid .review-card p {
  flex: 1;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-page.section--soft {
  background: var(--bg-soft);
  border-radius: 0;
  padding-block: 48px;
}

.reviews-page__empty {
  margin-top: 24px;
  color: var(--text-muted);
}

.reviews-page__intro {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
}

.reviews-page__intro p {
  margin: 0 0 0.75em;
}

.reviews-page__intro p:last-child {
  margin-bottom: 0;
}

.reviews-page__pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.reviews-page__pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-page__pager-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reviews-page__pager-btn,
.reviews-page__pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.reviews-page__pager-num.is-active {
  background: var(--primary);
  color: #fff;
  cursor: default;
}

.reviews-page__pager-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.reviews-page__pager-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

/* Final CTA */
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius);
  background-color: #000;
  color: #fff;
  overflow: hidden;
  perspective: 1200px;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.cta-banner .display {
  color: #fff;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

/* Reviews pin collage */
.reviews {
  --reviews-progress: 0;
  position: relative;
  padding: 0;
  background: transparent;
}

.reviews__pin-track {
  height: 280vh;
  position: relative;
}

.reviews__pin-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.reviews__grid {
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 181, 53, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 181, 53, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
}

.reviews__stage {
  position: relative;
  width: min(100% - 24px, var(--container));
  height: min(780px, 86vh);
  min-height: 620px;
  margin-inline: auto;
  padding-bottom: 36px;
  box-sizing: border-box;
}

/* Desktop: wrapper is transparent so absolute card orbits still work */
.reviews__slider {
  display: contents;
}

.reviews__eyebrow {
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translateX(-50%) translateY(12px);
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  z-index: 20;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reviews__title {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(386px, 100%);
  text-align: center;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.reviews__eyebrow.is-in,
.reviews__title.is-in {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

.reviews__eyebrow.is-in {
  transform: translateX(-50%) translateY(0);
}

.reviews__title.is-in {
  transform: translate(-50%, -50%) scale(1);
}

.review-card {
  width: min(387px, 100%);
  height: 225px;
  min-height: 225px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.review-card__head strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
}

.review-card__head time {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
}

.review-card__avatar {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card p {
  flex: 1;
  min-height: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.review-video {
  position: relative;
  width: min(387px, 100%);
  height: 225px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

button.review-video {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}

.review-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-video__play {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  margin: auto;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  transform: none;
}

.review-video__play img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.review-video-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.review-video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.review-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.58);
  backdrop-filter: blur(8px);
}

.review-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
}

.review-video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.review-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.review-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.review-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.review-item {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  /* Position set via --rx/--ry/--rot from JS (scattered orbits) */
  left: var(--rx, 0);
  top: var(--ry, 14%);
  right: auto;
  transform: scale(0.82) rotate(var(--rot, 0deg));
  transform-origin: center center;
  transition:
    opacity 0.5s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.review-item.is-in {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) rotate(var(--rot, 0deg));
  z-index: 5;
}

/* Outgoing card stays under the new one, then fades */
.review-item.is-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) rotate(var(--rot, 0deg));
  z-index: 2;
}

.review-item.is-in.is-front {
  z-index: 7;
}

.reviews__all {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(10px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e73c2f;
  font-size: 16px;
  font-weight: 700;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reviews__all img {
  width: 24px;
  height: 24px;
}

.reviews__all:hover {
  opacity: 0.85;
}

.reviews__all.is-in {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.reviews.is-complete .reviews__eyebrow,
.reviews.is-complete .reviews__title,
.reviews.is-complete .reviews__all {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

.reviews.is-complete .reviews__eyebrow {
  transform: translateX(-50%) translateY(0);
}

.reviews.is-complete .reviews__title {
  transform: translate(-50%, -50%) scale(1);
}

.reviews.is-complete .reviews__all {
  transform: translateX(-50%) translateY(0);
}

/* Reduced-motion desktop: only the opening 4 seats stay visible */
@media (min-width: 1101px) {
  .reviews.is-complete .review-item.is-seat {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(1) rotate(var(--rot, 0deg)) !important;
    z-index: 5;
  }

  .reviews.is-complete .review-item:not(.is-seat) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Розходження відгуків головної V2; без JS залишається звичайний список. */
.reviews--spread:not(.is-spreading) .reviews__pin-track {
  height: auto;
}

.reviews--spread:not(.is-spreading) .reviews__pin-sticky {
  position: relative;
  min-height: 0;
  padding: 48px 0;
}

.reviews--spread:not(.is-spreading) .reviews__stage {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 0;
}

.reviews--spread:not(.is-spreading) [data-review-chrome] {
  position: static;
  transform: none;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  margin: 0;
  text-align: center;
}

.reviews--spread:not(.is-spreading) .review-item {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  will-change: auto;
}

@media (min-width: 1101px) {
  .reviews--spread:not(.is-spreading) .reviews__slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    gap: 24px;
    width: 100%;
  }

  .reviews--spread:not(.is-spreading) .review-item {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .reviews--spread .reviews__slider {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (min-width: 1101px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  .reviews--spread.is-spreading .reviews__pin-track {
    height: auto;
  }

  .reviews--spread.is-spreading .reviews__pin-sticky {
    position: relative;
    top: auto;
    min-height: calc(100svh - var(--header-block));
  }

  .reviews--spread.is-spreading .reviews__stage {
    width: calc(100% - 48px);
    height: min(760px, calc(100svh - var(--header-block) - 16px));
    min-height: 0;
    padding: 0;
  }

  .reviews--spread.is-spreading .review-item {
    left: 50%;
    top: 50%;
    width: min(340px, calc((100% - 72px) / 3));
    height: min(200px, calc((100svh - var(--header-block) - 216px) / 2));
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(-50% + var(--review-x, 0px)), calc(-50% + var(--review-y, 0px))) rotate(var(--review-rotation, 0deg));
    transition: none;
    will-change: transform;
    z-index: 5;
  }

  .reviews--spread.is-spreading .review-card {
    padding: 16px;
    gap: 10px;
  }

  .reviews--spread.is-spreading .review-card__head strong {
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reviews--spread.is-spreading .review-card__head > div {
    min-width: 0;
  }

  .reviews--spread.is-spreading .review-card__avatar {
    width: 40px;
    height: 40px;
  }

  .reviews--spread.is-spreading [data-review-chrome] {
    top: 50%;
    bottom: auto;
    margin: 0;
    opacity: var(--reviews-reveal, 0);
    filter: none;
    transition: none;
    pointer-events: none;
  }

  .reviews--spread.is-spreading .reviews__eyebrow {
    font-size: 18px;
    line-height: 24px;
    transform: translate(-50%, calc(-100% - 60px));
  }

  .reviews--spread.is-spreading .reviews__title {
    width: 100%;
    max-width: 440px;
    font-size: 36px;
    line-height: 1.2;
    transform: translate(-50%, -50%);
  }

  .reviews--spread.is-spreading .reviews__all {
    width: auto;
    transform: translate(-50%, 60px);
    pointer-events: var(--reviews-link-events, none);
  }

  /* Клавіатурний фокус одразу відкриває читабельну композицію. */
  .reviews--spread.is-spreading:focus-within .review-item {
    transform: translate(calc(-50% + var(--review-end-x)), calc(-50% + var(--review-end-y))) rotate(var(--review-rotation, 0deg));
  }

  .reviews--spread.is-spreading:focus-within [data-review-chrome] {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__stats .stat-card:nth-child(1) {
    animation: float-a 5s ease-in-out infinite;
  }

  .hero__stats .stat-card:nth-child(2) {
    animation: float-b 6s ease-in-out infinite;
  }

  .hero__stats .stat-card:nth-child(3) {
    animation: float-a 5.5s ease-in-out infinite reverse;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* CMS pages */
.cms-page {
  padding: 32px 0 64px;
}

.cms-page__breadcrumbs {
  margin-bottom: 24px;
}

.cms-page__article {
  padding: clamp(28px, 5vw, 64px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cms-page__title {
  max-width: 900px;
  margin: 0 0 32px;
}

.cms-page__content {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cms-page__content > :first-child {
  margin-top: 0;
}

.cms-page__content > :last-child {
  margin-bottom: 0;
}

.cms-page__content h2,
.cms-page__content h3,
.cms-page__content h4,
.cms-page__content h5,
.cms-page__content h6 {
  margin: 40px 0 16px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.cms-page__content h2 {
  font-size: 28px;
}

.cms-page__content h3 {
  font-size: 24px;
}

.cms-page__content h4,
.cms-page__content h5,
.cms-page__content h6 {
  font-size: 20px;
}

.cms-page__content p,
.cms-page__content ul,
.cms-page__content ol,
.cms-page__content blockquote,
.cms-page__content table,
.cms-page__content figure {
  margin: 0 0 20px;
}

.cms-page__content ul,
.cms-page__content ol {
  padding-left: 24px;
}

.cms-page__content li + li {
  margin-top: 8px;
}

.cms-page__content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cms-page__content a:hover {
  color: var(--primary-hover);
}

.cms-page__content blockquote {
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text);
}

.cms-page__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.cms-page__content th,
.cms-page__content td {
  min-width: 140px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.cms-page__content th {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 700;
}

.cms-page__content img {
  max-width: 100%;
  margin: 24px auto;
  border-radius: var(--radius);
}

.cms-page__content hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .cms-page {
    padding: 20px 0 40px;
  }

  .cms-page__breadcrumbs {
    margin-bottom: 16px;
  }

  .cms-page__article {
    padding: 24px 16px;
  }

  .cms-page__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .cms-page__content {
    font-size: 16px;
    line-height: 1.65;
  }

  .cms-page__content h2 {
    font-size: 24px;
  }

  .cms-page__content h3 {
    font-size: 21px;
  }
}

/* Theme-aware legacy pages: FAQ, blog, contacts */
.theme-v2--hybrid .legacy-content--theme-aware {
  color: var(--text);
  background: #fff;
  color-scheme: inherit;
  transition:
    color var(--transition),
    background-color var(--transition);
}

[data-theme="dark"] .theme-v2--hybrid .legacy-content--theme-aware {
  background: var(--bg-elevated);
}

[data-theme="dark"] .cms-page {
  background: var(--bg-elevated);
}

.legacy-content--theme-aware .page-title,
.legacy-content--theme-aware .breadcrumbs-list,
.legacy-content--theme-aware .breadcrumbs-list li:last-child a:hover {
  color: var(--text);
}

.legacy-content--theme-aware .seo-content,
.legacy-content--theme-aware .single-content {
  color: var(--text-soft);
}

.legacy-content--theme-aware .faq-item {
  border-color: var(--border-strong);
}

.legacy-content--theme-aware .faq-item__header,
.legacy-content--theme-aware .faq-item__header p,
.legacy-content--theme-aware .faq-item__header i,
.legacy-content--theme-aware .faq-item__body {
  color: var(--text);
}

.legacy-content--theme-aware .faq-input {
  color: var(--text);
  background: var(--bg-elevated);
}

.legacy-content--theme-aware .faq-input::placeholder {
  color: var(--text-muted);
}

.legacy-content--theme-aware .blog-item {
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.legacy-content--theme-aware .blog-item__content {
  border-top-color: var(--bg);
}

.legacy-content--theme-aware .blog-item__date {
  color: var(--text-muted);
  background: var(--bg-muted);
  box-shadow: var(--shadow);
}

.legacy-content--theme-aware .blog-item__date span,
.legacy-content--theme-aware .blog-item__title,
.legacy-content--theme-aware .blog-item__info,
.legacy-content--theme-aware .single-content h2,
.legacy-content--theme-aware .single-content h3,
.legacy-content--theme-aware .single-content h4,
.legacy-content--theme-aware .single-content h5,
.legacy-content--theme-aware .single-content h6 {
  color: var(--text);
}

.legacy-content--theme-aware .single-content li::before {
  background-color: var(--text-soft);
}

.legacy-content--theme-aware .pagination-arrow,
.legacy-content--theme-aware .pagination-list a {
  border-color: var(--border-strong);
}

.legacy-content--theme-aware .pagination-arrow:hover,
.legacy-content--theme-aware .pagination-list a:hover {
  color: var(--text);
}

.legacy-content--theme-aware .contact-info__link,
.legacy-content--theme-aware .contact-time p,
.legacy-content--theme-aware .contact-post__info b {
  color: var(--text);
}

.legacy-content--theme-aware .contact-time span,
.legacy-content--theme-aware .contact-post__info p {
  color: var(--text-soft);
}

[data-theme="dark"] .legacy-content--theme-aware .contact-icon img {
  filter: brightness(0) invert(1);
}

.theme-v2--hybrid .popup-faq {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-v2--hybrid .popup-faq__title b {
  color: var(--text);
}

.theme-v2--hybrid .popup-faq__textarea {
  color: var(--text);
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.theme-v2--hybrid .popup-faq__textarea::placeholder {
  color: var(--text-muted);
}

/* SEO */
.seo-block h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.seo-block p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  padding: 80px 0 28px;
  position: relative;
}

.footer-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-benefit__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-benefit__icon img {
  width: 24px;
  height: 24px;
}

.footer-benefit strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 8px;
}

.footer-benefit span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(240px, 285px) minmax(220px, 285px) minmax(220px, 285px);
  gap: 20px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand__logo img:first-child {
  width: 47px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand__word {
  width: 142px;
  height: 35px;
  object-fit: contain;
}

[data-theme="dark"] .logo__word,
[data-theme="dark"] .footer-brand__word,
[data-theme="dark"] .mobile-menu__logo .logo__word {
  filter: invert(1);
}

.footer-brand p {
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
}

.socials {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}

.socials img {
  width: 24px;
  height: 24px;
}

.payments {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payments img {
  height: 13px;
  width: auto;
}


.footer-col {
  min-width: 0;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a:hover,
.footer-contacts a:hover {
  color: var(--primary);
}

.footer-contacts li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
  margin: 0;
}

.footer-contacts img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Monochrome black icons → readable on dark surfaces */
[data-theme="dark"] img[src$="user.svg"],
[data-theme="dark"] img[src$="heart.svg"],
[data-theme="dark"] img[src$="close.svg"],
[data-theme="dark"] img[src$="chevron.svg"],
[data-theme="dark"] img[src$="logout.svg"],
[data-theme="dark"] img[src$="image-search.svg"],
[data-theme="dark"] img[src$="phone.svg"],
[data-theme="dark"] img[src$="mail.svg"],
[data-theme="dark"] img[src$="mail-input.svg"],
[data-theme="dark"] img[src$="lock.svg"],
[data-theme="dark"] img[src$="eye.svg"],
[data-theme="dark"] img[src$="user-input.svg"],
[data-theme="dark"] img[src$="phone-input.svg"],
[data-theme="dark"] img[src$="gift.svg"],
[data-theme="dark"] img[src$="location.svg"],
[data-theme="dark"] img[src$="telegram-outline.svg"],
[data-theme="dark"] img[src$="tiktok.svg"],
[data-theme="dark"] img[src$="menu-square.svg"],
[data-theme="dark"] img[src$="reload.svg"],
[data-theme="dark"] .footer-contacts img {
  filter: invert(1) brightness(1.05);
}

/* Burger is black in the asset; invert only for dark theme */
.menu-toggle img {
  filter: none;
}

[data-theme="dark"] .menu-toggle img {
  filter: invert(1) brightness(1.05);
}

.footer-cta {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.footer-cta .btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-cta__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
}

.footer-cta__icon img {
  width: 22px;
  height: 22px;
}

.footer-cta h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.footer-cta p {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom__dev {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom__dev img {
  height: 20px;
  width: auto;
}

[data-theme="dark"] .footer-bottom__dev img {
  filter: invert(1);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(112, 181, 53, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    background var(--transition);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  background: var(--primary-hover);
}

.back-top img {
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-menu__logo .logo__mark {
  width: 28px;
  height: 24px;
}

.mobile-menu__logo .logo__word {
  width: 86px;
  height: 21px;
}

.mobile-menu__langs {
  display: flex;
  gap: 12px;
  font-weight: 500;
}

.mobile-menu__langs button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu__langs button.is-active {
  color: var(--text);
}

.mobile-menu__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-service {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.menu-service__icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.menu-service__icon img {
  width: 18px;
  height: 18px;
}

.menu-service strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.menu-service span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.menu-links a,
.menu-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.menu-links a > span,
.menu-links button > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.currency-toggle {
  display: flex;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  overflow: hidden;
}

.currency-toggle button {
  flex: 1;
  min-height: 32px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.currency-toggle button.is-active {
  background: var(--bg-elevated);
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  color: var(--primary);
}

.mobile-menu__phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 16px;
}

.mobile-menu .socials {
  margin: 0;
}

.mobile-menu .btn--outline {
  width: 100%;
  min-height: 40px;
  font-size: 16px;
}

.mobile-menu .catalog-btn {
  display: inline-flex;
  width: 100%;
}

/* Compensate missing scrollbar so the page does not jump sideways */
html.scroll-locked {
  overflow: hidden;
  scroll-behavior: auto; /* щоб focus/unlock не анімував скрол */
}

body.scroll-locked {
  overflow: hidden;
  padding-right: var(--scrollbar-w, 0px);
}

body.scroll-locked .theme-fab {
  right: var(--scrollbar-w, 0px);
}

body.scroll-locked .back-top {
  right: calc(24px + var(--scrollbar-w, 0px));
}

body.search-open .site-header {
  z-index: 130;
}

/* Photo search modal — Figma 260:1784 / 310:4264 */
.photo-search {
  --photo-soft: #f5f5f5;
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

[data-theme="dark"] .photo-search {
  --photo-soft: #1f1f1f;
}

.photo-search.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.photo-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.photo-search__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(100%, 590px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.photo-search.is-open .photo-search__dialog {
  transform: translateY(0) scale(1);
}

.photo-search__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photo-search__close img {
  width: 24px;
  height: 24px;
  opacity: 0.55;
}

.photo-search__title {
  margin: 0;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.photo-search__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 40px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  background: var(--photo-soft);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .photo-search__drop {
  border-color: rgba(255, 255, 255, 0.22);
}

.photo-search__drop.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.photo-search__drop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.photo-search__drop-icon img {
  display: block;
  object-fit: contain;
}

.photo-search__drop-icon .photo-search__drop-icon--mobile {
  display: none;
}

.photo-search__drop-text {
  margin: 0;
  max-width: 430px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.photo-search__or {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.photo-search__upload {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 285px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.photo-search__upload.btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.photo-search__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto 24px;
}

.photo-search__drop[hidden],
.photo-search__preview[hidden] {
  display: none !important;
}

.photo-search__preview-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

.photo-search__preview-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

.photo-search__preview-name {
  font-size: 14px;
  color: var(--text-muted);
  word-break: break-all;
  max-width: 100%;
}

.photo-search__preview-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-hover);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.photo-search__preview-reset:hover {
  background: var(--border);
}

.photo-search__preview-reset img {
  opacity: 0.5;
}

/* Compact mode when results are shown */
.photo-search__preview.is-compact {
  flex-direction: row;
  align-items: center;
  align-self: flex-start;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 12px;
  background: var(--surface-hover);
  border-radius: 8px;
  gap: 16px;
  margin: 0 auto 16px 0;
}

.photo-search__preview.is-compact .photo-search__preview-img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.photo-search__preview.is-compact .photo-search__preview-body {
  flex-direction: row;
  align-items: center;
  text-align: left;
  flex-grow: 0;
  width: auto;
  justify-content: flex-start;
  gap: 16px;
}

.photo-search__preview.is-compact .photo-search__preview-name {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-search__preview.is-compact .photo-search__preview-reset {
  background: var(--surface);
  flex-shrink: 0;
}

.photo-search__preview.is-compact .photo-search__preview-reset:hover {
  background: var(--border);
}

.photo-search__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--text-muted);
}

.photo-search__status.is-error {
  color: rgb(239, 68, 68);
}

.photo-search__results {
  width: 100%;
  max-height: min(320px, 40vh);
  overflow-y: auto;
}

.photo-search__results .search-product {
  margin: 0;
}

.photo-search__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.photo-search__info[hidden] {
  display: none;
}

.photo-search__card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.photo-search__card--soft {
  background: var(--photo-soft);
  align-items: flex-start;
}

.photo-search__card--contact {
  background: var(--bg-elevated);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.photo-search__card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 4px;
}

.photo-search__card-icon--light {
  background: #fff;
}

.photo-search__card-icon--muted {
  background: var(--photo-soft);
}

[data-theme="dark"] .photo-search__card-icon--light {
  background: #2a2a2a;
}

.photo-search__card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.photo-search__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-search__card-body strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.photo-search__card-body span {
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  color: var(--text-muted);
}

.photo-search__telegram {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Login modal */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.login-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.login-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
  scrollbar-width: none;
}

.login-modal__dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.login-modal.is-open .login-modal__dialog {
  transform: translateY(0) scale(1);
}

.login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.login-modal__close img {
  width: 24px;
  height: 24px;
  opacity: 0.55;
}

.login-modal__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.login-modal:not(.register-modal) .login-modal__title {
  margin-bottom: 28px;
}

.login-modal:not(.register-modal) .login-modal__dialog {
  width: min(100%, 640px);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 28px 32px;
}

.login-modal:not(.register-modal) .login-modal__title {
  margin-bottom: 28px;
  font-size: 32px;
}

.login-modal:not(.register-modal) .login-form {
  gap: 20px;
}

.login-modal:not(.register-modal) .login-field__control {
  min-height: 44px;
  padding: 0 12px;
}

.login-modal:not(.register-modal) .login-field__control input {
  font-size: 16px;
  line-height: 20px;
}

.login-modal:not(.register-modal) .login-form__submit {
  min-height: 56px;
  padding-inline: 24px;
  font-size: 18px;
}

.login-modal:not(.register-modal) .login-form__footer {
  font-size: 16px;
}

.register-modal__head {
  margin-bottom: 28px;
}

.register-modal .login-form {
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.register-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 16px;
  width: 100%;
  min-width: 0;
}

.register-form__grid > .login-field {
  min-width: 0;
}

.register-label-short {
  display: none;
}

.login-check.register-check {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
}

.login-check.register-check input[type="checkbox"] {
  top: 1px;
  transform: none;
}

.login-check.register-check .login-check__box {
  margin-top: 1px;
}

.register-check__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.register-check__text a {
  color: var(--primary);
  text-decoration: underline;
}

.register-modal__dialog {
  width: min(100%, 640px);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 32px;
  box-sizing: border-box;
}

.register-form__error {
  color: #d73737;
  font-size: 12px;
  line-height: 1.35;
}

.register-telegram {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-field label {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.login-field__control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-elevated);
  box-sizing: border-box;
}

.login-field__control:focus-within {
  border-color: var(--primary);
}

.login-field__control > img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.55;
}

.login-field__control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--text);
}

.login-field__control input::placeholder {
  color: var(--text-muted);
}

.login-field__control input:focus {
  outline: none;
}

.login-field__toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text);
}

.login-field__eye {
  width: 24px;
  height: 24px;
  opacity: 1;
  object-fit: contain;
}

.login-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
}

.login-check {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  max-width: 100%;
}

/* Invisible hit-target over the custom box — stays inside the label */
.login-check input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}

.login-check__box {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  box-sizing: border-box;
  pointer-events: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.login-check__box img {
  display: none;
}

.login-check__box::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.login-check input[type="checkbox"]:checked + .login-check__box {
  border-color: var(--primary);
  background: var(--primary);
}

.login-check input[type="checkbox"]:checked + .login-check__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.login-check input[type="checkbox"]:focus-visible + .login-check__box {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

.login-form__forgot {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.login-form__forgot:hover,
.login-form__forgot:focus-visible {
  text-decoration: underline;
}

.login-form__submit {
  width: 100%;
  max-width: none;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

.login-form__divider {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.login-social {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.login-social__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
}

.login-social__btn > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.login-social__btn > span img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.login-social__chevron {
  width: 16px;
  height: 16px;
  opacity: 0.45;
  transform: rotate(-90deg);
}

.login-social__btn:hover,
.login-social__btn:focus-visible {
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-elevated));
}

.login-form__footer {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.5;
}

.login-form__footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.login-form__back {
  align-self: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.login-form__back:hover,
.login-form__back:focus-visible {
  opacity: 0.8;
}

@media (max-width: 720px) {
  .photo-search {
    padding: 12px;
  }

  .photo-search__dialog {
    width: min(100%, calc(100vw - 24px));
    gap: 20px;
    padding: 20px 16px;
  }

  .photo-search__title {
    font-size: 18px;
  }

  .photo-search__drop {
    gap: 20px;
    padding: 28px 12px;
  }

  .photo-search__drop-icon {
    width: 32px;
    height: 32px;
  }

  .photo-search__drop-icon .photo-search__drop-icon--desktop {
    display: none;
  }

  .photo-search__drop-icon .photo-search__drop-icon--mobile {
    display: block;
    width: 32px;
    height: 32px;
  }

  .photo-search__drop-text {
    font-size: 16px;
  }

  .photo-search__drop-text br {
    display: none;
  }

  .photo-search__upload {
    width: 100%;
    justify-content: space-between;
  }

  .photo-search__results {
    max-height: min(240px, 35vh);
  }

  .photo-search__card {
    gap: 12px;
  }

  .photo-search__card-body strong {
    font-size: 16px;
  }

  .login-modal {
    padding: 12px;
  }

  .login-modal__dialog {
    width: min(100%, calc(100vw - 24px));
    padding: 20px 16px;
    gap: 20px;
  }

  .login-modal__title {
    font-size: 18px;
    margin-bottom: 0;
  }

  .login-modal:not(.register-modal) .login-modal__title {
    margin-bottom: 20px;
  }

  .login-modal:not(.register-modal) .login-modal__dialog {
    width: min(100%, calc(100vw - 24px));
    padding: 20px 16px;
  }

  .login-modal:not(.register-modal) .login-modal__title {
    font-size: 28px;
  }

  .login-modal:not(.register-modal) .login-form {
    gap: 20px;
  }

  .login-modal:not(.register-modal) .login-field__control {
    min-height: 52px;
    padding: 0 12px;
  }

  .login-modal:not(.register-modal) .login-field__control input {
    font-size: 16px;
    line-height: 20px;
  }

  .login-modal:not(.register-modal) .login-form__submit {
    min-height: 52px;
    padding-inline: 20px;
    font-size: 18px;
  }

  .login-modal:not(.register-modal) .login-form__footer {
    font-size: 16px;
  }

  .register-modal__head {
    margin-bottom: 12px;
  }

  .register-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .register-label-full {
    display: none;
  }

  .register-label-short {
    display: inline;
  }

  .register-check__text {
    font-size: 12px;
  }

  .register-modal__dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 16px;
  }

  .register-modal .login-form {
    gap: 20px;
  }

  .login-form {
    gap: 20px;
  }

  .login-field__control {
    min-height: 40px;
  }

  .login-field__control > img,
  .login-field__toggle,
  .login-field__eye {
    width: 18px;
    height: 18px;
  }

  .login-form__submit {
    min-height: 40px;
    font-size: 16px;
    padding-inline: 24px 12px;
  }

  .login-form__submit img {
    width: 24px;
    height: 24px;
  }

  .login-social {
    grid-template-columns: 1fr;
  }

  .login-social__btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .login-social__btn > span img {
    width: 20px;
    height: 20px;
  }

  .login-form__footer {
    font-size: 14px;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .topbar__nav {
    gap: 16px;
  }

  .header-bar {
    gap: 16px;
    padding: 12px 16px;
  }

  .header-bar__actions {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .topbar__nav {
    display: none;
  }

  .header-bar__contacts {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header-bar {
    gap: 16px;
    padding: 12px 16px;
  }

  .hero {
    margin-top: calc(-1 * var(--hero-offset));
    padding: calc(var(--hero-offset) + 28px) 0 48px;
    min-height: auto;
  }

  .hero__grid,
  .how,
  .split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }

  .hero__copy {
    max-width: none;
  }

  .hero {
    overflow: visible;
  }

  .hero__visual {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: min(100%, 720px);
    margin: 8px auto 0;
    pointer-events: auto;
  }

  .hero__glow {
    left: 50%;
    top: -10%;
    width: min(420px, 80%);
    transform: translateX(-50%);
  }

  .hero__stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .hero__stats .stat-card {
    position: absolute;
    width: min(220px, 58%);
    min-width: 0;
    padding: 10px;
    gap: 8px;
  }

  .hero__stats .stat-card .icon--32 {
    width: 28px;
    height: 28px;
  }

  .hero__stats .stat-card__text strong {
    font-size: 15px;
  }

  .hero__stats .stat-card__text span {
    font-size: 13px;
  }

  .hero__stats .stat-card:nth-child(1) {
    top: 2%;
    left: auto;
    right: 0;
  }

  .hero__stats .stat-card:nth-child(2) {
    top: 42%;
    left: 0;
    right: auto;
  }

  .hero__stats .stat-card:nth-child(3) {
    top: auto;
    bottom: 2%;
    left: auto;
    right: 0;
  }

  .category-grid,
  .product-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-page__grid {
    grid-template-columns: 1fr;
  }

  .reviews-page.section--soft {
    padding-block: 32px;
  }

  .partners__item {
    flex-basis: 220px;
  }

  .landing-split,
  .cta-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .reviews__pin-track {
    height: auto;
  }

  .reviews__pin-sticky {
    position: relative;
    min-height: 0;
    padding: 48px 0;
    overflow: visible;
  }

  .reviews__stage {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-bottom: 0;
    width: 100%;
    max-width: none;
  }

  .reviews__eyebrow,
  .reviews__title,
  .reviews__all {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none !important;
    width: 100%;
    max-width: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
    text-align: center;
  }

  .reviews__eyebrow {
    font-size: 18px;
  }

  .reviews__title {
    font-size: 28px;
    width: min(100% - 24px, var(--container));
    margin-inline: auto;
  }

  .reviews__slider {
    display: flex;
    align-items: stretch;
    gap: 12px;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 4px 12px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
  }

  .reviews__slider::-webkit-scrollbar {
    display: none;
  }

  .review-item {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
    height: 200px;
    min-height: 200px;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }

  /* Mobile slider: show every review (override desktop hide) */
  .reviews.is-complete .review-item[data-wave="1"],
  .reviews.is-complete .review-item[data-wave="2"],
  .reviews.is-complete .review-item--extra {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .reviews.is-complete .review-video.review-item--extra,
  .reviews.is-complete .review-video[data-wave="1"],
  .reviews.is-complete .review-video[data-wave="2"] {
    display: grid !important;
  }

  .review-card.review-item {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    height: 200px;
    min-height: 200px;
    border-radius: 12px;
  }

  .review-card__head strong {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .review-card__head time {
    font-size: 12px;
  }

  .review-card__avatar {
    width: 40px;
    height: 40px;
  }

  .review-card p {
    flex: 1;
    min-height: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
  }

  .review-video.review-item {
    display: grid !important;
    place-items: center;
    height: 200px;
    min-height: 200px;
    width: 250px;
  }

  .review-video__play {
    inset: 0;
    margin: auto;
    transform: none;
  }

  .reviews__all {
    justify-content: center;
    width: auto;
    margin-inline: auto;
  }

  .cta-banner__actions {
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
  }

  .footer-benefits,
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    flex-shrink: 0;
  }

  .menu-toggle .icon {
    width: 18px;
    height: 18px;
  }

  .site-header {
    padding: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .site-header::before {
    display: none;
  }

  .topbar {
    display: none;
  }

  .header-bar {
    border-radius: 0;
    box-shadow: none;
    gap: 12px;
    padding: 8px 12px;
  }

  .header-bar__brand {
    gap: 0;
    flex-shrink: 0;
  }

  .logo {
    height: 24px;
  }

  .logo__mark {
    width: 28px;
    height: 24px;
  }

  .catalog-btn {
    display: none;
  }

  .logo__word {
    display: none;
  }

  /* У mobile-хедері залишаємо доступними вхід і кошик */
  .header-bar__actions {
    display: flex;
    gap: 0;
  }

  .header-bar__icons {
    gap: 12px;
  }

  .search {
    --search-panel-w: calc(100vw - 24px);
    height: 34px;
    padding: 0 8px;
    gap: 8px;
  }

  .search__icon,
  .search__image .icon,
  .search__clear .icon {
    width: 16px;
    height: 16px;
  }

  .search__clear {
    width: 18px;
    height: 18px;
  }

  .search input {
    font-size: 14px;
    line-height: 16px;
  }

  .search-panel {
    position: fixed;
    top: 50px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 62px);
    padding: 12px;
    gap: 12px;
    transform: none;
  }

  .search-panel__suggestions {
    padding-bottom: 12px;
  }

  .search-chip {
    min-height: 28px;
    font-size: 14px;
  }

  .search-chip--desktop {
    display: none;
  }

  .search-panel__block {
    gap: 8px;
    padding-bottom: 12px;
  }

  .search-panel__title {
    font-size: 14px;
  }

  .search-products {
    gap: 2px;
  }

  .search-product {
    gap: 8px;
    min-height: 36px;
    padding: 6px 8px;
    margin: 0 -8px;
  }

  .search-product__img {
    width: 32px;
    height: 32px;
  }

  .search-product__prices {
    gap: 4px;
  }

  .search-product__cart {
    width: 32px;
    height: 32px;
  }

  .search-product__cart img {
    width: 18px;
    height: 18px;
  }

  .search-cat {
    font-size: 14px;
  }

  .search-cat img {
    width: 18px;
    height: 18px;
  }

  .search-panel__all {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 14px;
  }

  .theme-fab {
    top: auto;
    bottom: max(96px, calc(16px + env(safe-area-inset-bottom, 0px)));
    right: 0;
    z-index: 90;
    border-radius: 6px 0 0 6px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--hero-offset) + 20px) 0 48px;
    align-items: flex-start;
    overflow: visible;
  }

  /* Container already insets 12px — bleed only that far, not past the viewport */
  .hero__visual {
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
    margin-right: -12px;
  }

  .hero__stats .stat-card {
    width: min(168px, 58%);
    padding: 8px;
    gap: 6px;
    border-radius: 6px;
  }

  .hero__stats .stat-card .icon--32 {
    width: 22px;
    height: 22px;
  }

  .hero__stats .stat-card__text strong {
    font-size: 13px;
  }

  .hero__stats .stat-card__text span {
    font-size: 11px;
    margin-top: 2px;
  }

  .hero__stats .stat-card:nth-child(1) {
    top: 0;
    right: 4%;
  }

  .hero__stats .stat-card:nth-child(2) {
    top: 40%;
    left: 2%;
  }

  .hero__stats .stat-card:nth-child(3) {
    bottom: 0;
    right: 4%;
  }

  .avatars img {
    width: 48px;
    height: 48px;
  }

  .eyebrow {
    font-size: 16px;
  }

  .display {
    font-size: 28px;
  }

  .hero__lead,
  .step__text,
  .checklist li,
  .tag {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    font-size: 18px;
    min-height: 48px;
  }

  .section {
    padding: 48px 0;
  }

  #cabinet {
    padding-bottom: 16px;
  }

  .section.profit {
    padding-top: 16px;
  }

  .audience {
    padding: 48px 12px;
    text-align: left;
  }

  .tags {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    max-width: none;
    margin: 28px 0;
  }

  .tag {
    justify-content: flex-start;
    padding: 10px 12px;
    min-height: 40px;
    font-size: 16px;
  }

  .audience .btn {
    margin-inline: 0;
  }

  .steps {
    gap: 24px;
  }

  .step {
    gap: 16px;
  }

  .profit__card {
    gap: 28px;
    padding: 120px 20px 112px;
  }

  .profit__values {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
  }

  .profit__label {
    font-size: 16px;
  }

  .profit__amount [data-count] {
    font-size: 28px;
  }

  .profit__unit {
    font-size: 18px;
  }

  .profit__note {
    font-size: 18px;
  }

  .profit__note br {
    display: none;
  }

  /* Half-coins peek from top & bottom (Figma 303:726 / 303:725) */
  .profit__coin {
    top: auto;
    left: 50%;
    width: 200px;
    transform: translateX(-50%);
  }

  .profit__coin--a {
    top: 0;
    left: 50%;
    right: auto;
    height: 101px;
  }

  .profit__coin--b {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    height: 102px;
  }

  /* Mobile top: bottom half of coin */
  .profit__coin--a img {
    left: 0;
    top: -101.13%;
    width: 100.05%;
    height: 201.27%;
  }

  /* Mobile bottom: top half of coin */
  .profit__coin--b img {
    left: 0;
    top: -0.14%;
    width: 100.05%;
    height: 199.3%;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .category-card {
    gap: 8px;
    align-items: flex-start;
    text-align: left;
  }

  .category-card__title {
    font-size: 16px;
  }

  .section__title-row {
    margin-bottom: 16px;
  }

  .section__title-row .link-more--inline {
    display: none;
  }

  .link-more--below {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
  }

  .tabs {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-width: 0;
  }

  .product-card__body {
    gap: 8px;
    padding: 8px;
  }

  .product-card__meta {
    font-size: 12px;
  }

  .product-card .stock {
    position: relative;
    gap: 0;
    width: 8px;
    height: 8px;
  }

  .product-card .stock__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .product-card__title {
    font-size: 12px;
    line-height: 1.35;
    height: 34px;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .prices {
    font-size: 12px;
  }

  .prices strong {
    font-size: 14px;
  }

  .product-card .btn--sm {
    width: 100%;
    min-height: 32px;
    font-size: 14px;
  }

  .product-card__actions button {
    width: 22px;
    height: 22px;
  }

  .blog-grid {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
    padding: 4px 12px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
  }

  .blog-grid::-webkit-scrollbar {
    display: none;
  }

  .blog-card {
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
    min-height: 0;
    scroll-snap-align: start;
  }

  .blog-card__media {
    aspect-ratio: 250 / 125;
  }

  .blog-card__title {
    font-size: 14px;
    line-height: 1.35;
    height: 38px;
  }

  .blog-card__excerpt {
    font-size: 12px;
    height: 48px;
    -webkit-line-clamp: 3;
  }

  .footer-benefits {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .footer-brand,
  .footer-cta {
    grid-column: 1 / -1;
  }

  .partners__item {
    flex-basis: 200px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-col--contacts .footer-contacts img {
    width: 16px;
    height: 16px;
  }

  .footer-col--contacts .footer-contacts a {
    font-size: 13px;
  }

  .footer-col--contacts .footer-contacts a[href^="tel:"] {
    white-space: nowrap;
  }

  .footer-col--contacts .footer-contacts span {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .landing-split__content {
    padding: 28px 16px;
  }

  .landing-split__text {
    font-size: 16px;
  }

  .cta-banner {
    padding: 28px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .steps {
    --steps-progress: 1;
  }

  .hero,
  .section--soft,
  .landing-split__content,
  .cta-banner {
    --grid-x: 0px;
    --grid-y: 0px;
    --grid-ox: 50%;
    --grid-oy: 50%;
    --grid-rx: 0deg;
    --grid-ry: 0deg;
    --grid-sx: 1;
    --grid-sy: 1;
  }

  .hero::before,
  .section--soft::before,
  .landing-split__content::before,
  .cta-banner::before,
  .reviews__grid {
    transform: none;
  }

  .reviews__pin-track {
    height: auto;
  }

  .reviews__pin-sticky {
    position: relative;
    min-height: 0;
    padding: 80px 0;
  }
}

/* ========== Catalog page ========== */
.catalog-shortcuts {
  width: 100%;
  padding: 16px 20px 0;
  overflow: hidden;
}

.catalog-shortcuts__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.catalog-shortcuts__track::-webkit-scrollbar {
  display: none;
}

.catalog-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.catalog-shortcut img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

/* чорні SVG (menu-square / gift / reload) → той самий primary, що new-badge / chart-up */
.catalog-shortcut img[src$="menu-square.svg"],
.catalog-shortcut img[src$="gift.svg"],
.catalog-shortcut img[src$="reload.svg"] {
  filter: brightness(0) saturate(100%) invert(59%) sepia(51%) saturate(480%) hue-rotate(55deg) brightness(96%) contrast(87%);
}

.catalog-shortcut.is-active,
.catalog-shortcut:hover,
.catalog-shortcut:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--primary);
}

.catalog-shortcut.is-active img,
.catalog-shortcut:hover img {
  opacity: 1;
}

/* у dark не чіпаємо зелені brand і не даємо глобальному invert збити чорні→зелені */
[data-theme="dark"] .catalog-shortcut img[src$="new-badge.svg"],
[data-theme="dark"] .catalog-shortcut img[src$="chart-up.svg"] {
  filter: none;
  opacity: 0.9;
}

[data-theme="dark"] .catalog-shortcut img[src$="menu-square.svg"],
[data-theme="dark"] .catalog-shortcut img[src$="gift.svg"],
[data-theme="dark"] .catalog-shortcut img[src$="reload.svg"] {
  filter: brightness(0) saturate(100%) invert(59%) sepia(51%) saturate(480%) hue-rotate(55deg) brightness(96%) contrast(87%);
  opacity: 0.9;
}

[data-theme="dark"] .catalog-shortcut.is-active img,
[data-theme="dark"] .catalog-shortcut:hover img {
  opacity: 1;
}

.catalog {
  display: grid;
  grid-template-columns: 251px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  padding: 24px 20px 48px;
  align-items: start;
}

.catalog-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

.catalog-filters__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-filters__heading {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.catalog-filters--drawer .catalog-filters__heading {
  font-size: 16px;
}

.catalog-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 6px;
  margin: 0 -6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

.catalog-nav__toggle:hover,
.catalog-nav__toggle:focus-visible,
.catalog-nav__toggle.is-active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.catalog-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.catalog-nav__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

/* img SVG: color не діє — інвертуємо чорні stroke у світлі */
[data-theme="dark"] .catalog-nav__icon {
  color: rgba(255, 255, 255, 0.55);
  filter: invert(1) brightness(1.05);
  opacity: 0.7;
}

.catalog-nav__item.is-open .catalog-nav__icon,
.catalog-nav__toggle:hover .catalog-nav__icon,
.catalog-nav__toggle:focus-visible .catalog-nav__icon,
.catalog-nav__toggle.is-active .catalog-nav__icon {
  color: var(--primary);
  opacity: 1;
  filter: none;
}

[data-theme="dark"] .catalog-nav__item.is-open .catalog-nav__icon,
[data-theme="dark"] .catalog-nav__toggle:hover .catalog-nav__icon,
[data-theme="dark"] .catalog-nav__toggle:focus-visible .catalog-nav__icon,
[data-theme="dark"] .catalog-nav__toggle.is-active .catalog-nav__icon {
  filter: invert(1) brightness(1.05);
  opacity: 1;
}

.catalog-nav__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform var(--transition), opacity 0.2s ease;
}

[data-theme="dark"] .catalog-nav__chevron {
  opacity: 0.75;
}

.catalog-nav__toggle:hover .catalog-nav__chevron,
.catalog-nav__toggle:focus-visible .catalog-nav__chevron {
  opacity: 0.8;
}

.catalog-nav__item.is-open > .catalog-nav__toggle .catalog-nav__chevron {
  transform: rotate(180deg);
}

.catalog-nav__sub {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 30px;
  display: none;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
  margin-left: 10px;
}

.catalog-nav__item.is-open > .catalog-nav__sub {
  display: flex;
}

.catalog-nav--search .catalog-nav__sub {
  padding-left: 16px;
  margin-left: 4px;
}

.catalog-nav__search-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catalog-nav__search-link {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  flex: 1;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease, background 0.2s ease;
}

.catalog-nav__search-link:hover,
.catalog-nav__search-link:focus-visible,
.catalog-nav__search-link.is-active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.catalog-nav__search-link.is-active {
  font-weight: 600;
}

.catalog-nav__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.catalog-nav__search-toggle:hover,
.catalog-nav__search-toggle:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.catalog-nav__item.is-open > .catalog-nav__search-row .catalog-nav__chevron {
  transform: rotate(180deg);
}

.catalog-nav__sub .catalog-nav__search-link {
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 400;
}

[data-theme="dark"] .catalog-nav__sub .catalog-nav__search-link {
  color: rgba(255, 255, 255, 0.55);
}

.catalog-nav__sub .catalog-nav__search-link:hover,
.catalog-nav__sub .catalog-nav__search-link:focus-visible,
.catalog-nav__sub .catalog-nav__search-link.is-active {
  color: var(--primary);
}

.catalog-nav__sub .catalog-nav__search-link.is-active {
  font-weight: 600;
}

.catalog-nav__sub a {
  position: relative;
  display: block;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.2s ease, background 0.2s ease, font-weight 0.2s ease;
}

[data-theme="dark"] .catalog-nav__sub a {
  color: rgba(255, 255, 255, 0.55);
}

.catalog-nav__sub a:hover,
.catalog-nav__sub a:focus-visible {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.catalog-nav__sub a.is-active {
  color: var(--primary);
  font-weight: 600;
}

.catalog-nav__sub a.is-active:hover,
.catalog-nav__sub a.is-active:focus-visible {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.catalog-nav__sub a.is-active::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.catalog-price {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catalog-price__field {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  background: var(--bg);
}

[data-theme="dark"] .catalog-price__field {
  border-color: rgba(255, 255, 255, 0.12);
}

.catalog-price__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.catalog-price__field span,
.catalog-price__sep {
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  flex-shrink: 0;
}

[data-theme="dark"] .catalog-price__field span,
[data-theme="dark"] .catalog-price__sep {
  color: rgba(255, 255, 255, 0.5);
}

.catalog-range {
  position: relative;
  height: 24px;
  margin-top: 4px;
}

.catalog-range__track {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

[data-theme="dark"] .catalog-range__track {
  background: rgba(255, 255, 255, 0.15);
}

.catalog-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  border-radius: inherit;
}

.catalog-range__input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.catalog-range__input::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
}

.catalog-range__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
}

.catalog-delivery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e8efe2;
  background-image:
    linear-gradient(rgba(112, 181, 53, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 181, 53, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  color: #111;
}

[data-theme="dark"] .catalog-delivery-card {
  background-color: color-mix(in srgb, var(--primary) 18%, #121412);
  background-image:
    linear-gradient(rgba(112, 181, 53, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 181, 53, 0.22) 1px, transparent 1px);
  color: #f5f5f5;
}

.catalog-delivery-card__title {
  margin: 0;
  width: 100%;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.catalog-delivery-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.catalog-delivery-card__carrier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #111;
  white-space: nowrap;
}

.catalog-delivery-card__carrier img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.catalog-delivery-card__time {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.catalog-delivery-card__art {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
  pointer-events: none;
}

.catalog-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .breadcrumbs {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs a {
  color: inherit;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs img {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
  opacity: 0.4;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.catalog-main__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.catalog-chip:hover,
.catalog-chip:focus-visible {
  color: var(--primary);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-toolbar.mobile-only {
  display: none;
}

.catalog-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
}

.catalog-count {
  margin: 0;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .catalog-count {
  color: rgba(255, 255, 255, 0.55);
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.catalog-tag img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.catalog-reset {
  border: 0;
  background: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.catalog-reset--icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.catalog-reset--icon img {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.catalog-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 36px 0 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .catalog-sort {
  border-color: rgba(255, 255, 255, 0.1);
}

.catalog-sort select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 8px 0;
  min-width: 160px;
  cursor: pointer;
  outline: none;
}

.catalog-sort img {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  opacity: 0.4;
  pointer-events: none;
}

.catalog-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.catalog-toolbar__btn img {
  width: 18px;
  height: 18px;
}

.product-grid--catalog {
  /* Catalog Figma cards are 251px; up to 6 cols on wide screens */
  grid-template-columns: repeat(
    auto-fill,
    minmax(
      max(
        var(--product-card-min-catalog),
        calc((100% - (5 * var(--product-grid-gap))) / 6)
      ),
      1fr
    )
  );
  gap: var(--product-grid-gap);
}

/* Product carousels: viewed / related */
.product-slider {
  padding-block: 40px;
  overflow: hidden;
}

.product-slider__inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-slider__head .display {
  margin: 0;
  font-size: 32px;
}

.product-slider__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.product-slider__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .product-slider__nav button {
  background: rgba(255, 255, 255, 0.08);
}

.product-slider__nav button:hover {
  background: color-mix(in srgb, var(--primary) 16%, #f5f5f5);
  transform: scale(1.04);
}

.product-slider__nav button img {
  width: 24px;
  height: 24px;
  opacity: 0.45;
}

/* dark: глобальний invert(chevron) + світлий hover → стрілка зникає; знімаємо invert на hover */
[data-theme="dark"] .product-slider__nav button img {
  opacity: 0.7;
}

[data-theme="dark"] .product-slider__nav button:hover img {
  filter: none;
  opacity: 0.75;
}

.product-slider__nav button:first-child img {
  transform: rotate(90deg);
}

.product-slider__nav button:last-child img {
  transform: rotate(-90deg);
}

.product-slider__scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: 0;
  padding-inline: 0;
  touch-action: pan-x;
}

.product-slider__scroller::-webkit-scrollbar {
  display: none;
}

.product-slider__track {
  display: flex;
  gap: var(--product-grid-gap);
  width: max-content;
  padding-bottom: 2px;
}

.product-slider__track .product-card {
  flex: 0 0 var(--product-card-min-catalog);
  width: var(--product-card-min-catalog);
  max-width: var(--product-card-min-catalog);
  scroll-snap-align: start;
}

.catalog-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}

.catalog-more__btn {
  min-height: 40px;
  font-size: 16px;
  justify-content: center;
  min-width: 180px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.catalog-pagination a,
.catalog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}

.catalog-pagination a.is-active {
  background: var(--primary);
  color: #fff;
}

.catalog-pagination__next img {
  transform: rotate(-90deg);
  opacity: 0.5;
}

.catalog-viewed.product-slider {
  padding-block: 40px;
}

.catalog-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.catalog-drawer[hidden] {
  display: none;
}

.catalog-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.catalog-drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f3f3f3;
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

[data-theme="dark"] .catalog-drawer__panel {
  background: #121212;
}

.catalog-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid #e5e5e5;
}

[data-theme="dark"] .catalog-drawer__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.catalog-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.catalog-drawer__close {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.catalog-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  padding-bottom: 8px;
}

.catalog-drawer__chosen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.catalog-drawer__count {
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
}

[data-theme="dark"] .catalog-drawer__count {
  color: rgba(255, 255, 255, 0.5);
}

.catalog-filters--drawer {
  background: var(--bg);
  border-radius: 0;
  padding: 12px;
  gap: 20px;
}

.catalog-drawer__foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .catalog-drawer__foot {
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.catalog-drawer__apply {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-pill);
}

body.is-catalog-filters-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .catalog {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-shortcuts {
    padding: 12px 12px 0;
  }

  .catalog-shortcuts__track {
    gap: 10px;
  }

  .catalog-shortcut {
    min-height: 28px;
    padding: 5px 8px;
    gap: 8px;
    font-size: 14px;
  }

  .catalog-shortcut img {
    width: 18px;
    height: 18px;
  }

  .catalog {
    display: block;
    padding: 16px 12px 40px;
  }

  .catalog-main {
    gap: 16px;
  }

  .catalog-main__title {
    font-size: 22px;
  }

  .catalog-chips {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .catalog-chips::-webkit-scrollbar {
    display: none;
  }

  .catalog-chip {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 7px 8px;
    font-size: 14px;
  }

  .catalog-toolbar {
    gap: 12px;
  }

  .catalog-toolbar.mobile-only {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-toolbar.mobile-only .catalog-toolbar__btn,
  .catalog-toolbar.mobile-only .catalog-sort {
    width: 100%;
    min-width: 0;
  }

  .catalog-sort {
    display: flex;
  }

  .catalog-sort select {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  .product-grid--catalog {
    /* Match homepage mobile: 2 columns */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-slider {
    padding-block: 28px;
  }

  .product-slider__inner {
    width: min(100% - 24px, var(--container));
    padding-inline: 0;
    gap: 16px;
  }

  .product-slider__head .display {
    font-size: 22px;
  }

  .product-slider__scroller {
    margin-inline: 0;
    padding-inline: 0;
  }

  .product-slider__track {
    gap: 12px;
  }

  .product-slider__track .product-card {
    flex-basis: min(220px, 72vw);
    width: min(220px, 72vw);
    max-width: min(220px, 72vw);
  }

  .page-catalog .seo-block .container {
    width: min(100% - 24px, var(--container));
  }
}

/* ========== Product page (PDP) ========== */
.pdp-back {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 8px 12px 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pdp-back img {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  opacity: 0.6;
}

.pdp {
  padding: 24px 0 40px;
}

.pdp__title {
  margin: 16px 0 28px;
  font-size: 32px;
  line-height: 1.2;
  max-width: 1200px;
}

.pdp-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 591px);
  gap: 28px;
  align-items: start;
}

.pdp-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.pdp-gallery.pdp-gallery--without-thumbs {
  grid-template-columns: minmax(0, 1fr);
}

.pdp-gallery__thumbs {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 82px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.pdp-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.pdp-gallery__thumb {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] .pdp-gallery__thumb {
  border-color: rgba(255, 255, 255, 0.12);
}

.pdp-gallery__thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pdp-gallery__thumb:hover {
  transform: translateY(-1px);
}

.pdp-gallery__thumb img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 2px;
}

.pdp-gallery__stage {
  position: relative;
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
}

.pdp-gallery--without-thumbs .pdp-gallery__stage {
  grid-column: 1;
}

.pdp-gallery__main {
  margin: 0;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

[data-theme="dark"] .pdp-gallery__main {
  background: #101010;
}

.pdp-gallery__open {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.pdp-gallery__viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.pdp-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdp-gallery__track.is-dragging {
  transition: none;
}

.pdp-gallery__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.pdp-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.pdp-gallery__stage:hover .pdp-gallery__nav,
.pdp-gallery__nav:focus-visible {
  opacity: 1;
}

.pdp-gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.pdp-gallery__nav--prev {
  left: 12px;
}

.pdp-gallery__nav--next {
  right: 12px;
}

.pdp-gallery__nav img {
  width: 24px;
  height: 24px;
  opacity: 0.55;
}

.pdp-gallery__nav--prev img {
  transform: rotate(90deg);
}

.pdp-gallery__nav--next img {
  transform: rotate(-90deg);
}

.pdp-gallery__dots {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.pdp-gallery__dots::-webkit-scrollbar {
  display: none;
}

.pdp-gallery__dots button {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.pdp-gallery__dots button.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

/* ========== PDP lightbox ========== */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pdp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pdp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.82);
  backdrop-filter: blur(8px);
}

.pdp-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  height: min(86dvh, 900px);
  display: grid;
  place-items: center;
}

.pdp-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pdp-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

.pdp-lightbox__close img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.pdp-lightbox__stage {
  width: min(100%, 920px);
  height: min(72dvh, 780px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pdp-lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1;
  transform: scale(1) translateX(0);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdp-lightbox__stage img.is-leave-next {
  opacity: 0;
  transform: scale(0.98) translateX(-28px);
}

.pdp-lightbox__stage img.is-leave-prev {
  opacity: 0;
  transform: scale(0.98) translateX(28px);
}

.pdp-lightbox__stage img.is-enter-next {
  opacity: 0;
  transform: scale(0.98) translateX(28px);
}

.pdp-lightbox__stage img.is-enter-prev {
  opacity: 0;
  transform: scale(0.98) translateX(-28px);
}

.pdp-lightbox.is-open .pdp-lightbox__stage img.is-enter-next,
.pdp-lightbox.is-open .pdp-lightbox__stage img.is-enter-prev {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.pdp-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pdp-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.pdp-lightbox__nav--prev {
  left: 0;
}

.pdp-lightbox__nav--next {
  right: 0;
}

.pdp-lightbox__nav img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.pdp-lightbox__nav--prev img {
  transform: rotate(90deg);
}

.pdp-lightbox__nav--next img {
  transform: rotate(-90deg);
}

.pdp-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .pdp-gallery__track,
  .pdp-gallery__dots button,
  .pdp-gallery__thumb,
  .pdp-lightbox,
  .pdp-lightbox__stage img,
  .pdp-lightbox__nav,
  .pdp-lightbox__close {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .pdp-lightbox {
    padding: 8px;
  }

  .pdp-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .pdp-lightbox__nav--prev {
    left: 4px;
  }

  .pdp-lightbox__nav--next {
    right: 4px;
  }

  .pdp-lightbox__close {
    top: 4px;
    right: 4px;
  }

  .pdp-lightbox__stage {
    height: min(68dvh, 640px);
    width: min(100%, 100vw - 72px);
  }

  .pdp-gallery__nav {
    opacity: 1;
  }
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-info__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdp-sku {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.pdp-sku span {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pdp-sku span {
  color: rgba(255, 255, 255, 0.5);
}

.pdp-info__prices-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdp-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  line-height: 1.2;
}

.pdp-price strong {
  font-size: 28px;
  font-weight: 700;
}

.pdp-price--drop {
  color: var(--primary);
}

.pdp-actions-inline {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdp-qty {
  display: inline-flex;
  align-items: stretch;
}

.pdp-qty button,
.pdp-qty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .pdp-qty button,
[data-theme="dark"] .pdp-qty span,
[data-theme="dark"] .pdp-wish {
  border-color: rgba(255, 255, 255, 0.12);
}

.pdp-qty button {
  cursor: pointer;
  padding: 0;
}

.pdp-qty button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.pdp-qty button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pdp-qty span {
  border-left: 0;
  border-right: 0;
  font-size: 16px;
  font-weight: 600;
}

.pdp-qty img,
.pdp-wish img {
  width: 24px;
  height: 24px;
}

/* img SVG з currentColor як <img> лишається чорним — інвертуємо в dark */
[data-theme="dark"] .pdp-qty img,
[data-theme="dark"] .pdp-wish:not(.is-fav) img {
  filter: invert(1);
}

.pdp-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}

.pdp-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pdp-ctas .btn {
  flex: 0 0 auto;
  width: 285px;
  max-width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  justify-content: space-between;
}

.pdp-ctas .btn img {
  width: 22px;
  height: 22px;
}

.pdp-ctas__buy {
  color: #111;
}

.pdp-ctas__buy:hover,
.pdp-ctas__buy:focus-visible {
  color: #111;
}

.pdp-ctas__landing {
  border-color: var(--primary);
  color: var(--text);
}

.pdp-block-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.pdp-pay,
.pdp-delivery {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pdp-pay,
[data-theme="dark"] .pdp-delivery {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.pdp-pay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-pay__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  font-size: 14px;
  line-height: 1.2;
}

.pdp-pay__list img {
  width: auto;
  height: 24px;
  max-width: 45px;
  object-fit: contain;
}

.pdp-delivery__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-delivery__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.2;
}

.pdp-delivery__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdp-delivery__label img {
  width: 24px;
  height: 24px;
}

.pdp-desc {
  padding-top: 0;
}

.pdp-desc__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.pdp-desc__card .display {
  margin: 0;
  font-size: 32px;
  overflow-wrap: anywhere;
}

.pdp-desc__card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.pdp-desc__text p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.5;
}

.pdp-desc__text p:last-child {
  margin-bottom: 0;
}

.pdp-desc__text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* CMS: span+img в одному інлайні роздуває картку (Safari) */
.pdp-desc__text span,
.pdp-desc__text strong,
.pdp-desc__text b {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.pdp-desc__text h1,
.pdp-desc__text h2,
.pdp-desc__text h3,
.pdp-desc__text h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pdp-desc__text h1 {
  font-size: 22px;
}

.pdp-desc__text h2 {
  font-size: 20px;
}

.pdp-desc__text h3,
.pdp-desc__text h4 {
  font-size: 18px;
}

.pdp-desc__text img,
.pdp-desc__text video,
.pdp-desc__text iframe,
.pdp-desc__text table,
.pdp-desc__text pre {
  display: block;
  max-width: 100% !important;
  height: auto;
}

.pdp-desc__text table {
  display: block;
  overflow-x: auto;
}

.pdp-desc__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.page-product .pdp-related.product-slider {
  padding-block: 20px 12px;
}

.page-product .catalog-viewed.product-slider {
  padding-block: 12px 40px;
}

@media (max-width: 1100px) {
  .pdp-buy {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    gap: 20px;
  }

  .pdp-gallery {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .pdp-buy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pdp-back.mobile-only {
    display: inline-flex;
  }

  .pdp {
    padding: 12px 0 28px;
  }

  .pdp__title {
    margin: 12px 0 16px;
    font-size: 22px;
  }

  .pdp-gallery {
    display: block;
  }

  .pdp-gallery__dots.mobile-only {
    display: flex;
  }

  .pdp-info__meta .stock {
    width: auto;
    height: auto;
    gap: 8px;
  }

  .pdp-info__meta .stock__text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .pdp-info__prices-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pdp-actions-inline {
    justify-content: space-between;
  }

  .pdp-qty button,
  .pdp-qty span,
  .pdp-wish {
    width: 48px;
    height: 48px;
  }

  .pdp-price strong {
    font-size: 24px;
  }

  .pdp-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .pdp-ctas .btn {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 8px 20px;
    font-size: 15px;
  }

  .pdp-ctas .btn img {
    width: 18px;
    height: 18px;
  }

  .pdp-desc__card {
    padding: 20px 16px;
    gap: 16px;
  }

  .pdp-desc__card .display {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .pdp-desc__card h3 {
    font-size: 18px;
  }

  .pdp-desc__text * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .pdp-desc__text span,
  .pdp-desc__text strong,
  .pdp-desc__text b {
    display: block;
    width: 100%;
  }

  .pdp-delivery__list li {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .pdp-delivery__label,
  .pdp-delivery__list li > span {
    min-width: 0;
  }
}

/* ========== Cart modal ========== */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.cart-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cart-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 794px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 28px 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
  scrollbar-width: thin;
}

.cart-modal.is-open .cart-modal__dialog {
  transform: translateY(0) scale(1);
}

.cart-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.cart-modal__close img {
  width: 24px;
  height: 24px;
  opacity: 0.55;
}

.cart-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  padding-right: 28px;
}

.cart-modal__main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cart-modal__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-modal__empty {
  margin: 0;
  padding: 12px 0 4px;
  font-size: 16px;
  color: var(--muted, rgba(0, 0, 0, 0.55));
}

.cart-item {
  display: grid;
  grid-template-columns: 16px 74px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.cart-item__remove {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.cart-item__remove img {
  width: 16px;
  height: 16px;
  opacity: 0.45;
}

.cart-item__thumb {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.cart-item__thumb img {
  width: 74px;
  height: 74px;
  object-fit: cover;
}

.cart-item__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__title a {
  color: inherit;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.cart-qty {
  display: inline-flex;
  align-items: stretch;
}

.cart-qty button,
.cart-qty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .cart-qty button,
[data-theme="dark"] .cart-qty span {
  border-color: rgba(255, 255, 255, 0.12);
}

.cart-qty button {
  padding: 0;
  cursor: pointer;
}

.cart-qty button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.cart-qty button:first-child {
  border-radius: 4px 0 0 4px;
}

.cart-qty button:last-child {
  border-radius: 0 4px 4px 0;
}

.cart-qty span {
  border-left: 0;
  border-right: 0;
  font-size: 16px;
  font-weight: 600;
}

.cart-qty img {
  width: 24px;
  height: 24px;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.cart-modal__continue {
  min-height: 56px;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  padding-inline: 16px;
  flex-shrink: 1;
  white-space: nowrap;
}

.cart-modal__checkout {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.cart-modal__total {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-modal__total strong {
  font-size: 20px;
  font-weight: 700;
}

.cart-modal__checkout .btn {
  min-height: 56px;
  min-width: 0;
  padding-inline: 20px;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  white-space: nowrap;
}

.cart-recs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-recs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-recs__head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.cart-recs__nav {
  display: flex;
  gap: 12px;
}

.cart-recs__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
}

[data-theme="dark"] .cart-recs__nav button {
  background: rgba(255, 255, 255, 0.08);
}

.cart-recs__nav button img {
  width: 24px;
  height: 24px;
  opacity: 0.45;
}

.cart-recs__nav button:first-child img {
  transform: rotate(90deg);
}

.cart-recs__nav button:last-child img {
  transform: rotate(-90deg);
}

.cart-recs__track {
  display: flex;
  gap: 12.5px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cart-recs__track::-webkit-scrollbar {
  display: none;
}

.cart-rec {
  flex: 0 0 169px;
  width: 169px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
}

[data-theme="dark"] .cart-rec {
  background: rgba(255, 255, 255, 0.06);
}

.cart-rec__media {
  display: block;
  aspect-ratio: 1;
  background: #fff;
}

.cart-rec__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-rec__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.cart-rec__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.cart-rec__title a {
  color: inherit;
}

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

.cart-rec__prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.cart-rec__prices strong {
  font-weight: 700;
  font-size: 16px;
}

.cart-rec__prices .drop {
  color: var(--primary);
}

.cart-rec__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.cart-rec__add img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .cart-modal {
    padding: 0;
    place-items: end stretch;
  }

  .cart-modal__dialog {
    width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 24px;
  }

  .cart-modal__title {
    font-size: 24px;
  }

  .cart-item {
    grid-template-columns: 16px 64px minmax(0, 1fr);
    grid-template-areas:
      "remove thumb title"
      "remove thumb controls";
    gap: 12px 10px;
    align-items: start;
  }

  .cart-item__remove { grid-area: remove; margin-top: 24px; }
  .cart-item__thumb { grid-area: thumb; width: 64px; height: 64px; }
  .cart-item__thumb img { width: 64px; height: 64px; }
  .cart-item__title { grid-area: title; font-size: 14px; }
  .cart-item__controls {
    grid-area: controls;
    justify-content: space-between;
    width: 100%;
  }

  .cart-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-modal__checkout {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-modal__checkout .btn,
  .cart-modal__continue {
    width: 100%;
    min-width: 0;
  }

  .cart-modal__total {
    text-align: center;
  }

  .cart-recs__head h3 {
    font-size: 18px;
  }
}

/* Livewire top progress (як у старій темі) */
.progressbar {
  display: block;
  width: 100%;
  background-color: var(--bg-muted, #f3f3f3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10000;
  pointer-events: none;
}
.progressbar[hidden] {
  display: none !important;
}
.progressbar .progress {
  background-color: var(--primary, #70b535);
  height: 4px;
  width: 100%;
  animation: od-progress 1.2s linear infinite;
  position: absolute;
}
@keyframes od-progress {
  0% { left: -100%; }
  100% { left: 100%; }
}

.pdp-reviews {
  padding-top: 0;
}

.pdp-reviews [x-cloak] {
  display: none !important;
}

.pdp-reviews__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.pdp-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pdp-reviews__head .display {
  margin: 0;
  font-size: 32px;
}

.pdp-reviews__add {
  min-width: 196px;
  min-height: 48px;
  padding: 12px 16px;
  justify-content: space-between;
  flex-shrink: 0;
  font-size: 16px;
  white-space: nowrap;
}

.pdp-reviews__add img {
  width: 20px;
  height: 20px;
}

.pdp-reviews__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pdp-review-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.pdp-review-card__head,
.pdp-review-card__person {
  display: flex;
  align-items: center;
}

.pdp-review-card__head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pdp-review-card__person {
  min-width: 0;
  gap: 12px;
}

.pdp-review-card__person > div {
  min-width: 0;
}

.pdp-review-card__person strong,
.pdp-review-card__person time {
  display: block;
}

.pdp-review-card__person strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-review-card__person time {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.2;
}

.pdp-review-card__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.pdp-review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 14px;
}

.pdp-review-card__rating img {
  width: 18px;
  height: 18px;
}

.pdp-review-card__text {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pdp-reviews__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

.pdp-reviews__more {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pdp-reviews__more:hover {
  opacity: 0.85;
}

.product-review-modal__dialog {
  width: min(100%, 640px);
  max-width: calc(100vw - 32px);
  padding: 28px 32px;
}

.product-review-form__rating {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-review-form__rating legend {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.product-review-form__stars {
  display: flex;
  gap: 4px;
}

.product-review-form__star {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.product-review-form__star:hover,
.product-review-form__star:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  outline: none;
}

.product-review-form__star svg {
  width: 28px;
  height: 26px;
}

.product-review-form__star svg path {
  fill: var(--border-strong);
  transition: fill 0.15s ease;
}

.product-review-form__star.is-active svg path {
  fill: var(--primary);
}

.product-review-form__control--textarea {
  align-items: stretch;
  padding-block: 10px;
}

.product-review-form__control textarea {
  width: 100%;
  min-height: 104px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.product-review-form__control textarea::placeholder {
  color: var(--text-muted);
}

.product-review-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-review-form__recommend {
  width: fit-content;
}

.product-review-form__submit {
  width: 100%;
  max-width: none;
  min-height: 56px;
  justify-content: space-between;
  font-size: 18px;
}

.product-review-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pdp-review-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 140;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 900px) {
  .pdp-reviews__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pdp-reviews__panel {
    gap: 20px;
    padding: 20px 16px;
  }

  .pdp-reviews__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdp-reviews__head .display {
    font-size: 22px;
  }

  .pdp-reviews__add {
    width: 100%;
  }

  .pdp-review-card {
    padding: 16px;
  }

  .product-review-modal__dialog {
    width: min(100%, calc(100vw - 24px));
    max-width: none;
    padding: 20px 16px;
  }

  .product-review-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
