/* ==========================================================================
   Магазин Honda Club — листинг, карточка товара, фильтры
   Дизайн-система сайта: --red #ed1c24, --ink #191919, --line, --mist, --muted
   Шрифт: Grandis Extended. Контейнер: .w (1180px).
   Файл отдельный, чтобы не раздувать page-head.css и не ломать шаблоны услуг.
   ========================================================================== */

/* ---------- хлебные крошки и заголовок каталога ---------- */
.shop-crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.shop-crumbs a { color: var(--muted); text-decoration: none; }
.shop-crumbs a:hover { color: var(--red); }
.shop-crumbs .sep { opacity: .5; }

.shop-hero { padding: 28px 0 26px; border-bottom: 1px solid var(--line); }
.shop-hero .label {
  font-size: 12px; font-weight: 900; letter-spacing: .11em;
  text-transform: uppercase; color: var(--red);
}
.shop-hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  margin: 10px 0 0;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.shop-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 12px 0 0;
}

/* ---------- панель инструментов: сортировка, счётчик ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.shop-count { color: var(--muted); }
.shop-count b { color: var(--ink); font-weight: 900; }

.shop-sort { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-sort span { color: var(--muted); font-size: 13px; }
.shop-sort a {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
}
.shop-sort a:hover { border-color: var(--red); color: var(--red); }
.shop-sort a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- сетка товаров ---------- */
.shop-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  grid-template-columns: 1fr;
  margin: 0;
}
@media (min-width: 560px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- карточка товара в листинге ---------- */
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0 0 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background .25s, box-shadow .25s;
  min-height: 100%;
}
.shop-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); z-index: 2; }

.shop-card__img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--mist);
  overflow: hidden;
}
.shop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.shop-card:hover .shop-card__img img { transform: scale(1.05); }

/* заглушка, если картинки нет */
.shop-card__noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* бейджи поверх картинки */
.shop-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.shop-badge {
  display: inline-block;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 5px;
  line-height: 1.4;
}
.shop-badge--new    { background: var(--red); color: #fff; }
.shop-badge--sale   { background: var(--ink); color: #fff; }
.shop-badge--ask    { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.shop-badge--stock  { background: #128a3c; color: #fff; }
.shop-badge--order  { background: #8a6d12; color: #fff; }

.shop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 0;
}

/* артикул первым — как на hondaworld: покупатель запчастей ищет глазами по номеру */
.shop-card__article {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  margin: 0 0 5px;
  word-break: break-all;
}
.shop-card__vendor {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 6px;
}
.shop-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 12px;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.shop-card__price {
  font-size: 19px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.shop-card__price small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 3px;
}
.shop-card__price del {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}
/* «цена по запросу» — вместо цифры, когда price = 0 */
.shop-card__ask {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}
.shop-card__ask small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}

.shop-card__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.shop-card__btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-card__btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- пустое состояние ---------- */
.shop-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--mist);
  border: 1px solid var(--line);
}
.shop-empty h2 { color: var(--ink); font-size: 22px; margin: 0 0 8px; }
.shop-empty p { margin: 0 0 18px; }

/* ---------- пагинация ---------- */
.shop-pager {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 34px 0 0;
}
.shop-pager a, .shop-pager span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
}
.shop-pager a:hover { border-color: var(--red); color: var(--red); }
.shop-pager .is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==========================================================================
   КАРТОЧКА ТОВАРА
   ========================================================================== */
.shop-product { padding: 26px 0 0; }

.shop-product__top {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .shop-product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; }
}

/* галерея */
.shop-gallery { position: sticky; top: 96px; }
.shop-gallery__main {
  position: relative;
  background: var(--mist);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shop-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 22px;
}
.shop-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 7px;
  margin-top: 9px;
}
.shop-gallery__thumb {
  background: var(--mist);
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  padding: 5px;
  cursor: pointer;
  transition: border-color .2s;
}
.shop-gallery__thumb.is-active, .shop-gallery__thumb:hover { border-color: var(--red); }
.shop-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* правая колонка */
.shop-product__head { margin-bottom: 18px; }
.shop-product__article {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
}
.shop-product h1 {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0 0 12px;
}
.shop-product__vendor {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  margin-bottom: 10px;
}

/* блок цены */
.shop-price-box {
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin: 0 0 20px;
}
.shop-price-box__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.035em;
}
.shop-price-box__value small {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.shop-price-box__old {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 600;
}
.shop-price-box__ask {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}
.shop-price-box__ask small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0;
}

/* таблица вариантов поставки */
.shop-variants { margin: 0 0 20px; }
.shop-variants__title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.shop-variants table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.shop-variants th {
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.shop-variants td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.shop-variants tbody tr { transition: background .18s; }
.shop-variants tbody tr:hover { background: var(--mist); }
.shop-variants tbody tr.is-selected { background: #fff4f4; }
.shop-variants .v-supplier { font-weight: 800; }
.shop-variants .v-days { color: var(--muted); white-space: nowrap; }
.shop-variants .v-price {
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.shop-variants input[type="radio"] {
  width: 17px; height: 17px;
  accent-color: var(--red);
  cursor: pointer;
  margin: 0;
}
@media (max-width: 560px) {
  .shop-variants th.v-hide-sm,
  .shop-variants td.v-hide-sm { display: none; }
}

/* кнопки действий */
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .12s, box-shadow .2s;
}
.shop-btn:hover { background: var(--red2); border-color: var(--red2); box-shadow: 0 10px 24px rgba(237,28,36,.28); }
.shop-btn:active { transform: translateY(1px); }
.shop-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.shop-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.shop-btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* характеристики */
.shop-specs {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
}
.shop-specs dt {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 0 3px;
}
.shop-specs dd {
  margin: 0 0 13px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}
.shop-specs dd:last-child { border-bottom: 0; }

/* описание под карточкой */
.shop-product__desc {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding: 34px 0 0;
  max-width: 860px;
}
.shop-product__desc h2 {
  font-size: 26px;
  letter-spacing: -.035em;
  margin: 0 0 16px;
}
.shop-product__desc p { color: #3d3d3d; margin: 0 0 14px; line-height: 1.62; }

/* ---------- блок доверия (по структуре podkapotom) ---------- */
.shop-trust {
  display: grid;
  gap: 1px;
  background: var(--line);
  grid-template-columns: repeat(2, 1fr);
  margin: 40px 0 0;
}
@media (min-width: 860px) { .shop-trust { grid-template-columns: repeat(3, 1fr); } }
.shop-trust__item {
  background: #fff;
  padding: 22px 20px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.shop-trust__ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  color: var(--red);
}
.shop-trust__ico svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-trust__txt b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 3px;
}
.shop-trust__txt span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- подкатегории плиткой ---------- */
.shop-subs {
  display: grid;
  gap: 1px;
  background: var(--line);
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 34px;
}
@media (min-width: 720px) { .shop-subs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .shop-subs { grid-template-columns: repeat(4, 1fr); } }
.shop-sub {
  background: #fff;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background .2s, color .2s;
}
.shop-sub:hover { background: var(--red); color: #fff; }
.shop-sub__name { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.shop-sub__n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.shop-sub:hover .shop-sub__n { color: rgba(255,255,255,.85); }
.shop-sub svg {
  width: 14px; height: 14px; flex: 0 0 auto;
  fill: currentColor;
  opacity: .35;
  transition: opacity .2s, transform .2s;
}
.shop-sub:hover svg { opacity: 1; transform: translateX(2px); }

/* ---------- уведомление о добавлении ---------- */
.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.shop-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.shop-toast--err { background: var(--red); }

/* доступность */
.shop-card:focus-visible,
.shop-sub:focus-visible,
.shop-btn:focus-visible,
.shop-sort a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* ==========================================================================
   Корзина, оформление заказа, страница «спасибо»
   Дописано к shop.css. Классы с префиксом shop- , чтобы не пересечься
   с вёрсткой сайта. Переменные темы (--red, --ink, --line, --muted)
   берутся из page-club.css.
   ========================================================================== */

/* --- корзина ------------------------------------------------------------ */
.shop-cart{display:grid;gap:24px;margin:28px 0 60px}
@media(min-width:1000px){.shop-cart{grid-template-columns:1fr 340px;align-items:start}}

.shop-cart__list{display:flex;flex-direction:column;gap:1px;background:var(--line)}
.shop-cart__row{display:grid;grid-template-columns:84px 1fr auto;gap:16px;align-items:center;background:#fff;padding:16px}
.shop-cart__img{display:block;width:84px;height:84px;background:var(--mist);overflow:hidden;text-decoration:none}
.shop-cart__img img{width:100%;height:100%;object-fit:contain;display:block}
.shop-cart__body{min-width:0}
.shop-cart__name{display:block;font-weight:800;font-size:15px;line-height:1.3;text-decoration:none;color:var(--ink);margin-bottom:6px}
.shop-cart__name:hover{color:var(--red)}
.shop-cart__opts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.shop-cart__opt{font-size:12px;color:var(--muted);background:var(--mist);padding:3px 8px;border-radius:4px}
.shop-cart__opt b{font-weight:800;color:var(--ink)}

.shop-cart__count{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.shop-cart__count .ms3_form{display:inline-flex;align-items:center}
.shop-cart__qty-btn{width:34px;height:34px;border:0;background:#fff;font-size:17px;font-weight:800;color:var(--ink);cursor:pointer;line-height:1}
.shop-cart__qty-btn:hover{background:var(--mist);color:var(--red)}
.shop-cart__qty{width:46px;height:34px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;font:inherit;font-weight:800;font-size:14px;-moz-appearance:textfield}
.shop-cart__qty::-webkit-outer-spin-button,.shop-cart__qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.shop-cart__price{text-align:right;white-space:nowrap}
.shop-cart__sum{display:block;font-weight:900;font-size:17px;color:var(--ink)}
.shop-cart__each{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.shop-cart__del{margin-top:8px;border:0;background:none;padding:0;font:inherit;font-size:12px;color:var(--muted);cursor:pointer;text-decoration:underline}
.shop-cart__del:hover{color:var(--red)}

.shop-cart__aside{position:sticky;top:96px}
.shop-cart__total{background:var(--mist);padding:22px;border-radius:12px}
.shop-cart__total-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;font-size:14px;color:var(--muted)}
.shop-cart__total-row b{font-weight:800;color:var(--ink)}
.shop-cart__total-row--sum{border-top:1px solid var(--line);margin-top:8px;padding-top:14px;font-size:15px}
.shop-cart__total-row--sum b{font-size:24px;font-weight:900;color:var(--red)}
.shop-cart__note{margin:14px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}

.shop-btn--full{width:100%;justify-content:center;margin-top:12px;text-align:center}

@media(max-width:639px){
  .shop-cart__row{grid-template-columns:64px 1fr;row-gap:12px}
  .shop-cart__img{width:64px;height:64px}
  .shop-cart__price{grid-column:1/-1;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:12px}
  .shop-cart__aside{position:static}
}

/* --- оформление заказа -------------------------------------------------- */
.shop-order{margin:28px 0 60px}
.shop-order__grid{display:grid;gap:24px}
@media(min-width:1000px){.shop-order__grid{grid-template-columns:1fr 360px;align-items:start}}

.shop-order__main{display:flex;flex-direction:column;gap:1px;background:var(--line)}
.shop-order__block{background:#fff;padding:24px}
.shop-order__h{font-size:19px;margin:0 0 16px;letter-spacing:-.02em}
.shop-order__h--mt{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.shop-order__hint{margin:-8px 0 16px;font-size:13px;color:var(--muted)}

.shop-order__fields{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:640px){.shop-order__fields{grid-template-columns:1fr 1fr}}
.shop-order__fields .shop-field--sm{min-width:0}

.shop-field{display:block;margin-bottom:14px}
.shop-order__fields .shop-field{margin-bottom:0}
.shop-field > span{display:block;font-size:13px;font-weight:800;margin-bottom:6px;color:var(--ink)}
.shop-field > span i{color:var(--red);font-style:normal}
.shop-field input,.shop-field textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:15px;background:#fff;color:var(--ink);transition:border-color .18s}
.shop-field input:focus,.shop-field textarea:focus{outline:none;border-color:var(--red)}
.shop-field textarea{resize:vertical;min-height:84px}
.shop-field__err{display:block;font-size:12px;color:var(--red);font-style:normal;margin-top:4px;min-height:0}
.shop-field__err:empty{display:none}

.shop-radio{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;cursor:pointer;transition:border-color .18s,background .18s}
.shop-radio:hover{border-color:var(--red)}
.shop-radio:has(input:checked){border-color:var(--red);background:rgba(237,28,36,.04)}
.shop-radio input{margin:3px 0 0;accent-color:var(--red);flex:0 0 auto;width:16px;height:16px}
.shop-radio__box{display:block;min-width:0}
.shop-radio__box b{display:block;font-size:14px;font-weight:800;line-height:1.3}
.shop-radio__box small{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.4}

.shop-order__aside{position:sticky;top:96px}
.shop-order__summary{background:var(--mist);padding:22px;border-radius:12px}
.shop-order__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;font-size:14px;color:var(--muted)}
.shop-order__row b{font-weight:800;color:var(--ink);text-align:right}
.shop-order__row--sum{border-top:1px solid var(--line);margin-top:8px;padding-top:14px}
.shop-order__row--sum b{font-size:24px;font-weight:900;color:var(--red)}

@media(max-width:999px){.shop-order__aside{position:static}}

/* --- «спасибо» ---------------------------------------------------------- */
.shop-thanks{max-width:620px;margin:44px auto 70px;text-align:center}
.shop-thanks__ico{width:64px;height:64px;margin:0 auto 20px;border-radius:50%;background:rgba(237,28,36,.08);display:grid;place-items:center}
.shop-thanks__ico svg{width:32px;height:32px;fill:none;stroke:var(--red);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.shop-thanks h2{font-size:29px;margin:0 0 12px;letter-spacing:-.03em}
.shop-thanks p{color:var(--muted);margin:0 0 24px;font-size:15px;line-height:1.55}
.shop-thanks__rows{background:var(--mist);border-radius:12px;padding:16px 20px;margin-bottom:26px;text-align:left}
.shop-thanks .shop-btn{margin:0 auto}

/* --- пустые состояния --------------------------------------------------- */
.shop-empty .shop-btn{display:inline-flex;margin:18px auto 0}

/* --- доработка кнопок внутри форм -------------------------------------- */
.shop-add{display:inline-flex}
.shop-form-add{display:inline-flex}
.shop-card__form{display:inline-flex;margin:0}

/* выравнивание одной кнопки в карточке листинга */
.shop-card__foot .shop-card__form .shop-card__btn{margin:0}
/* ==========================================================================
   Личный кабинет: сетка, навигация, формы входа и профиля
   Дописано к shop.css
   ========================================================================== */

/* --- сетка кабинета ----------------------------------------------------- */
.shop-cab{display:grid;gap:24px;margin:28px 0 60px}
@media(min-width:900px){.shop-cab{grid-template-columns:250px 1fr;align-items:start}}

.shop-cab__side{position:sticky;top:96px}
@media(max-width:899px){.shop-cab__side{position:static}}

.shop-cab__nav{display:flex;flex-direction:row;gap:1px;background:var(--line);overflow-x:auto}
@media(min-width:900px){.shop-cab__nav{flex-direction:column}}

.shop-cab__link{display:block;padding:14px 18px;background:#fff;text-decoration:none;color:var(--ink);font-weight:800;font-size:14px;white-space:nowrap;transition:background .18s,color .18s}
.shop-cab__link:hover{color:var(--red)}
.shop-cab__link.is-active{background:var(--red);color:#fff}
.shop-cab__link--out{color:var(--muted);font-weight:600}
.shop-cab__link--out:hover{color:var(--red)}

/* --- панели ------------------------------------------------------------- */
.shop-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:16px}
.shop-panel__h{font-size:19px;margin:0 0 18px;letter-spacing:-.02em}
.shop-panel__h--sub{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.shop-panel__note{margin:0 0 16px;font-size:13px;line-height:1.5;color:var(--muted)}

.shop-note{padding:12px 16px;border-radius:8px;font-size:14px;margin-bottom:18px}
.shop-note--ok{background:rgba(46,160,67,.09);color:#1a7f37}

.shop-cabform__foot{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap}
.shop-cabform__foot .shop-btn{margin-top:0}

.shop-field__ok{font-style:normal;font-size:12px;color:#1a7f37;font-weight:600;margin-left:6px}
.shop-field__warn{font-style:normal;font-size:12px;color:#b06000;font-weight:600;margin-left:6px}
.shop-field--inline{display:inline-block;margin:0;min-width:180px}
.shop-field--inline select{padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:14px;background:#fff}

.shop-link{border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--red);cursor:pointer;text-decoration:underline;margin-top:8px;display:inline-block}
.shop-link:hover{color:var(--red2)}
.shop-link--danger{color:var(--muted)}
.shop-link--danger:hover{color:var(--red)}

/* --- вход / регистрация ------------------------------------------------- */
.shop-auth{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px;max-width:520px}
.shop-auth__head{margin-bottom:22px}
.shop-auth__head h2{font-size:23px;margin:0 0 8px;letter-spacing:-.03em}
.shop-auth__head p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}

.shop-auth__tabs{display:flex;gap:1px;background:var(--line);margin-bottom:22px;border-radius:8px;overflow:hidden}
.shop-auth__tab{flex:1;padding:12px;border:0;background:#fff;font:inherit;font-size:14px;font-weight:800;color:var(--muted);cursor:pointer;transition:background .18s,color .18s}
.shop-auth__tab:hover{color:var(--red)}
.shop-auth__tab.is-active{background:var(--red);color:#fff}

.shop-auth__form{display:block}
.shop-auth__msgs{margin-bottom:14px}
.shop-auth__msgs:empty{display:none}
.shop-auth__msgs .is-err,.shop-auth__msgs .is-ok{padding:11px 14px;border-radius:8px;font-size:13px;line-height:1.45}
.shop-auth__msgs .is-err{background:rgba(237,28,36,.08);color:var(--red2)}
.shop-auth__msgs .is-ok{background:rgba(46,160,67,.09);color:#1a7f37}

.shop-auth__foot{margin-top:14px;text-align:center;font-size:13px}
.shop-auth__foot a{color:var(--muted)}
.shop-auth__foot a:hover{color:var(--red)}

.shop-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--muted);margin:14px 0 18px;cursor:pointer}
.shop-check input{margin:2px 0 0;accent-color:var(--red);flex:0 0 auto;width:16px;height:16px}
.shop-check a{color:var(--red)}

/* --- заказы в кабинете -------------------------------------------------- */
.shop-cab__filter{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}

.shop-orders{display:flex;flex-direction:column;gap:1px;background:var(--line);border-radius:8px;overflow:hidden}
.shop-orders__head{display:none}
@media(min-width:760px){
  .shop-orders__head,.shop-orders__row{display:grid;grid-template-columns:110px 130px 1fr 130px 110px;gap:14px;align-items:center}
  .shop-orders__head{background:var(--mist);padding:12px 16px;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
}

.shop-orders__row{background:#fff;padding:16px;font-size:14px;gap:6px}
@media(max-width:759px){
  .shop-orders__row{display:flex;flex-direction:column}
  .shop-orders__row > span{display:flex;justify-content:space-between;gap:12px}
  .shop-orders__row > span::before{content:attr(data-label);color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
}

.shop-orders__num a{font-weight:900;color:var(--ink);text-decoration:none}
.shop-orders__num a:hover{color:var(--red)}
.shop-orders__date{color:var(--muted);font-size:13px;white-space:nowrap}
.shop-orders__status{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13px}
.shop-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);display:inline-block;flex:0 0 auto}
.shop-orders__sum{font-weight:900;white-space:nowrap}
.shop-orders__act{text-align:right}
.shop-orders__act .shop-link{margin-top:0}

.shop-pager--cab{margin-top:20px;justify-content:flex-start}

/* --- адреса ------------------------------------------------------------- */
.shop-addrs{display:flex;flex-direction:column;gap:1px;background:var(--line);border-radius:8px;overflow:hidden;margin-bottom:8px}
.shop-addr{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;padding:16px}
.shop-addr__body b{display:block;font-size:14px;font-weight:800;line-height:1.4}
.shop-addr__meta{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.shop-addr__act{flex:0 0 auto}
.shop-addr__act .shop-link{margin-top:0}

.shop-empty--sm{padding:28px 20px}
.shop-empty--sm h3{font-size:17px;margin:0 0 8px}
.shop-empty--sm p{font-size:13px;margin:0}

/* выравнивание кнопки «Выйти» в профиле */
.shop-panel .shop-btn--ghost{display:inline-flex}
/* ==========================================================================
   Карточка товара: описание, характеристики, FAQ
   Дописано к shop.css. Требует переменные темы (--red, --ink, --line,
   --muted, --mist) из page-club.css.
   ========================================================================== */

/* --- блок описания ------------------------------------------------------ */
.shop-desc{margin:36px 0 0;max-width:820px}
.shop-desc h2{font-size:21px;margin:28px 0 14px;letter-spacing:-.02em}
.shop-desc h2:first-child{margin-top:0}
.shop-desc p{margin:0 0 14px;font-size:15px;line-height:1.65;color:var(--ink)}
.shop-desc p:last-child{margin-bottom:0}

/* --- характеристики ----------------------------------------------------- */
.shop-specs__table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.shop-specs__table tr{border-bottom:1px solid var(--line)}
.shop-specs__table tr:last-child{border-bottom:0}
.shop-specs__table th{text-align:left;font-weight:800;color:var(--muted);padding:11px 16px 11px 0;width:200px;vertical-align:top}
.shop-specs__table td{padding:11px 0;color:var(--ink);font-weight:600}
@media(max-width:639px){
  .shop-specs__table th{width:auto;display:block;padding:10px 0 0;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
  .shop-specs__table td{display:block;padding:2px 0 10px}
}

/* --- FAQ ---------------------------------------------------------------- */
.shop-faq{margin:40px 0 0;max-width:820px}
.shop-faq__h{font-size:21px;margin:0 0 16px;letter-spacing:-.02em}
.shop-faq__item{border-bottom:1px solid var(--line)}
.shop-faq__item:first-of-type{border-top:1px solid var(--line)}
.shop-faq__q{display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:16px 0;font-weight:800;font-size:15px;cursor:pointer;list-style:none;
  color:var(--ink);transition:color .18s}
.shop-faq__q::-webkit-details-marker{display:none}
.shop-faq__q::after{content:"+";flex:0 0 auto;font-size:22px;font-weight:400;
  color:var(--red);line-height:1;transition:transform .2s}
.shop-faq__item[open] .shop-faq__q::after{transform:rotate(45deg)}
.shop-faq__q:hover{color:var(--red)}
.shop-faq__a{padding:0 0 18px;font-size:14px;line-height:1.65;color:var(--muted);max-width:680px}
