@charset "UTF-8";

/* ==========================================================================
   СТИЛИ ВИТРИНЫ TRENDYFORM (ВНЕ @layer — приоритет над style.css без !important)
   - Все цвета строго в OKLCH с поддержкой Display P3 Wide Gamut
   - Все размеры в rem / em / vi / vb (без px)
   - Единый порог адаптива Десктоп / Мобилка: 58rem
   ========================================================================== */

:root {
  --scroll-padding-top: 4.5rem;
  --font-display: 'Unbounded', var(--font-sans);

  --color-provider-ozon:   oklch(0.546 0.245 261);
  --color-provider-yandex: oklch(0.903 0.188 100.5);
  --color-provider-cdek:   oklch(0.665 0.185 147.5);
}

@media (color-gamut: p3) {
  :root {
    --color-provider-ozon:   oklch(0.546 0.275 261);
    --color-provider-yandex: oklch(0.903 0.205 100.5);
    --color-provider-cdek:   oklch(0.665 0.220 147.5);
  }
}

/* ==========================================================================
   1. ВЫДЕЛЕНИЕ ТЕКСТА (::selection) И НАТИВНЫЙ СКРОЛЛБАР В OKLCH
   ========================================================================== */
:is(.btn--primary, .meta-badge--brand, .section-ribbon--orange)::selection,
:is(.btn--primary, .meta-badge--brand, .section-ribbon--orange) *::selection {
  background-color: var(--color-brand-secondary);
  color: var(--color-ink-inverse);
}

:is(.btn--secondary, .meta-badge--azure, .section-ribbon--blue, [data-sale="true"])::selection,
:is(.btn--secondary, .meta-badge--azure, .section-ribbon--blue, [data-sale="true"]) *::selection {
  background-color: var(--color-brand-primary);
  color: var(--color-ink-inverse);
}

::-webkit-scrollbar {
  width: 0.45rem;
  height: 0.45rem;
}

::-webkit-scrollbar-track {
  background-color: var(--color-surface-card);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-brand-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in oklch, var(--color-brand-primary) 86%, var(--color-ink-primary));
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-brand-primary) var(--color-surface-card);
  }
}

/* ==========================================================================
   2. БАЗОВЫЙ КАРКАС СТРАНИЦЫ И ШАПКА (Единый порог: 58rem, без blur для 120 FPS)
   ========================================================================== */
.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: oklch(1 0 none / 0.96);
  border-bottom: 0.0625rem solid var(--color-border-subtle);
  padding-block: clamp(0.55rem, 1.6vb, var(--space-sm));
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
  flex-shrink: 0;
  transform-origin: center center;
}

.brand-logo {
  width: clamp(1.85rem, 2.4vi, 2.3rem);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-mark-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-mark-glyph svg {
  width: clamp(1.85rem, 2.4vi, 2.3rem);
  height: auto;
  display: block;
}

.brand-title-unbounded {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.82rem, 1.35vi, var(--step-0));
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.drawer-eyebrow-unbounded {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.header-inline-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-inline-end: var(--space-xs);
}

.header-inline-nav a {
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .header-inline-nav a:hover {
    color: var(--color-brand-primary);
  }
}

.header-inline-nav a[aria-current="page"] {
  color: var(--color-brand-primary);
}

.header-burger-btn {
  display: none;
}

.header-svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

@media (max-width: 58rem) {
  .header-burger-btn {
    display: inline-flex;
  }

  .header-inline-nav,
  .header-btn-text {
    display: none;
  }

  .header-svg {
    display: block;
  }

  .btn.header-action-btn {
    position: relative;
    padding: 0.65em;
    aspect-ratio: 1;
    flex-shrink: 0;
  }

  .header-cart-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 0.125rem solid var(--color-surface-bg);
  }
}

/* ==========================================================================
   3. КНОПКИ, ЧИПСЫ, БЕЙДЖИ, СТЕППЕР КОРЗИНЫ, СЕРДЕЧКО И СКИДОЧНАЯ ПЛАШКА
   ========================================================================== */
.btn {
  padding: 0.75em 1.15em;
  border-radius: var(--radius-md);
  gap: 0.45em;
  background-color: var(--color-surface-inverse);
  color: var(--color-ink-inverse);
  flex-shrink: 0;
}

.btn--lg {
  font-size: var(--step-1);
}

.btn--sm {
  padding: 0.62em 0.95em;
  font-size: var(--step--1);
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background-color: var(--color-brand-primary);
  color: var(--color-ink-inverse);
  --btn-shadow-color: color-mix(in oklch, var(--color-brand-primary) 35%, transparent);
}

.btn--secondary {
  background-color: var(--color-brand-secondary);
  color: var(--color-ink-inverse);
  --btn-shadow-color: color-mix(in oklch, var(--color-brand-secondary) 35%, transparent);
}

.btn--surface {
  background-color: var(--color-surface-card);
  color: var(--color-ink-primary);
  border: 0.0625rem solid var(--color-border-strong);
  --btn-shadow-color: oklch(0 0 none / 0.06);
}

.btn--danger {
  background-color: color-mix(in oklch, var(--color-status-danger) 10%, var(--color-surface-bg));
  color: var(--color-status-danger);
  border: 0.0625rem solid color-mix(in oklch, var(--color-status-danger) 35%, transparent);
  --btn-shadow-color: oklch(0 0 none / 0.04);
}

.btn--icon {
  padding: 0.65em;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.btn--icon svg,
.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:is(:disabled, [aria-disabled="true"]) {
  opacity: 0.45;
  box-shadow: none;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background-color: color-mix(in oklch, var(--color-surface-bg) 92%, transparent);
  border: 0.0625rem solid var(--color-border-strong);
  color: var(--color-ink-secondary);
  flex-shrink: 0;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.fav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

@media (hover: hover) {
  .fav-btn:hover {
    color: var(--color-status-danger);
    border-color: color-mix(in oklch, var(--color-status-danger) 45%, var(--color-border-strong));
  }
}

.fav-btn[aria-pressed="true"] {
  background-color: color-mix(in oklch, var(--color-surface-bg) 92%, transparent);
  border-color: color-mix(in oklch, var(--color-status-danger) 45%, var(--color-border-strong));
  color: var(--color-status-danger);
}

.fav-btn[aria-pressed="true"] svg {
  fill: var(--color-status-danger);
  stroke: var(--color-status-danger);
}

.fav-btn--lg {
  width: var(--buy-btn-h, 3.25rem);
  height: var(--buy-btn-h, 3.25rem);
  background-color: var(--color-surface-card);
}

.fav-btn--lg[aria-pressed="true"] {
  background-color: var(--color-surface-card);
}

.fav-btn--lg svg {
  width: 1.45rem;
  height: 1.45rem;
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-primary);
  color: var(--color-ink-inverse);
  min-width: 7.75rem;
}

.cart-stepper--full {
  width: 100%;
}

.cart-stepper--surface {
  background-color: var(--color-surface-bg);
  color: var(--color-ink-primary);
  border: 0.0625rem solid var(--color-border-strong);
}

.cart-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1;
  background-color: color-mix(in oklch, var(--color-ink-inverse) 18%, transparent);
  color: inherit;
}

.cart-stepper--surface .cart-stepper-btn {
  background-color: var(--color-surface-card);
}

.cart-stepper-qty {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
}

.ui-chip {
  padding: 0.55em 0.9em;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-card);
  border: 0.0625rem solid var(--color-border-subtle);
  gap: 0.4em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ui-chip[aria-pressed="true"] {
  background-color: var(--color-brand-secondary);
  color: var(--color-ink-inverse);
  border-color: transparent;
}

.delivery-chip--ozon {
  --provider-color: var(--color-provider-ozon);
  --provider-ink: var(--color-ink-inverse);
}

.delivery-chip--yandex {
  --provider-color: var(--color-provider-yandex);
  --provider-ink: var(--color-ink-primary);
}

.delivery-chip--cdek {
  --provider-color: var(--color-provider-cdek);
  --provider-ink: var(--color-ink-inverse);
}

.ui-chip.delivery-chip[aria-pressed="true"] {
  background-color: var(--provider-color);
  color: var(--provider-ink);
  border-color: transparent;
}

.meta-badge {
  padding: 0.42em 0.65em;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-inverse);
  color: var(--color-ink-inverse);
}

.meta-badge--brand {
  background-color: var(--color-brand-primary);
  color: var(--color-ink-inverse);
}

.meta-badge--azure {
  background-color: var(--color-brand-secondary);
  color: var(--color-ink-inverse);
}

.meta-badge--success {
  background-color: var(--color-status-success);
  color: var(--color-ink-inverse);
}

.meta-badge--danger {
  background-color: var(--color-status-danger);
  color: var(--color-ink-inverse);
}

:is(.data-price-md, .data-price-lg)[data-sale="true"] {
  display: inline-flex;
  align-items: center;
  padding: 0.28em 0.52em;
  border-radius: var(--radius-sm);
  background-color: var(--color-brand-secondary);
  color: var(--color-ink-inverse);
  line-height: 1.05;
}

.data-price-strike {
  color: var(--color-ink-muted);
  font-weight: 420;
}

/* ==========================================================================
   4. СИММЕТРИЧНЫЕ БОКОВЫЕ ШТОРКИ (Мобилка <= 58rem)
   ========================================================================== */
.drawer {
  width: min(88vi, 26rem);
  padding: 0 var(--space-md);
}

@media (min-width: 58.0625rem) {
  .drawer {
    display: none;
  }
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block-start: clamp(1.1rem, 3vb, var(--space-lg));
  padding-block-end: calc(clamp(1.1rem, 3vb, var(--space-lg)) + env(safe-area-inset-bottom, 0));
  min-height: 100%;
  width: 100%;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.45rem, 1.8vb, var(--space-sm));
}

.ui-nav-drawer {
  transform-origin: left center;
  width: fit-content;
}

.ui-nav-drawer[aria-current="page"] {
  color: var(--color-brand-primary);
}

.drawer-cart-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-card);
  border: 0.0625rem solid var(--color-border-subtle);
}

.drawer-cart-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center;
  background-color: var(--color-surface-bg);
}

/* ==========================================================================
   5. НАКЛОННЫЕ ЛЕНТЫ-ПЕРЕХОДЫ (TRENDYFORM•)
   ========================================================================== */
.section-ribbon-wrap {
  position: relative;
  z-index: 15;
  width: 100%;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.section-ribbon {
  width: 108vi;
  flex-shrink: 0;
  color: var(--color-ink-inverse);
  padding-block: clamp(0.42rem, 0.85vb, 0.58rem);
  transform-origin: center center;
  box-shadow: 0 0.35rem 1.25rem oklch(0 0 none / 0.14);
  border-block: 0.0625rem solid oklch(1 0 none / 0.22);
  display: flex;
  justify-content: center;
  overflow: hidden;
  contain: layout style;
}

.section-ribbon--orange {
  background-color: var(--color-brand-primary);
  transform: rotate(-0.85deg);
}

.section-ribbon--blue {
  background-color: var(--color-brand-secondary);
  transform: rotate(0.85deg);
}

.section-ribbon-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.72rem, 1.05vi, 0.92rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   6. СЕКЦИИ И ФОТОБАННЕРЫ
   ========================================================================== */
.screen-section {
  min-height: calc(100dvh - var(--scroll-padding-top, 4.5rem));
  padding-block: var(--space-2xl);
  border-bottom: 0.0625rem solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen-section:last-child {
  border-bottom: none;
}

.page-section {
  padding-block: var(--space-xl) var(--space-2xl);
}

.photo-banner-section {
  position: relative;
  min-height: calc(100dvh - var(--scroll-padding-top, 4.5rem));
  padding-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  color: var(--color-ink-inverse);
  background-color: var(--color-surface-inverse);
  border-bottom: 0.0625rem solid var(--color-border-subtle);
}

.photo-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.photo-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    oklch(0.14 0.01 var(--hue-neutral) / 0.88) 0%,
    oklch(0.14 0.01 var(--hue-neutral) / 0.68) 55%,
    oklch(0.14 0.01 var(--hue-neutral) / 0.30) 100%
  );
}

.photo-banner-scrim--about {
  background: linear-gradient(
    90deg,
    oklch(0.15 0.01 var(--hue-neutral) / 0.90) 0%,
    oklch(0.15 0.01 var(--hue-neutral) / 0.74) 60%,
    oklch(0.15 0.01 var(--hue-neutral) / 0.42) 100%
  );
}

.photo-banner-content {
  position: relative;
  z-index: 2;
}

.photo-banner-panel {
  max-width: 48rem;
}

.hero-display-title {
  max-width: 16ch;
  hyphens: none;
  overflow-wrap: break-word;
  color: var(--color-ink-inverse);
}

.photo-banner-lead {
  color: oklch(0.94 0.008 85);
}

.divider {
  height: 0.0625rem;
  background-color: var(--color-border-subtle);
  width: 100%;
}

.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-sm);
}

.row-between--end {
  align-items: flex-end;
}

.row-between--baseline {
  align-items: baseline;
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--2);
  color: var(--color-ink-muted);
}

/* ==========================================================================
   7. КАРТОЧКИ ТОВАРОВ (6-строчный subgrid: 3:4 фото, 5 цветов +N, цены в 1 ряд, кнопка 100%)
   ========================================================================== */
.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.new-arrivals-grid > .product-card,
.catalog-grid > .product-card {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: var(--space-xs);
  align-items: start;
}

.new-arrivals-carousel {
  display: none;
}

@media (max-width: 58rem) {
  .new-arrivals-grid,
  .new-arrivals-desktop-cta {
    display: none;
  }

  .new-arrivals-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
  }

  .carousel-peek-viewport {
    width: calc(100% + var(--page-gutter) * 2);
    margin-inline: calc(var(--page-gutter) * -1);
    overflow-x: clip;
    overflow-y: visible;
    padding-block: var(--space-md);
    margin-block: calc(var(--space-xs) * -1);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .carousel-peek-stage {
    width: min(78%, 24rem);
    margin-inline: auto;
    display: grid;
    grid-template-areas: "card-slot";
    align-items: stretch;
    position: relative;
  }

  .carousel-peek-item {
    grid-area: card-slot;
    width: 100%;
    min-width: 0;
    transform-origin: center center;
  }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.product-card {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: pointer;
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface-bg);
}

.product-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  font-size: var(--step--1);
}

.product-card-badge {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 2;
  pointer-events: none;
}

.product-card-fav {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  z-index: 2;
}

.product-card-title-link {
  display: block;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .product-card-title-link:hover {
    color: var(--color-brand-primary);
  }
}

.product-card-swatches {
  align-self: end;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: var(--space-2xs);
}

.product-card-price {
  align-self: end;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: var(--space-xs);
  border-top: 0.0625rem solid var(--color-border-subtle);
  min-height: 2.35rem;
}

.product-card-cta {
  align-self: end;
  width: 100%;
  display: flex;
}

.product-card-cta > .btn,
.product-card-cta > .cart-stepper {
  width: 100%;
  min-height: 2.65rem;
}

.price-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.filament-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.product-card-swatches .filament-swatches {
  flex-wrap: nowrap;
}

.swatch-btn {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius-full);
  border: 0.125rem solid var(--color-surface-bg);
  box-shadow: 0 0 0 0.0625rem var(--color-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.15s ease;
}

.swatch-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 0.125rem var(--color-brand-primary);
}

.swatch-btn--lg {
  width: 1.9rem;
  height: 1.9rem;
}

.swatch-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-bg);
  border: 0.0625rem solid var(--color-border-strong);
  color: var(--color-ink-secondary);
  font-size: var(--step--2);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
  .swatch-more:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
  }
}

.swatch-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-full);
  border: 0.0625rem solid var(--color-border-strong);
  display: inline-block;
  flex-shrink: 0;
}

.catalog-toolbar {
  padding: var(--space-md);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
}

.catalog-sort-select {
  flex: 0 1 15rem;
}

@media (max-width: 58rem) {
  .catalog-sort-select {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   8. СТРАНИЦА ТОВАРА (/product/{slug})
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .breadcrumbs a:hover {
    color: var(--color-brand-primary);
  }
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 58rem) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Галерея на всю ширину колонки; главное фото по центру; миниатюры — 1 строка или круговая карусель */
.product-gallery {
  width: 100%;
  min-width: 0;
}

.product-gallery-main {
  position: relative;
  width: min(100%, calc(72dvh * 0.75));
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface-card);
  border: 0.0625rem solid var(--color-border-subtle);
  cursor: zoom-in;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-gallery-thumbs {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.thumbs-carousel-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 6.5rem;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.thumbs-carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 6rem;
  margin-left: -2.25rem;
  margin-top: -3rem;
}

.thumbs-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex-shrink: 0;
}

.product-thumb-btn {
  width: 4.5rem;
  height: 6rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 0.125rem solid var(--color-border-subtle);
  background-color: var(--color-surface-bg);
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.thumbs-carousel-item .product-thumb-btn {
  width: 100%;
  height: 100%;
}

.product-thumb-btn[aria-current="true"] {
  border-color: var(--color-brand-primary);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-buy-row {
  --buy-btn-h: calc(2.25 * var(--step-1));
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-md);
}

.product-buy-row > [data-cart-control] {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}

.product-buy-row .btn--primary {
  flex: 1 1 auto;
  width: 100%;
  height: var(--buy-btn-h);
  padding-block: 0;
}

.product-buy-row .cart-stepper {
  flex: 1 1 auto;
  width: 100%;
  height: var(--buy-btn-h);
}

.product-meta-box {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-card);
  border: 0.0625rem solid var(--color-border-subtle);
}

.product-description {
  white-space: pre-line;
}

.product-description--full {
  max-width: none;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding-block: var(--space-xs);
  border-bottom: 0.0625rem solid var(--color-border-subtle);
  text-align: left;
  vertical-align: top;
}

.specs-table th {
  width: 42%;
  font-weight: 500;
  color: var(--color-ink-secondary);
  padding-inline-end: var(--space-md);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background-color: oklch(0.1 0 none / 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox-img {
  max-width: 92vi;
  max-height: 86dvh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
}

/* ==========================================================================
   9. КОРЗИНА (/cart), ОФОРМЛЕНИЕ (/checkout), ПРОФИЛЬ (/profile)
   ========================================================================== */
.split-commerce-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 58rem) {
  .split-commerce-grid {
    grid-template-columns: 1fr;
  }
}

.shipping-banner {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: color-mix(in oklch, var(--color-brand-secondary) 9%, transparent);
  border: 0.0625rem solid color-mix(in oklch, var(--color-brand-secondary) 32%, transparent);
}

.shipping-progress-track {
  width: 100%;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background-color: color-mix(in oklch, var(--color-brand-secondary) 18%, transparent);
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-secondary);
  transition: width 0.25s ease;
}

.cart-item-card {
  padding: var(--space-md);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.cart-item-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center;
  background-color: var(--color-surface-bg);
}

.summary-card,
.surface-card {
  padding: var(--space-lg);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
}

.summary-card {
  position: sticky;
  top: calc(var(--scroll-padding-top, 4.5rem) + var(--space-md));
}

@media (max-width: 58rem) {
  .summary-card {
    position: static;
  }
}

.empty-state-card {
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  align-items: center;
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
}

.promo-row {
  display: flex;
  gap: var(--space-xs);
  align-items: stretch;
}

.promo-row .ui-input {
  flex: 1 1 auto;
}

.order-card {
  padding: var(--space-lg);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: 0.35rem;
  border-bottom: 0.0625rem solid var(--color-border-subtle);
}

.order-item-line:last-child {
  border-bottom: none;
}

/* ==========================================================================
   10. ФОРМЫ ЗАЯВОК (/custom, /b2b, ГЛАВНАЯ) И СТРАНИЦА /about
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: stretch;
}

@media (max-width: 58rem) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.split-col-equal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  height: 100%;
  min-width: 0;
}

.split-form-equal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
  flex: 1 1 auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

@media (max-width: 58rem) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-feedback {
  font-size: var(--step--1);
  line-height: 1.4;
}

.form-feedback--error {
  color: var(--color-status-danger);
}

.form-feedback--success {
  color: var(--color-status-success);
}

.form-feedback--sale {
  color: var(--color-brand-secondary);
}

.feature-row {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-card);
  border: 0.0625rem solid var(--color-border-subtle);
  border-inline-start: 0.25rem solid var(--color-brand-primary);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-row--azure {
  border-inline-start-color: var(--color-brand-secondary);
}

#b2b .ui-input:focus-visible,
#b2b-page .ui-input:focus-visible {
  border-color: var(--color-brand-secondary);
  box-shadow: 0 0 0 0.1875rem color-mix(in oklch, var(--color-brand-secondary) 22%, transparent);
}

#b2b .ui-input::selection,
#b2b-page .ui-input::selection {
  background-color: var(--color-brand-secondary);
  color: var(--color-ink-inverse);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

@media (max-width: 58rem) {
  .process-grid,
  .directions-grid {
    grid-template-columns: 1fr;
  }
}

.process-card {
  padding: var(--space-lg);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: var(--space-xs);
  align-items: start;
}

.direction-card {
  padding: var(--space-lg);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: var(--space-sm);
  align-items: start;
}

.direction-card-cta {
  align-self: end;
  width: 100%;
  padding-top: var(--space-2xs);
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   11. ЮРИДИЧЕСКИЕ И ИНФО-СТРАНИЦЫ (/delivery, /offer, /privacy)
   ========================================================================== */
.legal-article {
  max-width: 65ch;
  padding-block: var(--space-xl) var(--space-2xl);
}

.legal-eyebrow {
  margin-bottom: var(--space-xs);
  color: var(--color-ink-muted);
}

.legal-article h1 {
  margin-bottom: var(--space-sm);
}

.legal-article .prose-lead {
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-lg);
}

.legal-summary {
  padding-block: var(--space-md);
  margin-bottom: var(--space-xl);
  border-block: 0.0625rem solid var(--color-border-subtle);
}

.legal-summary-title {
  margin-bottom: var(--space-xs);
  color: var(--color-ink-muted);
}

.legal-section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-num {
  color: var(--color-ink-muted);
  flex-shrink: 0;
}

.legal-article p + p,
.legal-article p + ul,
.legal-article ul + p {
  margin-top: var(--space-sm);
}

.legal-article li + li {
  margin-top: var(--space-2xs);
}

.legal-meta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 0.0625rem solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* ==========================================================================
   12. МИНИ-МОДАЛКА ВХОДА И СТРАНИЦЫ АВТОРИЗАЦИИ (/login, /register)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: var(--color-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-dialog {
  width: min(100%, 27rem);
  max-height: 90dvh;
  overflow-y: auto;
  background-color: var(--color-surface-bg);
  border: 0.0625rem solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 1.5rem 4rem oklch(0 0 none / 0.25);
  transform-origin: center center;
  transform: scale3d(0.86, 0.86, 1);
  opacity: 0;
}

.auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  padding-block: var(--space-md);
  border-bottom: 0.0625rem solid var(--color-border-subtle);
}

.auth-center {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--page-gutter);
}

.auth-card {
  width: min(100%, 28rem);
  padding: var(--space-xl);
  border: 0.0625rem solid var(--color-border-subtle);
  background-color: var(--color-surface-card);
  cursor: default;
}

.auth-switch-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-brand-primary);
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ==========================================================================
   13. ТОСТ-УВЕДОМЛЕНИЯ
   ========================================================================== */
.toast-host {
  position: fixed;
  right: var(--page-gutter);
  bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0));
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: min(24rem, calc(100vi - var(--page-gutter) * 2));
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-inverse);
  color: var(--color-ink-inverse);
  box-shadow: 0 0.75rem 2rem oklch(0 0 none / 0.25);
  font-size: var(--step--1);
}

.toast-action {
  display: inline-flex;
  align-items: center;
  color: var(--color-brand-primary);
  font-weight: 640;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ==========================================================================
   14. ПОДВАЛ (4 колонки на ПК, 2 колонки на <= 58rem)
   ========================================================================== */
.site-footer {
  padding-block: var(--space-2xl) var(--space-xl);
  background-color: var(--color-surface-card);
}

.footer-col--brand   { grid-area: brand; }
.footer-col--shop    { grid-area: shop; }
.footer-col--buyer   { grid-area: buyer; }
.footer-col--contact { grid-area: contact; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "brand shop buyer contact";
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 58rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand   brand"
      "shop    buyer"
      "contact buyer";
    gap: var(--space-md);
  }

  .footer-col--brand {
    align-items: center;
    text-align: center;
    justify-self: center;
    padding-bottom: var(--space-xs);
  }
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--step--1);
  color: var(--color-ink-secondary);
  transition: color 0.15s ease;
  text-align: left;
  transform-origin: left center;
}

@media (hover: hover) {
  .footer-link:hover {
    color: var(--color-brand-primary);
  }
}