/* ==========================================================================
   Shop — контейнер и ограничение ширины
   ========================================================================== */
.shop-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 10px;
}

/* Иконка корзины в хедере темы — badge от плагина (не трогаем тему) */
.header-cart {
  position: relative;
}

.shop-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  background: #15466e;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.shop-cart-badge[data-count="0"] {
  display: none;
}

/* ==========================================================================
   Каталог: поиск (современный блок)
   ========================================================================== */
.shop-catalog-top {
  margin-bottom: 28px;
}

.shop-catalog-search {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.shop-search-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.4;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search-input::placeholder {
  color: #9ca3af;
}

.shop-search-input:hover {
  border-color: #9ca3af;
}

.shop-search-input:focus {
  outline: 0;
  border-color: #15466e;
  box-shadow: 0 0 0 3px rgba(21, 70, 110, 0.15);
}

.shop-search-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #15466e;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.shop-search-btn:hover {
  background: #0f3552;
}

.shop-search-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Каталог: сетка и карточки товаров
   ========================================================================== */
.shop-catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .shop-catalog-layout {
    grid-template-columns: 1fr;
  }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.shop-card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.shop-card__img {
  height: 200px;
  background: #f3f4f6;
  overflow: hidden;
}

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

.shop-card__img--ph {
  width: 100%;
  height: 100%;
}

.shop-card__title {
  padding: 16px 16px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
}

.shop-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-top: auto;
}

.shop-card__price {
  font-size: 14px;
  font-weight: 700;
  color: #15466e;
}

/* Цена со скидкой: старая зачёркнутая + текущая */
.shop-card__prices{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1.1;
}

.shop-card__price-old{
  font-size:12px;
  font-weight:700;
  color:#64748b;
  text-decoration:line-through;
}

/* Кнопка «В корзину» — контрастная, с hover/active */
.shop-add {
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #15466e;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

@media (max-width: 768px) {
  .shop-card__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .shop-card__prices{
    width:100%;
  }

  .shop-card__price {
    font-size: 18px;
  }

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

  .shop-card__cta .shop-qty {
    flex: 0 0 auto;
  }

  .shop-card__cta .shop-add {
    flex: 1 1 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}

.shop-add:hover {
  background: #0f3552;
}

.shop-add:active {
  transform: scale(0.97);
}

/* Счётчик +/− в карточке */
.shop-qty {
  display: flex;
  align-items: center;
  gap: 1px;
}

.shop-qty__btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.shop-qty__btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.shop-qty__val {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
}

/* ==========================================================================
   Категории слева
   ========================================================================== */
.shop-cats {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
}

@media (max-width: 1023px) {
  .shop-cats {
    position: static;
    top: auto;
    max-height: none;
  }
}

.shop-cats h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}

.shop-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 6px;
}

@media (max-width: 1023px) {
  .shop-cats-list {
    overflow: visible;
    padding-right: 0;
  }
}

/* ==========================================================================
   Пагинация каталога
   ========================================================================== */
.shop-pagination {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-page-btn,
.shop-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
  color: #111827;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shop-page-btn:hover,
.shop-page-num:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.shop-page-num.is-current {
  background: #15466e;
  border-color: #15466e;
  color: #fff;
  font-weight: 600;
}

.shop-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.shop-page-dots {
  padding: 0 6px;
  color: #6b7280;
}

.shop-cats-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.shop-cats-list a:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.shop-cats-list a.is-active {
  background: #15466e;
  color: #fff;
  font-weight: 500;
}

.shop-cats-sub {
  list-style: none;
  margin: 4px 0 0 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-cat-parent > a {
  font-weight: 500;
}

/* ==========================================================================
   Каталог: режим списка (прайс-лист)
   ========================================================================== */
.shop-catalog-list {
  margin-top: 0;
}

.shop-catalog-list__title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
}

.shop-catalog-list__desc {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.shop-catalog-list__desc p {
  margin: 0 0 8px;
}

.shop-list-block {
  margin-bottom: 32px;
}

.shop-list-block__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 8px;
  border-bottom: 2px solid #15466e;
}

.shop-list-block__rows {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.shop-list-row {
  display: grid;
  grid-template-columns: 1fr 120px 140px 120px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  min-height: 52px;
}

.shop-list-row:last-child {
  border-bottom: 0;
}

.shop-list-row--head {
  background: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.shop-list-row--item .shop-list-row__name a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.shop-list-row--item .shop-list-row__name a:hover {
  color: #15466e;
}

.shop-list-row__price {
  font-weight: 700;
  color: #15466e;
  white-space: nowrap;
}

.shop-list-row__qty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.shop-list-row__qty .shop-qty {
  display: inline-flex;
  align-items: center;
}

.shop-add--list {
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .shop-list-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 16px;
  }

  .shop-list-row--head {
    display: none;
  }

  .shop-list-row--item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px;
  }

  .shop-list-row--item .shop-list-row__name {
    order: 0;
    font-size: 16px;
  }

  .shop-list-row--item .shop-list-row__price {
    order: 1;
    font-size: 18px;
  }

  .shop-list-row--item .shop-list-row__qty,
  .shop-list-row--item .shop-list-row__action {
    order: 2;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .shop-list-row--item .shop-list-row__action .shop-add--list {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* ==========================================================================
   Страница с товарами в корзине
   ========================================================================== */
.shop-cart {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shop-cart__list {
  padding: 0 24px;
}

.shop-cart__row {
  display: grid;
  grid-template-columns: 1fr minmax(200px, auto);
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}

.shop-cart__row:last-of-type {
  border-bottom: 0;
}

.shop-cart__title {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  white-space: normal;
  word-break: break-word;
}

.shop-cart__title-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shop-cart__title-text {
  min-width: 0;
  flex: 1 1 auto;
}

.shop-cart__min-badge {
  flex: 0 0 auto;
  display: inline-block;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.16);
}

.shop-cart__min-badge-sum,
.shop-nowrap {
  white-space: nowrap;
}

.shop-cart__title-link {
  color: inherit;
  text-decoration: none;
}

.shop-cart__title-link:hover {
  text-decoration: underline;
  color: #15466e;
}

.shop-cart__option {
  font-weight: 400;
  color: #6b7280;
  font-size: 14px;
}

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

.shop-cart__qty .shop-qty__btn {
  width: 34px;
  height: 34px;
}

.shop-cart__price {
  font-weight: 700;
  font-size: 16px;
  color: #15466e;
  white-space: nowrap;
}

.shop-cart__bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 768px) {
  .shop-cart__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .shop-cart__title-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .shop-cart__min-badge {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
  }

  .shop-cart__min-badge-sum {
    display: inline-block;
    margin-top: 2px;
  }

  .shop-cart__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .shop-cart__price {
    justify-self: auto;
  }
}

.shop-cart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
  .shop-cart__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .shop-checkout-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

.shop-cart__sum {
  font-size: 18px;
  color: #374151;
}

.shop-cart__sum strong {
  font-size: 22px;
  color: #15466e;
}

.shop-checkout-link {
  display: inline-block;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #15466e;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.shop-checkout-link:hover {
  background: #0f3552;
  color: #fff;
}

.shop-checkout-link:active {
  transform: scale(0.98);
}

.shop-cart__below-note-wrap {
  padding: 18px 24px 24px;
  background: #fff;
}

.shop-cart__below-note {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.shop-cart__below-note--err {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}


.shop-cart__below-note-sumline {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}


.shop-cart__footer-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.shop-checkout-link.is-disabled,
.shop-checkout-link[aria-disabled="true"] {
  background: #9ca3af;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.shop-checkout-link.is-disabled:hover,
.shop-checkout-link[aria-disabled="true"]:hover {
  background: #9ca3af;
}

.shop-submit.is-disabled,
.shop-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.shop-submit.is-disabled:hover,
.shop-submit:disabled:hover {
  background: #9ca3af;
}

.shop-msg--static {
  display: block !important;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .shop-cart__footer-action {
    width: 100%;
    align-items: stretch;
  }

  .shop-cart__below-note-wrap {
    padding: 16px;
  }

  .shop-cart__below-note {
    font-size: 13px;
    line-height: 1.55;
  }

  .shop-cart__below-note-sumline {
    margin-top: 6px;
  }
}


/* ==========================================================================
   Оформление заказа
   ========================================================================== */
.shop-checkout {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shop-field {
  margin-bottom: 20px;
}

.shop-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.shop-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-input:focus {
  outline: 0;
  border-color: #15466e;
  box-shadow: 0 0 0 3px rgba(21, 70, 110, 0.15);
}

.shop-field textarea.shop-input {
  height: auto;
  padding: 12px 16px;
  min-height: 100px;
  resize: vertical;
}


.shop-company-box {
  margin: 4px 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dbe7f1;
  background: #f8fbfe;
}

.shop-company-box__title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #15466e;
}

.shop-company-box__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  font-size: 14px;
  color: #374151;
}

.shop-company-box__row span {
  color: #6b7280;
}

.shop-company-box__row strong {
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.shop-checkout--centered {
  margin-left: auto;
  margin-right: auto;
}

.shop-submit {
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #15466e;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.shop-submit:hover {
  background: #0f3552;
}

.shop-submit:active {
  transform: scale(0.98);
}

.shop-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.shop-msg--err {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   Пустое состояние (корзина пуста / нет товаров)
   ========================================================================== */
.shop-empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
}

/* ==========================================================================
   Карточка: ссылка на товар (клик по изображению и названию)
   ========================================================================== */
.shop-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-card__link:hover .shop-card__title {
  color: #15466e;
}

.shop-card__link:focus {
  outline: 0;
}

/* ==========================================================================
   PDP — страница товара
   ========================================================================== */
.shop-pdp {
  padding-top: 24px;
  padding-bottom: 80px;
}

.shop-pdp__breadcrumbs {
  margin-bottom: 24px;
  font-size: 14px;
  color: #6b7280;
}

.shop-pdp__breadcrumbs a {
  color: #374151;
  text-decoration: none;
}

.shop-pdp__breadcrumbs a:hover {
  color: #15466e;
}

.shop-pdp__breadcrumbs-sep {
  margin: 0 8px;
}

.shop-pdp__breadcrumbs-current {
  color: #1f2937;
  font-weight: 500;
}

.shop-pdp__main.shop-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .shop-pdp__main.shop-product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .shop-pdp__gallery {
    order: 0;
    position: static !important;
  }
  .shop-pdp__info {
    order: 1;
  }
  .shop-pdp__cart-block {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }
  .shop-pdp__qty-wrap {
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .shop-pdp__cta-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .shop-pdp__cta-wrap .shop-add--pdp,
  .shop-pdp__cta-wrap .shop-pdp__checkout-wrap,
  .shop-pdp__cta-wrap .shop-pdp__checkout-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .shop-pdp__main.shop-product-layout {
    grid-template-columns: 1fr;
  }
  .shop-pdp__gallery {
    position: static !important;
  }
}

@media (min-width: 981px) {
  .shop-pdp__gallery {
    position: sticky;
    top: 24px;
  }
}

.shop-pdp__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.shop-pdp__img-placeholder {
  width: 100%;
  padding-bottom: 100%;
  background: #f3f4f6;
  border-radius: 16px;
  border: 1px dashed #d1d5db;
}

.shop-pdp__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}

.shop-pdp__sku {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

.shop-pdp__short-desc {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.shop-pdp__short-desc p {
  margin: 0 0 8px;
}

.shop-pdp__short-desc p:last-child {
  margin-bottom: 0;
}

.shop-pdp__options {
  margin-bottom: 24px;
}

.shop-pdp__options-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 10px;
}

.shop-pdp__options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-pdp__option-item {
  margin: 0;
  cursor: pointer;
  display: block;
}

.shop-pdp__option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shop-pdp__option-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  min-width: 140px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.shop-pdp__option-item:hover .shop-pdp__option-box {
  border-color: #d1d5db;
  background: #f9fafb;
}

.shop-pdp__option-item.is-selected .shop-pdp__option-box,
.shop-pdp__option-input:focus-visible + .shop-pdp__option-box {
  border-color: #15466e;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(21, 70, 110, 0.2);
}

.shop-pdp__option-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.shop-pdp__option-price {
  font-size: 14px;
  font-weight: 600;
  color: #15466e;
  margin-top: 4px;
}

.shop-pdp__price-block {
  margin-bottom: 24px;
}

.shop-pdp__price-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
}

.shop-pdp__price {
  font-size: 26px;
  font-weight: 700;
  color: #15466e;
}

.shop-pdp__price--old {
  font-size: 18px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  display: inline-block;
}

.shop-pdp__price--sale {
  color: #0f3552;
}

.shop-pdp__cart-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.shop-pdp__qty-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

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

.shop-add--pdp {
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
}

a.shop-pdp__cart-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

.shop-pdp__checkout-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  color: #15466e;
  background: transparent;
  border: 2px solid #15466e;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.shop-pdp__checkout-btn:hover {
  background: #15466e;
  color: #fff;
}

.shop-pdp__checkout-wrap {
  display: inline-flex;
}

.shop-pdp__description {
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.shop-pdp__description h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.shop-pdp__description-body {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.shop-pdp__description-body p {
  margin: 0 0 12px;
}

.shop-pdp__description-body ul,
.shop-pdp__description-body ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.shop-pdp__related {
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.shop-pdp__related h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.shop-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.shop-card--related .shop-card__link {
  padding: 0;
}

.shop-card--related .shop-card__img {
  height: 160px;
}

.shop-card--related .shop-card__title {
  font-size: 14px;
}

.shop-pdp__not-found {
  text-align: center;
  padding: 80px 24px;
}

.shop-pdp__not-found h1 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #1f2937;
}

.shop-pdp__not-found p {
  margin: 0 0 12px;
  color: #6b7280;
}

.shop-btn--primary {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #15466e;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.shop-btn--primary:hover {
  background: #0f3552;
  color: #fff;
}


/* ==========================================================================
   Главная / блоки (Hero, Скидки, Популярные)
   ========================================================================== */

.shop-blocks {
  padding-top: 24px;
}

.shop-block {
  margin-bottom: 36px;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(229,231,235,0.95);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

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

.shop-block__head{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(229,231,235,0.9);
}

.shop-block__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #15466E;
}

.shop-block__grid {
  display: grid;
  gap: 16px;
}

.shop-block__grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shop-block__grid--hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-card--hero .shop-card__img {
  height: 220px;
}

@media (max-width: 1100px) {
  .shop-block__grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shop-block__grid--hero {
    grid-template-columns: 1fr;
  }
  .shop-block__grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-card--hero .shop-card__img {
    height: 200px;
  }
}

@media (max-width: 520px) {
  .shop-block__grid--5 {
    grid-template-columns: 1fr;
  }
  .shop-block__title {
    font-size: 24px;
    line-height: 1.12;
  }
.shop-block{
    padding:16px;
    border-radius:18px;
  }

  .shop-block__head{
    align-items:flex-start;
    gap:10px;
  }
}



/* ===========================================================================
   HERO — аккуратные горизонтальные карточки в главном первом экране
   =========================================================================== */

.hero-products .shop-hero-list{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin:0;
  padding:0;
  width:100%;
  max-width:470px;
}

.hero-products .shop-card--hero-h{
  display:grid !important;
  grid-template-columns:116px minmax(0,1fr);
  align-items:center;
  column-gap:18px;
  width:100%;
  min-height:152px;
  padding:18px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.13);
  border:1px solid rgba(255,255,255,.78);
  overflow:hidden;
}

.hero-products .shop-card--hero-h:hover{
  transform:none;
  box-shadow:0 20px 48px rgba(15,23,42,.16);
}

.hero-products .shop-card__hero-img-link,
.hero-products .shop-card__hero-title-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.hero-products .shop-card--hero-h .shop-card__img{
  width:116px;
  height:116px;
  border-radius:18px;
  overflow:hidden;
  background:#f3f6f8;
}

.hero-products .shop-card--hero-h .shop-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-products .shop-card__hero-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
}

.hero-products .shop-card--hero-h .shop-card__title{
  padding:0;
  margin:0;
  color:#172033;
  font-size:16px;
  font-weight:800;
  line-height:1.22;
  letter-spacing:-.01em;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hero-products .shop-card__hero-prices{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

.hero-products .shop-card__price-old{
  padding:0;
  font-size:11px;
  line-height:1;
  font-weight:800;
  color:#667085;
  text-decoration:line-through;
  white-space:nowrap;
}

.hero-products .shop-card--hero-h .shop-card__price{
  padding:0;
  font-size:16px;
  line-height:1;
  font-weight:900;
  color:#15466e;
  white-space:nowrap;
}

.hero-products .shop-card--hero-h .shop-card__cta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0;
  margin-top:8px;
  width:auto;
}

.hero-products .shop-card--hero-h .shop-add{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 18px;
  border-radius:12px;
  font-size:12px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  background:#15466e;
  color:#fff;
}

.hero-products .shop-card--hero-h .shop-qty{
  transform:none;
}

/* Если общий блоковый заголовок случайно попадает в hero */
.hero-products .shop-block__title{ display:none !important; }

@media (max-width: 640px){
  .hero-products .shop-hero-list{max-width:420px;}
  .hero-products .shop-card--hero-h{
    grid-template-columns:96px minmax(0,1fr);
    min-height:130px;
    padding:14px;
    column-gap:14px;
    border-radius:20px;
  }
  .hero-products .shop-card--hero-h .shop-card__img{width:96px;height:96px;border-radius:16px;}
  .hero-products .shop-card--hero-h .shop-card__title{font-size:14px;-webkit-line-clamp:3;}
  .hero-products .shop-card--hero-h .shop-card__price{font-size:15px;}
  .hero-products .shop-card--hero-h .shop-add{min-height:34px;padding:0 14px;font-size:11px;}
}

/* Category documents */
.shop-docs{width:100%;margin-top:10px;position:relative;}
.shop-docs__button{width:50%;min-width:140px;max-width:240px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 14px;border:0;border-radius:10px;background:var(--shop-docs-color,#15466e);color:#fff;font-weight:700;font-size:12px;line-height:1.2;text-decoration:none;cursor:pointer;box-shadow:0 8px 18px rgba(21,70,110,.18);transition:transform .15s, filter .15s;}
.shop-docs__button:hover{filter:brightness(.94);transform:translateY(-1px);}
.shop-docs__icon{line-height:1;font-size:15px;}
.shop-docs__panel{margin-top:8px;padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.12);}
.shop-docs__folder + .shop-docs__folder{margin-top:10px;padding-top:10px;border-top:1px solid #eef2f7;}
.shop-docs__folder-title{font-size:12px;font-weight:800;color:#111827;margin-bottom:6px;}
.shop-docs__files{display:flex;flex-direction:column;gap:5px;}
.shop-docs__file{font-size:12px;line-height:1.25;color:#15466e;text-decoration:none;word-break:break-word;}
.shop-docs__file:hover{text-decoration:underline;}
.shop-card__bottom .shop-docs{grid-column:1/-1;}
.shop-card__bottom{flex-wrap:wrap;}
.shop-pdp__cart-block .shop-docs{max-width:360px;margin-top:12px;}
.hero-products .shop-card--hero-h{flex-wrap:wrap;}
.hero-products .shop-card--hero-h .shop-docs{flex-basis:100%;margin-top:4px;}

/* Hide category document buttons in homepage/marketing blocks */
.shop-block .shop-docs,.shop-hero-list .shop-docs,.hero-products .shop-docs{display:none!important;}

/* ================= COLOR PICKER ================= */
.shop-color-picker{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  margin:6px 0 4px;
}
.shop-color-swatch{
  width:22px;
  height:22px;
  border-radius:999px;
  border:2px solid rgba(15,35,70,.18);
  background:var(--shop-color);
  cursor:pointer;
  padding:0;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.shop-color-swatch:hover{transform:translateY(-1px);}
.shop-color-swatch.is-selected{
  border-color:#0b2d6b;
  box-shadow:0 0 0 3px rgba(11,45,107,.14), 0 3px 10px rgba(0,0,0,.16);
  transform:scale(1.06);
}
.shop-color-swatch[data-color-hex="#ffffff"]{
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
}
.shop-pdp__color-wrap{
  width:100%;
  margin:0 0 14px;
}
.shop-pdp__color-wrap .shop-color-picker{
  gap:8px;
  margin-top:8px;
}
.shop-pdp__color-wrap .shop-color-swatch{
  width:30px;
  height:30px;
}
.shop-cart__color{display:inline-flex;align-items:center;gap:6px;margin-left:6px;}
.shop-cart__color-dot{width:14px;height:14px;border-radius:999px;background:var(--shop-color);border:1px solid rgba(0,0,0,.18);display:inline-block;}

/* Цвета в табличном виде каталога */
.shop-list-row__colors{
  display:block;
  margin-top:8px;
}
.shop-list-row__colors .shop-color-picker{
  margin:0;
  gap:5px;
}
.shop-list-row__colors .shop-color-swatch{
  width:20px;
  height:20px;
}

/* ========================================================================
   UI FIX 2026-06-17: ровные карточки товаров в каталоге и блоках магазина
   ======================================================================== */
.shop-card{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.shop-card__link{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  text-decoration:none;
  color:inherit;
}
.shop-card__img{
  height:220px;
  flex:0 0 220px;
  padding:16px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.shop-card__img img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.shop-card__title{
  min-height:64px;
  max-height:64px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  padding:14px 16px 0;
  font-size:16px;
  line-height:1.22;
  font-weight:700;
}
.shop-card__bottom{
  margin-top:auto;
  min-height:78px;
  padding:0 16px 16px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:end;
  gap:12px;
}
.shop-card__prices{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:3px;
  line-height:1.05;
}
.shop-card__price-old,
.shop-card__price{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
.shop-card__price-old{
  font-size:13px;
}
.shop-card__price{
  font-size:17px;
  font-weight:800;
  color:#15466e;
}
.shop-card__cta{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-width:104px;
}
.shop-card__cta .shop-add,
.shop-card__cta .shop-add--choose{
  width:104px;
  height:42px;
  min-height:42px;
  padding:0 10px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
  text-decoration:none;
}
@media (max-width: 768px){
  .shop-card__bottom{
    grid-template-columns:1fr;
    min-height:112px;
    gap:8px;
  }
  .shop-card__cta{
    width:100%;
    min-width:0;
  }
  .shop-card__cta .shop-add,
  .shop-card__cta .shop-add--choose{
    width:100%;
  }
}

/* ========================================================================
   FINAL HARD FIX 2026-06-17 v4: product cards no clipping / no jumping
   ======================================================================== */
.shop-block__grid,
.shop-block__grid--5{
  align-items:stretch !important;
}
.shop-card{
  height:100% !important;
  min-height:410px !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:18px !important;
  background:#fff !important;
}
.shop-card__link{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  color:inherit !important;
  text-decoration:none !important;
}
.shop-card__img{
  height:190px !important;
  flex:0 0 190px !important;
  padding:16px !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.shop-card__img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}
.shop-card__title{
  margin:0 !important;
  padding:16px 18px 0 !important;
  min-height:72px !important;
  max-height:72px !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
  font-size:17px !important;
  line-height:1.22 !important;
  font-weight:850 !important;
  letter-spacing:-.01em !important;
}
.shop-card__bottom{
  margin-top:auto !important;
  min-height:78px !important;
  padding:0 18px 18px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:12px !important;
}
.shop-card__prices{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  gap:3px !important;
  line-height:1.05 !important;
}
.shop-card__price-old{
  font-size:13px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  color:#7a8796 !important;
  text-decoration:line-through !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
.shop-card__price{
  font-size:17px !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  color:#15466e !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
.shop-card__cta{
  flex:0 0 108px !important;
  width:108px !important;
  min-width:108px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
}
.shop-card__cta .shop-add,
.shop-card__cta .shop-add--choose{
  width:108px !important;
  height:42px !important;
  min-height:42px !important;
  padding:0 10px !important;
  border-radius:13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:850 !important;
  white-space:nowrap !important;
  color:#fff !important;
  background:#15466e !important;
  border:0 !important;
  text-decoration:none !important;
}
@media (max-width:760px){
  .shop-card{min-height:365px !important;}
  .shop-card__img{height:165px !important; flex-basis:165px !important; padding:12px !important;}
  .shop-card__title{font-size:15px !important; min-height:60px !important; max-height:60px !important; padding:12px 12px 0 !important;}
  .shop-card__bottom{padding:0 12px 14px !important; gap:8px !important; min-height:74px !important; flex-direction:row !important; align-items:flex-end !important;}
  .shop-card__price{font-size:15px !important;}
  .shop-card__price-old{font-size:12px !important;}
  .shop-card__cta{flex-basis:92px !important; width:92px !important; min-width:92px !important;}
  .shop-card__cta .shop-add,
  .shop-card__cta .shop-add--choose{width:92px !important; height:38px !important; font-size:11px !important;}
}
@media (max-width:520px){
  .shop-card{min-height:0 !important;}
  .shop-card__img{height:210px !important; flex-basis:210px !important;}
  .shop-card__title{min-height:auto !important; max-height:none !important;}
  .shop-card__bottom{flex-direction:column !important; align-items:stretch !important; min-height:0 !important;}
  .shop-card__cta{width:100% !important; min-width:0 !important; flex-basis:auto !important;}
  .shop-card__cta .shop-add,
  .shop-card__cta .shop-add--choose{width:100% !important;}
}

/* ========================================================================
   HERO CARD RESTORE 2026-06-17 v5
   Отдельно возвращаем hero-карточки к горизонтальному компактному виду.
   Общие правила .shop-card ниже/выше не должны ломать первый экран.
   ======================================================================== */
.hero-products .shop-hero-list{
  display:flex !important;
  flex-direction:column !important;
  gap:16px !important;
  width:100% !important;
  max-width:440px !important;
  margin:0 !important;
  padding:0 !important;
}

.hero-products .shop-card.shop-card--hero-h{
  display:grid !important;
  grid-template-columns:118px minmax(0, 1fr) !important;
  column-gap:18px !important;
  align-items:center !important;
  width:100% !important;
  min-height:138px !important;
  height:auto !important;
  padding:16px !important;
  border-radius:22px !important;
  background:rgba(255,255,255,.96) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:0 18px 44px rgba(15,23,42,.14) !important;
  overflow:hidden !important;
  transform:none !important;
}

.hero-products .shop-card.shop-card--hero-h:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 22px 50px rgba(15,23,42,.18) !important;
}

.hero-products .shop-card--hero-h .shop-card__hero-img-link{
  display:block !important;
  width:118px !important;
  height:118px !important;
  min-width:118px !important;
  text-decoration:none !important;
}

.hero-products .shop-card--hero-h .shop-card__img{
  width:118px !important;
  height:118px !important;
  flex:0 0 118px !important;
  padding:10px !important;
  border-radius:18px !important;
  background:#f5f7f9 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

.hero-products .shop-card--hero-h .shop-card__img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}

.hero-products .shop-card--hero-h .shop-card__hero-content{
  min-width:0 !important;
  height:auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:8px !important;
}

.hero-products .shop-card--hero-h .shop-card__hero-title-link{
  display:block !important;
  width:100% !important;
  color:inherit !important;
  text-decoration:none !important;
}

.hero-products .shop-card--hero-h .shop-card__title{
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
  max-height:none !important;
  color:#172033 !important;
  font-size:16px !important;
  line-height:1.22 !important;
  font-weight:850 !important;
  letter-spacing:-.01em !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
}

.hero-products .shop-card--hero-h .shop-card__hero-prices{
  display:flex !important;
  align-items:baseline !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
}

.hero-products .shop-card--hero-h .shop-card__price-old{
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:800 !important;
  color:#7a8796 !important;
  text-decoration:line-through !important;
  white-space:nowrap !important;
}

.hero-products .shop-card--hero-h .shop-card__price{
  margin:0 !important;
  padding:0 !important;
  font-size:16px !important;
  line-height:1 !important;
  font-weight:950 !important;
  color:#15466e !important;
  white-space:nowrap !important;
}

.hero-products .shop-card--hero-h .shop-card__cta{
  margin-top:6px !important;
  padding:0 !important;
  width:auto !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
}

.hero-products .shop-card--hero-h .shop-card__cta .shop-add,
.hero-products .shop-card--hero-h .shop-card__cta .shop-add--choose{
  width:auto !important;
  min-width:96px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 16px !important;
  border-radius:12px !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:850 !important;
  white-space:nowrap !important;
  background:#15466e !important;
  color:#fff !important;
  border:0 !important;
}

.hero-products .shop-card--hero-h .shop-qty{
  height:36px !important;
  min-height:36px !important;
}

@media (max-width:920px){
  .hero-products .shop-hero-list{max-width:420px !important; margin:0 auto !important;}
  .hero-products .shop-card.shop-card--hero-h{
    grid-template-columns:100px minmax(0, 1fr) !important;
    min-height:124px !important;
    padding:14px !important;
    column-gap:14px !important;
    border-radius:20px !important;
  }
  .hero-products .shop-card--hero-h .shop-card__hero-img-link,
  .hero-products .shop-card--hero-h .shop-card__img{
    width:100px !important;
    height:100px !important;
    flex-basis:100px !important;
  }
  .hero-products .shop-card--hero-h .shop-card__title{font-size:14px !important;}
  .hero-products .shop-card--hero-h .shop-card__price{font-size:15px !important;}
  .hero-products .shop-card--hero-h .shop-card__cta .shop-add,
  .hero-products .shop-card--hero-h .shop-card__cta .shop-add--choose{
    height:34px !important;
    min-height:34px !important;
    min-width:90px !important;
    font-size:11px !important;
  }
}

@media (max-width:520px){
  .hero-products .shop-card.shop-card--hero-h{
    grid-template-columns:88px minmax(0, 1fr) !important;
    min-height:112px !important;
    padding:12px !important;
    column-gap:12px !important;
  }
  .hero-products .shop-card--hero-h .shop-card__hero-img-link,
  .hero-products .shop-card--hero-h .shop-card__img{
    width:88px !important;
    height:88px !important;
    flex-basis:88px !important;
  }
}

/* ========================================================================
   FINAL PRODUCT CARD FIX 2026-06-17 v6
   Карточки товаров: без обрезания названий, менее жирный шрифт,
   цена и кнопка держатся внизу и не наезжают друг на друга.
   Hero-карточки первого экрана не трогаем.
   ======================================================================== */
.shop-block__title{
  font-weight:700 !important;
  letter-spacing:-0.02em !important;
}
.shop-block:not(.shop-block--hero) .shop-block__grid,
.shop-block:not(.shop-block--hero) .shop-block__grid--5{
  align-items:stretch !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h){
  height:100% !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid #e4e8ee !important;
  border-radius:18px !important;
  box-shadow:0 10px 28px rgba(15, 35, 55, .055) !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__link{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  color:inherit !important;
  text-decoration:none !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img{
  flex:0 0 185px !important;
  height:185px !important;
  padding:18px 18px 8px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
  overflow:hidden !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  display:block !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__title{
  margin:0 !important;
  padding:14px 18px 12px !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  display:block !important;
  overflow:visible !important;
  white-space:normal !important;
  text-overflow:clip !important;
  -webkit-box-orient:initial !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  font-size:16px !important;
  line-height:1.25 !important;
  font-weight:500 !important;
  letter-spacing:-0.01em !important;
  color:#1f2937 !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__bottom{
  margin-top:auto !important;
  min-height:72px !important;
  padding:0 18px 18px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__prices{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  gap:3px !important;
  line-height:1.1 !important;
  overflow:visible !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__price-old{
  font-size:13px !important;
  line-height:1.1 !important;
  font-weight:500 !important;
  color:#7a8796 !important;
  text-decoration:line-through !important;
  white-space:nowrap !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__price{
  font-size:17px !important;
  line-height:1.12 !important;
  font-weight:600 !important;
  color:#15466e !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta{
  flex:0 0 112px !important;
  width:112px !important;
  min-width:112px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add,
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add--choose{
  width:112px !important;
  height:42px !important;
  min-height:42px !important;
  padding:0 12px !important;
  border-radius:13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:500 !important;
  white-space:nowrap !important;
  color:#fff !important;
  background:#15466e !important;
  border:0 !important;
  text-decoration:none !important;
}
@media (max-width: 900px){
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img{
    flex-basis:165px !important;
    height:165px !important;
    padding:14px 14px 8px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__title{
    font-size:15px !important;
    padding:12px 14px 12px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__bottom{
    padding:0 14px 14px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta{
    flex-basis:98px !important;
    width:98px !important;
    min-width:98px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add,
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add--choose{
    width:98px !important;
    height:38px !important;
    min-height:38px !important;
    font-size:11px !important;
  }
}
@media (max-width: 520px){
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h){
    border-radius:16px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img{
    flex-basis:190px !important;
    height:190px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__bottom{
    min-height:0 !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta{
    width:100% !important;
    min-width:0 !important;
    flex-basis:auto !important;
  }
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add,
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add--choose{
    width:100% !important;
  }
}

/* ========================================================================
   FINAL CLEAN CARD LAYOUT v7
   - в блоках цена над кнопкой
   - в каталоге названия не обрезаются и не жирные
   - цена в каталоге выровнена по центру кнопки
   - hero-карточки не затрагиваются
   ======================================================================== */
.shop-card:not(.shop-card--hero-h) .shop-card__title,
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__title,
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__title{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  white-space:normal !important;
  text-overflow:clip !important;
  display:block !important;
  -webkit-box-orient:initial !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  font-weight:400 !important;
  line-height:1.28 !important;
  letter-spacing:0 !important;
}

.shop-products .shop-card:not(.shop-card--hero-h){
  min-height:420px !important;
  display:flex !important;
  flex-direction:column !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__link{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  text-decoration:none !important;
  color:inherit !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__img{
  flex:0 0 190px !important;
  height:190px !important;
  padding:18px !important;
  background:#fff !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__img img{
  object-fit:contain !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__title{
  padding:16px 18px 12px !important;
  font-size:17px !important;
  color:#1f2937 !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__bottom{
  margin-top:auto !important;
  padding:0 18px 18px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-height:58px !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__price,
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__prices{
  align-self:center !important;
  margin:0 !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__price{
  font-size:18px !important;
  line-height:1.1 !important;
  font-weight:600 !important;
  white-space:nowrap !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-card__cta{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}
.shop-products .shop-card:not(.shop-card--hero-h) .shop-add,
.shop-products .shop-card:not(.shop-card--hero-h) .shop-add--choose{
  height:44px !important;
  min-height:44px !important;
  min-width:128px !important;
  padding:0 18px !important;
  border-radius:14px !important;
  font-weight:500 !important;
}

/* Блоки на главной: цена строго над кнопкой, кнопка не перекрывает цену */
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__bottom{
  padding:0 18px 18px !important;
  min-height:104px !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-end !important;
  gap:10px !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__prices,
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__price{
  width:100% !important;
  display:block !important;
  text-align:left !important;
  align-self:stretch !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__prices{
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__cta{
  width:100% !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  display:flex !important;
  justify-content:flex-start !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__cta .shop-add,
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__cta .shop-add--choose{
  width:auto !important;
  min-width:128px !important;
  height:42px !important;
  min-height:42px !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__title{
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.28 !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__price{
  font-size:18px !important;
  font-weight:600 !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__price-old{
  font-weight:400 !important;
}

@media (max-width: 640px){
  .shop-products .shop-card:not(.shop-card--hero-h) .shop-card__bottom,
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__bottom{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .shop-products .shop-card:not(.shop-card--hero-h) .shop-card__cta,
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__cta{
    width:100% !important;
  }
  .shop-products .shop-card:not(.shop-card--hero-h) .shop-add,
  .shop-products .shop-card:not(.shop-card--hero-h) .shop-add--choose,
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__cta .shop-add,
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero-h) .shop-card__cta .shop-add--choose{
    width:100% !important;
  }
}

/* ========================================================================
   FINAL FIX 2026-06-17 v8: neat cards, non-bold titles, row-based height,
   block prices above buttons, Telegram fixes are in PHP.
   ======================================================================== */
.shop-card__title,
.hero-products .shop-card--hero-h .shop-card__title,
.shop-block .shop-card__title,
.shop-products .shop-card__title{
  font-weight:500 !important;
  letter-spacing:0 !important;
}

/* Главная: блоки товаров. Цена строго над кнопкой, без налезания. */
.shop-block .shop-card{
  min-height:0 !important;
  height:100% !important;
  overflow:hidden !important;
}
.shop-block .shop-card__link{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  min-height:0 !important;
}
.shop-block .shop-card__title{
  display:block !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  -webkit-box-orient:initial !important;
  font-size:16px !important;
  line-height:1.28 !important;
  padding:14px 18px 0 !important;
}
.shop-block .shop-card__bottom{
  margin-top:auto !important;
  min-height:0 !important;
  padding:18px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-end !important;
  gap:10px !important;
}
.shop-block .shop-card__prices,
.shop-block .shop-card__price{
  width:100% !important;
  text-align:left !important;
}
.shop-block .shop-card__price-old{
  font-weight:500 !important;
  font-size:14px !important;
}
.shop-block .shop-card__price{
  font-weight:700 !important;
  font-size:18px !important;
  line-height:1.15 !important;
}
.shop-block .shop-card__cta{
  width:100% !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:stretch !important;
}
.shop-block .shop-card__cta .shop-add,
.shop-block .shop-card__cta .shop-add--choose{
  width:100% !important;
  max-width:100% !important;
  height:44px !important;
  min-height:44px !important;
  font-weight:600 !important;
}

/* Каталог: высота по строке CSS Grid, без общей огромной высоты по каталогу. */
.shop-products .shop-grid{
  align-items:stretch !important;
}
.shop-products .shop-grid .shop-card{
  min-height:0 !important;
  height:100% !important;
  overflow:hidden !important;
}
.shop-products .shop-grid .shop-card__link{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
}
.shop-products .shop-grid .shop-card__title{
  display:block !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  -webkit-box-orient:initial !important;
  font-size:20px !important;
  line-height:1.22 !important;
  padding:18px 22px 0 !important;
}
.shop-products .shop-grid .shop-card__bottom{
  margin-top:auto !important;
  min-height:0 !important;
  padding:18px 22px 22px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
}
.shop-products .shop-grid .shop-card__prices,
.shop-products .shop-grid .shop-card__price{
  min-width:0 !important;
}
.shop-products .shop-grid .shop-card__price-old{
  font-weight:500 !important;
}
.shop-products .shop-grid .shop-card__price{
  font-weight:700 !important;
  line-height:1.1 !important;
}
.shop-products .shop-grid .shop-card__cta{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  align-items:center !important;
}
.shop-products .shop-grid .shop-card__cta .shop-add,
.shop-products .shop-grid .shop-card__cta .shop-add--choose{
  width:150px !important;
  max-width:150px !important;
  height:52px !important;
  min-height:52px !important;
  font-weight:600 !important;
}

/* Hero-карточки: не жирнить заголовки и не трогать компактную компоновку. */
.hero-products .shop-card--hero-h .shop-card__title{
  font-weight:500 !important;
  font-size:14px !important;
  line-height:1.25 !important;
}
.hero-products .shop-card--hero-h .shop-card__price,
.hero-products .shop-card--hero-h .shop-card__price-old{
  font-weight:600 !important;
}

@media (max-width:760px){
  .shop-block .shop-card__title,
  .shop-products .shop-grid .shop-card__title{
    font-size:16px !important;
    line-height:1.28 !important;
    padding:14px 14px 0 !important;
  }
  .shop-block .shop-card__bottom,
  .shop-products .shop-grid .shop-card__bottom{
    padding:14px !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .shop-products .shop-grid .shop-card__cta .shop-add,
  .shop-products .shop-grid .shop-card__cta .shop-add--choose{
    width:100% !important;
    max-width:100% !important;
  }
}


/* ========================================================================
   FINAL OVERRIDE v9 — карточки товаров без скачков, без жирных названий
   ======================================================================== */

/* Общая нормализация: никаких обрезаний названий */
.shop-card .shop-card__title,
.shop-block .shop-card .shop-card__title,
.shop-products .shop-grid .shop-card .shop-card__title,
.hero-products .shop-card--hero-h .shop-card__title{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  white-space:normal !important;
  text-overflow:clip !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  -webkit-box-orient:initial !important;
  font-weight:400 !important;
  color:#1e293b !important;
  letter-spacing:-0.015em !important;
}

/* Блоки на главной: цена строго НАД кнопкой, кнопка не наезжает */
.shop-block:not(.shop-block--hero) .shop-block__grid,
.shop-block:not(.shop-block--hero) .shop-block__grid--5{
  align-items:stretch !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h){
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  min-height:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__link{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  text-decoration:none !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img{
  flex:0 0 178px !important;
  height:178px !important;
  padding:18px 18px 6px !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__title{
  padding:12px 18px 0 !important;
  font-size:16px !important;
  line-height:1.28 !important;
  font-weight:400 !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__bottom{
  margin-top:auto !important;
  padding:16px 18px 18px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-height:0 !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__prices,
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__price{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:2px !important;
  min-width:0 !important;
  overflow:visible !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__price-old{
  font-size:13px !important;
  line-height:1.1 !important;
  font-weight:400 !important;
  color:#7b8794 !important;
  white-space:nowrap !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__price{
  font-size:18px !important;
  line-height:1.12 !important;
  font-weight:600 !important;
  color:#15466e !important;
  white-space:nowrap !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta{
  width:100% !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:stretch !important;
}
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add,
.shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__cta .shop-add--choose{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 14px !important;
  border-radius:14px !important;
  font-size:13px !important;
  font-weight:500 !important;
}

/* Каталог: высота карточек только по текущей строке сетки, цена и кнопка в одной ровной линии */
.shop-products .shop-grid{
  display:grid !important;
  align-items:stretch !important;
}
.shop-products .shop-grid .shop-card{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:hidden !important;
}
.shop-products .shop-grid .shop-card__link{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  text-decoration:none !important;
}
.shop-products .shop-grid .shop-card__img{
  flex:0 0 235px !important;
  height:235px !important;
  padding:24px 24px 6px !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.shop-products .shop-grid .shop-card__img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.shop-products .shop-grid .shop-card__title{
  padding:18px 24px 0 !important;
  font-size:20px !important;
  line-height:1.25 !important;
  font-weight:400 !important;
}
.shop-products .shop-grid .shop-card__bottom{
  margin-top:auto !important;
  padding:22px 24px 24px !important;
  min-height:88px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  flex-wrap:nowrap !important;
}
.shop-products .shop-grid .shop-card__prices{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:3px !important;
}
.shop-products .shop-grid .shop-card__price-old{
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.shop-products .shop-grid .shop-card__price{
  flex:1 1 auto !important;
  min-width:0 !important;
  font-size:21px !important;
  line-height:1.1 !important;
  font-weight:600 !important;
  color:#15466e !important;
  white-space:nowrap !important;
  display:flex !important;
  align-items:center !important;
}
.shop-products .shop-grid .shop-card__cta{
  flex:0 0 150px !important;
  width:150px !important;
  min-width:150px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}
.shop-products .shop-grid .shop-card__cta .shop-add,
.shop-products .shop-grid .shop-card__cta .shop-add--choose{
  width:150px !important;
  height:52px !important;
  min-height:52px !important;
  padding:0 18px !important;
  border-radius:16px !important;
  font-size:14px !important;
  font-weight:500 !important;
  white-space:nowrap !important;
}

/* Hero-карточки: компактные, названия без жирного начертания */
.hero-products .shop-card--hero-h .shop-card__title{
  font-size:14px !important;
  line-height:1.24 !important;
  font-weight:400 !important;
}
.hero-products .shop-card--hero-h .shop-card__price-old{font-weight:400 !important;}
.hero-products .shop-card--hero-h .shop-card__price{font-weight:600 !important;}
.hero-products .shop-card--hero-h .shop-card__cta .shop-add,
.hero-products .shop-card--hero-h .shop-card__cta .shop-add--choose{font-weight:500 !important;}

@media (max-width:900px){
  .shop-products .shop-grid .shop-card__img{height:205px !important; flex-basis:205px !important; padding:18px 18px 6px !important;}
  .shop-products .shop-grid .shop-card__title{font-size:17px !important; padding:14px 18px 0 !important;}
  .shop-products .shop-grid .shop-card__bottom{padding:18px !important; min-height:78px !important; gap:12px !important;}
  .shop-products .shop-grid .shop-card__price{font-size:18px !important;}
  .shop-products .shop-grid .shop-card__cta{flex-basis:122px !important; width:122px !important; min-width:122px !important;}
  .shop-products .shop-grid .shop-card__cta .shop-add,
  .shop-products .shop-grid .shop-card__cta .shop-add--choose{width:122px !important; height:44px !important; min-height:44px !important; font-size:12px !important;}
}
@media (max-width:640px){
  .shop-block:not(.shop-block--hero) .shop-card:not(.shop-card--hero):not(.shop-card--hero-h) .shop-card__img,
  .shop-products .shop-grid .shop-card__img{height:190px !important; flex-basis:190px !important;}
  .shop-products .shop-grid .shop-card__bottom{
    flex-direction:column !important;
    align-items:stretch !important;
    min-height:0 !important;
  }
  .shop-products .shop-grid .shop-card__cta,
  .shop-products .shop-grid .shop-card__cta .shop-add,
  .shop-products .shop-grid .shop-card__cta .shop-add--choose{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex-basis:auto !important;
  }
}

/* Checkout professional loading/success modal */
body.shop-order-modal-open {
  overflow: hidden;
}

.shop-submit.is-loading,
.shop-submit:disabled.is-loading {
  opacity: .78;
  cursor: wait;
}

.shop-order-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.shop-order-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shop-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 49, .42);
  backdrop-filter: blur(7px);
}

.shop-order-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 34px 34px 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(13, 31, 49, .24);
  border: 1px solid rgba(21, 70, 110, .10);
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

.shop-order-modal.is-visible .shop-order-modal__dialog {
  transform: translateY(0) scale(1);
}

.shop-order-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.shop-order-modal__close:hover {
  background: #e8eef5;
  color: #15466e;
}

.shop-order-modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6fb;
  color: #15466e;
}

.shop-order-modal__spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 4px solid rgba(21, 70, 110, .18);
  border-top-color: #15466e;
  animation: shopOrderSpin .8s linear infinite;
}

.shop-order-modal__check,
.shop-order-modal__error {
  display: none;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.shop-order-modal.is-success .shop-order-modal__icon {
  background: #ecfdf3;
  color: #15803d;
}

.shop-order-modal.is-error .shop-order-modal__icon {
  background: #fef2f2;
  color: #b91c1c;
}

.shop-order-modal.is-success .shop-order-modal__spinner,
.shop-order-modal.is-error .shop-order-modal__spinner {
  display: none;
}

.shop-order-modal.is-success .shop-order-modal__check,
.shop-order-modal.is-error .shop-order-modal__error {
  display: block;
}

.shop-order-modal__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #102033;
}

.shop-order-modal__text {
  margin: 0 auto;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.55;
  color: #64748b;
}

.shop-order-modal__actions {
  display: none;
  margin-top: 24px;
}

.shop-order-modal.is-error .shop-order-modal__actions,
.shop-order-modal.is-success .shop-order-modal__actions {
  display: flex;
  justify-content: center;
}

.shop-order-modal__button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: #15466e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.shop-order-modal__button:hover {
  background: #0f3552;
}

@keyframes shopOrderSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .shop-order-modal {
    align-items: flex-end;
    padding: 14px;
  }
  .shop-order-modal__dialog {
    padding: 30px 22px 24px;
    border-radius: 24px;
  }
  .shop-order-modal__title {
    font-size: 24px;
  }
  .shop-order-modal__text {
    font-size: 15px;
  }
}
