/* ══════════════════════════════════════════════════════════════
   NASHA* — Catalog Page Stylesheet
   ══════════════════════════════════════════════════════════════ */

/* ── Active nav link ── */
.header__link--active {
  opacity: 0.45;
}

/* ══════════════════════════════════════════════════════════════
   CERTIFICATE PAGE
   ══════════════════════════════════════════════════════════════ */

.certificate-page-body { background: #fff; }

.certificate-page {
  padding-top: 52px;
  background: #fff;
}

.certificate-page__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: var(--page-max-w);
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.certificate-page__gallery {
  padding: 24px 28px 24px 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.certificate-page__main {
  background: #ededed;
  width: 100%;
  aspect-ratio: 4/5;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Целое изображение сертификата влезает в кадр (не crop как у товара в модалке) */
.certificate-page__preview.product-modal__gallery-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.certificate-page__thumbs-mobile { display: none; }

.certificate-page__content {
  padding: 32px 48px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: visible;
}

.certificate-page__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.certificate-page__desc {
  font-size: 12px;
  line-height: 1.55;
  color: #777;
  margin: 0;
}

.certificate-page__designs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.certificate-page__options + .certificate-page__options {
  margin-top: 16px;
}

.certificate-page__design-btn {
  width: 86px;
  height: 60px;
  padding: 0;
  background: #ededed;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.certificate-page__design-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.certificate-page__design-btn--active {
  border: 1px solid #000;
}

.certificate-page__amounts {
  gap: 10px;
}

.certificate-page__amount-btn {
  min-width: 88px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
}

.certificate-page__buy {
  width: 100%;
}

.certificate-page__accordions {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 6px;
}

.certificate-page__recommended {
  padding: 12px 32px 60px;
  max-width: var(--page-max-w);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .certificate-page__inner {
    grid-template-columns: 1fr;
  }
  .certificate-page__gallery,
  .certificate-page__content,
  .certificate-page__recommended {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
  transition: opacity 0.2s;
}

.header__icon-btn:hover { opacity: 0.5; }

/* ══════════════════════════════════════════════════════════════
   CATALOG HERO TITLE
   ══════════════════════════════════════════════════════════════ */

/* Общая колонка с styles.css (--page-max-w); на экранах уже 1720px — как раньше (100%) */
.catalog-hero,
.drops-row,
.filter-bar,
.catalog-layout {
  max-width: var(--page-max-w);
  margin-left: auto;
  margin-right: auto;
}

.catalog-hero {
  display: flex;
  align-items: center;
  padding: calc(48px + 32px) var(--pad-x) 20px;
  width: 100%;
  margin: 0 auto;
}

.catalog-hero__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

/* ══════════════════════════════════════════════════════════════
   DROPS ROW
   ══════════════════════════════════════════════════════════════ */

.drops-row {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x) 24px;
}

.drops-row__inner {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
}

.drops-row__inner::-webkit-scrollbar { display: none; }

.drop-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  padding: 8px 16px 8px 8px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  min-width: 140px;
}

.drop-chip:hover {
  border-color: var(--black);
}

.drop-chip--active {
  border: 2px solid var(--black);
  background: var(--white);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  animation: dropChipActive 0.4s ease;
}

.drop-chip--active .drop-chip__label {
  color: var(--black);
  font-weight: 600;
}

@keyframes dropChipActive {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50%  { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
  100% { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
}

.drop-chip__img-wrap {
  width: 52px;
  height: 52px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-light);
}

.drop-chip__img-wrap--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-chip--active .drop-chip__img-wrap--logo {
  background: var(--gray-light);
}

.drop-chip__logo {
  width: 55%;
  height: auto;
  filter: none;
}

.drop-chip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drop-chip__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════ */

.filter-bar {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.filter-bar__filters-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0;
  transition: opacity 0.2s;
}

.filter-bar__filters-btn:hover { opacity: 0.55; }

.filter-bar__filters-icon {
  width: 16px;
  height: 16px;
  display: block;
}

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

.filter-bar__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-bar__search {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--white);
  padding: 7px 32px 7px 12px;
  width: 180px;
  outline: none;
  color: var(--black);
  transition: border-color 0.2s;
}

.filter-bar__search::placeholder { color: var(--gray-mid); }
.filter-bar__search:focus { border-color: var(--black); }

.filter-bar__search-icon {
  position: absolute;
  right: 10px;
  color: var(--gray-mid);
  pointer-events: none;
}

.filter-bar__sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-bar__sort {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--white);
  padding: 7px 32px 7px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  color: var(--black);
  transition: border-color 0.2s;
  min-width: 160px;
}

.filter-bar__sort:focus { border-color: var(--black); }

.filter-bar__sort-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--gray-dark);
}

/* ══════════════════════════════════════════════════════════════
   CATALOG LAYOUT (sidebar + grid)
   ══════════════════════════════════════════════════════════════ */

.catalog-layout {
  display: flex;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  gap: 4px;
}

/* Боковая панель фильтров — скрыта по умолчанию */
.filter-sidebar {
  width: 0;
  min-width: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.35s ease;
}

.catalog-layout--filters-open .filter-sidebar {
  width: 360px;
  min-width: 360px;
}

.filter-sidebar__inner {
  padding: 24px 0;
  width: 360px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.catalog-layout--filters-open .filter-sidebar__inner {
  opacity: 1;
  transform: translateX(0);
}

.filter-sidebar__selected-wrap {
  margin-bottom: 32px;
}

.filter-sidebar__selected-wrap[hidden] {
  display: none !important;
}

.filter-sidebar__selected-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 14px;
}

.filter-sidebar__pills--selected {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  flex: 1;
  min-width: 0;
}

/* После активных фильтров — воздух до первой секции («Категория» и др.) */
.filter-sidebar__selected-wrap:not([hidden]) + #filterSidebarInner {
  padding-top: 14px;
}

/* Теги выбранных фильтров (вверху) — как активные пилюли: серый фон, чёрная обводка (без белого) */
.filter-sidebar__chip {
  background: #f2f2f2;
  border-color: #000;
}

.filter-sidebar__chip:hover {
  background: #e8e8e8;
  border-color: #000;
}

.filter-sidebar__chip .filter-sidebar__pill-x {
  display: inline;
}

.filter-sidebar__reset {
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 4px 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-sidebar__reset:hover {
  opacity: 0.75;
}

.filter-sidebar__reset-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-sidebar__reset-x {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.filter-sidebar__section {
  margin-bottom: 24px;
}

.filter-sidebar__empty {
  font-size: 12px;
  color: var(--gray-mid, #999);
  padding: 12px 0;
}

.filter-sidebar__title {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 12px;
}

.filter-sidebar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-sidebar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  min-height: 0;
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.filter-sidebar__pill:hover {
  background: #e8e8e8;
}

.filter-sidebar__pill--active {
  background: #f2f2f2;
  border-color: #000000;
}

.filter-sidebar__pill--active:hover {
  background: #e8e8e8;
  border-color: #000000;
}

.filter-sidebar__pill-x {
  display: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  margin-left: 4px;
}

.filter-sidebar__pill--active .filter-sidebar__pill-x {
  display: inline;
}

.filter-sidebar__pill--color .filter-sidebar__color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY FILTER (photo thumbnails row)
   ══════════════════════════════════════════════════════════════ */

.cat-filter {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.cat-filter__inner {
  padding-top: 24px;
}

.cat-filter__categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.cat-filter__cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.cat-filter__cat:hover {
  opacity: 0.75;
}

.cat-filter__cat--active .cat-filter__cat-label {
  font-weight: 700;
}

/* Обёртка фото — прямоугольник 3:4 */
.cat-filter__cat-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-light);
}

/* Кнопка «Все» — белый фон с логотипом по центру */
.cat-filter__cat-img-wrap--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.15);
}

.cat-filter__cat-logo {
  width: 40%;
  height: auto;
  display: block;
  opacity: 0.85;
}

.cat-filter__cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cat-filter__cat:hover .cat-filter__cat-img {
  transform: scale(1.04);
}

.cat-filter__cat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   SUB-FILTERS (сброс / цвет / вайб)
   ══════════════════════════════════════════════════════════════ */

.sub-filters {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.sub-filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 12px 0;
  background: none;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.sub-filters__toggle:hover {
  opacity: 0.6;
}

.sub-filters__toggle-icon {
  font-size: 8px;
  transition: transform 0.25s ease-in;
}

.sub-filters--collapsed .sub-filters__toggle-icon {
  transform: rotate(-90deg);
}

.sub-filters:not(.sub-filters--collapsed) .sub-filters__toggle-icon {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-filters__inner {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-in;
}

.sub-filters:not(.sub-filters--collapsed) .sub-filters__inner {
  grid-template-rows: 1fr;
  transition: grid-template-rows 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-filters__content {
  min-height: 0;
  overflow: hidden;
}

.sub-filters--collapsed .sub-filters__content {
  pointer-events: none;
}

.sub-filters__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.sub-filters__row--reset {
  border-bottom: none;
  padding-bottom: 4px;
}

.sub-filters__reset {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0;
  transition: opacity 0.2s;
}

.sub-filters__reset:hover { opacity: 0.5; }

.sub-filters__reset-x {
  font-size: 10px;
  color: #1150F2;
  font-weight: 700;
}

.sub-filters__row-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  min-width: 36px;
  flex-shrink: 0;
}

.sub-filters__tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.sub-filters__tag {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--black);
  background: none;
  border: none;
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 0;
}

.sub-filters__tag:hover {
  color: #1150F2;
}

.sub-filters__tag--active {
  color: #1150F2;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT GRID
   ══════════════════════════════════════════════════════════════ */

.catalog-grid-wrap {
  flex: 1;
  min-width: 0;
  padding: 24px 0 80px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 16px;
}

.catalog-layout--filters-open .catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-loading,
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.catalog-empty a {
  color: var(--black, #000);
  text-decoration: underline;
  text-transform: none;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARD
   ══════════════════════════════════════════════════════════════ */

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
  cursor: pointer;
}

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-light);
}

.product-card__preorder-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #ff5490;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px;
  line-height: 1;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

/* Оверлей — кнопка «В КОРЗИНУ» появляется при ховере */
.product-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 8px 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
  pointer-events: all;
}

.product-card__quick-add {
  width: 100%;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.product-card__quick-add:hover {
  opacity: 0.85;
}

.product-card--preorder .product-card__quick-add {
  background: #ff5490;
  color: #fff;
}

.product-card--preorder .product-card__quick-add:hover {
  opacity: 0.9;
}

/* Инфо под фото */
.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 0;
  min-width: 0;
}

/* Строка: название коллекции + цветовые точки */
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.product-card__collection {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  line-height: 1;
}

.product-card__colors {
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-card__color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
}

.product-card__color-dot--black { background: #0a0a0a; border-color: transparent; }
.product-card__color-dot--white { background: #ffffff; }
.product-card__color-dot--outline { background: transparent; border: 1px solid rgba(0,0,0,0.3); }

.product-card__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  text-align: left;
  line-height: 1.3;
}

.product-card__desc-short {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gray-mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-card__price {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  text-align: left;
}

.product-card__price-old {
  text-decoration: line-through;
  color: var(--gray-mid);
  font-weight: 500;
  margin-right: 6px;
}

/* ══════════════════════════════════════════════════════════════
   CART BUTTON IN HEADER
   ══════════════════════════════════════════════════════════════ */

.header__cart--pulse .header__cart-icon {
  animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════════
   FLY ANIMATION ITEM
   ══════════════════════════════════════════════════════════════ */

.fly-item {
  display: none;
  position: fixed;
  z-index: 9999;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY ZOOM (fullscreen)
   ══════════════════════════════════════════════════════════════ */

.gallery-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-zoom-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.gallery-zoom-overlay__img-wrap {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-overlay__img {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-zoom-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.gallery-zoom-overlay__close:hover {
  background: rgba(255,255,255,0.25);
}

.gallery-zoom-overlay__prev,
.gallery-zoom-overlay__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.gallery-zoom-overlay__prev:hover,
.gallery-zoom-overlay__next:hover {
  background: rgba(255,255,255,0.25);
}

.gallery-zoom-overlay__prev {
  left: 20px;
}

.gallery-zoom-overlay__next {
  right: 20px;
}

/* ══════════════════════════════════════════════════════════════
   CART OVERLAY
   ══════════════════════════════════════════════════════════════ */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* Wishlist — синяя точка при наличии товаров */
.header__wishlist {
  position: relative;
}

.header__wishlist--has-items::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #1150F2;
  border-radius: 50%;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   WISHLIST DRAWER
   ══════════════════════════════════════════════════════════════ */

.wishlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.wishlist-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 350;
  width: 400px;
  max-width: 100vw;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s ease;
  box-shadow: none;
  will-change: transform;
  box-sizing: border-box;
}

.wishlist-drawer--open {
  transform: translateX(0);
  box-shadow: -8px 0 48px rgba(0,0,0,0.14);
}

.wishlist-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.wishlist-drawer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wishlist-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--black);
  padding: 4px;
  line-height: 1;
  transition: opacity 0.2s;
}

.wishlist-drawer__close:hover { opacity: 0.4; }

.wishlist-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 32px;
}

.wishlist-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  min-height: 120px;
}

.wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.wishlist-item:last-child {
  border-bottom: none;
}

.wishlist-item__img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: var(--gray-light);
}

.wishlist-item__info {
  flex: 1;
  min-width: 0;
}

.wishlist-item__name {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}

.wishlist-item__options {
  font-size: 11px;
  color: #666;
  margin: 0 0 4px;
  line-height: 1.3;
}

.wishlist-item__price {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.wishlist-item__add-cart {
  flex-shrink: 0;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.wishlist-item__add-cart:hover {
  opacity: 0.85;
}

.wishlist-item__add-cart--added {
  background: #2e7d32;
}

.wishlist-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #999;
  transition: color 0.2s;
  flex-shrink: 0;
}

.wishlist-item__remove:hover {
  color: #e53935;
}

/* ══════════════════════════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════════════════════════ */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  /* Не шире экрана: min-width:520px ломал узкие вьюпорты (уезжало влево на ~100vw−520) */
  width: min(max(50vw, 520px), 100vw);
  max-width: 100vw;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s ease;
  box-shadow: none;
  will-change: transform;
  box-sizing: border-box;
}

.cart-drawer--open {
  transform: translateX(0);
  box-shadow: -8px 0 48px rgba(0,0,0,0.14);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px 24px;
  flex-shrink: 0;
}

.cart-drawer__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-drawer__title-count {
  font-weight: 400;
  letter-spacing: 0.1em;
}

.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--black);
  padding: 4px;
  line-height: 1;
  transition: opacity 0.2s;
}

.cart-drawer__close:hover { opacity: 0.4; }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 40px 32px;
  display: flex;
  flex-direction: column;
}

/* ── Empty state ── */
.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  min-height: 200px;
}

/* ── Cart item ── */
.cart-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 0 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-item__img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  background: var(--gray-light);
  display: block;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}

.cart-item__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.4;
}

.cart-item__preorder-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-mid);
  margin-left: 6px;
}

.cart-item--collection .cart-item__collection-lines {
  margin: 8px 0 0;
  padding-left: 1.15em;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  list-style: disc;
}

.cart-item__coll-line {
  margin: 3px 0;
}

.cart-item__collection-note {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid, #888);
}

.cart-item__variants {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.cart-item__variant-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  color: var(--black);
  letter-spacing: 0.04em;
}

.cart-item__variant-label {
  color: #999;
  font-weight: 400;
}

.cart-item__variant-val {
  font-weight: 500;
}

/* Legacy */
.cart-item__variant {
  font-size: 11px;
  color: var(--gray-mid);
  margin-top: 2px;
}

.cart-item__desc {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gray-mid);
  line-height: 1.45;
  margin-top: 2px;
  white-space: pre-line;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.cart-item__qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-family: var(--font);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
}

.cart-item__qty-btn:hover { opacity: 0.45; }

.cart-item__qty-val {
  font-size: 13px;
  font-weight: 400;
  min-width: 16px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Action buttons column ── */
.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  flex-shrink: 0;
}

.cart-item__wishlist {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.cart-item__wishlist:hover { opacity: 0.5; }

.cart-item__wishlist--active { color: #1150F2; }
.cart-item__wishlist--active svg { fill: #1150F2; stroke: #1150F2; }

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cart-item__remove:hover { color: var(--black); }

/* ── Undo item ── */
.cart-item--undo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f7f7;
  padding: 14px 16px;
  border-bottom: none;
  margin-bottom: 4px;
  animation: fadeInDown 0.3s ease;
}

.cart-item__undo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__undo-text {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
  flex: 1;
}

.cart-item__undo-btn {
  background: var(--black);
  border: 1px solid var(--black);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-item__undo-btn:hover {
  background: transparent;
  color: var(--black);
}

.cart-item__undo-bar {
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
}

.cart-item__undo-progress {
  height: 100%;
  background: #1150F2;
  width: 100%;
}

/* ── Cart summary ── */
.cart-summary {
  padding: 24px 0 0;
  margin-top: 8px;
  flex-shrink: 0;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cart-summary__total {
  font-size: 14px;
  font-weight: 700;
}

.cart-summary__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cart-summary__checkout-btn:hover { opacity: 0.85; }

.cart-summary__note {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.6;
}

/* ── Add to cart button pulse ── */

@keyframes addedPulse {
  0%   { background: #1150F2; color: #fff; }
  30%  { background: #fff; color: #1150F2; }
  100% { background: #1150F2; color: #fff; }
}

.product-card__quick-add--added {
  animation: addedPulse 0.6s ease;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT MODAL (full-page overlay)
   ══════════════════════════════════════════════════════════════ */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* Поп-ап: прокручиваемый слой поверх страницы, начинается сразу под хедером */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 401;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transform-origin: center 30%;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.product-modal--visible {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* Белый контейнер — на весь экран */
.product-modal__page {
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 100vh;
  position: relative;
}

.product-modal__header-inner {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.product-modal__close {
  position: fixed;
  top: 58px;
  right: var(--pad-x);
  z-index: 500;
  background: rgba(235,235,235,0.92);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 15px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.product-modal__close:hover {
  background: rgba(210,210,210,0.95);
  color: #000;
}

.product-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0;
  width: 100%;
  max-width: var(--page-max-w);
  margin-inline: auto;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.product-modal__gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Симметричные поля — в адаптиве фото не «уезжает» вправо, крестик остаётся в белом поле */
  padding: 32px var(--pad-x) 28px;
  gap: 16px;
  overflow-y: auto;
}

/* Правая колонка — контент с отступами как на скрине */
.product-modal__content {
  padding: 40px 48px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
}

.product-modal__gallery-main {
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
  /* Стабильный кадр 3:4; при ограничении по высоте ширина сжимается пропорционально. */
  width: min(100%, calc(70vh * 3 / 4));
  max-width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  height: auto;
  margin-inline: auto;
  flex: 0 0 auto;
  min-height: 0;
  cursor: pointer;
}

.product-modal__gallery-zoom {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(242,242,242,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.product-modal__gallery-zoom:hover {
  background: rgba(255,255,255,0.98);
}

.product-modal__gallery-track {
  display: flex;
  height: 100%;
  min-height: 0;
  transition: transform 0.35s ease;
}

.product-modal__gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--gray-light);
}

.product-modal__gallery-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.product-modal__gallery-prev,
.product-modal__gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(242,242,242,0.88);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.product-modal__gallery-prev:hover,
.product-modal__gallery-next:hover {
  background: rgba(255,255,255,0.95);
}

.product-modal__gallery-prev {
  left: 0;
}

.product-modal__gallery-prev-icon {
  transform: rotate(180deg);
}

.product-modal__gallery-next {
  right: 0;
}

.product-modal__thumbnails {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.product-modal__thumb {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--gray-light);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.product-modal__thumb:hover {
  border-color: rgba(0,0,0,0.35);
}

.product-modal__thumb--active {
  border: 2px solid #000;
}

.product-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* (стили .product-modal__content объявлены выше в блоке галереи) */

.product-modal__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: var(--black);
}

.product-modal__name + .product-modal__price-row {
  margin-top: -6px;
}

.product-modal__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-modal__price {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--black);
  margin: 0;
}

.product-modal__price-old {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #aaa;
  text-decoration: line-through;
  margin: 0;
}

.product-modal__discount {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #e53935;
  margin: 0;
}

.product-modal__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #666;
  margin: 0;
  white-space: pre-line;
}

.product-modal__price-row + .product-modal__desc {
  margin-top: 2px;
}

/* Варианты кастомизации (данные из админки: customizationData.groups) */
.product-modal__customization {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.product-modal__customization--hidden {
  display: none !important;
}

.product-modal__custom-title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
  margin: 0 0 6px;
}

.product-modal__custom-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal__custom-sublabel {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #777;
}

.product-modal__custom-text-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.product-modal__custom-pill {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: #1a1a1a;
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 11px 18px;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.product-modal__custom-pill:hover {
  background: #ececec;
}

.product-modal__custom-pill--active {
  border: 1px solid #000 !important;
  background: #fff;
}

.product-modal__custom-img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-modal__custom-thumb {
  width: 132px;
  height: 76px;
  padding: 0;
  border: 1px solid transparent;
  background: #f3f3f3;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.product-modal__custom-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal__custom-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 14px;
}

.product-modal__custom-thumb--active {
  border: 1px solid #000 !important;
}

.product-modal__custom-emb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-modal__custom-emb {
  flex: 0 0 auto;
  width: 132px;
  height: 110px;
  padding: 0;
  border: 1px solid transparent;
  background: #f3f3f3;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}

.product-modal__custom-emb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.product-modal__custom-emb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

.product-modal__custom-emb--active {
  border: 1px solid #000 !important;
}

/* [ цвет ] Черный / [ размер ] M — как на скрине */
.product-modal__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal__desc + .product-modal__options {
  margin-top: 2px;
}

.product-modal__options--color + .product-modal__options--size {
  margin-top: 8px;
}

.product-modal__options-label {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--black);
}

.product-modal__options-value {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--black);
}

/* Подсветка при попытке добавить в избранное без выбора */
.product-modal__options--required {
  animation: productModalRequiredPulse 0.5s ease 2;
  border-radius: 0;
}

.product-modal__options--required .product-modal__options-label::before {
  content: 'Выберите цвет и размер';
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #e53935;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

@keyframes productModalRequiredPulse {
  0%, 100% { background: transparent; box-shadow: none; }
  50% { background: rgba(229, 57, 53, 0.06); box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.3); }
}

.product-modal__options-empty {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.product-modal__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-modal__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Цвет: светло-серый квадрат, внутри круг свотча; выбранный — чёрная рамка у квадрата */
.product-modal__color-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: #f2f2f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}

.product-modal__color-btn:hover {
  border-color: rgba(0, 0, 0, 0.08);
  background: #e8e8e8;
}

.product-modal__color-btn--active {
  border: 1px solid #000 !important;
  background: #f2f2f2 !important;
}

.product-modal__color-btn--active:hover {
  border-color: #000 !important;
  background: #e8e8e8 !important;
}

.product-modal__color-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.product-modal__color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Размер: серый фон по умолчанию и при выборе; активная — чёрная обводка */
.product-modal__size-btn {
  min-width: 44px;
  min-height: 40px;
  padding: 6px 14px;
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
}

.product-modal__size-btn:hover {
  background: #e8e8e8;
  border-color: rgba(0, 0, 0, 0.15);
}

.product-modal__size-btn--active {
  background: #f2f2f2 !important;
  border: 1px solid #000 !important;
}

.product-modal__size-btn--active:hover {
  background: #e8e8e8 !important;
  border-color: #000 !important;
}

/* Размер — нет в наличии */
.product-modal__size-btn--out-of-stock {
  opacity: 0.7;
  color: var(--gray-mid);
}
.product-modal__size-btn--out-of-stock .product-modal__size-hint {
  display: block;
}
.product-modal__size-btn .product-modal__size-hint {
  display: none;
  font-size: 9px;
  font-weight: 400;
  color: var(--gray-mid);
  margin-top: 2px;
}

/* Ряд: кнопка В КОРЗИНУ + избранное */
.product-modal__actions-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* Кнопка В КОРЗИНУ — чёрная, широкая */
.product-modal__add-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 52px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.2s;
}

.product-modal__add-btn:hover {
  opacity: 0.88;
}

.product-modal__add-btn--preorder {
  background: #ff5490;
}

.product-modal__add-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-modal__add-btn-left svg,
.product-modal__add-btn-left .product-modal__add-btn-icon {
  flex-shrink: 0;
  display: block;
}

.product-modal__add-btn-price {
  font-weight: 700;
  font-size: 13px;
}

/* Кнопка избранное — синий квадрат, белое сердце (как на макете) */
.product-modal__wishlist {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #0a0a0a;
  color: #1150f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.product-modal__wishlist:hover {
  opacity: 0.85;
}

.product-modal__wishlist svg {
  fill: none;
  stroke: #0a0a0a;
}

.product-modal__wishlist--active svg {
  fill: #1150f2;
  stroke: #1150f2;
}

/* Вторичный блок: одна строка — рассрочка слева, «Намекнуть о подарке» справа (как на макете) */
.product-modal__secondary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: 100%;
}

.product-modal__actions-row + .product-modal__secondary {
  margin-top: 10px;
}

.product-modal__installment-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.product-modal__installment-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f0f0f0;
  border-radius: 0;
  font-size: 12px;
  color: var(--black);
}

/* Страница сертификата — без скруглений у сумм и блока рассрочки */
.certificate-page .product-modal__size-btn.certificate-page__amount-btn {
  border-radius: 0;
}

.certificate-page .product-modal__installment-box {
  border-radius: 0;
}

.product-modal__installment-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-modal__installment-icons svg,
.product-modal__installment-icons img {
  flex-shrink: 0;
  display: block;
}

.product-modal__installment-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.product-modal__installment-text {
  font-weight: 500;
}

.product-modal__installment-link {
  color: var(--black);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.product-modal__installment-link:hover {
  opacity: 0.7;
}

.product-modal__gift {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 0;
  margin-left: auto;
  max-width: 100%;
  text-align: left;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.product-modal__gift-label {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.product-modal__gift svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 1.35;
}

.product-modal__gift:hover {
  opacity: 0.65;
}

/* ─── PRODUCT MODAL: режим «сет» ─── */
.product-modal__set { display: flex; flex-direction: column; gap: 22px; margin: 8px 0 18px; }
.product-modal__set--hidden { display: none !important; }

.product-modal__set-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.15s ease;
}
.product-modal__set-item--required .product-modal__set-dd-btn {
  box-shadow: inset 0 0 0 1px #e74c3c;
}

.product-modal__set-item-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.product-modal__set-item-name { font-size: 14px; font-weight: 500; line-height: 1.5; color: #111; }
.product-modal__set-item-price { font-size: 12px; line-height: 1.5; color: #999; font-weight: 400; }

.product-modal__set-item-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-modal__set-dd {
  position: relative;
  width: 240px;
}
.product-modal__set-dd-btn {
  width: 240px;
  height: 38px;
  padding: 0 14px;
  background: #f5f5f5;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  border-radius: 0;
}
.product-modal__set-dd-btn:disabled { cursor: default; }
.product-modal__set-dd-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-modal__set-dd-arrow {
  width: 12px;
  height: 12px;
  background-image: url('/assets/round_down.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.product-modal__set-dd--open .product-modal__set-dd-arrow {
  transform: rotate(180deg) !important;
}

.product-modal__set-dd--color .product-modal__set-dd-btn { padding-left: 14px; }

/* Плоский насыщенный кружок цвета + тонкая обводка (один-в-один как на дизайне). */
.product-modal__set-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  background-clip: content-box;
  display: inline-block;
  flex-shrink: 0;
}

.product-modal__set-dd-popover .product-modal__set-color-dot {
  border: 1px solid #111;
}

.product-modal__set-dd-popover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #f3f3f3;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  z-index: 30;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}
.product-modal__set-dd-popover[hidden] { display: none; }

.product-modal__set-dd-opt {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #f3f3f3;
  border: none;
  border-top: 1px solid #fff;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: #111;
}
.product-modal__set-dd-opt:first-child { border-top: none; }
.product-modal__set-dd-opt:hover { background: #eeeeee; }
.product-modal__set-dd-opt.is-out {
  color: #c4c4c4;
  text-decoration: line-through;
  cursor: not-allowed;
}
.product-modal__set-dd-opt.is-out:hover { background: #f3f3f3; }
.product-modal__set-dd-opt-label { flex: 1; }
.product-modal__set-dd-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: #888;
}

/* Шапка «название + розовая плашка», для сета — плашка справа от h2. */
.product-modal__name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.product-modal__sale-badge {
  background: #ff4d8a;
  color: #fff;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.product-modal__sale-badge--hidden { display: none !important; }

/* На мобиле кнопка «Намекнуть о подарке» — по центру строки, не прижата к правому краю. */
@media (max-width: 600px) {
  .product-modal__secondary {
    justify-content: center;
  }
  .product-modal__gift {
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

/* Аккордеоны (табы из админки: customizationData.infoTabs) */
.product-modal__accordions {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.product-modal__accordions--hidden {
  display: none !important;
  border-top: none !important;
}

.product-modal__accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.product-modal__accordion-item:last-child {
  border-bottom: none;
}

.product-modal__accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #666;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.product-modal__accordion:hover {
  color: var(--black);
}

.product-modal__accordion-chevron {
  font-size: 14px;
  color: #999;
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-modal__accordion-item--open .product-modal__accordion-chevron {
  transform: rotate(90deg);
}

.product-modal__accordion-panel {
  padding: 0 0 14px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.product-modal__accordion-panel[hidden] {
  display: none !important;
}

.product-modal__accordion-text {
  margin: 0;
}

.product-modal__accordion-text--muted {
  color: #9ca3af;
}

.product-modal__accordion-img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-modal__recommended {
  grid-column: 1 / -1;
  padding: 20px 48px 48px;
  max-width: 100%;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.product-modal__recommended-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--black);
}

.product-modal__recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  align-items: stretch;
}

.product-modal__rec-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  overflow-wrap: break-word;
}

.product-modal__rec-card:hover {
  opacity: 0.85;
}

.product-modal__rec-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-light);
}

.product-modal__rec-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal__rec-colors {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.product-modal__rec-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.product-modal__rec-cat {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 10px;
}

.product-modal__rec-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 0;
  color: var(--black);
}

.product-modal__rec-desc {
  font-size: 9px;
  color: var(--gray-mid);
  line-height: 1.4;
  margin: 4px 0 0;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-modal__rec-price {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  margin-top: auto;
  padding-top: 6px;
  color: var(--black);
}

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

@media (max-width: 700px) {
  .product-modal__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: unset;
  }

  .product-modal__content {
    /* Как у .product-modal__gallery — одинаковый --pad-x слева/справа, выравнивание с краями фото и превью */
    padding: 36px var(--pad-x) 44px;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-modal__gallery {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-modal__close {
    top: 52px;
    right: var(--pad-x);
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .product-modal__actions-row {
    gap: 8px;
  }

  .product-modal__add-btn {
    height: 48px;
  }

  .product-modal__wishlist {
    height: 48px;
    width: 48px;
  }

  .product-modal__recommended {
    padding: 20px var(--pad-x) 48px;
    box-sizing: border-box;
  }

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

/* ══════════════════════════════════════════════════════════════
   CHECKOUT FORM
   ══════════════════════════════════════════════════════════════ */

.checkout-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-form__section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 0 20px;
  border-bottom: none;
}

/* Группа полей — визуально отделённый блок */
.checkout-form__group {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #fafafa;
  transition: background 0.15s;
}

.checkout-form__field:last-child {
  border-bottom: none;
}

.checkout-form__field:focus-within {
  background: #fff;
}

.checkout-form__label--inline {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
}


.courier-address-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.courier-address-row__col {
  flex: 1 1 140px;
  min-width: 120px;
}
.courier-address-row__col .checkout-form__input {
  width: 100%;
  box-sizing: border-box;
}

.checkout-form__label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

.checkout-form__input {
  font-family: var(--font);
  font-size: 13px;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  padding: 2px 0;
  width: 100%;
}

.checkout-form__input::placeholder {
  color: rgba(0,0,0,0.22);
  font-size: 12px;
}

/* Адрес курьера (корзина): крупнее + подсказки СДЭК */
.delivery-address-field {
  position: relative;
  overflow: visible;
}

/* Блок «только улица»: подсказки раскрываются под инпутом (не fixed — иначе в модалке с transform список обрезается) */
.courier-street-block {
  position: relative;
  z-index: 6;
  overflow: visible;
}
.cmo-courier-street-field {
  position: relative;
  z-index: 8;
  overflow: visible;
}

/* Поле улицы + очистка — как в макете */
.street-suggest-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.street-suggest-input-wrap:focus-within {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.street-suggest-input-wrap .street-suggest-input,
.street-suggest-input-wrap .checkout-form__input--address {
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px 10px 14px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.street-suggest-input-wrap .checkout-form__input--address:focus {
  background: transparent !important;
}
.street-suggest-clear {
  flex-shrink: 0;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #9e9e9e;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: color 0.15s, opacity 0.12s;
}
.street-suggest-clear:hover {
  color: #424242;
}
.street-suggest-clear--visible {
  opacity: 1;
  pointer-events: auto;
}
.street-suggest-input-wrap--modal {
  min-height: 46px;
}
.street-suggest-input-wrap--modal .cmo-field__input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}
.street-suggest-input-wrap--modal .cmo-field__input--courier-address {
  min-height: 44px !important;
  padding: 10px 6px 10px 12px !important;
}

.delivery-address-suggest.delivery-address-suggest--local {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: auto !important;
  margin-top: 6px;
  z-index: 100;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: #c4c4c4 #f0f0f0;
}
.delivery-address-suggest.delivery-address-suggest--local::-webkit-scrollbar {
  width: 6px;
}
.delivery-address-suggest.delivery-address-suggest--local::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}
.delivery-address-suggest__title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
}
.delivery-address-suggest__meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #8a8a8a;
  margin-top: 4px;
  line-height: 1.35;
}
.checkout-form__input--address {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}
.checkout-form__input--address:focus {
  background: #fff;
  border-color: rgba(17, 80, 242, 0.35);
}
.delivery-address-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.45);
}
.delivery-address-suggest {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10002;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  padding: 4px 0;
}
.delivery-address-suggest__item {
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
  line-height: 1.35;
}
.delivery-address-suggest__item:hover,
.delivery-address-suggest__item--active {
  background: #f2f2f2;
}
.delivery-address-suggest__sub {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Delivery options */
.checkout-form__delivery {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.checkout-form__delivery-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #fafafa;
  transition: background 0.15s;
}

.checkout-form__delivery-opt:last-child {
  border-bottom: none;
}

.checkout-form__delivery-opt:has(input:checked) {
  background: #fff;
}

.checkout-form__delivery-opt input[type="radio"] {
  accent-color: #1150F2;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.checkout-form__delivery-label {
  font-size: 12px;
  flex: 1;
}

.checkout-form__delivery-price {
  font-size: 10px;
  color: var(--gray-mid);
  white-space: nowrap;
}

/* Delivery section label */
.checkout-form__delivery-title {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

/* Bonus */
.checkout-form__bonus-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
  padding: 12px 14px;
  background: #fafafa;
  margin-bottom: 20px;
}

.checkout-form__input--bonus {
  width: 80px;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 13px;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  outline: none;
  padding: 2px 0;
}

.checkout-form__bonus-hint {
  font-size: 10px;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* Promo */
.checkout-form__promo-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.checkout-form__input--promo {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  color: var(--black);
  background: #fafafa;
  border: none;
  outline: none;
  padding: 12px 14px;
}

.checkout-form__input--promo::placeholder {
  color: rgba(0,0,0,0.22);
  font-size: 12px;
}

.checkout-form__promo-btn {
  font-family: var(--font);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-left: 1px solid rgba(0,0,0,0.1);
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--black);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.checkout-form__promo-btn:hover {
  background: var(--black);
  color: var(--white);
}

.checkout-form__promo-msg {
  font-size: 9px;
  margin-top: -16px;
  margin-bottom: 20px;
  padding-left: 2px;
}

.checkout-form__promo-msg--ok  { color: #1a8a3c; }
.checkout-form__promo-msg--err { color: #c0392b; }

/* Agree checkbox */
.checkout-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 0 0 28px;
}

.checkout-form__checkbox {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #1150F2;
  cursor: pointer;
}

.checkout-form__agree-text {
  font-size: 10px;
  line-height: 1.65;
  color: var(--gray-dark);
}

.checkout-form__agree-link {
  color: #1150F2;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.checkout-form__agree-link:hover {
  opacity: 0.7;
}

.checkout-form__agree--error {
  animation: agreeShake 0.4s ease;
}
.checkout-form__agree--error .checkout-form__agree-text {
  color: #c0392b;
}
@keyframes agreeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* Submit */
.checkout-form__submit {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #1150F2;
  color: #fff;
  border: none;
  padding: 18px 24px;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(17, 80, 242, 0.28);
}

.checkout-form__submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.checkout-form__submit:hover {
  background: #0a3fd4;
  box-shadow: 0 6px 28px rgba(17, 80, 242, 0.42);
  transform: translateY(-1px);
}

.checkout-form__submit:hover::after {
  transform: translateX(100%);
}

.checkout-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(17, 80, 242, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

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

@media (max-width: 960px) {
  .catalog-grid,
  .catalog-layout--filters-open .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-layout--filters-open .filter-sidebar {
    min-width: 300px;
  }

  .filter-bar__search { width: 140px; }
}

@media (max-width: 600px) {
  .catalog-hero {
    padding: calc(48px + 24px) var(--pad-x) 16px;
  }

  .catalog-hero__title {
    font-size: 22px;
    line-height: 1.5;
  }

  .drops-row {
    padding: 0 var(--pad-x) 20px;
  }

  .drops-row__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    overflow: visible;
    padding: 0;
  }

  .drop-chip {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    padding: 6px 10px 6px 6px;
  }

  .drop-chip__img-wrap {
    width: 40px;
    height: 40px;
  }

  .drop-chip__label {
    font-size: 10px;
    line-height: 1.3;
  }

  .drop-chip--active {
    transform: scale(1.01);
  }

  .filter-bar__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .filter-bar__right {
    flex: 1;
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .filter-bar__search-wrap {
    min-width: 0;
  }

  .filter-bar__search {
    width: 100%;
    min-width: 0;
    padding: 6px 28px 6px 10px;
    font-size: 9px;
  }

  .filter-bar__sort-wrap {
    min-width: 0;
  }

  .filter-bar__sort {
    width: 100%;
    min-width: 0;
    padding: 6px 28px 6px 10px;
    font-size: 9px;
  }

  .catalog-layout {
    flex-direction: column;
    gap: 0;
  }

  /* Скрытые фильтры — не занимают места; раскрытие сверху вниз */
  .filter-sidebar {
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .catalog-layout--filters-open .filter-sidebar {
    max-height: 80vh;
    overflow-y: auto;
  }

  .filter-sidebar__inner {
    width: 100%;
    max-width: none;
    padding: 16px 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s,
                transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
  }

  .catalog-layout--filters-open .filter-sidebar__inner {
    opacity: 1;
    transform: translateY(0);
  }

  .filter-sidebar__section {
    margin-bottom: 16px;
  }

  .filter-sidebar__selected-wrap {
    margin-bottom: 24px;
  }

  .filter-sidebar__selected-row {
    gap: 8px 10px;
  }

  .filter-sidebar__reset {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  .filter-sidebar__reset-x {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  .filter-sidebar__title {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 8px;
  }

  .filter-sidebar__pill {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }

  .filter-sidebar__pills {
    gap: 6px;
  }

  .catalog-grid-wrap {
    padding: 16px 0 60px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }

  .product-card__info {
    padding: 8px 0 0;
  }

  .product-card__name {
    font-size: 10px;
  }

  .product-card__desc-short {
    font-size: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__price {
    font-size: 11px;
  }

  .product-card__collection {
    font-size: 7px;
  }

  .filter-bar__search { width: 100%; }
  .filter-bar__sort { min-width: 0; }

  .sub-filters__row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cart-drawer__header {
    padding: 24px 20px 18px;
  }

  .cart-drawer__body {
    padding: 0 20px 28px;
  }

  .wishlist-drawer__header {
    padding: 18px 20px;
  }

  .wishlist-drawer__body {
    padding: 0 20px 24px;
  }
}

/* ══════════════════════════════════════════════════════════════
   DELIVERY — динамический блок в корзине
   ══════════════════════════════════════════════════════════════ */

.checkout-form__delivery-section {
  margin-bottom: 20px;
}

/* Группа доставки: город + методы в одном блоке */
.checkout-form__group--delivery .checkout-form__delivery {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-form__group--delivery .checkout-form__delivery-opt {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.checkout-form__group--delivery .checkout-form__delivery-opt:last-child {
  border-bottom: none;
}

.checkout-form__delivery--loading {
  padding: 12px 14px;
  background: #fafafa;
  opacity: 0.85;
}

.delivery-loading-text,
.delivery-error-text {
  font-size: 13px;
  color: var(--gray, #888);
  letter-spacing: 0.04em;
}

.delivery-error-text {
  color: #e53935;
}

.delivery-methods--error .checkout-form__delivery-opt {
  border-color: #e53935 !important;
}

/* ── Подсказки города ── */
#deliveryCityWrap.checkout-form__group {
  overflow: visible;
}
.delivery-city-field {
  position: relative;
  overflow: visible;
}

.delivery-city-suggest {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 4px 0;
}

/* Подсказки улицы: под инпутом (не fixed — модалка и сайдбар с transform) */
.courier-street-block > .delivery-city-suggest,
.cmo-courier-street-field > .delivery-city-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: auto;
  margin-top: 4px;
  z-index: 100;
  box-sizing: border-box;
}

.delivery-city-suggest__item {
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1.3;
}

.delivery-city-suggest__item:hover,
.delivery-city-suggest__item--active {
  background: rgba(17, 80, 242, 0.07);
}

.delivery-city-suggest__item mark {
  background: none;
  color: #1150f2;
  font-weight: 600;
}

.delivery-city-suggest__region {
  color: #aaa;
  font-size: 12px;
  margin-left: 2px;
  white-space: nowrap;
}

.delivery-city-error {
  font-size: 12px;
  color: #e53935;
  margin-top: 8px;
  padding: 4px 0;
}

/* ── Список ПВЗ ── */
.pvz-list__header {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray, #666);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pvz-list {
  margin-top: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.pvz-list::-webkit-scrollbar {
  width: 4px;
}
.pvz-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.pvz-list__loading,
.pvz-list__error {
  font-size: 13px;
  color: var(--gray, #888);
  padding: 10px 0;
  text-align: center;
}

.pvz-list__error {
  color: #e53935;
}

.pvz-list--error {
  border: 1px solid #e53935;
  border-radius: 8px;
  padding: 4px;
}

.pvz-item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background: var(--white, #fff);
}

.pvz-item:hover {
  background: rgba(17, 80, 242, 0.04);
  border-color: rgba(17, 80, 242, 0.25);
}

.pvz-item--active {
  background: rgba(17, 80, 242, 0.07);
  border-color: #1150f2;
}

.pvz-item__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black, #111);
  margin-bottom: 3px;
}

.pvz-item__address {
  font-size: 12px;
  color: var(--gray, #666);
  line-height: 1.4;
}

.pvz-item__hours {
  font-size: 11px;
  color: var(--gray, #888);
  margin-top: 3px;
  opacity: 0.8;
}

/* ── Выбранный ПВЗ ── */
.pvz-selected {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(17, 80, 242, 0.06);
  border: 1px solid rgba(17, 80, 242, 0.3);
}

.pvz-selected__inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pvz-selected__check {
  font-size: 16px;
  color: #1150f2;
  flex-shrink: 0;
  margin-top: 1px;
}

.pvz-selected__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black, #111);
  margin-bottom: 2px;
}

.pvz-selected__addr {
  font-size: 12px;
  color: var(--gray, #666);
}

.pvz-selected__clear {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray, #888);
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}

.pvz-selected__clear:hover {
  color: #e53935;
}

/* ── Строка стоимости доставки ── */
.delivery-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.delivery-cost-label {
  font-size: 13px;
  color: var(--gray, #666);
  letter-spacing: 0.04em;
}

.delivery-cost-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--black, #111);
  letter-spacing: 0.03em;
}

/* ── Индекс (Почта России) ── */
.delivery-index-input {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .pvz-list {
    max-height: 220px;
  }
}

/* ══════════════════════════════════════════════════════════════
   CHECKOUT MODAL — полноэкранный поп-ап оформления заказа
   ══════════════════════════════════════════════════════════════ */

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.checkout-modal--open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Внутренний контейнер: две колонки (форма + сайдбар) */
.checkout-modal__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 72px 80px 60px 40px;
  position: relative;
}

/* Кнопка закрыть */
.checkout-modal__close {
  position: fixed;
  top: 20px;
  right: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--black);
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.checkout-modal__close:hover { opacity: 1; }

/* Заголовок оформления + подсказка гостю */
.checkout-modal__head {
  margin-bottom: 40px;
}

.checkout-modal__title {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}

.cmo-guest-hint {
  margin: 10px 0 0;
  max-width: 36em;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #737373;
}

.cmo-guest-hint__link {
  color: #404040;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.cmo-guest-hint__link:hover {
  color: var(--black);
}

/* Левая колонка — форма (слева) */
.checkout-modal__left {
  flex: 1 1 0;
  max-width: 960px;
  min-width: 0;
  padding: 0;
}

/* Правая колонка — саммари (справа, фиксированная ширина) */
.checkout-modal__right {
  flex: 0 0 420px;
  width: 420px;
  padding: 80px 0 48px 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

/* ── Секция формы ── */
.cmo-section {
  margin-bottom: 40px;
}

.cmo-section__num {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

/* ── Строки полей ── */
.cmo-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ── Одиночное поле ── */
.cmo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.cmo-field__input-wrap {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 0;
  transition: border-color 0.2s, background 0.15s;
  position: relative;
}

.cmo-field:focus-within .cmo-field__input-wrap {
  border-color: #b0b0b0;
  background: #fff;
}

.cmo-field--full {
  margin-bottom: 16px;
}

.cmo-field--full .cmo-field__input-wrap {
  border: 1px solid #E0E0E0;
  padding: 0;
  border-radius: 0;
}

.cmo-field__label {
  display: block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--black);
  white-space: normal;
  min-height: 1.5em;
  box-sizing: border-box;
}

.cmo-field__label .cmo-req {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cmo-req {
  color: #c0392b;
}

.cmo-field__input {
  font-family: var(--font);
  font-size: 13px;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  padding: 2px 0;
  width: 100%;
  min-height: 20px;
}

.cmo-field__input::placeholder {
  color: #9e9e9e;
  font-size: 12px;
}

/* ── Ошибки валидации (незаполненные поля при оформлении из корзины) ── */
.cmo-field.cmo-field--error .cmo-field__label {
  color: #c0392b;
}
.cmo-field.cmo-field--error .cmo-field__input-wrap {
  border-color: #c0392b !important;
}
.cmo-courier-cell.cmo-courier-cell--error .cmo-courier-cell__label {
  color: #c0392b;
}
.cmo-courier-cell.cmo-courier-cell--error .cmo-field__input:focus,
.cmo-courier-cell.cmo-courier-cell--error .street-suggest-input-wrap:has(.cmo-field__input:focus) {
  outline: none;
}
.cmo-courier-cell.cmo-courier-cell--error:not(:focus-within) .street-suggest-input-wrap,
.cmo-courier-cell.cmo-courier-cell--error:not(:focus-within) .cmo-field__input:not(:focus) {
  outline: 2px solid rgba(192, 57, 43, 0.55);
  outline-offset: 0;
}
.cmo-checkbox-label.cmo-checkbox-label--error .cmo-checkbox-text {
  color: #c0392b;
}

/* Тексты ошибок под полями (клиентская валидация модалки оформления) */
.cmo-field__hint,
.cmo-courier-cell__hint,
.cmo-checkbox-label__hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #c0392b;
}
.cmo-courier-cell__hint {
  margin-top: 4px;
}

/* ── Телефон с флагом ── */
.cmo-phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmo-phone-country {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-right: 8px;
  border-right: 1px solid #E0E0E0;
  position: relative;
  min-width: 90px;
}

.cmo-phone-country__select {
  display: none;
}

.cmo-phone-country__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: var(--black);
}

.cmo-phone-country__flag {
  flex-shrink: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
}

.cmo-phone-country__flag svg {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 1px;
}

.cmo-phone-country__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 248px;
  max-height: 252px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  z-index: 40;
  display: none;
}

.cmo-phone-country__menu[data-open="true"] {
  display: block;
}

.cmo-phone-country__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: #000;
  cursor: pointer;
}

.cmo-phone-country__opt:hover {
  background: #f5f5f5;
}

.cmo-phone-country__opt-flag {
  flex-shrink: 0;
  line-height: 0;
  display: inline-flex;
}

.cmo-phone-country__opt-flag svg {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 1px;
}

.cmo-phone-country__opt-name {
  flex: 1;
}

.cmo-phone-country__opt-code {
  color: #777;
}

.cmo-phone-country__code {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.cmo-phone-country__chevron {
  color: #757575;
  flex-shrink: 0;
}

.cmo-field__input--phone {
  flex: 1;
}

.cmo-field--phone .cmo-phone-wrap {
  display: flex;
  align-items: center;
  min-height: 20px;
}

/* ── Чекбоксы ── */
.cmo-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.cmo-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.cmo-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--black);
}

.cmo-checkbox-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: normal;
  color: #616161;
}

.cmo-link {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Строка доставки (город + тип) ── */
.cmo-fields-row--delivery-top {
  margin-bottom: 16px;
}

.cmo-fields-row--delivery-top .cmo-field {
  flex: 1;
  min-width: 0;
}

.cmo-fields-row--delivery-top .cmo-field__input-wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.cmo-fields-row--delivery-top .cmo-field__input-wrap .cmo-field__input {
  min-height: 0;
}

.cmo-field--delivery-type .cmo-field__input-wrap {
  padding: 0;
  border-radius: 0;
}

/* ── Международная доставка: подсказки ── */
.cmo-delivery-tabs--scope {
  margin-bottom: 18px;
}
.cmo-intl-hint {
  color: #d11;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 18px;
}
.cmo-intl-summary-hint {
  color: #d11;
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0 12px;
}

/* Поля «Город» и «Адрес» в международной доставке делаем крупнее, чем стандартные cmo-fields. */
#cmoDeliveryIntlBlock .cmo-field--full {
  margin-bottom: 18px;
}
#cmoDeliveryIntlBlock .cmo-field__input-wrap {
  padding: 14px 18px;
}
#cmoDeliveryIntlBlock .cmo-field__input {
  font-size: 15px;
  min-height: 28px;
  padding: 4px 0;
}
#cmoDeliveryIntlBlock .cmo-field__input::placeholder {
  font-size: 14px;
}

/* ── Табы тип доставки ── */
.cmo-delivery-tabs {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 42px;
}

.cmo-delivery-tab {
  flex: 1;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid #E0E0E0;
  background: #fff;
  color: #9e9e9e;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.cmo-delivery-tab + .cmo-delivery-tab {
  border-left: none;
}

.cmo-delivery-tab--active {
  background: #fff;
  color: var(--black);
  border-color: var(--black);
}

/* ── Службы доставки (радио-кнопки) ── */
.cmo-carriers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cmo-carriers-loading,
.cmo-carriers-error,
.cmo-carriers-empty {
  font-size: 12px;
  color: var(--gray-mid);
  padding: 12px 0;
}

.cmo-carriers-error {
  color: #c62828;
}

.cmo-carrier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #E0E0E0;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s;
}

.cmo-carrier:last-child {
  border-bottom: none;
}

.cmo-carrier:has(input:checked) {
  background: #fff;
}

.cmo-carrier__radio {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--black);
}

.cmo-carrier__name {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
  color: var(--black);
}

.cmo-carrier__price {
  font-size: 10px;
  color: var(--gray-mid);
  white-space: nowrap;
}

/* ── ПВЗ список пунктов выдачи ── */
.cmo-field__input-wrap--pvz {
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}

.cmo-pvz-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 0;
}

.cmo-pvz-list::-webkit-scrollbar {
  width: 6px;
}

.cmo-pvz-list::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.cmo-pvz-list::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 3px;
}

.cmo-pvz-list::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}

.cmo-pvz-placeholder,
.cmo-pvz-loading,
.cmo-pvz-empty,
.cmo-pvz-error {
  display: block;
  padding: 20px 16px;
  font-size: 12px;
  color: var(--gray-mid);
  text-align: center;
}

.cmo-pvz-loading {
  color: var(--black);
}

.cmo-pvz-error {
  color: #c62828;
}

.cmo-pvz-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #E0E0E0;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s;
}

.cmo-pvz-item:last-child {
  border-bottom: none;
}

.cmo-pvz-item:hover {
  background: #f5f5f5;
}

.cmo-pvz-item:has(input:checked) {
  background: #fff;
  border-left: 3px solid var(--black);
  padding-left: 13px;
}

.cmo-pvz__radio {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--black);
  cursor: pointer;
}

.cmo-pvz-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmo-pvz-item__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.cmo-pvz-item__addr {
  font-size: 11px;
  color: var(--gray-mid);
  line-height: 1.4;
}

.cmo-pvz-item__hours {
  font-size: 10px;
  color: #757575;
  letter-spacing: 0.02em;
}

.cmo-field__input-wrap--pvz .cmo-map-link {
  display: inline-block;
  margin: 12px 16px 10px;
  font-size: 10px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 0.04em;
}

/* ── Модал карты пунктов выдачи ── */
.cmo-map-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.cmo-map-modal--open {
  opacity: 1;
  visibility: visible;
}

.cmo-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}

.cmo-map-modal__inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cmo-map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E0E0E0;
  flex-shrink: 0;
}

.cmo-map-modal__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}

.cmo-map-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--black);
  cursor: pointer;
  transition: background 0.15s;
}

.cmo-map-modal__close:hover {
  background: #f5f5f5;
}

.cmo-map-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.cmo-map-container {
  width: 100%;
  height: 400px;
  min-height: 300px;
  background: #f5f5f5;
  border-radius: 2px;
  overflow: hidden;
}

.cmo-map-modal__hint {
  font-size: 10px;
  color: var(--gray-mid);
  margin: 12px 0 0;
  letter-spacing: 0.04em;
}

/* ── Подсказки города ── */
.cmo-city-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-top: none;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.cmo-city-suggest__item {
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.12s;
}

.cmo-city-suggest__item:hover {
  background: #f5f5f5;
}

/* ── Оплата (сетка 2x2) ── */
.cmo-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cmo-payment-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #E0E0E0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
  margin: -1px 0 0 -1px;
}

.cmo-payment-opt:has(input:checked) {
  background: #fff;
}

.cmo-payment__check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.cmo-payment__name {
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  flex: 1;
  line-height: 1.5;
}

.cmo-payment__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cmo-payment__badge-img {
  width: auto;
  height: auto;
  object-fit: contain;
}

.cmo-payment__badge--sbp .cmo-payment__badge-img {
  width: 20px;
  height: 24px;
}

.cmo-payment__badge--dolyami .cmo-payment__badge-img {
  width: 82px;
  height: 24px;
}

.cmo-payment__badge--split .cmo-payment__badge-img {
  width: 83px;
  height: 23px;
}

/* ══════════════════════════════════════════════════════════════
   ПРАВАЯ КОЛОНКА: ПРЕВЬЮ ТОВАРОВ + СУММА
   ══════════════════════════════════════════════════════════════ */

/* Превью товаров — карточки с изображением, названием, ценой */
.cmo-items-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.cmo-item-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmo-item-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
}

.cmo-item-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmo-item-card__img--placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
  display: block;
}

.cmo-item-card__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background 0.2s;
}

.cmo-item-card__remove:hover {
  background: rgba(0,0,0,0.9);
}

.cmo-item-card__name {
  font-size: 10px;
  color: var(--black);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmo-item-card__price {
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
}

/* Блок суммы */
.cmo-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cmo-summary__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E0E0E0;
}

.cmo-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.cmo-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #E0E0E0;
  font-size: 12px;
  line-height: 150%;
  font-weight: 400;
  letter-spacing: normal;
  color: rgba(0,0,0,0.6);
}

.cmo-summary__row:last-child {
  border-bottom: none;
}

.cmo-summary__row-name {
  flex: 1;
  padding-right: 12px;
  font-weight: 400;
  line-height: 150%;
}

.cmo-summary__row-price {
  font-weight: 500;
  line-height: 150%;
  white-space: nowrap;
  color: var(--black);
}

/* Промокод */
.cmo-promo__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: normal;
  color: var(--black);
  margin-bottom: 8px;
}

.cmo-promo {
  display: flex;
  gap: 0;
  border: 1px solid #E0E0E0;
  border-radius: 0;
  margin-bottom: 6px;
  overflow: hidden;
}

.cmo-promo__input {
  flex: 1;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--black);
  background: #fafafa;
  border: none;
  outline: none;
  padding: 12px 14px;
}

.cmo-promo__input::placeholder {
  color: rgba(0,0,0,0.3);
}

.cmo-promo__btn {
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  border: none;
  border-left: 1px solid #E0E0E0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cmo-promo__btn:hover {
  background: var(--black);
  color: var(--white);
}

.cmo-promo__msg {
  font-size: 10px;
  margin-bottom: 12px;
  min-height: 16px;
  letter-spacing: 0.02em;
}

.cmo-promo__msg--ok  { color: #1a8a3c; }
.cmo-promo__msg--err { color: #c0392b; }

/* Подарочная карта */
.cmo-giftpay {
  margin-top: 18px;
  margin-bottom: 18px;
}

.cmo-giftpay__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.cmo-giftpay__title {
  font-size: 14px;
  font-weight: 300;
  line-height: normal;
  color: var(--black);
}

.cmo-giftpay__switch {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
}

.cmo-giftpay__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cmo-giftpay__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #a6a6a6;
  transition: background .18s ease;
}

.cmo-giftpay__slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}

.cmo-giftpay__switch input:checked + .cmo-giftpay__slider {
  background: #1150F2;
}

.cmo-giftpay__switch input:checked + .cmo-giftpay__slider::after {
  transform: translateX(16px);
}

.cmo-giftpay__switch input:disabled + .cmo-giftpay__slider {
  opacity: .55;
  cursor: default;
}

.cmo-giftpay__body {
  margin-top: 12px;
}

.cmo-giftpay__hint {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-mid);
  font-size: 12px;
  line-height: 1.4;
}

.cmo-giftpay__field {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,.14);
  min-height: 52px;
  background: #fff;
}

.cmo-giftpay__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 52px;
  background: transparent;
  color: var(--black);
}

.cmo-giftpay__input::-webkit-outer-spin-button,
.cmo-giftpay__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cmo-giftpay__balance {
  flex: 0 0 auto;
  padding: 0 20px;
  color: #1150F2;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.cmo-giftpay__msg {
  margin: 10px 0 0;
  color: #1150F2;
  font-size: 13px;
  line-height: 1.35;
}

/* Итого */
.cmo-summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 20px;
  border-top: 1px solid #E0E0E0;
}

.cmo-summary__total-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--black);
}

.cmo-summary__total-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

/* Сообщение после оформления (без alert — видно во встроенном браузере) */
.cmo-order-feedback {
  font-size: 12px;
  line-height: 1.5;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--black);
}

.cmo-order-feedback--warn {
  background: rgba(180, 80, 40, 0.12);
  border: 1px solid rgba(180, 80, 40, 0.35);
}

/* Кнопка оплатить */
.cmo-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  gap: 10px;
}

.cmo-pay-btn__icon {
  flex-shrink: 0;
}

.cmo-pay-btn:hover {
  opacity: 0.85;
}

/* Неактивное состояние: пока не все обязательные поля заполнены.
   Не используем атрибут disabled — иначе submit не сработает и юзер не увидит подсветку. */
.cmo-pay-btn.cmo-pay-btn--inactive {
  background: #bdbdbd;
  cursor: not-allowed;
}
.cmo-pay-btn.cmo-pay-btn--inactive:hover {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   РАЗДЕЛ «РЕКОМЕНДУЕМ» внутри попапа
   ══════════════════════════════════════════════════════════════ */

.cmo-recommend {
  padding: 48px 60px 60px;
  max-width: 100%;
}

.cmo-recommend__title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}

.cmo-recommend__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cmo-rec-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.cmo-rec-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--gray-light);
  overflow: hidden;
}

.cmo-rec-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cmo-rec-card:hover .cmo-rec-card__img {
  transform: scale(1.04);
}

.cmo-rec-card__wishlist {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cmo-rec-card__wishlist:hover { background: #fff; }

.cmo-rec-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmo-rec-card__collection {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.cmo-rec-card__name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
}

.cmo-rec-card__desc {
  font-size: 9px;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmo-rec-card__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
}

/* ── Адрес курьера (модалка): отдельные ячейки вместо «слипшегося» блока ── */
.cmo-field--full .cmo-courier-address-wrap {
  padding: 12px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.cmo-courier-address-wrap {
  position: relative;
  overflow: visible;
}

.cmo-courier-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: stretch;
  overflow: visible;
}

.cmo-courier-cell--street {
  grid-column: 1 / -1;
  overflow: visible;
  z-index: 5;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.cmo-courier-cell--street .cmo-courier-cell__label {
  margin-bottom: 8px;
}

.cmo-courier-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cmo-courier-cell:focus-within {
  border-color: #bdbdbd;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.cmo-courier-cell__label {
  display: block;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.2;
}

.cmo-courier-cell .cmo-field__input {
  padding: 6px 0 4px;
  min-height: 28px;
}

#cmoCourierWrap .cmo-courier-cell--street .cmo-field__input--courier-address {
  font-size: 14px;
  min-height: 40px;
  padding: 8px 0 6px;
  line-height: 1.35;
}

.cmo-courier-address-hint {
  margin: 10px 0 0;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 400px) {
  .cmo-courier-address-grid {
    grid-template-columns: 1fr;
  }
  .cmo-courier-cell--street {
    grid-column: 1;
  }
}

/* ── Адаптив ── */
@media (max-width: 960px) {
  .checkout-modal__inner {
    flex-direction: column;
    padding: 64px 0 48px;
  }

  .checkout-modal__left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 0 32px 40px;
    margin-bottom: 40px;
  }

  .checkout-modal__right {
    width: 100%;
    flex: none;
    position: static;
    padding: 0 32px 48px;
  }

  .cmo-items-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .cmo-recommend__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmo-recommend {
    padding: 40px 32px 48px;
  }
}

@media (max-width: 600px) {
  .checkout-modal__left {
    padding: 0 16px 40px;
  }

  .checkout-modal__right {
    padding: 0 16px 40px;
  }

  .cmo-fields-row {
    grid-template-columns: 1fr;
  }

  .cmo-field {
    border-right: none;
  }

  .cmo-fields-row--delivery-top {
    grid-template-columns: 1fr;
  }

  .cmo-payment-grid {
    grid-template-columns: 1fr;
  }

  .cmo-recommend__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cmo-recommend {
    padding: 32px 16px 40px;
  }

  .cmo-items-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════
   Страница коллекции (комплект)
   ══════════════════════════════════════════════════════════════ */

.collection-page-body {
  background: #f6f6f6;
}

.collection-page__hero.catalog-hero {
  width: 100%;
  max-width: none;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.collection-page__hero .catalog-hero__title {
  flex: 1;
  min-width: 0;
}

.collection-page__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--black, #111);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.collection-page__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.collection-page__close:focus-visible {
  outline: 2px solid var(--black, #111);
  outline-offset: 2px;
}

.collection-page__loading,
.collection-page__error {
  padding: 24px var(--pad-x);
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.collection-page__error {
  color: #991b1b;
}

.collection-page__error:empty {
  display: none;
}

.collection-page__toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  background: #111;
  color: #fff;
  padding: 14px 24px;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.collection-page {
  width: 100%;
  max-width: var(--page-max-w);
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
}

.collection-page__header-band {
  width: 100%;
  padding: 0 var(--pad-x) 32px;
  box-sizing: border-box;
}

.collection-page__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-mid, #555);
  margin: 0;
  max-width: 52rem;
}

.collection-page__lead:empty {
  display: none;
}

.collection-page__empty {
  padding: 24px 0;
  color: var(--gray-mid, #666);
}

/* На всю ширину: галерея + колонка карточек */
.collection-page__split.product-modal__inner {
  min-height: 0;
  overflow: visible;
  align-items: flex-start;
  width: 100%;
  max-width: var(--page-max-w);
  margin-inline: auto;
  padding: 8px var(--pad-x) 48px;
  box-sizing: border-box;
  grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 4vw, 72px);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.collection-page__gallery-col.product-modal__gallery {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 96px);
  padding: 8px 0 32px;
  overflow-y: auto;
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.collection-page__gallery-col .product-modal__gallery-main {
  /* Не растягиваемся на весь flex — иначе слайд и img становятся «квадратом» и фото выглядит обрезанным */
  flex: 0 0 auto;
  width: calc(100% - 24px);
  height: min(78vh, 720px);
  max-height: min(78vh, 720px);
  min-height: 280px;
  border-radius: 12px;
  margin: 0 12px;
  overflow: hidden;
}

.collection-page__gallery-col .product-modal__gallery-track {
  height: 100%;
  align-items: stretch;
}

.collection-page__gallery-col .product-modal__gallery-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px;
  height: 100%;
  background: var(--gray-light);
}

.collection-page__gallery-col .product-modal__gallery-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.collection-page__gallery-col .product-modal__thumbnails {
  padding: 0 12px 8px;
}

.collection-page__products-col.product-modal__content {
  padding: 8px 0 40px;
  gap: 0;
  overflow: visible;
  max-width: 640px;
  display: flex;
  flex-direction: column;
}

.collection-product-block__index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid, #888);
  margin: 0 0 14px;
}

.collection-product-block {
  padding: 32px 36px 36px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.04);
}

.collection-product-block:last-child {
  margin-bottom: 0;
}

.collection-product-block .product-modal__name {
  margin: 0 0 18px;
  line-height: 1.35;
}

.collection-product-block .product-modal__price-row {
  margin: 0 0 16px;
}

.collection-product-block .product-modal__desc {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.65;
}

.collection-product-block .product-modal__options--color {
  margin-bottom: 24px;
}

.collection-product-block .product-modal__options--size {
  margin-bottom: 8px;
}

.collection-product-block .product-modal__options {
  gap: 14px;
}

.collection-product-block .product-modal__options-label {
  display: block;
  margin-bottom: 4px;
  line-height: 1.5;
}

.collection-product-block .product-modal__colors {
  margin-top: 4px;
  gap: 12px;
}

.collection-product-block .product-modal__sizes {
  margin-top: 4px;
  gap: 10px;
}

.collection-product-block .product-modal__accordions {
  margin-top: 32px;
  padding-top: 8px;
}

.collection-product-block .product-modal__accordion {
  padding: 16px 0;
  min-height: 48px;
  box-sizing: border-box;
}

.collection-product-block__err {
  margin: 20px 0 0;
  padding-top: 4px;
  font-size: 13px;
  color: #991b1b;
}

.collection-product-block--invalid .product-modal__options--required .product-modal__options-label {
  color: #991b1b;
}

.collection-page__actions {
  margin: 0;
}

/* Липкая панель в конце блока коллекции: не перекрывает футер, при прокрутке вниз уезжает вместе с контентом */
.collection-page__actions--bar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 200;
  margin-top: 8px;
  padding: 14px var(--pad-x);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.06);
}

.collection-page__actions-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
}

.collection-page__sum-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.collection-page__sum-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid, #666);
}

.collection-page__sum {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black, #111);
}

.collection-page__add-all {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 40px;
  background: var(--black, #111);
  color: var(--white, #fff);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.collection-page__add-all:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.collection-page__add-all:active {
  transform: translateY(0);
}

.collection-page__back {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black, #111);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.collection-page__back:hover {
  opacity: 0.55;
}

@media (max-width: 900px) {
  .collection-page__split.product-modal__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    gap: 28px;
  }

  .collection-page__gallery-col.product-modal__gallery {
    position: static;
    max-height: none;
    padding: 12px 0 20px;
    overflow: visible;
  }

  .collection-page__gallery-col .product-modal__gallery-main {
    height: min(62vh, 520px);
    max-height: min(62vh, 520px);
    min-height: 240px;
    margin: 0 8px;
    width: calc(100% - 16px);
  }

  .collection-page__gallery-col .product-modal__gallery-slide {
    padding: 8px;
  }

  .collection-page__products-col.product-modal__content {
    padding: 0;
    max-width: none;
  }

  .collection-product-block {
    padding: 24px 22px 28px;
  }

  .collection-product-block .product-modal__accordions {
    margin-top: 26px;
  }

  .collection-page__actions-inner {
    flex-direction: column;
    text-align: center;
  }

  .collection-page__sum-wrap {
    align-items: center;
  }

  .collection-page__add-all {
    width: 100%;
    max-width: 400px;
  }
}
