:root {
  --max: 1280px;
  --bg: #f3f1ec;
  --surface: #fbfaf7;
  --text: #2f2d2a;
  --muted: #7d7972;
  --line: #d8d4cc;
  --line-soft: #e8e4dc;
  --line-card: #d2cec6;
  --fill: #e9e6df;
  --fill-hover: #efece6;
  --fill-active: #ddd8cf;
  --media: #ece9e3;
  --danger: #b45c56;
  --btn: #4a4742;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 12px 32px rgba(47, 45, 42, 0.06);
  --site-header-h: 64px;
  --font: 'Inter', system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--site-header-h) + 16px);
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--site-header-h);
}

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

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  opacity: 1;
}

.wrap {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  min-height: calc(100dvh - var(--site-header-h));
  display: flex;
  flex-direction: column;
}

.wrap > main {
  flex: 1 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--site-header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 2px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  opacity: 1;
  background: var(--fill-hover);
}

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

.nav-link,
.nav-cta {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  opacity: 1;
  background: var(--fill-hover);
}

.nav-link.is-active,
.nav-link.is-active:hover {
  background: var(--fill);
}

.nav-cart {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-cart.has-items {
  display: inline-flex;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-cart.has-items:hover {
  background: var(--fill-hover);
}

.nav-cart.has-items.is-active,
.nav-cart.has-items.is-active:hover {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--surface);
}

.nav-cart__count {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--btn);
  color: var(--surface);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.nav-cart.has-items .nav-cart__count:not(:empty) {
  display: inline-block;
}

.nav-cart.has-items.is-active .nav-cart__count {
  background: var(--surface);
  color: var(--btn);
}

.nav-cta {
  margin-left: 4px;
  border: 1px solid var(--line);
  padding: 7px 12px;
}

.nav-cta:hover {
  opacity: 1;
  background: var(--fill);
  color: var(--text);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.nav-burger:hover {
  background: var(--fill);
}

.nav-burger span {
  display: block;
  height: 1px;
  background: var(--text);
}

.nav.is-open .nav-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-burger span {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  opacity: 1;
  background: var(--fill);
  color: var(--text);
}

.btn--primary {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--surface);
}

.btn--primary:hover {
  background: #3c3a36;
  border-color: #3c3a36;
  color: var(--surface);
}

.btn--ghost,
.btn--secondary,
.btn--soft {
  background: var(--bg);
  color: var(--text);
}

.btn--lg {
  padding: 12px 22px;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.home {
  padding: 0 0 72px;
}

.home .hero {
  padding: 56px 0 40px;
}

.home .home-section {
  padding: 36px 0 0;
  border-bottom: 0;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 18ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-desc {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Sections */
.home-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line-soft);
}

.home-more {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 28px 0 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker {
  display: none;
}

.section-head h2,
.page-header__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head p,
.page-header__lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 80ch;
}

.section-head__link {
  padding: 4px 8px;
  margin-right: -8px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.section-head__link:hover {
  background: var(--fill-hover);
}

/* Page */
.page {
  padding: 32px 0 72px;
}

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

.page-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.page-crumbs a {
  color: var(--muted);
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 2px;
}

.page-crumbs a:hover {
  color: var(--text);
  background: var(--fill-hover);
}

.page-crumbs__current {
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 2px;
  background: var(--fill);
  color: var(--text);
}

.page-back {
  display: inline-flex;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
}

.page-back:hover {
  background: var(--fill-hover);
}

/* Filters */
.shop-filters-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.shop-filters-group {
  min-width: 0;
}

.shop-filters__caption {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
}

.shop-filters__chip {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border-right: 1px solid var(--line);
}

.shop-filters__chip:last-child {
  border-right: none;
}

.shop-filters__chip:hover,
.shop-filters__chip.is-active {
  opacity: 1;
  background: var(--fill);
  color: var(--text);
}

.shop-catalog {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.shop-catalog__aside {
  position: sticky;
  top: calc(var(--site-header-h) + 16px);
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-sidebar__group {
  display: block;
  width: 100%;
}

.shop-sidebar__summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
  cursor: default;
}

.shop-sidebar__summary::-webkit-details-marker,
.shop-sidebar__summary::marker {
  display: none;
  content: none;
}

.shop-sidebar__sep,
.shop-sidebar__current {
  display: none;
}

.shop-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

@media (min-width: 901px) {
  .shop-sidebar__group {
    padding: 16px 14px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .shop-sidebar__summary {
    pointer-events: none;
  }

  .shop-sidebar__group::details-content {
    display: block;
    content-visibility: visible;
    height: auto;
    overflow: visible;
  }

  .shop-sidebar__group > .shop-sidebar__list {
    display: flex !important;
  }
}

.shop-sidebar__group .shop-filters__caption {
  margin: 0;
  padding: 0;
}

.shop-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 8px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text);
  border-radius: 2px;
}

.shop-sidebar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--muted);
}

.shop-sidebar__link:hover {
  opacity: 1;
  background: var(--fill-hover);
}

.shop-sidebar__link.is-active,
.shop-sidebar__link.is-active:hover {
  opacity: 1;
  background: var(--fill);
  color: var(--text);
  font-weight: 600;
}

.shop-sidebar__link.is-active .shop-sidebar__count {
  background: var(--surface);
  color: var(--text);
}

.shop-catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 18px;
}

.shop-catalog__head .page-header {
  flex: 1;
  min-width: 0;
}

.shop-catalog__head .page-header__title {
  font-size: 1.25rem;
}

.shop-catalog__head .shop-sort {
  flex-shrink: 0;
}

.shop-sort select {
  appearance: none;
  min-width: 0;
  max-width: 100%;
  padding: 7px 28px 7px 10px;
  border: 1px solid transparent;
  background-color: var(--fill);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 1px),
    calc(100% - 11px) calc(50% - 1px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.shop-sort select:hover {
  background-color: var(--fill-hover);
}

.shop-sort select:focus {
  outline: none;
  background-color: var(--fill);
}

/* Shop grid */
.shop-grid,
.shop-grid--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-card);
  border-left: 1px solid var(--line-card);
}

.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--bg);
  border-right: 1px solid var(--line-card);
  border-bottom: 1px solid var(--line-card);
}

.shop-card:hover {
  background: var(--fill-hover);
}

.shop-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: #f7f7f7;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.shop-card__media img,
.shop-card__gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shop-card__media--png {
  background: #f7f7f7;
}

.shop-card__media--png img {
  object-fit: cover;
}

.shop-card__gallery {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
}

.shop-card__media-link {
  display: block;
  color: inherit;
}

.shop-card__thumbs {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  background: transparent;
  pointer-events: auto;
}

.shop-card__thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}

.shop-card__thumb.is-active {
  border-color: var(--line);
  outline: 2px solid var(--fill);
}

.shop-card__thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.shop-card__thumb--png {
  background: #f7f7f7;
}

.shop-card__thumb--png img {
  object-fit: cover;
}

.shop-card__media-link:hover {
  opacity: 1;
}

.shop-photos-badge,
.shop-card__photos-badge {
  position: absolute;
  top: auto;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg);
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: 0 0 var(--radius) var(--radius);
}

.shop-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.shop-card__title {
  margin: 0;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.shop-card__title a {
  color: inherit;
}

.shop-card__sku {
  margin: 0;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.shop-product-page__sku {
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.shop-card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.shop-card__price-old {
  color: var(--muted);
  font-weight: 400;
}

.shop-card__price-sale,
.shop-sizes__price-sale {
  color: var(--text);
}

.shop-card__discount {
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  padding: 1px 6px;
}

.shop-card__sizes {
  margin: 8px 0 0;
}

.shop-card__sizes-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-sizes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-sizes--card .shop-sizes__item,
.shop-sizes--product .shop-sizes__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.shop-sizes__item--custom {
  grid-template-columns: minmax(0, 1fr);
  color: var(--muted);
  font-weight: 400;
}

.shop-sizes--card .shop-sizes__item[hidden],
.shop-sizes--product .shop-sizes__item[hidden] {
  display: none !important;
}

.shop-sizes--card .shop-sizes__item:last-child,
.shop-sizes--product .shop-sizes__item:last-child {
  border-bottom: none;
}

.shop-sizes__item--toggle {
  display: block;
  grid-template-columns: none;
  padding-top: 6px;
  border-bottom: none;
}

.shop-sizes-more__btn {
  padding: 4px 8px;
  margin-left: -8px;
  border: none;
  border-radius: 2px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.shop-sizes-more__btn:hover {
  background: var(--fill-hover);
}

.shop-sizes__custom-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.shop-hint {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.shop-hint:hover,
.shop-hint:focus-within,
.shop-hint.is-open {
  z-index: 12;
}

.shop-hint__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.shop-hint__btn:hover,
.shop-hint.is-open .shop-hint__btn,
.shop-hint:focus-within .shop-hint__btn {
  background: var(--fill);
  color: var(--text);
}

.shop-hint__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 12;
  width: max-content;
  max-width: min(168px, 68vw);
  padding: 6px 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 6px 16px rgba(47, 45, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(3px);
}

.shop-hint__tip::before,
.shop-hint__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 5px;
  border: 4px solid transparent;
  border-top-color: var(--line);
}

.shop-hint__tip::after {
  top: calc(100% - 1px);
  border-width: 4px;
  border-top-color: var(--surface);
}

.shop-hint:hover .shop-hint__tip,
.shop-hint:focus-within .shop-hint__tip,
.shop-hint.is-open .shop-hint__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shop-card__actions {
  display: flex;
  margin-top: auto;
  padding-top: 10px;
}

.shop-empty {
  color: var(--muted);
  font-size: 14px;
}

.shop-empty a {
  padding: 2px 6px;
  margin: 0 -2px;
  border-radius: 2px;
}

.shop-empty a:hover {
  background: var(--fill-hover);
  color: var(--text);
}

/* Product */
.shop-product-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.shop-product-page__layout.is-gallery-expanded {
  grid-template-columns: 1fr;
}

.shop-product-page__media {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-width: 0;
  min-height: 0;
}

.shop-product-page__media .shop-slider,
.shop-product-page__media .shop-slider__stage {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.shop-product-page__media .shop-slider__viewport {
  flex: 1 1 auto;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.shop-product-page__layout.is-gallery-expanded .shop-product-page__media {
  border-right: none;
  border-bottom: 1px solid var(--line);
}

.shop-product-page__layout.is-gallery-expanded .shop-product-page__media .shop-slider__viewport {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}

.shop-product-page__info {
  padding: 28px;
}

.shop-product-page__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.shop-product-page__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.shop-product-page__styles {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.shop-product-page__styles a {
  color: var(--muted);
}

.shop-product-page__styles a:hover {
  color: var(--text);
}

.shop-product-page__styles-sep {
  margin: 0 6px;
}

.shop-product-page__price {
  margin: 14px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 1.15rem;
  font-weight: 500;
}

.shop-product-page__desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.shop-product-page__desc p {
  margin: 0;
}

.shop-product-page__desc p + p {
  margin-top: 8px;
}

.shop-product-page__desc p > br:last-child,
.shop-product-page__desc li > br:last-child {
  display: none;
}

.shop-product-page__desc ul,
.shop-product-page__desc ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.shop-product-page__desc li + li {
  margin-top: 4px;
}

.shop-product-page__desc strong {
  color: var(--text);
  font-weight: 500;
}

.shop-card__sizes--product {
  margin: 0 0 20px;
}

.shop-product-options {
  margin: 0 0 20px;
}

.shop-product-options__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-product-options__notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.shop-product-options.is-attention .shop-diameter,
.shop-product-options.is-attention .shop-product-options__custom {
  animation: shop-size-pulse 0.5s ease 3;
}

@keyframes shop-size-pulse {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  50% {
    border-color: var(--btn);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 22%, transparent);
  }
}

.shop-diameter {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.shop-diameter__item {
  margin: 0;
  border-top: 1px solid var(--line);
}

.shop-diameter__item:first-child {
  border-top: none;
}

.shop-diameter__btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: none;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shop-diameter__btn:hover {
  background: var(--fill-hover);
}

.shop-diameter__btn.is-selected {
  background: var(--fill-active);
  color: var(--text);
  font-weight: 600;
}

.shop-diameter__size {
  font-size: 14px;
  font-weight: 500;
}

.shop-diameter__price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.shop-diameter__price-old {
  font-weight: 400;
  opacity: 0.55;
}

.shop-product-options__custom {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shop-product-options__custom:hover {
  background: var(--fill-hover);
  color: var(--text);
}

.shop-product-options__custom.is-selected {
  background: var(--fill-active);
  color: var(--text);
}

.shop-product-options__custom-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.shop-product-options__custom-text {
  display: block;
  margin-top: 4px;
  min-height: 2.6em;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.65;
}

.shop-slider__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f7f7f7;
}

.shop-slider__viewport--expandable {
  cursor: zoom-in;
}

.shop-slider.is-expanded .shop-slider__viewport {
  aspect-ratio: auto;
  width: 100%;
  cursor: zoom-out;
}

.shop-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.shop-slider__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  margin: 0;
}

.shop-slider__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.shop-slider__slide--png img {
  object-fit: cover;
  padding: 0;
}

.shop-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.shop-slider__nav--prev { left: 10px; }
.shop-slider__nav--next { right: 10px; }

.shop-slider__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.shop-slider__close[hidden] {
  display: none;
}

.shop-slider__thumbs {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-slider__thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #fff;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}

.shop-slider__thumb.is-active {
  border-color: var(--line);
  outline: 2px solid var(--fill);
}

.shop-slider__thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.shop-slider__thumb--png {
  background: #f7f7f7;
}

.shop-slider__thumb--png img {
  object-fit: cover;
}

.shop-slider__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg);
}

.shop-product-page__buy {
  scroll-margin-top: calc(var(--site-header-h) + 16px);
}

.shop-buy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.shop-buy__fields {
  margin-bottom: 12px;
  min-height: 4.75rem;
}

.shop-buy__field--qty.is-reserved {
  visibility: hidden;
  pointer-events: none;
}

.shop-buy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.shop-buy__add {
  width: 100%;
}

.shop-buy__status {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.shop-buy__status-link {
  padding: 2px 6px;
  margin: 0 -4px;
  border-radius: 2px;
  font-weight: 500;
}

.shop-buy__status-link:hover {
  background: var(--fill-hover);
}

.shop-buy__status.is-success { color: var(--text); }
.shop-buy__status.is-error { color: var(--danger); }

.shop-bundle {
  flex: 0 0 auto;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--fill);
}

.shop-bundle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}

.shop-bundle__title {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-bundle__save {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--text);
  color: var(--bg);
}

.shop-bundle__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 0 8px;
  align-items: stretch;
}

.shop-bundle__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.shop-bundle__plus {
  display: grid;
  place-items: center;
  align-self: center;
  width: 32px;
  height: 32px;
  margin: 0;
  background: #4a4a4a;
  color: #fff;
  pointer-events: none;
}

.shop-bundle__plus svg {
  display: block;
  width: 16px;
  height: 16px;
}

.shop-bundle__thumb {
  flex: 0 0 44px;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-card);
  overflow: hidden;
  background: var(--bg);
}

.shop-bundle__thumb--png {
  background: #f7f7f7;
}

.shop-bundle__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-bundle__meta {
  min-width: 0;
}

.shop-bundle__item-title {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.shop-bundle__item-title:hover {
  background: var(--fill-hover);
}

.shop-bundle__item-price {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  font-size: 11px;
  font-weight: 500;
}

.shop-bundle__item-price .shop-card__price-old,
.shop-bundle__item-price .shop-card__price-sale {
  font-size: 11px;
  font-weight: 500;
}

.shop-bundle__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.shop-bundle__add {
  width: auto;
}

.shop-bundle__status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.shop-bundle__status.is-success { color: var(--text); }
.shop-bundle__status.is-error { color: var(--danger); }

.shop-cart-table__price.is-bundle s {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 400;
}

.shop-checkout__meta s {
  margin-right: 4px;
  color: var(--muted);
}

/* Forms */
.surface {
  background: var(--bg);
  border: 1px solid var(--line);
}

.site-form__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 500;
}

.site-form__lead,
.site-form__hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.site-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 16px;
}

.site-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.site-form__grid .site-form__field {
  margin: 0;
}

.site-form__field input,
.site-form__field select,
.site-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.site-form__field select {
  appearance: none;
  background-image: none;
}

.site-form__field input:focus,
.site-form__field select:focus,
.site-form__field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.site-form__fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  min-width: 0;
}

.site-form__fieldset legend {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.site-form__radios {
  display: grid;
  gap: 8px;
}

.site-form__radio {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
}

.site-form__iban-note {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-form:has([name="payment"][value="iban"]:checked) .site-form__iban-note {
  display: block;
}

.site-form__np {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 16px;
}

.site-form__np .site-form__field {
  margin: 0;
}

.site-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 4px 0 0;
}

.site-form__alt {
  font-size: 13px;
  font-weight: 500;
}

.site-form__field--search {
  position: relative;
}

.site-form__suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  max-height: 240px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.site-form__suggest-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.site-form__suggest-item:last-child {
  border-bottom: 0;
}

.site-form__suggest-item:hover,
.site-form__suggest-item:focus-visible {
  background: var(--fill);
  outline: none;
}

/* Cart / checkout */
.shop-checkout-page__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.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;
}

.shop-cart-page__table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.shop-cart-table th,
.shop-cart-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid var(--line-soft);
}

.shop-cart-table th {
  background: var(--text);
  color: var(--bg);
  border-bottom-color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-cart-table td {
  font-size: 13px;
  color: var(--muted);
}

.shop-cart-table th:nth-child(2),
.shop-cart-table th:nth-child(3),
.shop-cart-table th:nth-child(4),
.shop-cart-table td:nth-child(2),
.shop-cart-table td:nth-child(3),
.shop-cart-table td:nth-child(4) {
  width: 1%;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
}

.shop-cart-table th:nth-child(2),
.shop-cart-table th:nth-child(3),
.shop-cart-table th:nth-child(4) {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.shop-cart-table__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  color: var(--text);
}

.shop-cart-table__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.shop-cart-table__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.shop-cart-item__thumb {
  flex: 0 0 56px;
  width: 56px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #f7f7f7;
}

.shop-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.shop-cart-item__size,
.shop-cart-item__price,
.shop-cart-item__sku,
.shop-checkout__sku {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.shop-cart-item__qty-input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.shop-cart-table__sum {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shop-cart-table th:nth-child(4),
.shop-cart-table td:nth-child(4) {
  text-align: right;
}

.shop-cart-table th:last-child,
.shop-cart-table td:last-child {
  width: 40px;
  padding-left: 4px;
  padding-right: 8px;
}

.shop-cart-table__action {
  width: 40px;
  text-align: right;
}

.shop-cart-item__remove {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.shop-cart-item__remove:hover,
.shop-cart-item__remove:focus-visible {
  background: var(--fill);
  color: var(--text);
  outline: none;
}

.shop-cart-table tbody tr:last-child td {
  border-bottom: 0;
}

.shop-cart-page__summary {
  padding: 16px 16px 18px;
  border-top: 1px solid var(--line-soft);
}

.shop-checkout-page__summary,
.shop-checkout-page__form {
  padding: 24px;
  min-width: 0;
}

.shop-checkout-page__summary {
  border-right: 1px solid var(--line-soft);
}

.shop-checkout-page__form .site-form {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.shop-checkout__summary-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 500;
}

.shop-checkout__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-checkout__line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.shop-checkout__line:first-child {
  padding-top: 0;
}

.shop-checkout__line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.shop-checkout__thumb {
  display: block;
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #f7f7f7;
}

.shop-checkout__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-checkout__thumb--png img {
  object-fit: contain;
  background: #f7f7f7;
}

.shop-checkout__thumb--empty {
  background: #f0f0f0;
}

.shop-checkout__line-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shop-checkout__name {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.shop-checkout__facts,
.shop-checkout__sku,
.shop-checkout__size,
.shop-checkout__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.shop-checkout__line-total {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.shop-checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.95rem;
}

.shop-checkout__total strong {
  font-size: 1.05rem;
  font-weight: 500;
}

.shop-cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.shop-cart-summary__checkout {
  display: flex;
  width: 100%;
  margin-top: 4px;
}

.shop-checkout-success {
  padding: 40px 20px;
  text-align: center;
  border: 1px solid var(--line);
}

.shop-checkout-success__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 500;
}

.shop-checkout-success__text {
  color: var(--muted);
}

.shop-checkout-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 0;
  border: 1px solid var(--line);
}

.contacts-aside {
  padding: 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.contacts-aside a {
  color: var(--text);
  font-weight: 500;
}

.contacts-form {
  padding: 24px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__brand {
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer__brand:hover {
  background: var(--fill-hover);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
}

.site-footer__links a {
  padding: 6px 8px;
  border-radius: 2px;
}

.site-footer__links a:hover {
  background: var(--fill-hover);
}

@media (max-width: 900px) {
  .shop-grid,
  .shop-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-carousel__track {
    --carousel-cols: 2;
  }

  .shop-catalog {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-catalog__aside {
    position: static;
  }

  .shop-sidebar,
  .shop-sidebar--single {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .shop-sidebar__summary {
    align-items: center;
    flex-wrap: nowrap;
    padding: 11px 14px;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .shop-sidebar__summary .shop-filters__caption {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
  }

  .shop-sidebar__sep,
  .shop-sidebar__current {
    display: inline;
    font-size: 14px;
    color: var(--muted);
  }

  .shop-sidebar__summary::after {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: translateY(-2px) rotate(45deg);
  }

  .shop-sidebar__group[open] .shop-sidebar__summary {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .shop-sidebar__group[open] .shop-sidebar__summary::after {
    transform: translateY(1px) rotate(225deg);
  }

  .shop-sidebar__list {
    padding: 4px 6px 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .shop-catalog__head {
    align-items: center;
    gap: 12px;
  }

  .shop-catalog__head .shop-sort select {
    width: auto;
  }

  .shop-product-page__layout,
  .shop-checkout-page__layout,
  .contacts-layout,
  .site-form__grid {
    grid-template-columns: 1fr;
  }

  .shop-product-page__media,
  .shop-checkout-page__summary,
  .contacts-aside {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .nav-burger {
    display: flex;
  }

  .nav__end {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__end {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--line-soft);
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .nav-cta {
    border: none;
    border-top: 1px solid var(--line-soft);
  }

  .nav-cart.has-items,
  .nav-cart.has-items.is-active,
  .nav-cart.has-items.is-active:hover {
    justify-content: flex-start;
    padding: 14px 20px;
    border: none;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    background: none;
    color: inherit;
  }

  .nav-cart.has-items.is-active .nav-cart__count {
    background: var(--btn);
    color: var(--surface);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 40px;
  }

  .shop-grid,
  .shop-grid--home {
    grid-template-columns: 1fr;
  }

  .shop-carousel__track {
    --carousel-cols: 2;
  }
}

/* Custom popups */
body.site-popup-open {
  overflow: hidden;
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.site-popup[hidden] {
  display: none;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.52);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-popup.is-open .site-popup__backdrop {
  opacity: 1;
}

.site-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 28px 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}

.site-popup.is-open .site-popup__dialog {
  transform: none;
  opacity: 1;
}

.site-popup__brand {
  margin: 0 48px 18px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.site-popup__close:hover {
  background: var(--fill);
  color: var(--text);
}

.site-popup__close:focus-visible,
.site-popup__dismiss:focus-visible,
.site-popup__cta:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 2px;
}

.site-popup__title {
  margin: 0 0 10px;
  max-width: 18ch;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.site-popup__text {
  margin: 0 0 24px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-popup__title + .site-popup__actions {
  margin-top: 22px;
}

.site-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-popup__cta,
.site-popup__dismiss {
  min-height: 42px;
  padding: 10px 18px;
}

.site-popup__cta {
  flex: 1 1 160px;
}

.site-popup__cta:hover {
  opacity: 1;
}

.site-popup__dismiss {
  flex: 0 1 auto;
}

.site-popup__dismiss:hover {
  opacity: 1;
}

@media (max-width: 520px) {
  .site-popup {
    align-items: flex-end;
    padding: 0;
  }

  .site-popup__dialog {
    width: 100%;
    padding: 24px 20px 20px;
    transform: translateY(24px);
  }

  .site-popup__cta,
  .site-popup__dismiss {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-popup__backdrop,
  .site-popup__dialog {
    transition: none;
  }
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.form-modal[hidden] {
  display: none !important;
}

body.form-modal-open {
  overflow: hidden;
}

.form-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 28px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.form-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.form-modal .site-form__lead {
  margin: 0 0 18px;
}

.shop-product-page__rating {
  margin: 2px 0 0;
  font-size: 12px;
}

.shop-product-page__rating a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 8px;
  margin: 0 0 0 -8px;
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
}

.shop-product-page__rating a:hover {
  color: var(--text);
  background: var(--fill-hover);
}

.shop-related {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 0;
}

.shop-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.shop-related__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.shop-related__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.shop-related__title .section-head__link {
  margin-right: 0;
}

.shop-carousel__viewport {
  overflow: hidden;
}

.shop-carousel__track {
  --carousel-cols: 4;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-top: 1px solid var(--line-card);
  border-left: 1px solid var(--line-card);
}

.shop-carousel__track::-webkit-scrollbar {
  display: none;
}

.shop-carousel__track > .shop-card {
  flex: 0 0 calc(100% / var(--carousel-cols));
  scroll-snap-align: start;
  height: auto;
}

.shop-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}

.shop-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.shop-carousel__btn:hover:not(:disabled) {
  background: var(--fill-hover);
}

.shop-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.shop-reviews {
  margin-top: -1px;
  padding: 28px;
  border: 1px solid var(--line);
}

.shop-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.shop-reviews__head h2,
.shop-reviews__form h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.shop-reviews__summary {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.shop-reviews__summary--empty,
.shop-reviews__summary span {
  color: var(--muted);
}

.shop-reviews__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.shop-reviews__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.shop-reviews__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.shop-reviews__meta time {
  color: var(--muted);
  font-size: 12px;
}

.shop-reviews__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.shop-reviews__form {
  padding-top: 8px;
}

.shop-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--line-soft);
  letter-spacing: 0;
  line-height: 1;
}

.shop-stars span.is-on {
  color: var(--text);
}

.shop-stars--sm {
  font-size: 12px;
}

.shop-stars-input {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.shop-stars-input legend {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.shop-stars-input__row {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.shop-stars-input__row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shop-stars-input__row label {
  color: var(--line-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.shop-stars-input__row label:hover,
.shop-stars-input__row label:hover ~ label,
.shop-stars-input__row input:checked + label,
.shop-stars-input__row input:checked ~ label,
.shop-stars-input__row input:focus-visible + label {
  color: var(--text);
}

.site-form__status {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-size: 13px;
}

.site-form__status.is-success {
  color: var(--text);
}

.site-form__status.is-error {
  color: var(--danger);
}

.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(12px);
}

.brand,
.nav-link,
.nav-cta,
.nav-burger,
.site-footer__brand,
.site-footer__links a,
.page-crumbs a,
.page-crumbs__current {
  border-radius: var(--radius-sm);
}

.shop-carousel__btn,
.shop-slider__nav,
.shop-slider__close,
.site-popup__close {
  border-radius: var(--radius-sm);
}

.hero {
  border-bottom-color: var(--line-soft);
}

.shop-grid,
.shop-grid--home {
  gap: 16px;
  border: 0;
}

.shop-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shop-card:has(.shop-hint:hover),
.shop-card:has(.shop-hint:focus-within),
.shop-card:has(.shop-hint.is-open) {
  z-index: 5;
}

.shop-card:hover {
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(47, 45, 42, 0.1);
}

.shop-card__media,
.shop-slider__viewport,
.shop-slider__thumb--png,
.shop-bundle__thumb--png {
  background: var(--media);
}

.shop-card__media {
  border-bottom-color: var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0;
}

.shop-card__thumb,
.shop-slider__thumb,
.shop-photos-badge,
.shop-slider__count,
.shop-card__discount,
.shop-bundle__save,
.shop-bundle__plus,
.shop-bundle__item,
.shop-bundle__thumb {
  border-radius: var(--radius-sm);
}

.shop-sidebar__link {
  border-radius: var(--radius-sm);
}

.shop-sidebar__link.is-active,
.shop-sidebar__link.is-active:hover {
  background: var(--fill-active);
}

.shop-catalog__head .shop-sort select {
  border-radius: var(--radius-sm);
  background: var(--fill);
}

.site-form__field input,
.site-form__field select,
.site-form__field textarea,
.shop-buy input,
.shop-cart-item__qty-input {
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.shop-product-page__layout,
.shop-checkout-page__layout,
.contacts-layout,
.surface {
  overflow: hidden;
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shop-product-page__media,
.shop-checkout-page__summary,
.contacts-aside {
  border-color: var(--line-soft);
}

.shop-bundle {
  background: var(--fill);
}

.shop-bundle__item {
  border-color: var(--line-soft);
  background: var(--surface);
}

.shop-related,
.shop-reviews {
  margin-top: 18px;
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shop-related {
  border-top: 1px solid var(--line);
}

.shop-carousel__track {
  gap: 14px;
  border: 0;
}

.shop-carousel__track > .shop-card {
  flex-basis: calc((100% - (14px * (var(--carousel-cols) - 1))) / var(--carousel-cols));
}

.shop-checkout-page__form .site-form {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.shop-cart-item__thumb,
.shop-checkout__thumb {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.site-popup__dialog {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top-color: var(--line-soft);
}

@media (max-width: 900px) {
  .shop-product-page__media .shop-slider,
  .shop-product-page__media .shop-slider__stage {
    flex: 0 0 auto;
    height: auto;
  }

  .shop-product-page__media .shop-slider__viewport {
    flex: none;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    min-height: 240px;
  }

  .shop-related {
    padding: 20px 16px;
  }

  .shop-related__head {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .shop-carousel__track {
    --carousel-cols: 2;
  }
}

@media (max-width: 600px) {
  .shop-product-page__info {
    padding: 20px 16px;
  }

  .shop-carousel__track {
    --carousel-cols: 1;
  }

  .shop-carousel__track > .shop-card {
    min-width: 0;
  }
}
