.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #dbe4ff;
  background: #f5f8ff;
  color: #3655b3;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-cart-btn:hover {
  background: #eaf0ff;
  border-color: #3655b3;
}

.header-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #3655b3;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.header-cart-count[data-empty="true"] {
  opacity: 0;
}

/* ===== СТРАНИЦА КОРЗИНЫ ===== */

.al-cart-page {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  min-height: 60vh;
  padding: 36px 0 60px;
}

.al-cart-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.al-cart-page__title {
  font-size: 28px;
  font-weight: 700;
  color: #26335c;
  margin: 0 0 24px;
}

/* Пустая корзина */
.al-cart__empty {
  text-align: center;
  padding: 60px 20px;
  color: #8a94b8;
}

.al-cart__empty p {
  font-size: 18px;
  margin: 16px 0 24px;
  color: #8a94b8;
}

.al-cart__to-catalog {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: #3655b3;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}

.al-cart__to-catalog:hover {
  background: #2a469a;
}

/* Шапка таблицы */
.al-cart__header {
  display: grid;
  grid-template-columns: 90px 1fr 140px 100px 44px;
  gap: 12px;
  align-items: center;
  padding: 0 16px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #8a94b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e8ecfa;
  margin-bottom: 8px;
}

/* Строка товара */
.al-cart-row {
  display: grid;
  grid-template-columns: 90px 1fr 140px 100px 44px;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8ecfa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}

.al-cart-row:hover {
  box-shadow: 0 4px 16px rgba(54, 85, 179, 0.08);
}

.al-cart-row__img-wrap {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f8ff;
}

.al-cart-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-cart-row__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.al-cart-row__name {
  font-weight: 600;
  color: #26335c;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
}

.al-cart-row__name:hover {
  text-decoration: underline;
}

.al-cart-row__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-cart-row__old-price {
  font-size: 13px;
  color: #a0a8c4;
  text-decoration: line-through;
}

.al-cart-row__discount {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #e84545;
  border-radius: 4px;
  padding: 1px 5px;
}

.al-cart-row__price {
  font-size: 15px;
  font-weight: 600;
  color: #3655b3;
}

/* Количество +/- */
.al-cart-row__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.al-cart-qty__btn {
  width: 34px;
  height: 36px;
  border: none;
  background: #f5f8ff;
  color: #3655b3;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.al-cart-qty__btn:hover:not(:disabled) {
  background: #e8eeff;
}

.al-cart-qty__btn:disabled {
  color: #c5cde8;
  cursor: default;
}

.al-cart-qty__val {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #26335c;
  padding: 0 4px;
}

/* Сумма */
.al-cart-row__subtotal {
  font-weight: 700;
  font-size: 16px;
  color: #26335c;
  white-space: nowrap;
}

/* Кнопка удалить */
.al-cart-row__remove {
  width: 36px;
  height: 36px;
  border: 1px solid #f0d0d0;
  border-radius: 8px;
  background: #fff8f8;
  color: #c0392b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.al-cart-row__remove:hover {
  background: #fde8e8;
  border-color: #e57373;
}

/* Футер корзины */
.al-cart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8ecfa;
}

.al-cart__total {
  font-size: 20px;
  font-weight: 600;
  color: #26335c;
}

.al-cart__count {
  font-size: 14px;
  font-weight: 400;
  color: #8a94b8;
  margin-left: 6px;
}

.al-cart__checkout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #3655b3;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(54, 85, 179, 0.28);
}

.al-cart__checkout:hover {
  background: #2a469a;
  transform: translateY(-1px);
}

/* Мобильная версия */
@media (max-width: 700px) {
  .al-cart__header {
    display: none;
  }

  .al-cart-row {
    grid-template-columns: 72px 1fr 36px;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }

  .al-cart-row__img-wrap {
    width: 72px;
    height: 72px;
    grid-row: 1 / 3;
  }

  .al-cart-row__info {
    grid-column: 2 / 3;
  }

  .al-cart-row__remove {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .al-cart-row__qty {
    grid-column: 2;
  }

  .al-cart-row__subtotal {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    font-size: 15px;
  }

  .al-cart__checkout {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 14px 20px;
  }

  .al-cart__total {
    font-size: 18px;
  }
}


.al-cart-checkout-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.al-cart__checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 18px 40px;
  border-radius: 14px;
  background: #3655b3;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 26px rgba(42, 70, 154, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.al-cart__checkout-btn:hover {
  background: #2a469a;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .al-cart-checkout-wrap {
    justify-content: stretch;
  }

  .al-cart__checkout-btn {
    width: 100%;
    font-size: 18px;
    padding: 16px 20px;
  }
}

.al-cart-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.al-cart-page {
  padding: 36px 0 60px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  min-height: 60vh;
}

.al-cart-page__title {
  font-size: 28px;
  font-weight: 700;
  color: #26335c;
  margin: 0 0 24px;
}


/* ===== СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА ===== */

.al-order__form {
  margin-bottom: 24px;
}

.al-order__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.al-order__section {
  background: #fff;
  border: 1px solid #e2e8ff;
  border-radius: 14px;
  padding: 20px;
}

.al-order__section-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #26335c;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1ff;
}

/* Поля */
.al-field {
  margin-bottom: 12px;
}

.al-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5580;
  margin-bottom: 5px;
}

.al-field__required {
  color: #e84545;
}

.al-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #26335c;
  background: #f8faff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.al-field__input:focus {
  border-color: #3655b3;
  box-shadow: 0 0 0 3px rgba(54, 85, 179, 0.1);
  background: #fff;
}

.al-field__textarea {
  resize: vertical;
  min-height: 80px;
}

.al-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233655b3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.al-field__error {
  font-size: 12px;
  color: #e84545;
  margin-top: 4px;
  min-height: 16px;
}

.al-field--check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.al-field__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #3655b3;
  cursor: pointer;
  flex-shrink: 0;
}

.al-field__check-label {
  font-size: 13px;
  color: #4a5580;
  cursor: pointer;
}

/* Строка адреса */
.al-order__addr-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.al-order__addr-row .al-field {
  flex: 1;
}

.al-field--sm { flex: 0 0 120px !important; }
.al-field--lg { flex: 1 !important; }

/* Радио-кнопки (оплата/доставка) */
.al-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.al-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.al-radio-option:has(.al-radio-option__input:checked) {
  border-color: #3655b3;
  background: #f0f4ff;
}

.al-radio-option__input {
  margin-top: 2px;
  accent-color: #3655b3;
  flex-shrink: 0;
}

.al-radio-option__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.al-radio-option__logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2px;
}

.al-radio-option__name {
  font-weight: 600;
  font-size: 14px;
  color: #26335c;
}

.al-radio-option__desc {
  font-size: 12px;
  color: #8a94b8;
  line-height: 1.4;
}

/* Итоговая панель */
.al-order__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e2e8ff;
  border-radius: 14px;
  margin-top: 8px;
}

.al-order__costs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.al-order__cost-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: #4a5580;
}

.al-order__cost-row--total {
  padding-top: 10px;
  border-top: 1px solid #e2e8ff;
  font-size: 18px;
  font-weight: 700;
  color: #26335c;
}

.al-order__cost-row--total span:last-child {
  color: #3655b3;
}

.al-order__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.al-order__cancel-btn {
  background: none;
  border: 1px solid #f0d0d0;
  border-radius: 999px;
  padding: 10px 20px;
  color: #c0392b;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.al-order__cancel-btn:hover {
  background: #fde8e8;
  border-color: #e57373;
}

/* Адаптив */
@media (max-width: 768px) {
  .al-order__grid {
    grid-template-columns: 1fr;
  }

  .al-order__summary {
    flex-direction: column;
    align-items: stretch;
  }

  .al-order__actions {
    flex-direction: column;
  }

  .al-order__cancel-btn,
  .al-cart__checkout-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Инпут количества в корзине */
.al-cart-qty__val {
  min-width: 36px;
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #26335c;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  -moz-appearance: textfield;
}

.al-cart-qty__val::-webkit-outer-spin-button,
.al-cart-qty__val::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Кнопка очистить корзину */
.al-cart__clean-btn {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #a0a8c4;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.al-cart__clean-btn:hover {
  color: #c0392b;
}

.al-cart__clean-form {
  display: inline;
}

/* ===== КАТАЛОГ — КАРТОЧКА ТОВАРА ===== */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 32px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.al-product-card {
  background: #fff;
  border: 1px solid #e8ecfa;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.al-product-card:hover {
  box-shadow: 0 8px 28px rgba(54, 85, 179, 0.12);
  transform: translateY(-3px);
}

.al-product-card__img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f5f8ff;
}

.al-product-card__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

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

.al-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e84545;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  line-height: 1;
}

.al-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  flex: 1;
}

.al-product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #26335c;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-product-card__name:hover {
  color: #3655b3;
}

.al-product-card__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.al-product-card__old-price {
  font-size: 13px;
  color: #a0a8c4;
  text-decoration: line-through;
}

.al-product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #3655b3;
}

.al-product-card__form {
  margin: 0;
}

.al-product-card__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #3655b3;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.al-product-card__btn:hover {
  background: #2a469a;
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 12px;
  }

  .al-product-card__price {
    font-size: 16px;
  }

  .al-product-card__btn {
    font-size: 13px;
    padding: 9px 12px;
  }
}


/* ===== КАРТОЧКА ТОВАРА — КОНТЕЙНЕР ===== */

.ms-nf-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.ms-nf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.ms-nf-gallery {
  background: #f8faff;
  border: 1px solid #e3e9ff;
  border-radius: 14px;
  overflow: hidden;
}

.ms-nf-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ms-nf-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: #26335c;
  margin: 0;
  line-height: 1.3;
}

.ms-nf-article {
  font-size: 13px;
  color: #8a94b8;
  margin: 0;
}

.ms-nf-intro {
  font-size: 14px;
  color: #4a5580;
  line-height: 1.6;
}

.ms-nf-price-box {
  background: #f6f8ff;
  border: 1px solid #dfe6ff;
  border-radius: 12px;
  padding: 14px 16px;
}

.ms-nf-old-price {
  text-decoration: line-through;
  color: #a0a8c4;
  font-size: 15px;
  margin-bottom: 4px;
}

.ms-nf-price {
  font-size: 32px;
  font-weight: 700;
  color: #3655b3;
}

.ms-nf-add-btn {
  width: 100%;
  font-size: 16px;
  padding: 14px 20px;
}

.ms-nf-meta p {
  margin: 4px 0;
  font-size: 14px;
  color: #4a5580;
}

.ms-nf-meta span {
  color: #8a94b8;
}

/* ===== ТАБЫ — ОПИСАНИЕ, СОСТАВ, ПРИМЕНЕНИЕ ===== */

.ms-nf-tabs {
  border-top: 1px solid #edf1ff;
  padding-top: 32px;
}

.ms-nf-tabs h2 {
  font-size: 20px;
  font-weight: 700;
  color: #26335c;
  margin: 28px 0 12px;
  text-align: center;
}

.ms-nf-tabs h2:first-child {
  margin-top: 0;
}

.ms-nf-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: #3d4a73;
}

/* ===== ПОХОЖИЕ ТОВАРЫ ===== */

.ms-nf-related {
  margin-top: 48px;
  border-top: 1px solid #edf1ff;
  padding-top: 32px;
}

.ms-nf-related h2 {
  font-size: 22px;
  font-weight: 700;
  color: #26335c;
  margin: 0 0 20px;
  text-align: center;
}

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

.al-lookalike-card {
  background: #fff;
  border: 1px solid #e8ecfa;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.al-lookalike-card:hover {
  box-shadow: 0 6px 20px rgba(54, 85, 179, 0.1);
  transform: translateY(-2px);
}

.al-lookalike-card__img-wrap {
  position: relative;
  display: block;
  background: #f5f8ff;
  overflow: hidden;
}

.al-lookalike-card__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

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

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

.al-lookalike-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #26335c;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-lookalike-card__name:hover {
  color: #3655b3;
}

.al-lookalike-card__prices {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.al-lookalike-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #3655b3;
}

.al-lookalike-card__btn {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: #3655b3;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.al-lookalike-card__btn:hover {
  background: #2a469a;
}

/* Адаптив карточки товара */
@media (max-width: 900px) {
  .ms-nf-grid {
    grid-template-columns: 1fr;
  }

  .ms-nf-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .ms-nf-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ms-nf-info h1 {
    font-size: 18px;
  }

  .ms-nf-price {
    font-size: 26px;
  }
}