/* Стили магазина поверх общего styles.css сайта. Классы — с префиксом shop-. */
.shop-main { padding-top: 18px; padding-bottom: 56px; min-height: 50vh; }
.shop-envbar { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 14px; padding: 6px 16px; }
.header-shop-btn.is-current { box-shadow: 0 0 0 3px rgba(53,227,227,.25); }
.shop-b2b-note { font-size: 13px; opacity: .8; }
.shop-crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.shop-crumbs a { color: var(--muted); text-decoration: none; }
.shop-crumbs a:hover { color: var(--fg); text-decoration: underline; }
.shop-lead { max-width: 820px; font-size: 17px; }
.shop-small { font-size: 13px; }
.shop-updated { font-size: 13px; color: var(--muted); margin-top: 24px; }

.shop-search { display: flex; gap: 10px; max-width: 640px; margin: 18px 0 26px; }
.shop-search input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }

/* главная магазина */
.shop-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 30px 32px; margin: 6px 0 34px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(53,227,227,.13), rgba(126,240,176,.16)); border: 1px solid rgba(53,227,227,.25); }
.shop-hero h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.shop-hero__lead { font-size: 17px; color: var(--muted); margin: 0 0 6px; }
.shop-hero .shop-search { margin: 16px 0 0; max-width: none; }
.shop-hero .shop-search input { background: #fff; }
.shop-hero__perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-hero__perks li { background: #fff; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 4px 16px rgba(15,23,42,.05);
  display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.shop-hero__perks b { color: var(--fg); font-size: 15px; }
.shop-perk__icon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-grad); color: #fff; font-weight: 700; margin-bottom: 4px; }
.shop-h2 { font-size: 24px; margin: 0 0 16px; }

.shop-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.shop-cat { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: #fff;
  overflow: hidden; transition: box-shadow .15s, transform .15s; }
.shop-cat:hover { box-shadow: 0 12px 30px rgba(15,23,42,.09); transform: translateY(-2px); }
.shop-cat__photo { display: flex; align-items: center; justify-content: center; height: 260px; padding: 22px;
  background: radial-gradient(circle at 50% 60%, #ffffff 0%, #f1fbfa 60%, #e8f8f5 100%); }
.shop-cat__photo img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.shop-cat:hover .shop-cat__photo img { transform: scale(1.04); }
.shop-cat__body { padding: 14px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-cat h3 { font-size: 21px; margin: 0; line-height: 1.25; }
.shop-cat h3 a { color: inherit; text-decoration: none; }
.shop-cat__stats { margin: 0; color: var(--muted); }
.shop-cat__stats b { color: var(--fg); }
.shop-cat__vendors { margin: 0; font-size: 13px; color: var(--muted); }
.shop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #f1f5f9; color: var(--fg); text-decoration: none; }
.shop-chip span { color: var(--muted); margin-left: 2px; }
.shop-chip:hover { background: #e2f8f6; }
.shop-cat__go { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--fg); }
.shop-cat__go:hover { text-decoration: underline; }

.shop-steps { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.shop-steps li { counter-increment: step; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; }
.shop-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-grad);
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.shop-steps b { color: var(--fg); font-size: 16px; }
@media (max-width: 860px) {
  .shop-hero { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; }
  .shop-cats { grid-template-columns: 1fr; }
}
.shop-search input { min-width: 0; }
@media (max-width: 480px) {
  .shop-hero__perks { gap: 8px; }
  .shop-hero__perks li { padding: 10px; font-size: 12.5px; }
  .shop-hero__perks li > span:last-child { display: none; }
  .shop-hero__perks b { font-size: 13.5px; }
  .shop-perk__icon { width: 24px; height: 24px; font-size: 13px; }
  .shop-hero .shop-search .btn { padding-left: 14px; padding-right: 14px; }
}

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shop-filters { position: sticky; top: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; font-size: 15px; }
.shop-filters details { border-bottom: 1px solid var(--border); padding: 8px 0 10px; }
.shop-filters summary { font-weight: 600; cursor: pointer; margin-bottom: 6px; }
.shop-filters label { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; cursor: pointer; line-height: 1.3; }
.shop-filters input[type=checkbox], .shop-filters input[type=radio] { margin-top: 2px; flex: none; }
.shop-filters label .muted { margin-left: auto; font-size: 13px; white-space: nowrap; padding-left: 6px; }
.shop-filters .btn { width: 100%; margin-top: 12px; }
.shop-price-range { display: flex; gap: 8px; }
.shop-price-range input { width: 50%; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.shop-reset { display: block; text-align: center; margin-top: 8px; font-size: 14px; color: var(--muted); }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.shop-sort a { margin-left: 14px; font-size: 14px; color: var(--muted); text-decoration: none; }
.shop-sort a.is-current { color: var(--fg); font-weight: 600; border-bottom: 2px solid var(--accent); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.shop-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s, transform .15s; }
.shop-card:hover { box-shadow: 0 10px 26px rgba(15,23,42,.09); transform: translateY(-2px); }
.shop-card__img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fafbfc; padding: 12px; }
.shop-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; height: auto; }
.shop-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card__title { font-weight: 600; line-height: 1.3; }
.shop-card__sub { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.shop-price { font-size: 19px; font-weight: 700; white-space: nowrap; }
.shop-noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; width: 100%; height: 100%; background: #f3f4f6; border-radius: 10px; }

.shop-stock { font-size: 13px; font-weight: 600; }
.shop-stock--ok { color: #0f9d58; }
.shop-stock--low { color: #c27c00; }
.shop-stock--order { color: #2563eb; }
.shop-stock--none { color: var(--muted); }

.shop-pages { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.shop-pages a, .shop-pages span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; }
.shop-pages span { background: var(--accent-grad); color: #fff; border-color: transparent; }

.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.shop-gallery__main { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.shop-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.shop-gallery__thumbs button { border: 1px solid var(--border); border-radius: 10px; padding: 4px; background: #fff; cursor: pointer; }
.shop-gallery__thumbs img { display: block; width: 72px; height: 72px; object-fit: contain; }
.shop-buy h1 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.shop-sub { color: #334155; }
.shop-pricebox { border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 16px 0; background: #fbfeff; }
.shop-pricebox__price { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.shop-pricebox .shop-stock { margin: 10px 0 14px; font-size: 15px; }
.shop-buy__btn { width: 100%; font-size: 17px; }
.shop-buy__btn[disabled] { opacity: .55; cursor: not-allowed; }
.shop-keyspecs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.shop-keyspecs dt { color: var(--muted); }
.shop-keyspecs dd { margin: 0; }
.shop-section { margin-top: 36px; }
.shop-section h2 { font-size: 22px; }
.shop-specs { width: 100%; max-width: 860px; border-collapse: collapse; margin-bottom: 18px; font-size: 15px; }
.shop-specs caption { text-align: left; font-weight: 700; padding: 6px 0; }
.shop-specs th, .shop-specs td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.shop-specs th { width: 45%; font-weight: 400; color: #475569; }
.shop-seo { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; padding: 6px 14px; }
  .shop-filters details { padding: 6px 0; }
  .shop-product { grid-template-columns: 1fr; gap: 20px; }
  .shop-buy h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-card__body { padding: 10px; }
  .shop-price { font-size: 16px; }
  .shop-sort a { margin: 0 12px 0 0; }
}

/* Этап 2: корзина, оформление, заказ */
.shop-cartlink { font-weight: 600; }
.shop-messages .shop-msg { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 10px 14px; border-radius: 10px; }
.shop-alert { background: #fff7ed; border: 1px solid #fed7aa; padding: 12px 16px; border-radius: 12px; margin: 12px 0; }
.shop-addform { display: flex; gap: 10px; }
.shop-qty { width: 80px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.shop-cart__table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.shop-cart__table th, .shop-cart__table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.shop-cart__table .num { text-align: right; white-space: nowrap; }
.shop-cart__img img { object-fit: contain; display: block; }
.shop-cart__foot { display: flex; gap: 14px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.shop-cart__total { font-size: 18px; margin-right: auto; }
.shop-link { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 16px; }
.btn-outline { background: #fff; color: var(--fg); border: 1px solid var(--border); }
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.shop-form fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px 16px; margin: 0 0 16px; }
.shop-form legend { font-weight: 700; padding: 0 6px; }
.shop-form label { display: block; margin: 8px 0; font-size: 15px; }
.shop-form input[type=text], .shop-form input:not([type]), .shop-form input[type=email], .shop-form input[type=tel], .shop-form textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-radio { display: flex !important; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.shop-radio .muted { flex-basis: 100%; padding-left: 22px; }
.shop-consents label { display: flex; gap: 8px; align-items: flex-start; }
.shop-err { color: #b91c1c; font-size: 14px; margin: 2px 0 6px; }
.shop-quote { font-weight: 600; margin: 8px 0 0; }
.shop-submit { font-size: 17px; padding: 14px 22px; }
.shop-summary { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; position: sticky; top: 12px; background: #fbfeff; }
.shop-summary h2 { font-size: 18px; margin: 0 0 10px; }
.shop-summary__line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.shop-summary__total { display: flex; justify-content: space-between; font-size: 18px; padding: 12px 0 8px; }
.shop-status { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eef2ff; font-weight: 600; }
.shop-status--invoiced { background: #ecfeff; }
.shop-status--paid { background: #ecfdf5; }
.shop-status--review { background: #fff7ed; }
.shop-terms { max-width: 860px; }
.shop-terms h2 { font-size: 19px; margin-top: 22px; }
@media (max-width: 900px) {
  .shop-checkout { grid-template-columns: 1fr; }
  .shop-summary { position: static; order: -1; }
  .shop-row { grid-template-columns: 1fr; }
}

.shop-company { border-radius: 12px; padding: 10px 14px; margin: 4px 0 8px; font-size: 14px; line-height: 1.45; background: #f8fafc; border: 1px solid var(--border); }
.shop-company--ok { background: #f0fdf4; border-color: #bbf7d0; }
.shop-company--bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.shop-company__status { margin-top: 4px; font-weight: 600; }

.shop-pvz-map { width: 100%; height: 560px; margin: 10px 0; border-radius: 12px; overflow: hidden; }
.shop-pvz-actions { display: flex; align-items: flex-end; padding-bottom: 8px; }
#pvz-select { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
@media (max-width: 560px) { .shop-pvz-map { height: 480px; } }

/* подсказки города и адреса */
.shop-suggest-wrap { position: relative; }
.shop-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  max-height: 300px; overflow-y: auto; font-size: 15px; font-weight: 400; }
.shop-suggest li { padding: 8px 12px; cursor: pointer; line-height: 1.35; }
.shop-suggest li span { display: block; font-size: 12px; color: #64748b; }
.shop-suggest li:hover, .shop-suggest li.on { background: #f1f5f9; }

.shop-submit:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.shop-hint { color: #b45309; margin: 8px 0 0; }

/* виджет СДЭК: тариф пункта как явная кнопка */
.osm-tariff { border: 2px solid rgba(53,227,227,.55) !important; border-radius: 14px !important; padding: 12px 14px !important;
  background: #f3fffd !important; cursor: pointer; display: flex !important; flex-direction: column; gap: 6px; }
.osm-tariff:hover { border-color: #22c7c7 !important; box-shadow: 0 6px 18px rgba(53,227,227,.25); }
.osm-tariff__btn { display: block; text-align: center; font-weight: 700; color: #fff; background: var(--accent-grad, linear-gradient(90deg,#35e3e3,#7ef0b0));
  border-radius: 10px; padding: 10px 12px; margin-top: 4px; font-size: 15px; }
.shop-pvz-chosen { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 14px; font-weight: 400; }
.shop-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop-price--ask { color: #0f766e; }
.shop-ask { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
