/*!
 * TopSkin CMS — дополнительные стили.
 *
 * Здесь собраны стили блоков, которых не было в исходном одностраничном
 * шаблоне: страницы каталога и товара, корзина, поиск, кнопка обратного
 * звонка, уведомления.
 */

:root {
  --ts-accent: #c376ff;
  --ts-accent-2: #a5d9ff;
  --ts-light: #f5fdfe;
  --ts-dark: #0f1216;
  --ts-border: rgba(245, 253, 254, .25);
}

/* --- Короткий первый экран для внутренних страниц ----------------------- */

.hero--short {
  min-height: auto;
  padding-bottom: 34px;
}

.hero__inner--short {
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero__title--page {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.15;
}

.hero__subtitle {
  margin: 0;
  max-width: 900px;
  color: #cfe0ee;
  font-size: 17px;
}

@media (max-width: 768px) {
  .hero__title--page { font-size: 26px; }
}

/* --- Хлебные крошки ------------------------------------------------------ */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #9fb3c6;
}

.breadcrumbs li { position: relative; }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 14px;
  color: #6c7c8c;
}

.breadcrumbs a { color: #cfe0ee; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: #8fa3b6; }

/* --- Корзина в шапке -----------------------------------------------------
   Компактная кнопка-иконка: занимает ровно 44 px и не раздвигает меню,
   поэтому номер телефона остаётся на своём месте.
   ------------------------------------------------------------------------ */

.header__logo,
.header__phone,
.header__socials,
.header__cart,
.header__burger {
  flex: 0 0 auto;
}

/* Меню в шапке не переносится на вторую строку */
.header__menu {
  flex-wrap: nowrap;
  min-width: 0;
}

.header__list a {
  white-space: nowrap;
}

.header__phone {
  white-space: nowrap;
}

.header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: 18px;
  border: 1px solid #7e98ab;
  border-radius: 50%;
  color: #bdcadd;
  transition: .25s ease-in-out;
}

.header__cart:hover,
.header__cart:focus {
  border-color: #f5fdfe;
  color: #f5fdfe;
}

.header__cart-icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Счётчик появляется только когда корзина не пуста */
.header__cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: linear-gradient(90deg, #7ed957, #edff1b);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.header__cart.is-filled .header__cart-count {
  display: block;
}

.header__cart.is-filled {
  border-color: #edff1b;
  color: #f5fdfe;
}

/* Пока корзина пуста, показываем её бледнее — но место не меняется */
.header__cart:not(.is-filled) {
  opacity: .75;
}

/* На средних экранах слегка ужимаем отступы, чтобы всё влезало в одну строку */
@media (max-width: 1450px) and (min-width: 1201px) {
  .header__nav { margin-right: 32px; }
  .header__socials { margin-right: 18px; }
  .header__phone { font-size: 21px; }
  .header__cart { margin-left: 14px; }
  .header__list li:not(:last-child) { margin-right: 12px; }
  .header__list a { padding-left: 10px; padding-right: 10px; }
}

/* В выпадающем меню на планшетах и телефонах корзина становится
   широкой кнопкой с подписью */
@media (max-width: 1200px) {
  .header__cart {
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    height: 48px;
    margin: 0 0 20px;
    padding: 0 24px;
    border-radius: 100px;
  }

  .header__cart::after {
    content: "Корзина";
    margin-left: 10px;
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 16px;
  }

  .header__phone {
    margin-bottom: 16px;
  }
}

/* --- Каталог: сетка, фильтры, тулбар ------------------------------------ */

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.catalog__slide--grid {
  display: flex;
  width: auto;
  flex-direction: column;
}

.catalog__grid--related {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog__grid--related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .catalog__grid,
  .catalog__grid--related { grid-template-columns: 1fr; }
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.catalog__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid var(--ts-light);
  border-radius: 100px;
  color: #fff;
  font-weight: 500;
  transition: .2s ease-in-out;
}

.catalog__filter span {
  padding: 1px 8px;
  border-radius: 100px;
  background: rgba(245, 253, 254, .16);
  font-size: 13px;
}

.catalog__filter:hover,
.catalog__filter.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #F82929 0%, #C376FF 100%);
}

.catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.catalog__found { margin: 0; color: #cfe0ee; }

.catalog__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfe0ee;
  font-size: 15px;
}

.catalog__sort select {
  padding: 10px 16px;
  border: 1px solid var(--ts-border);
  border-radius: 100px;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 15px;
}

.catalog__sort select option { color: #000; }

.catalog__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(195, 118, 255, .22);
  color: #e5cdff;
  font-size: 13px;
}

.catalog__count,
.catalog__empty {
  margin: 0 0 20px;
  color: #b7c9da;
  text-align: center;
}

.catalog__more { text-align: center; }

.catalog__item-title a { color: inherit; }
.catalog__item-title a:hover { color: var(--ts-accent); }

.catalog__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.catalog__btn--cart { padding: 12px 20px; font-size: 16px; }
.catalog__btn--more { padding: 11px 20px; font-size: 15px; }

.catalog__price--ask {
  font-size: 15px;
  font-weight: 500;
  color: #ffd479;
}

.catalog__price:last-child { margin-right: 0; }

@media (max-width: 1400px) {
  .catalog__footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .catalog__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}


/* Картинка карточки — ссылка на страницу товара */
a.catalog__img { display: block; }

/* --- Страница товара ----------------------------------------------------- */

.product { background: linear-gradient(0deg, #000 0, #516686 100%); color: var(--ts-light); }

.product__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  margin-bottom: 50px;
}

@media (max-width: 980px) {
  .product__inner { grid-template-columns: 1fr; gap: 28px; }
}

.product__image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ts-border);
  border-radius: 20px;
}

.product__image img {
  display: block;
  width: 100%;
  height: auto;
}

.product__purpose,
.product__badge {
  position: absolute;
  left: 16px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 13px;
}

.product__purpose { bottom: 16px; }
.product__badge { top: 16px; background: linear-gradient(90deg, #7ed957, #edff1b); color: #000; font-weight: 600; }

.product__thumbs {
  display: flex;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.product__thumbs button {
  padding: 0;
  width: 84px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--ts-border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.product__thumbs button.is-active { border-color: var(--ts-accent); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__subtitle {
  margin: 0 0 10px;
  color: var(--ts-accent-2);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product__short {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.45;
}

.product__prices {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.product__prices th,
.product__prices td {
  padding: 12px 0;
  border-bottom: 1px solid var(--ts-border);
  text-align: left;
}

.product__prices th { color: #cfe0ee; font-weight: 500; }
.product__prices td { font-family: "Russo One", sans-serif; font-size: 26px; text-align: right; white-space: nowrap; }
.product__ask { color: #ffd479; font-size: 17px !important; text-align: left !important; font-family: Roboto, sans-serif !important; }

.product__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.product__unit { display: flex; gap: 16px; width: 100%; }
.product__unit label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #cfe0ee; }

.product__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ts-border);
  border-radius: 100px;
  overflow: hidden;
}

.product__qty button {
  width: 44px;
  height: 46px;
  border: 0;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.product__qty input {
  width: 62px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  text-align: center;
}

.product__cart,
.product__oneclick { padding: 14px 26px; font-size: 16px; }

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.product__actions .btn-outline { padding: 13px 24px; font-size: 15px; }

.product__usp {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #b7c9da;
  font-size: 15px;
}

.product__usp li::before { content: "✓"; margin-right: 8px; color: #7ed957; }

.product__block { margin-bottom: 46px; }

.product__block-title {
  margin: 0 0 20px;
  font-family: "Russo One", sans-serif;
  font-size: 26px;
  color: #fff;
}

.product__specs { max-width: 760px; }

.product__description {
  max-width: 900px;
  color: #dbe7f1;
  font-size: 17px;
  line-height: 1.6;
}

.product__description p { margin: 0 0 16px; }

.product__sku { color: #9fb3c6; font-size: 14px; }

.product__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--ts-border);
}

.product__nav-link { color: var(--ts-accent-2); font-size: 16px; }
.product__nav-link:hover { color: #fff; }
.product__nav-link--next { margin-left: auto; text-align: right; }

/* --- Корзина ------------------------------------------------------------- */

.cart { background: linear-gradient(0deg, #000 0, #516686 100%); color: var(--ts-light); }

.cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 34px;
  align-items: start;
}

@media (max-width: 1100px) {
  .cart__layout { grid-template-columns: 1fr; }
}

.cart__title {
  margin: 0 0 20px;
  font-family: "Russo One", sans-serif;
  font-size: 24px;
  color: #fff;
}

.cart__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart__table thead th {
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--ts-border);
  color: #9fb3c6;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.cart__table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(245, 253, 254, .12);
  vertical-align: middle;
}

.cart__photo img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart__name a { color: #fff; font-weight: 600; }
.cart__name a:hover { color: var(--ts-accent); }
.cart__unit { display: block; color: #9fb3c6; font-size: 13px; }
.cart__price, .cart__sum { white-space: nowrap; }
.cart__sum { font-weight: 700; }

.cart__qty { display: inline-flex; align-items: center; gap: 4px; }
.cart__qty button {
  width: 32px; height: 32px; border: 1px solid var(--ts-border); border-radius: 8px;
  background: transparent; color: #fff; font-size: 17px; cursor: pointer;
}
.cart__qty input {
  width: 52px; height: 32px; border: 1px solid var(--ts-border); border-radius: 8px;
  background: transparent; color: #fff; text-align: center; font-size: 15px;
}

.cart__remove button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255, 90, 90, .18); color: #ff8f8f; font-size: 18px; cursor: pointer;
}

.cart__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart__clear { border: 0; background: none; color: #ff9b9b; font-size: 15px; cursor: pointer; text-decoration: underline; }
.cart__continue { color: var(--ts-accent-2); }

.cart__aside {
  padding: 26px;
  border: 1px solid var(--ts-border);
  border-radius: 20px;
  background: rgba(0, 0, 0, .25);
}

.cart__totals { margin-bottom: 22px; }
.cart__total-row { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 16px; }
.cart__total-row strong { font-family: "Russo One", sans-serif; font-size: 22px; }
.cart__note { margin: 10px 0 0; color: #9fb3c6; font-size: 13px; }

.cart__label { display: block; margin: 14px 0 6px; color: #cfe0ee; font-size: 14px; }
.cart__label em { color: #ff8f8f; font-style: normal; }

.cart__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ts-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 15px;
}

.cart__input:focus { outline: none; border-color: var(--ts-accent); }

.cart__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  color: #9fb3c6;
  font-size: 13px;
}

.cart__consent a { color: var(--ts-accent-2); }

.cart__submit { width: 100%; padding: 18px 20px; font-size: 17px; }
.cart__form-note { margin: 12px 0 0; color: #9fb3c6; font-size: 12px; }

.cart__empty { padding: 40px 0 20px; text-align: center; }
.cart__empty-title { margin: 0 0 8px; font-family: "Russo One", sans-serif; font-size: 26px; color: #fff; }
.cart__empty-text { margin: 0 0 22px; color: #cfe0ee; }

.alert { padding: 16px 20px; border-radius: 14px; margin-bottom: 22px; }
.alert p { margin: 0; }
.alert--error { background: rgba(255, 90, 90, .15); border: 1px solid rgba(255, 90, 90, .4); color: #ffc9c9; }

/* --- Текстовые страницы -------------------------------------------------- */

.page { background: linear-gradient(0deg, #000 0, #516686 100%); color: var(--ts-light); }
.page__inner { max-width: 900px; font-size: 17px; line-height: 1.65; color: #dbe7f1; }
.page__inner p { margin: 0 0 16px; }
.page__inner--center { margin: 0 auto; text-align: center; }
.page__code { margin: 0 0 6px; font-family: "Russo One", sans-serif; font-size: 76px; color: var(--ts-accent); }
.page__heading { margin: 0 0 10px; font-family: "Russo One", sans-serif; font-size: 28px; color: #fff; }
.page__text { margin: 0 0 24px; }
.page__cta { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--ts-border); }
.page__cta-text { margin: 0 0 16px; color: #cfe0ee; }
.page__cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Кнопка обратного звонка -------------------------------------------- */

.callback-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
}

.callback-widget__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, #F82929 0%, #C376FF 100%);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: transform .2s ease-in-out;
}

.callback-widget__btn:hover { transform: translateY(-2px); }

.callback-widget__icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 720px) {
  .callback-widget { right: 12px; bottom: 12px; }
  .callback-widget__label { display: none; }
  .callback-widget__btn { padding: 15px; }
}

/* --- Уведомления --------------------------------------------------------- */

.ts-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  max-width: 90vw;
  padding: 14px 26px;
  border-radius: 100px;
  background: linear-gradient(90deg, #7ed957, #edff1b);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.ts-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ts-toast.is-error { background: #ff7a7a; color: #2b0000; }

.modal__lead-text {
  margin: -12px 0 16px;
  color: #cfe0ee;
  font-size: 15px;
}

.modal__input[type="checkbox"] { width: auto; }

/* --- Служебные утилиты --------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-new { background: rgba(165, 217, 255, .2); color: #a5d9ff; }
.badge-processing { background: rgba(237, 255, 27, .18); color: #edff1b; }
.badge-paid { background: rgba(126, 217, 87, .2); color: #7ed957; }
.badge-shipped { background: rgba(195, 118, 255, .2); color: #d7aaff; }
.badge-done { background: rgba(126, 217, 87, .25); color: #9ff08a; }
.badge-canceled, .badge-rejected { background: rgba(255, 90, 90, .2); color: #ff9b9b; }
.badge-in_work { background: rgba(237, 255, 27, .18); color: #edff1b; }

/* --- Поиск на странице каталога ----------------------------------------- */

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

.catalog__search-input {
  width: 240px;
  padding: 11px 18px;
  border: 1px solid var(--ts-border);
  border-radius: 100px;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 15px;
}

.catalog__search-input:focus { outline: none; border-color: var(--ts-accent); }

.catalog__search-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ts-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06) center/18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5fdfe' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  cursor: pointer;
}

.catalog__search-btn:hover { border-color: var(--ts-accent); }

/* --- Окно выбора: погонный метр или рулон -------------------------------- */

/* Окно выбора единицы — в одну колонку, с тёмной подложкой под текстом,
   чтобы надписи не терялись на фоне фотографии */
.modal__content--single {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.cart-add__product {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.cart-add {
  max-width: 540px;
  padding: 22px 24px 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .62);
  text-align: left;
}

.cart-add__label {
  margin: 0 0 10px;
  color: #cfe0ee;
  font-size: 14px;
}

.cart-add__units {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-add__unit {
  position: relative;
  display: block;
  cursor: pointer;
}

.cart-add__unit input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cart-add__unit-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 253, 254, .28);
  border-radius: 12px;
  transition: border-color .2s ease, background-color .2s ease;
}

.cart-add__unit:hover .cart-add__unit-body {
  border-color: rgba(245, 253, 254, .6);
}

.cart-add__unit input:checked + .cart-add__unit-body {
  border-color: #edff1b;
  background: rgba(237, 255, 27, .08);
}

.cart-add__unit input:focus-visible + .cart-add__unit-body {
  outline: 2px solid #a5d9ff;
  outline-offset: 2px;
}

.cart-add__unit-title {
  color: #f5fdfe;
  font-weight: 600;
  font-size: 16px;
}

.cart-add__unit-price {
  color: #a5d9ff;
  font-size: 16px;
  white-space: nowrap;
}

.cart-add__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.cart-add__qty-label {
  display: block;
  margin-bottom: 7px;
  color: #cfe0ee;
  font-size: 14px;
}

.cart-add__total {
  margin: 0;
  color: #cfe0ee;
  font-size: 15px;
}

.cart-add__total strong {
  margin-left: 6px;
  font-family: "Russo One", sans-serif;
  font-size: 22px;
  color: #fff;
}

.cart-add__note {
  margin: 12px 0 0;
  color: #9fb3c6;
  font-size: 12px;
  text-align: center;
}

/* Кнопки «−» и «+» внутри окна выбора */
.cart-add .product__qty {
  border-color: rgba(245, 253, 254, .28);
}

/* --- Подразделы каталога ------------------------------------------------- */

.catalog__subchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
margin: 0 0 26px;
}

.catalog__subchips--page {
  margin: 0 0 22px;
}

.catalog__subchips-label {
  color: #9fb3c6;
  font-size: 14px;
}

.catalog__subchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(245, 253, 254, .35);
  border-radius: 100px;
  color: #f5fdfe;
  font-size: 14.5px;
  transition: .2s ease-in-out;
}

.catalog__subchip span {
  padding: 1px 8px;
  border-radius: 100px;
  background: rgba(245, 253, 254, .16);
  font-size: 12.5px;
}

.catalog__subchip:hover,
.catalog__subchip.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #F82929 0%, #C376FF 100%);
}

.catalog__subchip--all {
  border-style: dashed;
}

/* Подразделы в подвале сайта */
.footer__subnav {
  margin: 8px 0 14px;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid rgba(245, 253, 254, .25);
}

.footer__subnav li {
  margin: 0 0 6px;
}

.footer__subnav a {
  color: #b7c9da;
  font-size: 14px;
}

.footer__subnav a:hover {
  color: #fff;
}

/* --- Галерея фотографий на странице товара ------------------------------- */

.product__zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.product__zoom img {
  display: block;
  width: 100%;
  height: auto;
}

.product__zoom-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5fdfe' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/20px no-repeat;
  opacity: 0;
  transition: opacity .2s ease-in-out;
  pointer-events: none;
}

.product__zoom:hover .product__zoom-icon,
.product__zoom:focus .product__zoom-icon {
  opacity: 1;
}

/* Плашки не должны перехватывать клик по фото */
.product__purpose,
.product__badge {
  pointer-events: none;
}

.product__thumbs-hint {
  margin: 12px 0 0;
  color: #9fb3c6;
  font-size: 13px;
}

.product__thumbs button.is-active {
  border-color: var(--ts-accent);
  box-shadow: 0 0 0 2px rgba(195, 118, 255, .35);
}

@media (max-width: 720px) {
  .product__zoom-icon { opacity: 1; right: 10px; bottom: 10px; width: 34px; height: 34px; }
}
