/* Дополнения к theme.css */
/* Яндекс Карта на странице контактов */

.map { margin: 28px 0; }
.map__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #E3DCCD); background: #EDE7DB; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__links { margin-top: 8px; font-size: 14px; }
@media (max-width: 700px) { .map__frame { aspect-ratio: 4 / 3; } }

/* Карточки товаров на главной */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 6px 20px rgba(28,34,48,.08); }
.pcard.is-unavailable { opacity: .7; }
.pcard__img { display: block; aspect-ratio: 1 / 1; background: var(--line-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__noimg { display: block; width: 100%; height: 100%; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.pcard__title { color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title:hover { color: var(--blue); }
.pcard__sku { font-size: 12px; color: var(--muted); }
.pcard__stock { font-size: 12px; }
.pcard__price { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; }
.pcard__price .vo-note, .pcard__price .muted { font-weight: 500; font-size: 13px; }
@media (max-width: 700px) { .pcard__body { padding: 9px; } .pcard__title { font-size: 13px; } }

/* Бренды */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.brand-chip:hover { border-color: var(--blue); color: var(--blue); }

/* Каталог: плитка */
.pgrid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 1200px) { .pgrid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pgrid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard__img { position: relative; overflow: hidden; }
.pcard__img img { transition: transform .35s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__noimg { background: linear-gradient(135deg, #F3EEE4, #E8E0D1); }
.pcard__buy { margin-top: 8px; }
.pcard__buy .qty { width: 100%; justify-content: space-between; }
.pcard__choose { width: 100%; text-align: center; }
.viewsw { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.viewsw__btn { border: 0; background: transparent; padding: 7px 9px; cursor: pointer; fill: var(--muted); line-height: 0; }
.viewsw__btn + .viewsw__btn { border-left: 1px solid var(--line); }
.viewsw__btn.is-active { background: var(--blue); fill: #fff; }
.viewsw__btn:not(.is-active):hover { fill: var(--blue); }

/* Подразделы с фото */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.subcat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.subcat:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(28,34,48,.08); }
.subcat__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: linear-gradient(135deg, #F3EEE4, #E8E0D1); }
.subcat__title { padding: 10px 12px 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.subcat__count { padding: 2px 12px 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Блог: карточки с обложкой */
.posts .post__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #EDE7DB; }
.post__img--empty { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(135deg, #F3EEE4, #E8E0D1); }

/* ===================================================================
   v2 (12.10.2026): упрощённый дизайн в стиле маркетплейса, цены открыты
   =================================================================== */
:root { --bg: #FFFFFF; --surface-2: #F4F5F7; --line: #E6E8EC; --line-2: #F0F1F4; --radius: 14px; --shadow: 0 4px 18px rgba(20, 24, 33, .08); }
body { background: var(--bg); }
.section { padding-top: 28px; }
.section__title { font-size: 22px; }
.page-title__count { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.btn { border-radius: 12px; }
.btn--soft { background: var(--surface-2); color: var(--ink); }
.btn--soft:hover { background: #E9EBEF; color: var(--ink); }

/* Шапка: одна строка + полоса разделов */
.header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.header__in { flex-wrap: nowrap; min-height: 68px; gap: 14px; }
.hcat { position: static; }
.hcat__btn { min-height: 44px; padding: 0 16px; }
.hcat .mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.hcat:hover .mega, .hcat:focus-within .mega { display: block; }
.search { flex: 1 1 auto; max-width: none; border: 2px solid var(--blue); border-radius: 12px; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(30, 78, 140, .15); }
.search__input { min-height: 40px; font-size: 15px; }
.search__btn { color: var(--blue); }
.header__actions { gap: 4px; margin-left: 0; }
.hicon { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 4px 6px; color: var(--ink-2); font-size: 12px; border-radius: 10px; white-space: nowrap; }
.hicon:hover { color: var(--blue); text-decoration: none; background: var(--surface-2); }
.hicon .ico { width: 22px; height: 22px; }
.cats-nav { border-top: 1px solid var(--line-2); }
.cats-nav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.cats-nav__in::-webkit-scrollbar { display: none; }
.cats-nav__link { flex: none; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.cats-nav__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
@media (max-width: 960px) {
  .header__in { flex-wrap: wrap; min-height: 56px; gap: 8px 10px; }
  .hcat { display: none; }
  .search { order: 5; flex-basis: 100%; }
  .header .logo { flex: 1; }
  .hicon { min-width: 0; font-size: 11px; }
}

/* Баннер на главной */
.promo { padding-top: 20px; }
.promo__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 20px; color: #fff; background: linear-gradient(110deg, #1E4E8C 0%, #2E6CB8 100%); }
.promo__title { font-size: 30px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.promo__lead { margin: 0; opacity: .9; font-size: 16px; }
@media (max-width: 640px) { .promo__in { padding: 20px; } .promo__title { font-size: 22px; } .promo__lead { font-size: 14px; } }

/* Разделы — круглые плитки */
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat { background: transparent; border: 0; padding: 0; align-items: center; text-align: center; gap: 8px; }
.cat:hover { box-shadow: none; }
.cat__img { width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--surface-2); margin: 0 auto; transition: transform .2s; }
.cat:hover .cat__img { transform: scale(1.04); }
.cat__title { font-weight: 500; font-size: 14px; line-height: 1.25; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .cat__title { font-size: 12px; } }

/* Карточка товара */
.pgrid, .pgrid--catalog { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
.catalog .pgrid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .pgrid, .pgrid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } .catalog .pgrid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pgrid, .pgrid--catalog, .catalog .pgrid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid, .pgrid--catalog, .catalog .pgrid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } }
.pcard { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.pcard:hover { box-shadow: none; }
.pcard.is-unavailable { opacity: 1; }
.pcard__img { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.pcard.is-unavailable .pcard__img img { opacity: .55; }
.pcard__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #9AA0AA; font-size: 13px; background: var(--surface-2); }
.pcard__badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.pcard__badge--sale { background: #E5484D; color: #fff; }
.pcard__body { padding: 10px 2px 0; gap: 4px; }
.pcard__price { order: -1; margin: 0; padding: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard__price b { font-size: 19px; font-weight: 700; color: var(--ink); }
.pcard__price s { font-size: 13px; color: var(--muted); }
.pcard__ask { font-size: 14px; color: var(--muted); font-weight: 500; }
.pcard__title { font-size: 14px; font-weight: 400; color: var(--ink-2); -webkit-line-clamp: 2; line-height: 1.35; }
.pcard__stock { font-size: 12px; color: var(--green); }
.pcard__buy { margin-top: 8px; }
.pcard__buy .btn { min-height: 38px; }
.pcard__buy .btn.is-added { background: var(--green); }
@media (max-width: 640px) { .pcard__price b { font-size: 16px; } .pcard__title { font-size: 13px; } }

/* Каталог */
@media (min-width: 961px) { .catalog { grid-template-columns: 220px minmax(0, 1fr); } }
.side { border: 0; padding: 0; background: transparent; }
.side__link.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .catalog__side { display: none; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 14px; white-space: nowrap; }
.chip span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.chip:hover { background: #E9EBEF; text-decoration: none; color: var(--ink); }
.more { display: flex; justify-content: center; margin-top: 24px; }

/* Товар */
.product__price .price { font-size: 30px; }

/* Подвал */
.footer { margin-top: 40px; }
.product__more .block:has(.pgrid) { background: transparent; border: 0; padding: 0; }
