/* ============================================================
   THEME: minimal — clean light (Apple-like)
   White space, system font, soft rounded surfaces, one bright
   blue accent, large product imagery, no clutter.
   ============================================================ */

:root {
  --m-bg:     #ffffff;
  --m-soft:   #f5f5f7;   /* apple light grey */
  --m-fg:     #1d1d1f;
  --m-muted:  #6e6e73;
  --m-line:   #e5e5ea;
  --m-accent: #0a84ff;   /* bright blue */
  --m-accent-h:#0060df;
  --m-card:   #ffffff;
  --m-radius: 16px;
  --m-radius-sm: 12px;
  --m-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --m-pad: 40px;
}

/* shared cart-control tokens — bright blue button */
body.theme-minimal {
  --vt-accent: var(--m-accent);
  --vt-fg: var(--m-fg);
  --vt-line: var(--m-line);
  --vt-card: #ffffff;
}
body.theme-minimal.scheme-mono   { --m-accent:#0a84ff; --m-accent-h:#0060df; }
body.theme-minimal.scheme-warm   { --m-accent:#d2691e; --m-accent-h:#b45611; }
body.theme-minimal.scheme-forest { --m-accent:#1f9d55; --m-accent-h:#157f43; }

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--m-font);
  color: var(--m-fg); background: var(--m-bg);
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s, opacity .15s; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }

.m-muted { color: var(--m-muted); }
.m-right { text-align: right; }

/* ---- Banner ---- */
.m-banner {
  background: var(--m-fg); color: #fff;
  padding: 9px 16px; text-align: center; font-size: 13px;
}
.m-banner a { text-decoration: underline; }

/* ---- Header ---- */
.m-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--m-line);
}
.m-header__bar { }
.m-header__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--m-pad);
}
.m-brand { font-size: 20px; font-weight: 700; letter-spacing: -.02em; flex: 0 0 auto; }
.m-brand:hover { opacity: .7; }

.m-search { flex: 1 1 auto; max-width: 480px; }
.m-search input {
  width: 100%; border: 1px solid transparent; outline: none;
  background: var(--m-soft); color: var(--m-fg);
  font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 980px;
}
.m-search input::placeholder { color: var(--m-muted); }
.m-search input:focus { border-color: var(--m-accent); background: #fff; }

.m-links { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.m-link {
  font-size: 14px; color: var(--m-fg); padding: 8px 14px; border-radius: 980px;
}
.m-link:hover { background: var(--m-soft); }
.m-cart {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 980px;
  background: var(--m-accent); color: #fff;
}
.m-cart:hover { background: var(--m-accent-h); }
.m-cart [data-cart-count] {
  background: rgba(255,255,255,.28); border-radius: 980px;
  min-width: 20px; text-align: center; padding: 0 6px; font-weight: 700;
}
.m-cart [data-cart-count]:empty, .m-cart [data-cart-count="0"] { display: none; }

/* burger (CSS-only, mobile) */
.m-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  cursor: pointer; flex: 0 0 auto; border-radius: 12px;
}
.m-burger:hover { background: var(--m-soft); }
.m-burger span { display: block; width: 20px; height: 2px; background: var(--m-fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.m-navtoggle:checked ~ .m-header__bar .m-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-navtoggle:checked ~ .m-header__bar .m-burger span:nth-child(2) { opacity: 0; }
.m-navtoggle:checked ~ .m-header__bar .m-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.m-nav { border-top: 1px solid var(--m-line); background: rgba(255,255,255,.6); }
.m-nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px calc(var(--m-pad) - 14px);
}
.m-nav__inner a {
  font-size: 14px; color: var(--m-muted);
  padding: 7px 14px; border-radius: 980px;
}
.m-nav__inner a:hover { color: var(--m-fg); background: var(--m-soft); }

/* ---- Main ---- */
.m-main { padding: 56px var(--m-pad); max-width: 1200px; margin: 0 auto; }

/* ---- Section head ---- */
.m-section {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 56px 0 24px;
}
.m-section:first-child { margin-top: 0; }
.m-section h2 { font-size: 24px; }
.m-section__more { font-size: 14px; font-weight: 600; color: var(--m-accent); white-space: nowrap; }
.m-section__more:hover { color: var(--m-accent-h); }

/* ---- Page head ---- */
.m-pagehead { margin-bottom: 44px; }
.m-pagehead__kicker { font-size: 13px; font-weight: 600; color: var(--m-accent); margin-bottom: 10px; }
.m-pagehead h1 { font-size: clamp(28px, 5vw, 44px); }
.m-pagehead__meta { color: var(--m-muted); font-size: 14px; margin-top: 12px; }
.m-pagehead--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

/* ---- Hero ---- */
.m-hero {
  text-align: center; padding: 72px 24px 80px;
  background: var(--m-soft); border-radius: 28px; margin-bottom: 56px;
}
.m-hero__eyebrow { font-size: 14px; font-weight: 600; color: var(--m-accent); margin-bottom: 16px; }
.m-hero h1 { font-size: clamp(34px, 6vw, 64px); letter-spacing: -.03em; }
.m-hero p { color: var(--m-muted); font-size: 19px; margin: 18px auto 0; max-width: 600px; }
.m-hero .m-btn { margin-top: 32px; }

/* ---- Advantages ---- */
.m-adv {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 64px;
}
.m-adv__item { background: var(--m-soft); border-radius: var(--m-radius); padding: 28px; }
.m-adv__icon { font-size: 28px; margin-bottom: 14px; }
.m-adv__title { font-size: 17px; font-weight: 600; }
.m-adv__txt { color: var(--m-muted); font-size: 14px; margin-top: 8px; }

/* ---- Category chips ---- */
.m-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.m-chip {
  font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 980px;
  background: var(--m-soft); color: var(--m-fg);
}
.m-chip:hover { background: var(--m-accent); color: #fff; }

/* legacy sidebar/catnav (other layouts) — kept clean */
.m-idx-grid { display: block; }
.m-sidebar { margin-bottom: 32px; }
.m-catnav { display: flex; flex-wrap: wrap; gap: 10px; }
.m-catnav a {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--m-soft); border-radius: 980px; padding: 9px 16px; font-size: 14px;
}
.m-catnav a:hover { background: var(--m-accent); color: #fff; }
.m-catnav__n { color: var(--m-muted); font-size: 12px; }
.m-catnav a:hover .m-catnav__n { color: #fff; }

/* ---- About ---- */
.m-about { margin-top: 72px; padding: 48px; background: var(--m-soft); border-radius: 28px; }
.m-about h2 { font-size: 24px; margin-bottom: 14px; }
.m-about p { color: var(--m-muted); font-size: 17px; line-height: 1.75; margin: 0; max-width: 720px; }
.m-about__body { display: block; }
.m-about__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.m-about__list li { color: var(--m-muted); font-size: 15px; }
.m-about__list li::before { content: "— "; }

/* ---- Products grid ---- */
.m-products, .vt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 36px 24px;
}
.m-product { display: flex; flex-direction: column; height: 100%; }
.m-product__link { display: block; }
.m-product .photo {
  aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--m-line);
  border-radius: var(--m-radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  margin-bottom: 14px; transition: border-color .15s;
}
.m-product__link:hover .photo { border-color: #d0d0d6; }
.m-product .photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.m-product .name {
  font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
}
.m-product__link:hover .name { color: var(--m-accent); }
.m-product .price { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
/* кнопка/контрол прижаты к низу — на одном уровне во всех карточках */
.m-product .vt-cc, .m-product__cta, .m-product__oos { margin-top: auto; padding-top: 14px; }
.m-product__cta { display: block; text-align: center; }
.m-product__oos {
  font-size: 13px; color: var(--m-muted); text-align: center;
  padding: 12px 0; border-top: 1px solid var(--m-line);
}
/* Контрол корзины: мягкий степпер-пилюля + широкая синяя кнопка-пилюля */
.m-product .cart-slot, .m-product .vt-cc { width: 100%; }
.m-product .vt-cc__form {
  width: 100%; flex-direction: column; gap: 10px; align-items: center;
}
.m-product .vt-cc__qty {
  flex: 0 0 auto; height: 40px; border: none; border-radius: 980px;
  background: var(--m-soft); padding: 0 4px; gap: 2px;
}
.m-product .vt-cc__pm {
  width: 36px; font-size: 18px; color: var(--m-fg);
  background: transparent; border-radius: 50%;
}
.m-product .vt-cc__pm:hover { background: #fff; color: var(--m-accent); }
.m-product .vt-cc__n {
  width: 40px; font-size: 15px; font-weight: 700;
  background: transparent; border: none; color: var(--m-fg);
}
.m-product .vt-cc__btn {
  width: 100%; min-width: 0; height: 48px; border-radius: 980px;
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  background: var(--m-accent);
}
.m-product .vt-cc__btn:hover { background: var(--m-accent-h); }
.m-product .vt-cc.is-incart .vt-cc__btn {
  background: #fff; color: var(--m-accent);
  box-shadow: inset 0 0 0 1.5px var(--m-accent);
}
.m-product .vt-cc__note { text-align: center; }
.m-product__cta {
  display: block; width: 100%; height: 48px; line-height: 26px;
  border-radius: 980px;
}

/* ---- Product page ---- */
.m-product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.m-product-page .gallery {
  aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--m-line);
  border-radius: 28px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.m-product-page .gallery img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.m-product-page h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 0; }
.m-product-page .price { font-size: 28px; font-weight: 700; margin: 24px 0 0; }
.m-stock { color: var(--m-muted); font-size: 14px; margin: 16px 0; }
.m-product-page .desc { color: var(--m-muted); margin: 22px 0; font-size: 15px; line-height: 1.8; }
.m-product-page__add { margin-top: 32px; }

/* ---- Variants ---- */
.m-variants { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.m-variant {
  padding: 10px 20px; border: 1px solid var(--m-line); border-radius: 12px;
  cursor: pointer; font-size: 14px;
}
.m-variant.selected { border-color: var(--m-accent); background: var(--m-accent); color: #fff; }

/* ---- Buttons ---- */
.m-btn {
  display: inline-block; padding: 13px 28px;
  background: var(--m-accent); color: #fff;
  border: none; border-radius: 980px; font: inherit; cursor: pointer;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: background .15s, transform .06s;
}
.m-btn:hover { background: var(--m-accent-h); }
.m-btn:active { transform: scale(.98); }
.m-btn--lg { padding: 16px 40px; font-size: 17px; }
.m-btn--block { display: block; width: 100%; }
.m-btn.outline { background: var(--m-soft); color: var(--m-fg); }
.m-btn.outline:hover { background: #ebebf0; }
.m-btn:disabled { opacity: .4; cursor: not-allowed; }
.m-textbtn { background: none; border: none; cursor: pointer; color: var(--m-accent); font: inherit; font-size: 14px; font-weight: 600; }
.m-textbtn:hover { color: var(--m-accent-h); }
.m-x { background: none; border: none; cursor: pointer; color: var(--m-muted); font-size: 20px; line-height: 1; }
.m-x:hover { color: var(--m-fg); }

.m-docs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }

/* ---- Order info strip ---- */
.m-orderinfo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 44px;
}
.m-orderinfo > div { background: var(--m-soft); border-radius: var(--m-radius); padding: 18px 20px; font-size: 14px; }
.m-orderinfo__l { font-size: 12px; font-weight: 600; color: var(--m-muted); margin-bottom: 6px; }

/* ---- Tables ---- */
.m-table { width: 100%; border-collapse: collapse; }
.m-table th, .m-table td {
  padding: 16px 12px; border-bottom: 1px solid var(--m-line);
  text-align: left; vertical-align: middle;
}
.m-table thead th {
  font-size: 12px; font-weight: 600; color: var(--m-muted);
  text-transform: uppercase; letter-spacing: .03em;
}
.m-table--lines td:first-child, .m-table--lines td:nth-child(2) {
  font-size: 13px; color: var(--m-muted); white-space: nowrap;
}
.m-table tfoot td { border-bottom: none; padding-top: 14px; }
.m-cart-table__img { width: 88px; }
.m-table td > img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--m-line); border-radius: 10px; }
.m-table input { width: 64px; padding: 8px; border: 1px solid var(--m-line); border-radius: 10px; text-align: center; font: inherit; background: #fff; }
.m-cart-total { font-size: 20px; font-weight: 700; padding-top: 22px !important; }
.m-cart-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 36px; }

/* ---- Help block ---- */
.m-help { margin-top: 56px; background: var(--m-soft); border-radius: var(--m-radius); padding: 28px 32px; }
.m-help .m-section { margin: 0 0 6px; }
.m-help .m-section h2 { font-size: 18px; }
.m-help p { font-size: 14px; color: var(--m-muted); margin: 4px 0; }
.m-help__row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px !important; }
.m-help__row a, .m-help__row span { color: var(--m-fg); font-size: 14px; }
.m-help__row a { color: var(--m-accent); font-weight: 600; }

/* ---- Checkout ---- */
.m-checkout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.m-field { margin-bottom: 18px; }
.m-field label { display: block; font-size: 13px; font-weight: 600; color: var(--m-muted); margin-bottom: 7px; }
.m-form input, .m-form textarea,
.m-checkout input[type=text], .m-checkout input[type=email],
.m-checkout input[type=tel], .m-checkout textarea, .m-checkout select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--m-line);
  border-radius: 12px; background: #fff; font: inherit; outline: none;
}
.m-form input:focus, .m-checkout input:focus,
.m-form textarea:focus, .m-checkout textarea:focus { border-color: var(--m-accent); }
.m-delivery { display: flex; flex-direction: column; gap: 10px; }
.m-radio {
  display: flex; gap: 14px; padding: 16px; cursor: pointer;
  border: 1px solid var(--m-line); border-radius: var(--m-radius); background: #fff;
}
.m-radio:hover { border-color: var(--m-accent); }
.m-radio__t { font-size: 15px; font-weight: 600; }
.m-radio__m { color: var(--m-muted); font-size: 13px; margin-top: 4px; }
.m-checkout__aside { background: var(--m-soft); border-radius: 20px; padding: 28px; }
.m-sumrow { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--m-line); }
.m-sumtotal { display: flex; justify-content: space-between; font-size: 21px; font-weight: 700; margin: 24px 0 20px; }
.m-note { color: var(--m-muted); font-size: 13px; text-align: center; margin-top: 14px; line-height: 1.6; }
.m-err { color: #d70015; font-size: 13px; margin-top: 6px; }

/* ---- Account / auth ---- */
.m-account { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.m-orderrow { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--m-line); font-size: 15px; }
.m-auth { max-width: 420px; margin: 24px auto; background: var(--m-soft); border-radius: 24px; padding: 40px; }
.m-auth h1 { font-size: 30px; margin: 0 0 28px; }
.m-auth__alt { text-align: center; margin-top: 24px; color: var(--m-muted); font-size: 14px; }
.m-auth__alt a { color: var(--m-accent); font-weight: 600; }
.m-back { font-size: 14px; color: var(--m-accent); font-weight: 600; margin: 0 0 28px; }

/* ---- Article / page ---- */
.m-article { max-width: 760px; margin: 0 auto; }
.m-article h1 { font-size: clamp(28px, 5vw, 44px); margin: 8px 0 32px; }
.m-article__body { font-size: 17px; line-height: 1.8; color: #333; }
.m-article__body a { color: var(--m-accent); text-decoration: underline; }

/* ---- Gallery ---- */
.m-gallery { max-width: 1200px; margin: 0 auto; }
.m-gal--grid { display: grid; gap: 16px; }
.m-gal--grid.m-gal--small  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.m-gal--grid.m-gal--medium { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.m-gal--grid.m-gal--large  { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.m-gal__cell { aspect-ratio: 1/1; background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-radius); overflow: hidden; }
.m-gal__cell img { width: 100%; height: 100%; object-fit: contain; }
.m-gal--masonry { column-count: 3; column-gap: 16px; }
.m-gal__fig { break-inside: avoid; margin: 0 0 16px; }
.m-gal__fig figcaption, .m-gal--carousel figcaption, .m-gal--wide figcaption {
  color: var(--m-muted); font-size: 13px; margin-top: 8px;
}
.m-gal--carousel { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.m-gal__slide { flex: 0 0 340px; scroll-snap-align: start; margin: 0; }
.m-gal__slide.m-gal--small  { flex-basis: 240px; }
.m-gal__slide.m-gal--large  { flex-basis: 480px; }
.m-gal__slide img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: var(--m-radius); }
.m-gal--wide { display: flex; flex-direction: column; gap: 20px; }
.m-gal__wideimg { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--m-radius); }
.m-gal__wideimg img { width: 100%; height: 100%; object-fit: cover; }
.m-gal--twocol { display: flex; flex-direction: column; gap: 32px; }
.m-gal__pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.m-gal__pairimg { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--m-radius); }
.m-gal__pairimg img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Thanks ---- */
.m-thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.m-thanks__mark {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto;
  background: var(--m-accent); color: #fff; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
}
.m-thanks h1 { font-size: 32px; margin: 22px 0 10px; }
.m-thanks__msg { color: var(--m-muted); font-size: 16px; line-height: 1.7; }
.m-thanks .m-table { text-align: left; margin-top: 44px; }
.m-thanks__cta { margin-top: 40px; }

/* ---- Empty ---- */
.m-empty {
  padding: 80px 0; text-align: center; color: var(--m-muted);
  font-size: 18px; background: var(--m-soft); border-radius: 28px;
}
.m-empty .m-btn { margin-top: 24px; }

/* ---- Footer (канон торговой компании: бренд + колонки на акцентном фоне) ---- */
.m-footer {
  margin-top: 96px; padding: 56px var(--m-pad) 24px; font-size: 14px;
  background: var(--m-accent); color: rgba(255,255,255,.78);
}
.m-footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 40px 48px;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  text-align: left;
}
.m-footer__name {
  display: inline-block; font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; color: #fff;
}
.m-footer__tagline {
  margin: 12px 0 0; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.92);
}
.m-footer__about {
  margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.62);
  max-width: 34ch;
}
.m-footer__col { display: flex; flex-direction: column; gap: 11px; }
.m-footer__col h4 {
  margin: 0 0 5px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.m-footer__col a, .m-footer__col span {
  color: rgba(255,255,255,.85); font-weight: 500; transition: color .14s;
}
.m-footer__col a:hover { color: #fff; text-decoration: underline; }
.m-footer__contacts span { color: rgba(255,255,255,.7); font-weight: 400; }
.m-footer__bottom {
  max-width: 1100px; margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18); font-size: 12.5px;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  align-items: center; justify-content: space-between; color: rgba(255,255,255,.6);
}
.m-footer__legal-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;
}
.m-footer__legal { color: rgba(255,255,255,.85); font-weight: 500; }
.m-footer__legal:hover { color: #fff; text-decoration: underline; }
.m-footer__platform { color: rgba(255,255,255,.45); }
@media (max-width: 860px) {
  .m-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .m-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .m-footer { padding: 44px var(--m-pad) 22px; }
  .m-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .m-footer__bottom { justify-content: flex-start; }
}

/* ---- Catalog layout (shared partial) ---- */
.vt-catalog-layout { gap: 40px !important; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --m-pad: 28px; }
  .m-checkout, .m-account { grid-template-columns: 1fr; gap: 36px; }
  .m-product-page { grid-template-columns: 1fr; gap: 32px; }
  .m-gal--masonry { column-count: 2; }
  .vt-catalog-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .m-burger { display: flex; }
  .m-header__inner { flex-wrap: wrap; gap: 14px 18px; }
  .m-search { order: 3; flex: 1 0 100%; max-width: none; }
  .m-nav { display: none; }
  .m-navtoggle:checked ~ .m-nav { display: block; }
  .m-nav__inner { flex-direction: column; gap: 2px; padding: 8px var(--m-pad) 14px; }
  .m-nav__inner a { padding: 12px 14px; font-size: 15px; }
}
@media (max-width: 600px) {
  :root { --m-pad: 18px; }
  .m-main { padding: 36px var(--m-pad); }
  .m-hero { padding: 48px 20px 56px; border-radius: 20px; }
  .m-products, .vt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 16px; }
  .m-gal--masonry { column-count: 1; }
  .m-gal__pair { grid-template-columns: 1fr; }
  .m-cart-actions { flex-direction: column; }
  .m-table--lines td:first-child, .m-table--lines td:nth-child(2),
  .m-table--lines th:first-child, .m-table--lines th:nth-child(2) { display: none; }
}
