/* =========================================================================
   Мир Стремянок — основной стиль (v0.1)
   Лёгкий современный дизайн в стиле vseinstrumenti, акцент — красный #E30613.
   Исходники для разработки: /src/styles (SCSS). Этот файл — собранный/рабочий.
   ========================================================================= */

/* --- Дизайн-токены --- */
:root {
  --color-accent: #E30613;
  --color-accent-hover: #C20510;
  --color-accent-soft: #FDECEC;
  --color-text: #1E232B;
  --color-text-muted: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F4F6F8;
  --color-bg-soft-2: #EAEDF1;
  --color-border: #E3E7EC;
  --color-success: #1E9E5A;
  --color-warning: #E8920C;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);

  --container: 1280px;
  --gap: 24px;
  --header-h: 72px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* --- База --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section__title { font-size: 28px; margin-bottom: 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 16px; z-index: 1000; border-radius: var(--radius-sm); }

/* --- Иконки --- */
.ms-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 20px; font-weight: 600; font-size: 15px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  background: var(--color-bg-soft); color: var(--color-text);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--catalog { background: var(--color-accent); color: #fff; padding: 0 20px; height: 48px; font-size: 16px; border-radius: var(--radius-sm); }
.btn--catalog:hover { background: var(--color-accent-hover); color: #fff; }

/* =======================  ШАПКА  ======================= */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm); }
.site-header.is-stuck { box-shadow: var(--shadow); }

.topbar { background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__left { display: flex; gap: 20px; align-items: center; }
.topbar__city { display: inline-flex; align-items: center; gap: 6px; }
.topbar__city .ms-icon { width: 16px; height: 16px; }
.topbar__nav { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.topbar__nav a { color: var(--color-text-muted); }

.header-main__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.site-logo--text { font-size: 22px; font-weight: 800; white-space: nowrap; }
.site-logo__mark { color: var(--color-accent); }
.custom-logo-link { display: inline-flex; }

.header-search { position: relative; flex: 1; display: flex; max-width: 620px; }
.header-search__input { width: 100%; height: 48px; border: 2px solid var(--color-border); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 16px; font-size: 15px; outline: none; transition: border-color var(--transition); }
.header-search__input:focus { border-color: var(--color-accent); }
.header-search__btn { width: 52px; height: 48px; border: none; background: var(--color-accent); color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: flex; align-items: center; justify-content: center; }
.header-search__btn:hover { background: var(--color-accent-hover); }
.header-search__suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-actions__phone { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 15px; }
.header-actions__phone .ms-icon { display: none; }
.header-actions__btn { background: none; border: none; color: var(--color-accent); font-size: 12px; font-weight: 600; padding: 0; text-align: left; }
.header-actions__btn:hover { color: var(--color-accent-hover); }
.header-actions__icon { position: relative; display: inline-flex; padding: 8px; color: var(--color-text); }
.header-actions__icon:hover { color: var(--color-accent); }
.counter { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

/* Мега-меню каталога */
.catalog-menu { background: #fff; border-top: 1px solid var(--color-border); box-shadow: var(--shadow); }
.catalog-menu[hidden] { display: none; }
.catalog-menu__list { list-style: none; margin: 0; padding: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 24px; }
.catalog-menu__list a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; }
.catalog-menu__list a:hover { background: var(--color-accent-soft); color: var(--color-accent); }
.catalog-menu__list .sub-menu { list-style: none; margin: 4px 0 8px; padding: 0; }
.catalog-menu__list .sub-menu a { font-weight: 400; font-size: 14px; color: var(--color-text-muted); padding: 5px 12px; }
.catalog-menu__empty { padding: 24px 12px; color: var(--color-text-muted); }

/* =======================  HERO  ======================= */
.hero { background: linear-gradient(120deg, #fff 0%, var(--color-bg-soft) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 20px; }
.hero__title { font-size: 42px; font-weight: 800; letter-spacing: -.01em; }
.hero__subtitle { font-size: 18px; color: var(--color-text-muted); max-width: 540px; }
.hero__actions { display: flex; gap: 16px; margin: 28px 0; flex-wrap: wrap; }
.hero__badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; color: var(--color-text-muted); font-size: 14px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .ms-icon { color: var(--color-accent); }
.hero__media-card { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: radial-gradient(circle at 70% 30%, var(--color-accent-soft), #fff 60%), var(--color-bg-soft-2); box-shadow: var(--shadow); }

/* =======================  Категории  ======================= */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); position: relative; }
.cat-tile:hover { border-color: var(--color-accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-soft); border-radius: var(--radius-sm); color: var(--color-accent); }
.cat-tile__icon .ms-icon { width: 26px; height: 26px; }
.cat-tile__name { font-weight: 600; font-size: 15px; }
.cat-tile__count { color: var(--color-text-muted); font-size: 13px; }
.cat-tile--placeholder { cursor: default; opacity: .85; }
.cat-tile--placeholder:hover { transform: none; border-color: var(--color-border); box-shadow: none; }

/* =======================  Преимущества  ======================= */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card { padding: 24px; background: var(--color-bg-soft); border-radius: var(--radius); }
.adv-card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--color-accent); border-radius: var(--radius-sm); margin-bottom: 14px; }
.adv-card__title { font-size: 17px; margin-bottom: 6px; }
.adv-card__text { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* =======================  Табы товаров  ======================= */
.tabs__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.tabs__nav { display: flex; gap: 8px; background: var(--color-bg-soft); padding: 4px; border-radius: var(--radius-sm); }
.tabs__btn { border: none; background: none; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--color-text-muted); }
.tabs__btn.is-active { background: #fff; color: var(--color-accent); box-shadow: var(--shadow-sm); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.placeholder-note { color: var(--color-text-muted); padding: 40px; text-align: center; background: var(--color-bg-soft); border-radius: var(--radius); }

/* =======================  CTA  ======================= */
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; background: linear-gradient(120deg, var(--color-accent), var(--color-accent-hover)); color: #fff; border-radius: var(--radius-lg); }
.cta-banner__title { color: #fff; }
.cta-banner__subtitle { margin: 0; opacity: .92; max-width: 620px; }
.cta-banner .btn--primary { background: #fff; color: var(--color-accent); }
.cta-banner .btn--primary:hover { background: #fff; color: var(--color-accent-hover); }

/* =======================  Контент/блог/страницы  ======================= */
.page-head__title { font-size: 30px; margin-bottom: 20px; }
.breadcrumbs { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--color-accent); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.post-card:hover { box-shadow: var(--shadow); }
.post-card__body { padding: 18px; }
.entry-content { max-width: 820px; }
.entry-content p { margin: 0 0 1em; }
.page-head__lead { color: var(--color-text-muted); font-size: 16px; max-width: 720px; }
.blog-single__meta { display: flex; gap: 16px; color: var(--color-text-muted); font-size: 14px; margin-top: 8px; }
.blog-single__thumb { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.blog-single__thumb img { width: 100%; }
.ms-fullwidth { width: 100%; }

/* =======================  Футер  ======================= */
.site-footer { background: #15191F; color: #B7C0CC; margin-top: 56px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 32px; }
.site-footer .site-logo--text { color: #fff; }
.footer-brand__desc { font-size: 14px; margin: 14px 0; }
.footer-brand__phone { color: #fff; font-weight: 700; font-size: 18px; }
.footer-col__title { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-menu a:hover { color: #fff; }
.footer-contacts__addr, .footer-contacts__hours { font-size: 14px; margin: 0 0 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); color: #fff; }
.footer-social a:hover { background: var(--color-accent); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }

/* =======================  WooCommerce: каталог  ======================= */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.catalog-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

/* Тулбар каталога (кол-во + сортировка) */
.woocommerce-result-count { color: var(--color-text-muted); font-size: 14px; margin: 0; }
.woocommerce-ordering { margin: 0 0 20px; }
.woocommerce-ordering select { height: 42px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; background: #fff; }

/* ----- Сетки-контейнеры товаров (везде единый вид карточек) ----- */
ul.products,
.product-grid {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

/* ===== Единая мини-карточка товара (.product-card) ===== */
.product-card {
  margin: 0; position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow); transform: translateY(-2px); }

.product-card__media { position: relative; padding: 14px 14px 0; }
.product-card__img { display: block; }
.product-card__img img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-sm); background: var(--color-bg-soft); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.product-card__specs { color: var(--color-text-muted); font-size: 12px; margin-bottom: 6px; min-height: 1.2em; }
.product-card__title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--color-text); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card__title:hover { color: var(--color-accent); }
.product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; }
.product-card__rating .star-rating { font-size: 12px; }
.product-card__rating-count { color: var(--color-text-muted); }

.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__price { color: var(--color-text); font-weight: 800; font-size: 18px; white-space: nowrap; }
.product-card__price del { color: var(--color-text-muted); font-weight: 400; font-size: 13px; margin-right: 5px; }
.product-card__price ins { text-decoration: none; }

.product-card .button,
.product-card .added_to_cart {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
  border: none; border-radius: var(--radius-sm); padding: 9px 14px;
  font-weight: 700; font-size: 13px; white-space: nowrap; transition: background var(--transition), color var(--transition);
}
.product-card .button:hover,
.product-card .added_to_cart:hover { background: var(--color-accent); color: #fff; }
.product-card .button.loading { opacity: .7; }
.product-card .button.added { display: none; }

/* Бейджи */
.product-card__badges { position: absolute; top: 4px; left: 4px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: #fff; letter-spacing: .02em; }
.badge--sale { background: var(--color-accent); }
.badge--out { background: #9AA3AE; }
.badge--pre { background: var(--color-warning); }
.badge--new { background: var(--color-success); }

/* Инструменты карточки (избранное/сравнение/быстрый просмотр) */
.product-card__tools { position: absolute; top: 4px; right: 4px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(6px); transition: opacity var(--transition), transform var(--transition); z-index: 2; }
.product-card:hover .product-card__tools { opacity: 1; transform: none; }
.ptool { width: 36px; height: 36px; border: 1px solid var(--color-border); background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.ptool:hover { color: var(--color-accent); border-color: var(--color-accent); }
.ptool .ms-icon { width: 18px; height: 18px; }
@media (hover: none) { .product-card__tools { opacity: 1; transform: none; } }

/* Сайдбар фильтра (UI до AJAX) */
.catalog-filter__group { border-bottom: 1px solid var(--color-border); padding: 16px 0; }
.catalog-filter__group:first-child { padding-top: 0; }
.catalog-filter__title { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.catalog-filter__list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.catalog-filter__check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text); cursor: pointer; }
.catalog-filter__check input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.catalog-filter__count { color: var(--color-text-muted); font-size: 12px; margin-left: auto; }
.catalog-filter__price { display: flex; gap: 8px; align-items: center; }
.catalog-filter__price input { width: 100%; height: 40px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 10px; font: inherit; }
.catalog-filter__actions { display: grid; gap: 8px; margin-top: 16px; }
.catalog-sidebar-title { font-size: 18px; margin-bottom: 8px; }

/* =======================  WooCommerce: страница товара  ======================= */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }

/* Галерея */
.single-product .woocommerce-product-gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 16px); }
.single-product .woocommerce-product-gallery__wrapper { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.single-product .woocommerce-product-gallery img { border-radius: 0; }
.single-product .flex-control-thumbs { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.single-product .flex-control-thumbs li { width: 72px; }
.single-product .flex-control-thumbs img { border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; opacity: .7; transition: opacity var(--transition), border-color var(--transition); }
.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover { opacity: 1; border-color: var(--color-accent); }

/* Сводка-карточка */
.single-product .summary.entry-summary {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.single-product .product_title { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.single-product .woocommerce-product-rating { margin-bottom: 12px; }

/* Цена */
.single-product .summary > .price,
.single-product .summary p.price { font-size: 32px; font-weight: 800; color: var(--color-text); margin: 14px 0; padding: 16px; background: var(--color-bg-soft); border-radius: var(--radius); }
.single-product .summary .price del { color: var(--color-text-muted); font-weight: 400; font-size: 18px; margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; }

/* Наличие */
.single-product .stock { font-weight: 600; margin: 0 0 14px; }
.single-product .stock.in-stock { color: var(--color-success); }
.single-product .stock.out-of-stock { color: #9AA3AE; }

/* Количество + в корзину */
.single-product form.cart { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.single-product form.cart .quantity { display: flex; }
.single-product .single_add_to_cart_button { flex: 1; min-width: 180px; background: var(--color-accent); border: none; border-radius: var(--radius-sm); padding: 14px 28px; font-weight: 700; font-size: 16px; color: #fff; transition: background var(--transition); }
.single-product .single_add_to_cart_button:hover { background: var(--color-accent-hover); }

/* Мета / артикул */
.single-product .product_meta { font-size: 13px; color: var(--color-text-muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.single-product .product_meta > span { display: block; margin-bottom: 4px; }
.single-product .product_meta a { color: var(--color-accent); }
.single-product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 24px; }
.single-product .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; padding: 0; border-bottom: 1px solid var(--color-border); margin: 0 0 20px; }
.single-product .woocommerce-tabs ul.tabs li { margin: 0; }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; font-weight: 600; color: var(--color-text-muted); border-bottom: 2px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--color-accent); border-color: var(--color-accent); }
.single-product table.shop_attributes { width: 100%; border-collapse: collapse; }
.single-product table.shop_attributes th,
.single-product table.shop_attributes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.single-product table.shop_attributes th { color: var(--color-text-muted); font-weight: 500; width: 40%; }
/* Single: доп. кнопки и блоки */
.single-product form.cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ms-quick-buy { white-space: nowrap; }
.ms-notify-block { background: var(--color-bg-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.ms-notify-block__note { margin: 0 0 12px; color: var(--color-text-muted); font-size: 14px; }
.ms-product-perks { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 20px 0; }
.ms-perk { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ms-perk .ms-icon { color: var(--color-accent); }
.ms-single-tools { display: flex; gap: 18px; }
.ms-single-tool { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; color: var(--color-text-muted); font-size: 14px; }
.ms-single-tool:hover { color: var(--color-accent); }
.ms-single-tool .ms-icon { width: 18px; height: 18px; }
.ms-product-brand { font-size: 14px; color: var(--color-text-muted); margin-bottom: 8px; }
.ms-product-brand a { color: var(--color-accent); font-weight: 600; }
.ms-product-help { display: flex; gap: 18px; margin: 4px 0 16px; }
.ms-link { background: none; border: none; padding: 0; color: var(--color-accent); font-size: 13px; border-bottom: 1px dashed currentColor; cursor: pointer; }
.ms-link:hover { color: var(--color-accent-hover); }

.related.products, .upsells.products { grid-column: 1 / -1; }
.related.products > h2, .upsells.products > h2 { font-size: 22px; margin: 32px 0 16px; }

/* Сообщения WooCommerce */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; list-style: none; }
.woocommerce-message { background: #E9F7EF; border-left: 3px solid var(--color-success); }
.woocommerce-info { background: var(--color-bg-soft); border-left: 3px solid var(--color-accent); }
.woocommerce-error { background: #FDECEC; border-left: 3px solid var(--color-accent); }

@media (max-width: 1100px) {
  ul.products, .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .single-product div.product { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  ul.products, .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =======================  WooCommerce: корзина и оформление  ======================= */
.woocommerce-cart .shop_table, .woocommerce-checkout .shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.woocommerce-cart .shop_table th, .woocommerce-cart .shop_table td { padding: 14px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 14px; }
.woocommerce-cart .shop_table th { background: var(--color-bg-soft); font-weight: 600; }
.woocommerce-cart .product-thumbnail img { width: 64px; border-radius: var(--radius-sm); }
.cart_totals, .woocommerce-checkout-review-order { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; }
.cart_totals h2, .woocommerce-checkout #order_review_heading { font-size: 18px; margin-bottom: 14px; }
.woocommerce .quantity input.qty { width: 64px; height: 42px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-align: center; }
.wc-proceed-to-checkout .checkout-button,
.woocommerce #payment #place_order,
.woocommerce-cart .button[name="update_cart"] { background: var(--color-accent); border: none; color: #fff; border-radius: var(--radius-sm); padding: 14px 24px; font-weight: 700; font-size: 15px; width: 100%; }
.wc-proceed-to-checkout .checkout-button:hover, .woocommerce #payment #place_order:hover { background: var(--color-accent-hover); }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection { width: 100%; min-height: 46px; border: 1px solid var(--color-border) !important; border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; }
.woocommerce-checkout .col2-set { display: grid; gap: 0 28px; }
@media (min-width: 800px) { .woocommerce-checkout #customer_details.col2-set { grid-template-columns: 1fr 1fr; } .woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; } .woocommerce-checkout #customer_details { grid-column: 1; } .woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { grid-column: 2; } }
.woocommerce-checkout .payment_methods { list-style: none; padding: 0; }
.woocommerce-checkout .payment_methods li { padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 8px; }

/* =======================  Производители (бренды)  ======================= */
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); text-align: center; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.brand-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-card__name { font-weight: 700; font-size: 16px; }
.brand-card__count { font-size: 13px; color: var(--color-text-muted); }
.brand-card__logo { height: 48px; display: flex; align-items: center; }

/* =======================  Аренда  ======================= */
.rental-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rental-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.rental-card:hover { box-shadow: var(--shadow); }
.rental-card__body { padding: 18px; }
.rental-card__price { color: var(--color-accent); font-weight: 800; font-size: 18px; margin-top: 8px; }
.rental-calc { background: var(--color-bg-soft); border-radius: var(--radius); padding: 24px; max-width: 460px; }
.rental-calc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rental-calc__row input { width: 110px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; }
.rental-calc__total { font-size: 22px; font-weight: 800; }
.rental-calc__total b { color: var(--color-accent); }

/* =======================  Контакты  ======================= */
.contacts-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.contacts-info { display: grid; gap: 18px; }
.contacts-info__item { display: flex; gap: 12px; align-items: flex-start; }
.contacts-info__item .ms-icon { color: var(--color-accent); margin-top: 2px; }
.contacts-info__label { font-size: 13px; color: var(--color-text-muted); }
.contacts-info__value { font-weight: 600; }
.contacts-map { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.contacts-map iframe, .contacts-map > * { width: 100%; height: 100%; border: 0; }

/* =======================  Cookie-баннер  ======================= */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; background: #15191F; color: #E5E9EF; border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto; }
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { font-size: 13px; margin: 0; }
.cookie-bar__text a { color: #fff; text-decoration: underline; }
.cookie-bar .btn { white-space: nowrap; }

/* Согласие на ПД в формах */
.ms-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--color-text-muted); margin-top: 10px; }
.ms-consent input { margin-top: 2px; }

@media (max-width: 1000px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .rental-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .rental-grid { grid-template-columns: 1fr; }
}

/* =======================  Анимации (reveal)  ======================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =======================  Адаптив  ======================= */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-menu__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .topbar { display: none; }
  .header-main__inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .hero__title { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .site-footer__top, .post-grid { grid-template-columns: 1fr; }
  .header-actions__phone-num { display: none; }
}
