/* ==========================================================================
   Hosturm — раскладка «Маркет» (data-layout="market"). Подключается после hosturm.css
   только когда в «Вигляд сайту» выбрана раскладка «Маркет» (или ?layout=market).
   Свой вид на токенах --hb-*: цвета, радиусы и тёмная тема приходят из настроек
   магазина и пресетов, здесь меняется только структура и фон.
   ========================================================================== */

/* ---------- M0. Токены раскладки ---------- */
:root[data-layout="market"]{
  --mk-gap:16px;
  --mk-rail:64px;                    /* ширина правой панели на ПК */
  --mk-card:var(--hb-surface);
  --mk-top-h:38px;
}
/* светло-серый фон страницы, зависит от «Фон сайту» из настроек */
:root[data-layout="market"]:not([data-theme="dark"]){
  --hb-bg:color-mix(in srgb,var(--hb-page) 38%,#E6E9EE);
  --hb-surface-2:color-mix(in srgb,var(--hb-surface) 55%,#E6E9EE);
}
:root[data-layout="market"] body{background:var(--hb-bg)}

/* ---------- M1. Верхняя полоса цвета --hb-accent ---------- */
.mk-top{background:var(--hb-accent);color:var(--hb-on-accent);font-size:13px}
.mk-top__row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:var(--mk-top-h)}
.mk-top a,.mk-top button{color:var(--hb-on-accent)}
.mk-top__links{display:flex;flex-wrap:wrap;align-items:center;gap:2px 20px;margin:0;padding:0;list-style:none}
.mk-top__links a{opacity:.92;white-space:nowrap}
.mk-top__links a:hover,.mk-top__acc:hover{opacity:1;color:var(--hb-on-accent);text-decoration:underline}
.mk-top__right{display:flex;align-items:center;gap:14px;flex:none}
.mk-top__sw{display:flex;align-items:center;gap:8px}
.mk-top__sw .hb-switch{background:color-mix(in srgb,var(--hb-on-accent) 18%,transparent)}
.mk-top__sw .hb-switch button,.mk-top__sw .hb-switch a{text-decoration:none;display:inline-block;color:var(--hb-on-accent);padding:5px 8px}
.mk-top__sw .hb-switch button[aria-current],.mk-top__sw .hb-switch a[aria-current]{background:var(--hb-on-accent);color:var(--hb-accent);box-shadow:none}
.mk-top__btn{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;cursor:pointer}
.mk-top__btn:hover{background:color-mix(in srgb,var(--hb-on-accent) 18%,transparent)}
.mk-top__btn svg{font-size:18px}
.mk-top__acc{display:inline-flex;align-items:center;gap:6px;font-weight:600;white-space:nowrap}
.mk-top__acc svg{font-size:17px}

/* ---------- M2. Белая шапка ---------- */
.mk-header{border-bottom:1px solid var(--hb-line)}
.mk-header__row{display:flex;align-items:center;gap:18px;min-height:78px}
.mk-header .hb-logo{margin-right:2px}
.mk-header .hb-catalog__btn{min-height:48px;border-radius:var(--hb-radius-sm);padding-inline:20px 24px;font-size:15px}
.mk-searchbox{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.mk-searchbox .hb-search{max-width:none;margin:0;width:100%}
.mk-searchbox .hb-search input[type="search"]{height:48px;border-radius:var(--hb-radius-sm);background:var(--hb-surface);border:1.5px solid var(--hb-accent)}
.mk-searchbox .hb-search__btn{border-radius:calc(var(--hb-radius-sm) - 3px)}
.mk-addr{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding-left:2px;font-size:12.5px;line-height:1.3;color:var(--hb-mut)}
.mk-addr:hover{color:var(--hb-accent-t)}
.mk-addr svg{font-size:14px;color:var(--hb-accent)}
.mk-addr span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-phones{display:flex;flex-direction:column;gap:1px;flex:none;line-height:1.3}
.mk-phones a{display:flex;align-items:center;gap:6px;color:var(--hb-header-ink);font-weight:650;font-size:15px;white-space:nowrap}
.mk-phones a:hover{color:var(--hb-accent-t)}
.mk-phones svg{font-size:15px;color:var(--hb-accent)}
.mk-phones small{color:var(--hb-dim);font-size:12px;padding-left:21px}
.mk-icons{display:flex;align-items:center;gap:4px;flex:none}
.mk-icons__addr,.mk-icons__tel{display:none}
.mk-header .hb-cartbtn{margin-left:0;border-radius:var(--hb-radius-sm);padding:5px 14px 5px 5px}
.mk-header .hb-cartbtn__icon{border-radius:calc(var(--hb-radius-sm) - 2px)}

@media (max-width:1180px){
  .mk-phones{display:none}
}
@media (max-width:991px){
  .mk-top{display:none}
  .mk-header__row{flex-wrap:wrap;gap:6px 8px;min-height:60px;padding-block:8px}
  .mk-burger{display:inline-grid;margin-left:0;width:44px;height:44px;border-radius:var(--hb-radius-sm);background:var(--hb-accent);color:var(--hb-on-accent)}
  .mk-burger:hover{background:var(--hb-accent-h);color:var(--hb-on-accent)}
  .mk-header .hb-logo{margin-right:auto;flex:1 1 0;min-width:0;max-width:150px}
  .mk-header .hb-logo img{max-width:100%;height:auto}
  .mk-catalog{display:none}
  .mk-searchbox{order:5;flex:1 1 100%}
  .mk-searchbox .hb-search input[type="search"]{height:44px}
  .mk-searchbox .hb-search__btn{width:36px;height:36px}
  .mk-addr{display:none}
  .mk-icons{gap:0}
  .mk-icons__addr,.mk-icons__tel{display:inline-grid}
  .mk-header .hb-cartbtn{padding:4px;background:transparent}
  .mk-header .hb-cartbtn__sum{display:none}
}

/* ---------- M3. Главная: ряд «слайдер + Товари дня», блоки-карточки ---------- */
:root[data-layout="market"] .hb-section{margin-top:var(--mk-gap)}
:root[data-layout="market"] .hb-section__head h2,
:root[data-layout="market"] .mk-deals__title{font-family:var(--hb-font);font-weight:700;letter-spacing:-.01em}
:root[data-layout="market"] .hb-section__head h2{font-size:clamp(19px,2vw,24px)}

#common-home .row{margin:0}
#common-home .row>[class*="col-"]{padding:0}
[data-layout="market"] #common-home #content{
  float:none;width:auto;min-width:0;
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--mk-gap);
  padding-top:var(--mk-gap);
}
[data-layout="market"] #common-home #content>*{grid-column:1/-1;min-width:0;margin-top:0}
[data-layout="market"] #common-home #content:has(>.mk-deals)>.hb-hero{grid-column:span 9}
[data-layout="market"] #common-home #content>.mk-deals{grid-column:span 3}
/* блоки модулей — белые карточки */
[data-layout="market"] #common-home #content>.hb-section{
  background:var(--mk-card);border:1px solid var(--hb-line);border-radius:var(--hb-radius);padding:20px 22px 22px;
}
[data-layout="market"] #common-home #content>.hb-section .hb-section__head{margin-bottom:16px}
[data-layout="market"] .hb-html .hb-html__body.hb-card{border:0;background:transparent;padding:0}

/* слайдер */
[data-layout="market"] .hb-hero{margin-top:0;border-radius:var(--hb-radius)}
[data-layout="market"] .hb-hero__slide{min-height:clamp(300px,31vw,430px);padding:clamp(24px,3.4vw,52px)}
[data-layout="market"] .hb-hero--low .hb-hero__slide{min-height:clamp(260px,26vw,360px)}
[data-layout="market"] .hb-hero--high .hb-hero__slide{min-height:clamp(340px,38vw,500px)}
[data-layout="market"] .hb-hero__title{font-family:var(--hb-font);font-weight:700;font-size:clamp(26px,3.2vw,44px)}
[data-layout="market"] .hb-hero__dots{left:clamp(24px,3.4vw,52px)}

/* «Товари дня» */
.mk-deals{display:flex;flex-direction:column;gap:10px;padding:14px;background:var(--mk-card);border:1px solid var(--hb-line);border-radius:var(--hb-radius);min-height:320px}
.mk-deals__head{display:flex;flex-direction:column;gap:8px}
.mk-deals__title{margin:0;font-size:18px;line-height:1.2}
.mk-deals__timer{display:flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}
.mk-deals__timer span{min-width:30px;padding:4px 5px;border-radius:var(--hb-radius-xs);background:var(--hb-danger);color:#fff;font:700 14px/1.2 var(--hb-font);text-align:center}
.mk-deals__timer i{margin-right:5px;font-style:normal;font-size:11px;color:var(--hb-dim)}
.mk-deals__view{position:relative;flex:1;min-height:250px}
.mk-deal{position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;opacity:0;visibility:hidden;transform:translateY(22px);transition:opacity .45s var(--hb-ease),transform .45s var(--hb-ease),visibility .45s}
.mk-deal.is-active{opacity:1;visibility:visible;transform:none;z-index:1}
.mk-deal.is-prev{transform:translateY(-22px)}
.mk-deal__img{position:relative;flex:1 1 0;min-height:110px;display:block;border-radius:var(--hb-radius-sm);overflow:hidden;background:var(--hb-surface-2)}
.mk-deal__img img{width:100%;height:100%;object-fit:cover}
.mk-deal__off{position:absolute;left:8px;top:8px;padding:2px 8px;border-radius:var(--hb-pill);background:var(--hb-danger);color:#fff;font:700 12px/1.6 var(--hb-font)}
.mk-deal__name{margin:0;font-size:14px;font-weight:550;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.mk-deal__name a{color:var(--hb-ink)}
.mk-deal__name a:hover{color:var(--hb-accent-t)}
.mk-deal__foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.mk-deal__foot .hb-price b{font-size:18px}
.mk-deal__buy{padding-inline:12px;min-height:38px}
.mk-deal__buy span{display:none}
.mk-deals__nav{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mk-deals__arrow{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--hb-line);border-radius:50%;background:var(--hb-surface);color:var(--hb-ink);cursor:pointer}
.mk-deals__arrow:hover{border-color:var(--hb-accent);color:var(--hb-accent-t)}
.mk-deals__arrow svg{font-size:17px}
.mk-deals__dots{display:flex;gap:6px}
.mk-deals__dots button{width:8px;height:8px;padding:0;border:0;border-radius:4px;background:var(--hb-line);cursor:pointer;transition:width .3s,background .3s}
.mk-deals__dots button[aria-current]{width:22px;background:var(--hb-accent)}

/* популярные категории: сетка 6 в ряд, картинка + подпись */
[data-layout="market"] .hb-catwall__grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--mk-gap) 12px}
[data-layout="market"] .hb-catwall__card{flex-direction:column;align-items:center;gap:10px;padding:6px 4px 10px;border:0;background:transparent;text-align:center;border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-catwall__card:hover{background:var(--hb-surface-2);box-shadow:none;transform:none}
[data-layout="market"] .hb-catwall__img{width:100%;height:auto;aspect-ratio:1/1;border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-catwall__name{flex:none;font-size:14px;font-weight:600}
[data-layout="market"] .hb-catwall__name small{display:none}
[data-layout="market"] .hb-catwall__arrow{display:none}
[data-layout="market"] .hb-catwall__sub{justify-content:center}

/* ленты товаров: горизонтальная прокрутка + «Показати ще» */
[data-layout="market"] .hb-module .hb-grid--rail{display:flex;flex-wrap:nowrap;gap:var(--mk-gap);overflow-x:auto;scroll-snap-type:x mandatory;margin:0;padding:2px 2px 8px;scrollbar-width:none}
[data-layout="market"] .hb-module .hb-grid--rail::-webkit-scrollbar{display:none}
[data-layout="market"] .hb-module .hb-grid--rail>.hb-pc{flex:0 0 calc((100% - 4 * var(--mk-gap)) / 5);scroll-snap-align:start}
[data-layout="market"] .hb-module.is-expanded .hb-grid--rail{flex-wrap:wrap;overflow:visible}
[data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex:0 0 calc((100% - 4 * var(--mk-gap)) / 5)}
.mk-more{display:flex;justify-content:center;margin-top:10px}
.mk-more .hb-btn{min-width:200px;border-radius:var(--hb-radius-sm)}
.mk-rail-nav{display:flex;gap:6px;margin-left:auto}
.mk-rail-nav button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--hb-line);border-radius:50%;background:var(--hb-surface);color:var(--hb-ink);cursor:pointer}
.mk-rail-nav button:hover{border-color:var(--hb-accent);color:var(--hb-accent-t)}
.mk-rail-nav button:disabled{opacity:.35;cursor:default}
.mk-rail-nav svg{font-size:18px}
.mk-rail-nav .is-prev svg{transform:scaleX(-1)}
.hb-module.is-expanded .mk-rail-nav{display:none}

/* блог: 4 в ряд */
[data-layout="market"] .hb-news .hb-posts{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:var(--mk-gap)}
[data-layout="market"] .hb-news .hb-posts:has(>:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
[data-layout="market"] .hb-news .hb-post{background:var(--hb-surface);border-color:var(--hb-line)}
[data-layout="market"] .hb-post__body{padding:14px 16px 16px;gap:6px}
[data-layout="market"] .hb-post__title{font-size:16px}
[data-layout="market"] .hb-benefit{background:var(--hb-surface-2);border:0}
[data-layout="market"] .hb-benefits--row .hb-benefits__list{background:transparent;border:0;padding:0}

@media (max-width:1180px){
  [data-layout="market"] .hb-catwall__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  [data-layout="market"] .hb-module .hb-grid--rail>.hb-pc,[data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex-basis:calc((100% - 3 * var(--mk-gap)) / 4)}
  [data-layout="market"] .hb-news .hb-posts:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:991px){
  [data-layout="market"] #common-home #content:has(>.mk-deals)>.hb-hero,[data-layout="market"] #common-home #content>.mk-deals{grid-column:1/-1}
  .mk-deals{min-height:0}
  .mk-deals__view{min-height:230px;flex:none}
  .mk-deal{display:grid;grid-template-columns:40% minmax(0,1fr);grid-template-rows:1fr auto;gap:8px 14px}
  .mk-deal__img{grid-row:1/3;flex:none;height:100%;min-height:0}
  .mk-deal__name{align-self:end}
  .mk-deal__foot{flex-direction:column;align-items:stretch;align-self:end}
  .mk-deal__buy span{display:inline}
  [data-layout="market"] .hb-module .hb-grid--rail>.hb-pc,[data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex-basis:calc((100% - 2 * var(--mk-gap)) / 3)}
}
@media (max-width:640px){
  :root[data-layout="market"]{--mk-gap:10px}
  [data-layout="market"] #common-home #content>.hb-section{padding:14px 12px 16px;border-radius:var(--hb-radius-sm)}
  [data-layout="market"] .hb-hero{border-radius:var(--hb-radius-sm)}
  [data-layout="market"] .hb-hero__slide{min-height:380px}
  [data-layout="market"] .hb-catwall__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  [data-layout="market"] .hb-catwall__name{font-size:12.5px}
  [data-layout="market"] .hb-module .hb-grid--rail{margin-inline:0;padding-inline:0}
  [data-layout="market"] .hb-module .hb-grid--rail>.hb-pc,[data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex-basis:calc((100% - var(--mk-gap)) / 2.15)}
  [data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex-basis:calc((100% - var(--mk-gap)) / 2)}
  .mk-rail-nav{display:none}
  [data-layout="market"] .hb-news .hb-posts,[data-layout="market"] .hb-news .hb-posts:has(>:nth-child(4)){display:flex;grid-template-columns:none}
}

/* лента: в узких карточках цена над кнопкой */
[data-layout="market"] .hb-module .hb-pc__foot{flex-direction:column;align-items:stretch;gap:8px}
[data-layout="market"] .hb-module .hb-pc__buy{width:100%}
[data-layout="market"] .hb-module .hb-price{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
[data-layout="market"] .hb-module .hb-price s{order:2}

/* ---------- M4. Правая панель (ПК) ---------- */
.mk-rail{position:fixed;right:0;top:50%;z-index:70;transform:translateY(-50%);display:flex;flex-direction:column;width:var(--mk-rail);padding:6px 0;background:var(--hb-surface);border:1px solid var(--hb-line);border-right:0;border-radius:var(--hb-radius) 0 0 var(--hb-radius);box-shadow:var(--hb-shadow)}
.mk-rail__item{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:11px 4px 9px;color:var(--hb-ink);font-size:10.5px;line-height:1.15;text-align:center;border-radius:var(--hb-radius-sm);margin:0 4px}
.mk-rail__item+.mk-rail__item{border-top:1px solid var(--hb-line-2)}
.mk-rail__item:hover{background:var(--hb-surface-2);color:var(--hb-accent-t)}
.mk-rail__item svg{font-size:24px}
.mk-rail__item span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-rail__item .hb-count{top:3px;right:6px}
[data-layout="market"] .hb-up{right:calc(var(--mk-rail) + 12px)}
[data-layout="market"] .hb-toasts{right:calc(var(--mk-rail) + 12px)}
@media (min-width:992px) and (max-width:1520px){
  [data-layout="market"] body{padding-right:var(--mk-rail)}
}
@media (max-width:991px){
  .mk-rail{display:none}
  [data-layout="market"] .hb-up{right:12px}
  [data-layout="market"] .hb-toasts{right:16px}
}

/* ---------- M5. Подвал: белый ---------- */
.mk-footer{margin-top:var(--mk-gap);background:var(--hb-surface);color:var(--hb-ink);border-top:1px solid var(--hb-line);font-size:14px}
.mk-footer a,.mk-footer .mk-footer__col a{color:var(--hb-mut)}
.mk-footer a:hover{color:var(--hb-accent-t)}
.mk-footer__top{display:flex;align-items:center;gap:20px 28px;flex-wrap:wrap;padding-block:24px;border-bottom:1px solid var(--hb-line)}
.mk-footer__lead{flex:1 1 280px}
.mk-footer__lead-title{margin:0 0 3px;font-size:18px;font-weight:700;color:var(--hb-ink)}
.mk-footer__lead-text{margin:0;color:var(--hb-mut)}
.mk-footer .mk-footer__sub,.mk-footer .mk-footer__sub:hover{color:var(--hb-on-accent)}
.mk-footer__sub{flex:none;border-radius:var(--hb-radius-sm)}
.mk-footer__follow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mk-footer__follow>span{font-weight:600}
.mk-footer .hb-social--footer a{background:var(--hb-surface);border-color:var(--hb-line);color:var(--hb-ink)}
.mk-footer .hb-social--footer a:hover{background:var(--hb-accent);border-color:var(--hb-accent);color:var(--hb-on-accent)}
.mk-footer__grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:32px;padding-block:32px 28px}
.mk-footer .hb-footer__logo{color:var(--hb-ink);margin-bottom:14px}
.mk-footer .hb-footer__logo span{color:var(--hb-ink)}
.mk-footer .hb-footer__title{color:var(--hb-ink)}
.mk-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mk-footer__contacts a,.mk-footer__contacts span{display:inline-flex;align-items:flex-start;gap:8px}
.mk-footer__contacts svg{margin-top:3px;font-size:16px;color:var(--hb-accent)}
.mk-footer .hb-footer__phone{color:var(--hb-ink)!important;font-size:16px}
.mk-footer .hb-pay{margin-top:14px!important}
.mk-footer .hb-pay li{border-color:var(--hb-line);color:var(--hb-mut)}
.mk-footer .hb-footer__bottom{border-top:1px solid var(--hb-line)}
.mk-footer .hb-footer__bar{color:var(--hb-dim)}
@media (max-width:991px){
  .mk-footer__grid{grid-template-columns:1fr 1fr;gap:26px}
  .mk-footer__contacts{grid-column:1/-1}
}
@media (max-width:640px){
  .mk-footer__top{padding-block:18px}
  .mk-footer__sub{width:100%}
  .mk-footer__grid{padding-block:24px 18px}
}

/* ---------- M6. Внутренние страницы: белые карточки на сером ---------- */
[data-layout="market"] .hb-page{padding-top:var(--mk-gap)}
[data-layout="market"] .hb-layout{gap:var(--mk-gap)}
[data-layout="market"] .hb-layout__main,[data-layout="market"] .hb-layout__side{background:var(--mk-card);border:1px solid var(--hb-line);border-radius:var(--hb-radius);padding:22px 24px}
[data-layout="market"] .hb-layout__side{padding:14px;align-self:start}
[data-layout="market"] .hb-layout__main .hb-card{border-color:var(--hb-line-2)}
[data-layout="market"] .hb-layout__main .hb-section{margin-top:28px}
[data-layout="market"] .hb-title,[data-layout="market"] .hb-hero__title{font-family:var(--hb-font);font-weight:700}
[data-layout="market"] .hb-pc{border-color:var(--hb-line-2)}
[data-layout="market"] .hb-pc:hover{border-color:var(--hb-accent-line)}
[data-layout="market"] .breadcrumb{margin-bottom:var(--mk-gap)}
@media (max-width:640px){
  [data-layout="market"] .hb-layout__main{padding:14px 12px;border-radius:var(--hb-radius-sm)}
}

[data-layout="market"] .hb-layout__side .list-group,[data-layout="market"] #column-left,[data-layout="market"] #column-right{width:100%;float:none;margin:0}

/* Avolar: горизонтальный логотип шире стандартного */
.hb-logo{max-width:260px}
.mk-header .hb-logo img,.hb-logo img{max-height:50px}
@media (max-width:991px){.mk-header .hb-logo{max-width:190px}}

/* ==========================================================================
   M7. Подгонка под образец клиента (структура и пропорции, без копирования кода)
   Всё на токенах; цвета берутся из пресета/настроек.
   ========================================================================== */
:root[data-layout="market"]{
  --hb-wrap:1440px;--hb-gutter:clamp(12px,2.1vw,30px);
  --mk-top-h:56px;--mk-side:270px;--mk-gap:16px;
}
/* верхняя полоса: выше, ссылки капсом, как у образца */
.mk-top{font-size:13px}
.mk-top__links{gap:2px 30px}
.mk-top__links a{text-transform:uppercase;letter-spacing:.04em;font-weight:500}
.mk-top__right{gap:20px}
/* шапка: высота ~102, лёгкий нейтральный поиск, адрес ссылкой, корзина столбиком */
.mk-header__row{min-height:102px;gap:24px}
.mk-header .hb-catalog__btn{min-height:44px;font-weight:500}
.mk-searchbox .hb-search input[type="search"]{height:42px;border:1px solid var(--hb-line);background:var(--hb-surface)}
.mk-searchbox .hb-search input[type="search"]:focus{border-color:var(--hb-accent)}
.mk-searchbox{max-width:560px}
.mk-addr{color:var(--hb-ink);font-size:13px}
.mk-addr span{text-decoration:underline;text-underline-offset:2px}
.mk-header .hb-cartbtn{flex-direction:column;justify-content:center;gap:2px;min-width:80px;min-height:69px;padding:8px 12px;background:var(--hb-surface-2);border-radius:var(--hb-radius-sm)}
.mk-header .hb-cartbtn__icon{width:34px;height:34px;background:transparent;color:var(--hb-ink)}
.mk-header .hb-cartbtn__icon svg{font-size:26px}
.mk-header .hb-cartbtn__icon .hb-count{top:-2px;right:-8px;background:var(--hb-accent);color:var(--hb-on-accent);box-shadow:none}
.mk-header .hb-cartbtn__sum{display:block;font-size:14px;font-weight:650}
.mk-header .hb-cartbtn__sum:empty::before{content:"0 грн"}
@media (max-width:991px){
  .mk-header .hb-cartbtn{flex-direction:row;min-width:0;min-height:0;padding:4px;background:transparent}
  .mk-header .hb-cartbtn__icon svg{font-size:22px}
  .mk-header .hb-cartbtn__sum,.mk-header .hb-cartbtn__sum:empty::before{display:none;content:none}
}

/* правая панель: тёмная плашка с иконками и круглыми счётчиками */
.mk-rail{width:66px;top:calc(50% - 90px);transform:none;padding:0;overflow:hidden;background:var(--mk-rail-bg,#59616e);border:0;border-radius:var(--hb-radius-sm) 0 0 var(--hb-radius-sm)}
.mk-rail__item{margin:0;padding:18px 4px;color:#fff;border-radius:0;font-size:0}
.mk-rail__item+.mk-rail__item{border-top:1px solid rgba(255,255,255,.14)}
.mk-rail__item:hover{background:rgba(255,255,255,.1);color:#fff}
.mk-rail__item svg{font-size:28px}
.mk-rail__item span:not(.hb-count){display:none}
.mk-rail__item .hb-count{top:6px;right:10px;background:var(--hb-accent);color:var(--hb-on-accent);box-shadow:none}

/* главная: ленты и блоки как у образца */
[data-layout="market"] #common-home #content>.hb-section{padding:18px 22px 22px}
[data-layout="market"] .hb-catwall__card{padding:10px 6px;border:1px solid var(--hb-line-2);border-radius:0;background:transparent}
[data-layout="market"] .hb-catwall__grid{gap:0}
[data-layout="market"] .hb-catwall__img{width:62%;margin-inline:auto}
[data-layout="market"] .hb-catwall__name{font-weight:400;font-size:14px}
[data-layout="market"] .mk-deals__title{text-transform:uppercase;font-size:15px;letter-spacing:.02em}

/* внутренние: боковая колонка 270, фильтр сверху, категории ниже */
[data-layout="market"] .hb-layout.has-left{grid-template-columns:var(--mk-side) minmax(0,1fr)}
[data-layout="market"] .hb-layout__side>aside{display:flex;flex-direction:column;gap:var(--mk-gap)}
[data-layout="market"] .hb-layout__side>aside>.hb-filter{order:-1;padding-bottom:var(--mk-gap);border-bottom:1px solid var(--hb-line-2)}
[data-layout="market"] .hb-layout__side>aside>.list-group{order:1}
[data-layout="market"] .hb-filter__head{font-size:17px;font-weight:600}
[data-layout="market"] .hb-filter__group{background:var(--hb-surface-2);border-radius:var(--hb-radius-sm);padding:12px 14px}
[data-layout="market"] .hb-filter__group legend{color:var(--hb-ink);font-weight:700;padding:0}
[data-layout="market"] .hb-layout__side .list-group-item{font-size:14px;padding:9px 12px;line-height:1.35}
[data-layout="market"] .hb-layout__main{padding:0;overflow:hidden}
[data-layout="market"] .hb-layout__main>*{margin-inline:20px}
[data-layout="market"] .hb-layout__main>.hb-listhead{margin-top:16px}
[data-layout="market"] .hb-title{font-size:clamp(22px,2vw,28px);font-weight:500;letter-spacing:0}
/* подкатегории: лента плиток над товарами */
[data-layout="market"] .hb-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:0;margin:0;padding:0;border-block:1px solid var(--hb-line-2);scrollbar-width:none}
[data-layout="market"] .hb-chips::-webkit-scrollbar{display:none}
[data-layout="market"] .hb-chip{flex:0 0 auto;max-width:230px;min-height:78px;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 18px;border:0;border-right:1px solid var(--hb-line-2);border-radius:0;background:transparent;font-size:14px;line-height:1.3;white-space:normal}
[data-layout="market"] .hb-chip:hover{background:var(--hb-surface-2)}
/* лента подкатегорий: стрелки-карусель на ПК, фото подкатегорий */
[data-layout="market"] .hb-chips-wrap{position:relative}
[data-layout="market"] .hb-chips{scroll-behavior:smooth;scroll-snap-type:x proximity}
[data-layout="market"] .hb-chip{scroll-snap-align:start}
[data-layout="market"] .hb-chips--img .hb-chip{flex-direction:column;justify-content:flex-start;gap:8px;width:160px;max-width:160px;min-height:136px;padding:12px}
[data-layout="market"] .hb-chip__name{overflow-wrap:break-word;min-width:0}
[data-layout="market"] .hb-chip__img{width:64px;height:64px;object-fit:contain;flex:0 0 auto}
[data-layout="market"] .hb-chips__nav{position:absolute;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-top:-20px;padding:0;border:1px solid var(--hb-line-2);border-radius:50%;background:#fff;color:var(--hb-ink);box-shadow:0 2px 8px rgba(0,0,0,.14);cursor:pointer}
[data-layout="market"] .hb-chips__nav:hover{background:var(--hb-surface-2)}
[data-layout="market"] .hb-chips__nav[hidden]{display:none}
[data-layout="market"] .hb-chips__nav--prev{left:-6px}
[data-layout="market"] .hb-chips__nav--next{right:-6px}
/* сетка товаров: 5 в ряд на ПК как у образца */
[data-layout="market"] .hb-products .hb-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-inline:-20px;border-top:1px solid var(--hb-line-2)}
[data-layout="market"] .hb-products .hb-pc{border:0;border-right:1px solid var(--hb-line-2);border-bottom:1px solid var(--hb-line-2);border-radius:0;box-shadow:none;transform:none}
[data-layout="market"] .hb-products .hb-pc:hover{box-shadow:0 6px 22px rgba(0,0,0,.1);z-index:1}
[data-layout="market"] .hb-pc__media{aspect-ratio:1/1;background:var(--hb-surface)}
[data-layout="market"] .hb-pc__media img{object-fit:contain;padding:10px}
[data-layout="market"] .hb-pc__name{font-weight:400;font-size:15px}
[data-layout="market"] .hb-pc__foot{align-items:center}
[data-layout="market"] .hb-pc__buy{width:44px;min-width:44px;padding:0;border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-pc__buy span{display:none}
[data-layout="market"] .hb-pc__qo{display:none}
@media (max-width:1380px){[data-layout="market"] .hb-products .hb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1180px){[data-layout="market"] .hb-products .hb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:991px){
  [data-layout="market"] .hb-layout__main{overflow:visible}
  [data-layout="market"] .hb-products .hb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  [data-layout="market"] .hb-layout__main>*{margin-inline:12px}
  [data-layout="market"] .hb-products .hb-grid{margin-inline:-12px}
}
/* подвал: колонка каталога — по одной строке, как у образца (коротко) */
.mk-footer__grid>*{min-width:0}
nav.mk-footer__col a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
[data-layout="market"] .hb-filter__group legend{float:left;width:100%;margin:0 0 8px}
[data-layout="market"] .hb-filter__group legend+*{clear:both}

/* ленты на главной: цена и квадратная кнопка в одну строку (как у образца) */
[data-layout="market"] .hb-module .hb-pc__foot{flex-direction:row;align-items:center;justify-content:space-between}
[data-layout="market"] .hb-module .hb-pc__buy{width:44px;min-width:44px;padding:0}
[data-layout="market"] .hb-module .hb-pc__buy span{display:none}
[data-layout="market"] .hb-module .hb-price{flex-direction:column;align-items:flex-start;gap:0}
[data-layout="market"] .hb-module .hb-price s{order:-1}

/* карточка товара: блоки-плашки с тонкой рамкой, заголовок спокойный */
[data-layout="market"] .hb-product{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--mk-gap)}
[data-layout="market"] .hb-product__title{font-family:var(--hb-font);font-weight:500;font-size:clamp(20px,1.7vw,24px);line-height:1.3;margin:0 0 10px;padding:14px 16px;border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-product__gallery{border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm);padding:10px}
[data-layout="market"] .hb-product__meta{padding:12px 16px;margin:0 0 10px;border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-product__price{margin:0 0 10px;padding:12px 16px;border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-buy{margin:0 0 10px;border-color:var(--hb-line-2);border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-adv{margin:0;border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm);overflow:hidden}
[data-layout="market"] .hb-adv>*{margin:0;padding:12px 16px}
[data-layout="market"] .hb-adv>*+*{border-top:1px solid var(--hb-line-2)}
[data-layout="market"] .hb-tabs__bar{border-bottom:1px solid var(--hb-line-2)}
@media (max-width:991px){[data-layout="market"] .hb-product{grid-template-columns:minmax(0,1fr)}}
[data-layout="market"] .hb-layout__main>.hb-product{margin-top:16px}
@media (max-width:640px){
  [data-layout="market"] .hb-hero__slide{min-height:240px}
  [data-layout="market"] .hb-hero--mid .hb-hero__slide,[data-layout="market"] .hb-hero--high .hb-hero__slide,[data-layout="market"] .hb-hero--low .hb-hero__slide{min-height:240px}
  [data-layout="market"] .hb-catwall__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-layout="market"] .hb-catwall__img{width:70%}
  [data-layout="market"] .mk-deals__title{text-align:center}
}

/* ==========================================================================
   M8. Карточка товара как у образца: плашки справа, галерея в рамке, таймер, раскрывающиеся строки
   ========================================================================== */
.hb-pc__disc,.hb-pc__stock{display:none}
.mk-sticky{display:none}
[data-layout="market"] .hb-layout__main>.hb-product{margin-top:16px;align-items:start}
[data-layout="market"] .hb-product{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
[data-layout="market"] .hb-product__gallery{position:static;padding:0;background:var(--hb-surface);overflow:hidden}
[data-layout="market"] .hb-gallery{grid-template-columns:minmax(0,1fr);gap:0;padding:0}
[data-layout="market"] .hb-gallery .hb-stickers{left:14px;top:14px}
.mk-gstage{position:relative;padding:20px 40px 8px}
.mk-gstage .hb-gallery__main{background:var(--hb-surface);border-radius:0;aspect-ratio:1/1}
.mk-gstage .hb-gallery__main img{object-fit:contain}
.mk-garrow{position:absolute;top:50%;margin-top:-26px;width:44px;height:44px;border-radius:50%;border:0;background:var(--hb-surface);color:var(--hb-accent-t);box-shadow:0 2px 12px rgba(0,0,0,.2);display:grid;place-items:center;cursor:pointer;z-index:2}
.mk-garrow:hover{background:var(--hb-accent);color:var(--hb-on-accent)}
.mk-garrow svg{font-size:22px}
.mk-garrow.is-prev{left:12px}.mk-garrow.is-prev svg{transform:scaleX(-1)}
.mk-garrow.is-next{right:12px}
[data-layout="market"] .hb-gallery__thumbs{grid-column:1;grid-row:auto;flex-direction:row;justify-content:center;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:8px 16px 14px}
[data-layout="market"] .hb-gallery__thumb{width:84px;height:68px;border-radius:var(--hb-radius-xs);border:1px solid var(--hb-line-2);background:var(--hb-surface)}
[data-layout="market"] .hb-gallery__thumb img{object-fit:contain}
[data-layout="market"] .hb-gallery__thumb.is-active{border-color:var(--hb-accent);border-width:2px}
.mk-gnav{display:flex;border-top:1px solid var(--hb-line-2)}
.mk-gnav button{flex:1;padding:14px 8px;border:0;background:none;font:600 15px var(--hb-font);color:var(--hb-ink);border-bottom:2px solid transparent;cursor:pointer}
.mk-gnav button:first-child{color:var(--hb-accent-t);border-bottom-color:var(--hb-accent)}
.mk-gnav button:hover{color:var(--hb-accent-t)}
.hb-gallery:not(:has(.hb-gallery__thumbs)){padding:0}
/* плашки справа */
.mk-plate{background:var(--hb-surface);border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm);margin:0 0 10px}
.hb-product__info{min-width:0}
.mk-ptop{display:flex;align-items:center;gap:12px;padding:12px 16px}
.mk-ptop .hb-product__title{flex:1;margin:0;padding:0;border:0;font-size:clamp(18px,1.5vw,20px);line-height:1.35}
.mk-ptop__tools{display:flex;gap:2px;flex:none}
.mk-ptop__tools .hb-iconbtn{width:40px;height:40px;color:var(--hb-mut)}
.mk-ptop__tools .hb-iconbtn:hover{color:var(--hb-accent-t)}
.mk-info{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:14px 16px;font-size:13.5px;align-items:center}
.mk-info__i{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.mk-info__i--r{justify-content:flex-start}
.mk-info__i span:not(.hb-tag){color:var(--hb-mut)}
.mk-info__i a:not(.hb-rating){color:var(--hb-accent-t);text-decoration:underline;text-underline-offset:2px}
.mk-info .hb-rating{font-size:14px;gap:1px}
.mk-info .hb-rating em{font-style:normal;color:var(--hb-accent-t);margin-right:6px;text-decoration:underline}
.mk-info .hb-tag{padding:3px 9px;font-size:12px}
.mk-commerce{padding:0 16px 16px}
.mk-commerce .hb-product__price{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;margin:0;padding:18px 0 14px;border:0;border-radius:0}
.mk-commerce .hb-product__price b{grid-column:1;font-size:clamp(28px,2.3vw,34px);color:var(--hb-ink);line-height:1.15}
.mk-commerce .hb-product__price.is-special b{color:var(--hb-danger)}
.mk-price__old{grid-column:1;display:flex;align-items:center;gap:10px}
.mk-price__old s{font-size:16px;color:var(--hb-dim)}
.mk-badge{display:inline-block;padding:2px 8px;border-radius:var(--hb-radius-xs);background:var(--hb-accent);color:var(--hb-on-accent);font-size:12.5px;font-weight:700;line-height:1.5}
.mk-countdown{grid-column:2;grid-row:1/3;justify-self:start;padding:8px 12px;border-radius:var(--hb-radius-sm);background:var(--hb-accent-soft);text-align:center}
.mk-countdown__t{font-size:11.5px;font-weight:600;color:var(--hb-mut);margin-bottom:4px}
.mk-countdown__g{display:flex;gap:8px}
.mk-countdown__g span{display:flex;flex-direction:column;align-items:center;min-width:34px}
.mk-countdown__g b{font-size:19px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;color:var(--hb-ink)}
.mk-countdown__g small{font-size:10.5px;color:var(--hb-mut)}
.mk-commerce .hb-product__price small{grid-column:1/-1}
.mk-commerce .hb-discounts{margin:0 0 12px}
.mk-commerce .hb-buy{display:flex;flex-direction:column;padding:0;margin:0;border:0;background:transparent;border-radius:0}
.mk-commerce .hb-buy__row{order:1;flex-wrap:nowrap;gap:10px;align-items:stretch}
.mk-commerce .hb-options{order:2;margin-top:16px;padding-top:14px;border-top:1px solid var(--hb-line-2)}
.mk-commerce .hb-note{order:3}
.mk-commerce .hb-qty{height:46px;border-radius:var(--hb-radius-sm);flex:none}
.mk-commerce .hb-qty button{width:30px;border-radius:0}
.mk-commerce .hb-qty input{width:40px}
.mk-commerce .hb-buy__cart{flex:1 1 0;min-width:0;height:46px;border-radius:var(--hb-radius-sm);font-size:15px;font-weight:600;white-space:nowrap}
.mk-commerce .hb-buy__qo2{flex:1 1 0;min-width:0;height:46px;border-radius:var(--hb-radius-sm);border:1px solid var(--hb-accent);color:var(--hb-accent-t);background:transparent;font-size:14px;font-weight:700;white-space:nowrap}
.mk-commerce .hb-buy__qo2:hover{background:var(--hb-accent-soft)}
/* строки доставки/оплаты/гарантии */
.mk-rows{overflow:hidden}
.mk-row+.mk-row{border-top:1px solid var(--hb-line-2)}
.mk-row summary{display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;list-style:none}
.mk-row summary::-webkit-details-marker{display:none}
.mk-row__ic{flex:none;font-size:24px;color:var(--hb-dim)}
.mk-row__txt{flex:1;min-width:0;display:flex;gap:6px;align-items:baseline;overflow:hidden;white-space:nowrap;font-size:13.5px}
.mk-row__txt b{flex:none;font-size:14.5px}
.mk-row__txt b::after{content:":";font-weight:400}
.mk-row__txt span{overflow:hidden;text-overflow:ellipsis;color:var(--hb-mut)}
.mk-row__ch{flex:none;font-size:18px;color:var(--hb-dim);transform:rotate(90deg);transition:transform .2s}
.mk-row[open] .mk-row__ch{transform:rotate(-90deg)}
.mk-row[open] .mk-row__txt span{display:none}
.mk-row__body{padding:0 16px 16px 54px;font-size:14px;line-height:1.5;color:var(--hb-mut)}
.mk-row__body a{color:var(--hb-accent-t);text-decoration:underline}
/* вкладки */
[data-layout="market"] .hb-tabs{margin-top:16px;background:var(--hb-surface);border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm);margin-inline:20px;padding:0 20px 20px;overflow:hidden}
[data-layout="market"] .hb-tabs__bar{margin:0 -20px 20px;padding:0 12px}
[data-layout="market"] .hb-tabs__bar button{padding:16px 20px;font-size:15px;font-weight:600}
[data-layout="market"] .hb-tabs__bar button[aria-selected="true"]{color:var(--hb-accent-t)}
[data-layout="market"] .hb-specs-table>div{display:flex;gap:16px;padding:10px 0;border-bottom:1px dashed var(--hb-line-2)}
[data-layout="market"] .hb-specs-table dt{flex:0 0 40%;color:var(--hb-mut)}
[data-layout="market"] .hb-specs-table dd{margin:0;flex:1}
/* Схожі товари лентой */
[data-layout="market"] .mk-related{margin-inline:20px;margin-top:16px;padding:18px 22px 22px;background:var(--hb-surface);border:1px solid var(--hb-line-2);border-radius:var(--hb-radius-sm)}
[data-layout="market"] .hb-layout__main>.mk-related,[data-layout="market"] .hb-layout__main>.hb-tabs{margin-inline:20px}
[data-layout="market"] #content>.hb-tags{margin-inline:20px}
/* карточка в лентах: скидка и наличие */
[data-layout="market"] .hb-pc{position:relative}
[data-layout="market"] .hb-pc__disc{display:block;position:absolute;left:10px;top:10px;z-index:2;padding:2px 8px;border-radius:var(--hb-radius-xs);background:var(--hb-accent);color:var(--hb-on-accent);font-size:12.5px;font-weight:700}
[data-layout="market"] .hb-pc__stock{display:block;font-size:12px;margin:2px 0 4px}
[data-layout="market"] .hb-pc__stock.is-ok{color:var(--hb-ok)}
[data-layout="market"] .hb-pc__stock.is-no{color:var(--hb-danger)}
[data-layout="market"] .hb-pc .hb-sticker--special{display:none}
[data-layout="market"] .hb-price--special b{color:var(--hb-danger)}
@media (max-width:991px){
  [data-layout="market"] .hb-product{grid-template-columns:minmax(0,1fr);gap:10px}
  [data-layout="market"] .hb-product__gallery{order:1}
  [data-layout="market"] .hb-product__info{order:2}
  .mk-gstage{padding:8px 12px 4px}
  .mk-garrow{width:38px;height:38px;margin-top:-22px}
  .mk-garrow.is-prev{left:6px}.mk-garrow.is-next{right:6px}
  .mk-gnav{order:-1;border-top:0;border-bottom:1px solid var(--hb-line-2)}
  .mk-gnav{display:flex}
  [data-layout="market"] .hb-gallery{display:flex;flex-direction:column}
  [data-layout="market"] .hb-gallery__thumbs{justify-content:flex-start}
}
@media (max-width:640px){
  [data-layout="market"] .hb-layout__main>.hb-product{margin-top:10px}
  .mk-ptop{padding:10px 12px}
  .mk-ptop .hb-product__title{font-size:18px}
  .mk-info{padding:12px;grid-template-columns:1fr auto}
  .mk-commerce{padding:0 12px 14px}
  .mk-commerce .hb-product__price{grid-template-columns:1fr;padding:14px 0 10px}
  .mk-countdown{grid-column:1;grid-row:auto;justify-self:stretch;margin-top:8px}
  .mk-countdown__g{justify-content:space-around}
  .mk-commerce .hb-buy__row{flex-wrap:wrap}
  .mk-commerce .hb-qty{flex:0 0 100%;justify-content:space-between}
  .mk-commerce .hb-qty{order:1}
  .mk-commerce .hb-buy__cart{order:2;flex:1 1 100%}
  .mk-commerce .hb-buy__qo2{order:3;flex:1 1 100%}
  #product-product:has(.mk-sticky) ~ .hb-up,body:has(.mk-sticky.is-on) .hb-up{bottom:78px}
  .mk-row summary{padding:12px}
  .mk-row__body{padding:0 12px 14px 48px}
  [data-layout="market"] .hb-tabs,[data-layout="market"] .hb-layout__main>.hb-tabs,[data-layout="market"] .mk-related,[data-layout="market"] .hb-layout__main>.mk-related{margin-inline:12px;padding-inline:12px}
  [data-layout="market"] .hb-tabs__bar{margin-inline:-12px}
  [data-layout="market"] .hb-specs-table>div{flex-direction:column;gap:2px}
  .mk-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;gap:12px;align-items:center;justify-content:space-between;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--hb-surface);border-top:1px solid var(--hb-line-2);box-shadow:0 -4px 16px rgba(0,0,0,.12);transform:translateY(110%);transition:transform .2s}
  .mk-sticky.is-on{transform:none}
  .mk-sticky[hidden]{display:none}
  .mk-sticky__p{display:flex;flex-direction:column;line-height:1.2;min-width:0}
  .mk-sticky__p s{font-size:12px;color:var(--hb-dim)}
  .mk-sticky__p b{font-size:19px}
  .mk-sticky .hb-btn{min-height:44px;flex:0 1 190px;border-radius:var(--hb-radius-sm)}
  [data-layout="market"] body,[data-layout="market"] .mk-footer{scroll-padding-bottom:70px}
}
/* крошки: одна строка, длинный путь категорий прокручивается */
[data-layout="market"] .breadcrumb{display:flex;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:0}
[data-layout="market"] .breadcrumb::-webkit-scrollbar{display:none}
[data-layout="market"] .breadcrumb li{flex:none}
[data-layout="market"] .breadcrumb li:last-child{max-width:420px;overflow:hidden;text-overflow:ellipsis}
.mk-countdown__g{gap:10px}
[data-layout="market"] .hb-tabs .hb-prose{max-width:none;color:var(--hb-ink)}

[data-layout="market"] .hb-module .hb-pc__attrs{display:none}


/* ==========================================================================
   M9. Системная сверка с образцом (tools/agree-diff.mjs, 28.10.2026).
   Всё, кроме акцентных цветов, берётся с образца: фон, шрифт, размеры, скругления, отступы.
   Акцент/бренд идут из настроек (--hb-accent и т.п.), не подгоняются.
   ========================================================================== */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/montserrat-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/montserrat-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/montserrat-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/montserrat-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root[data-layout="market"]{
  --hb-font:"Montserrat","Onest",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --hb-radius:10px;--hb-radius-sm:6px;--hb-radius-xs:4px;
  --hb-wrap:1410px;--mk-gap:8px;--mk-top-h:58px;--mk-rail:64px;
  --mk-stock-bg:var(--hb-surface-2);--mk-link:var(--hb-accent-t);--mk-dim:var(--hb-dim);--mk-line:var(--hb-line);--mk-hdr-line:var(--hb-line);--mk-head:var(--hb-ink);--mk-price:var(--hb-danger);--mk-ok:var(--hb-ok);
}
:root[data-layout="market"]:not([data-theme="dark"]){
  --hb-bg:#F9F9FC;--hb-ink:#272323;--hb-mut:#656C7D;
  --hb-header-ink:#272323;--mk-dim:#777;--mk-stock-bg:#f4f4f4;--mk-link:#0A78BF;--mk-line:#E9EDF0;--mk-hdr-line:#F3F3F3;--mk-head:#1F2933;--mk-price:#F84147;--mk-ok:#24A148;
}
@media (min-width:992px){:root[data-layout="market"]{--hb-gutter:15px}}
:root[data-layout="market"] body{font-size:14px;line-height:20px}
@media (min-width:992px){[data-layout="market"] body{padding-right:0}}
[data-layout="market"] .hb-topbar{display:none}

/* верхняя полоса: 58px, капс 12px, отступы ссылок 15 */
.mk-top{font-size:12px;line-height:20px}
.mk-top__row{min-height:58px;gap:0}
.mk-top__links{gap:0}
.mk-top__links li{padding:19px 15px}
.mk-top__links a{opacity:1;font-weight:400;letter-spacing:0;text-transform:uppercase}
.mk-top__right{gap:0}
.mk-top__right>*{margin:0}
.mk-top__sw{padding:0 15px}
.mk-top__sw .hb-switch{background:none;padding:0;gap:0;border-radius:0;box-shadow:none}
.mk-top__sw .hb-switch button,.mk-top__sw .hb-switch a{padding:0;background:none;font:400 12px/20px var(--hb-font);border-radius:0;opacity:.85}
.mk-top__sw .hb-switch button+button::before,.mk-top__sw .hb-switch a+a::before{content:"|";margin:0 6px;opacity:.9}
.mk-top__sw .hb-switch button[aria-current],.mk-top__sw .hb-switch a[aria-current]{background:none;color:var(--hb-on-accent);opacity:1;font-weight:600;box-shadow:none}
.mk-top__acc{padding:0 15px 0 15px;font-weight:400}
.mk-top__acc svg{display:none}
.mk-top__btn{margin-right:8px}

/* шапка: 102px на всю ширину, 5 колонок как у образца (2/2/4/2/2 из 12) */
@media (min-width:992px){.mk-header{border:1px solid var(--mk-hdr-line);border-width:1px 0;box-shadow:0 2px 8px rgba(0,0,0,.02);padding:10px 0}}
@media (min-width:992px){
  .mk-header__row{padding-inline:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center;gap:0;min-height:80px;padding-block:0}
  .mk-header__row>.mk-burger{display:none}
  .mk-header .mk-logo{grid-column:span 2;justify-self:center;margin:0;max-width:205px;padding-inline:0}
  .mk-header .mk-logo img{max-width:100%;height:auto;max-height:50px}
  .mk-header .mk-catalog{grid-column:span 2;padding-inline:15px}
  .mk-header .mk-searchbox{grid-column:span 4;padding-inline:15px;align-self:start;margin-top:16px;max-width:none;gap:4px}
  .mk-header .mk-phones{grid-column:span 2;padding:0;margin-left:10px;justify-self:start}
  .mk-header .mk-icons{grid-column:span 2;justify-content:center}
}
@media (min-width:992px){
.mk-header .hb-catalog__btn{min-height:44px;height:44px;padding:0 20px 0 15px;border-radius:6px;font:500 12px/44px var(--hb-font);gap:10px}
.mk-header .hb-catalog__btn svg{font-size:14px}
.mk-searchbox .hb-search input[type="search"]{height:40px;border:1px solid var(--mk-line);border-radius:6px;padding:11px 15px 11px 44px;font:400 13px/18px var(--hb-font);background:var(--hb-surface)}
.mk-searchbox .hb-search__icon{display:none}
.mk-searchbox .hb-search__btn{left:0;right:auto;top:0;width:44px;height:40px;border-radius:6px 0 0 6px;background:transparent;color:var(--hb-dim)}
.mk-searchbox .hb-search__btn svg{font-size:20px}
.mk-addr{display:block;padding:0;font-size:12px;line-height:20px;color:var(--hb-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-addr svg{display:none}
.mk-addr span{display:inline;overflow:visible;text-decoration:none}
.mk-addr .mk-addr__txt{text-decoration:underline;text-underline-offset:2px}
.mk-phones{gap:0;line-height:20px}
.mk-phones a{font-size:14px;font-weight:700;line-height:20px}
.mk-phones small{font-size:12px;line-height:15px;padding-left:21px;max-width:200px;white-space:normal}
.mk-header .hb-cartbtn{font-weight:600;width:80px;min-width:80px;height:69px;min-height:69px;padding:10px;border:1px solid var(--mk-hdr-line);border-radius:10px;gap:0;background:var(--hb-surface);font-size:12px}
.mk-header .hb-cartbtn__icon{width:21px;height:21px;margin-bottom:6px}
.mk-header .hb-cartbtn__icon svg{font-size:21px}
.mk-header .hb-cartbtn__icon .hb-count{top:-6px;right:-11px;min-width:18px;height:18px;line-height:18px;font:500 11px/18px var(--hb-font);padding:0;border-radius:16px}
.mk-header .hb-cartbtn__sum,.mk-header .hb-cartbtn__sum:empty::before{font-size:12px;font-weight:600;line-height:20px}

}
/* главная: контейнер 1364 (поля 38), зазор между блоками 8 */
[data-layout="market"] #common-home #content{gap:8px;padding:30px 8px 0}
@media (min-width:992px){
[data-layout="market"] #common-home #content:has(>.mk-deals){grid-template-columns:minmax(0,1019fr) minmax(0,337fr)}
[data-layout="market"] #common-home #content:has(>.mk-deals)>.hb-hero{grid-column:1}
[data-layout="market"] #common-home #content>.mk-deals{grid-column:2}
}
[data-layout="market"] #common-home #content>*{grid-column:1/-1}
[data-layout="market"] #common-home #content>.hb-section,
.mk-deals,.hb-hero{border:1px solid var(--mk-line);border-radius:10px}
[data-layout="market"] #common-home #content>.hb-section{padding:16px 12px 14px}
[data-layout="market"] #common-home #content>.hb-section .hb-section__head{margin:0;padding:0 4px 14px}
[data-layout="market"] .hb-section__head h2,:root[data-layout="market"] .hb-section__head h2{font-size:18px;line-height:1.3;font-weight:700;letter-spacing:0;margin:0;color:var(--mk-head)}
[data-layout="market"] .hb-section__head{align-items:center}

/* слайдер 445 */
[data-layout="market"] .hb-hero{border-radius:10px;background:var(--hb-surface)}
[data-layout="market"] .hb-hero__slide,[data-layout="market"] .hb-hero--mid .hb-hero__slide{min-height:443px}
[data-layout="market"] .hb-hero__dots{left:0;right:0;bottom:16px;justify-content:center;gap:8px}
[data-layout="market"] .hb-hero__dots button{width:10px;height:10px;border-radius:8px;background:#cbcbcb}
[data-layout="market"] .hb-hero__dots button[aria-current]{width:10px;background:var(--hb-accent)}

/* Товари дня */
.mk-deals{min-height:0;gap:0;padding:16px 12px 14px;background:var(--hb-surface)}
.mk-deals__head{gap:0;align-items:stretch}
.mk-deals__title,:root[data-layout="market"] .mk-deals__title{font:500 14px/18px var(--hb-font);text-transform:uppercase;letter-spacing:0;text-align:center;margin:0 0 6px;color:var(--hb-ink)}
.mk-deals__timer{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px;font-size:12px;line-height:15px}
.mk-deals__timer .mk-deals__left{font-style:normal;color:var(--mk-dim)}
.mk-deals__timer .mk-deals__box{display:inline-flex;align-items:center;padding:4px 6px;border:1px solid #fb9130;color:#eb5757;font-weight:400}
.mk-deals__timer .mk-deals__box span{min-width:0;padding:0;background:none;border-radius:0;color:inherit;font:400 12px/15px var(--hb-font)}
.mk-deals__timer .mk-deals__box i{font-size:0;margin:0;padding:0 2px}
.mk-deals__timer .mk-deals__box i::after{content:":";font-size:12px;color:inherit}
.mk-deals__timer .mk-deals__box i:last-child{display:none}
.mk-deals__view{flex:1;min-height:0}
.mk-deal{gap:0}
.mk-deal__img{flex:none;height:190px;min-height:0;padding:10px;border-radius:0;background:var(--hb-surface)}
.mk-deal__img img{object-fit:contain}
.mk-deal__off,.hb-pc__disc,[data-layout="market"] .hb-pc__disc{left:12px;top:12px;height:28px;display:flex;align-items:center;padding:0 7px;border-radius:16px;font:700 10px/10px var(--hb-font)}
.mk-deal__name{font:500 14px/24px var(--hb-font);min-height:48px;margin:10px 0 0}
.mk-deal__foot{margin-top:auto;flex-direction:column;align-items:stretch;gap:0;position:relative}
.mk-deal__foot .hb-price{flex-direction:column}
.mk-deal__foot .hb-price s{font-size:12px;line-height:12px;color:#8a9099;margin-bottom:15px}
.mk-deal__foot .hb-price b{font-size:20px;line-height:20px;font-weight:800;padding-top:2px;color:var(--mk-price)}
.mk-deal__buy{position:absolute;right:0;bottom:0;width:42px;min-width:42px;height:40px;min-height:40px;padding:0;border-radius:6px}
.mk-deals__nav{justify-content:center;margin-top:6px}
.mk-deals__arrow{display:none}
.mk-deals__dots{gap:8px}
.mk-deals__dots button{width:10px;height:10px;border-radius:8px;background:#cbcbcb}
.mk-deals__dots button[aria-current]{width:10px;background:var(--hb-accent)}

/* категории: плитки 6 в ряд, 25px отступ, картинка 130 */
[data-layout="market"] .hb-catwall__grid{gap:0}
[data-layout="market"] .hb-catwall__item{background:var(--hb-surface);box-shadow:-.5px -.5px 0 .5px var(--hb-bg),inset -1px -1px 0 var(--hb-bg)}
[data-layout="market"] .hb-catwall__card{padding:12px 6px;gap:12px;border:0;border-radius:0;height:100%;justify-content:space-between}
@media (min-width:992px){[data-layout="market"] .hb-catwall__card{padding:25px;gap:25px}}
[data-layout="market"] .hb-catwall__card:hover{background:transparent}
[data-layout="market"] .hb-catwall__img{width:100%;max-width:130px;height:auto;aspect-ratio:1/1;margin:0;border-radius:0;background:transparent;flex:none}
[data-layout="market"] .hb-catwall__img img{object-fit:contain}
[data-layout="market"] .hb-catwall__name{font-size:14px;line-height:20px;font-weight:400}

/* ленты: карточка без рамки и скруглений, фото 190, цена+квадрат */
[data-layout="market"] .hb-module .hb-grid--rail{gap:0;padding:0;margin:0}
@media (min-width:1181px){[data-layout="market"] .hb-module .hb-grid--rail>.hb-pc,[data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex-basis:20%}}
[data-layout="market"] .hb-module .hb-pc{border:0;border-radius:0;background:transparent;box-shadow:none}
[data-layout="market"] .hb-module .hb-pc__media{aspect-ratio:auto;height:190px;padding:10px;background:transparent}
[data-layout="market"] .hb-module .hb-pc__media img{width:100%;height:100%;object-fit:contain;padding:0}
[data-layout="market"] .hb-module .hb-pc:hover .hb-pc__media img{transform:none}
[data-layout="market"] .hb-module .hb-pc__tools,[data-layout="market"] .hb-module .hb-pc__qo,[data-layout="market"] .hb-module .hb-pc__attrs,[data-layout="market"] .hb-module .hb-pc__desc,[data-layout="market"] .hb-module .hb-pc__rating{display:none}
[data-layout="market"] .hb-module .hb-pc__body{padding:10px 12px 12px;gap:0}
[data-layout="market"] .hb-module .hb-pc__name{font:500 14px/24px var(--hb-font);min-height:48px}
[data-layout="market"] .hb-module .hb-pc__stock{font-size:11px;line-height:16px;margin:8px 0 0}
[data-layout="market"] .hb-module .hb-pc__stock.is-ok{color:var(--mk-ok)}
[data-layout="market"] .hb-module .hb-pc__stock.is-ok::before{content:"\2713\00a0"}
[data-layout="market"] .hb-module .hb-pc__foot{margin-top:auto;padding-top:12px;align-items:flex-end}
[data-layout="market"] .hb-module .hb-price{flex-direction:column;align-items:flex-start;gap:0;line-height:1}
[data-layout="market"] .hb-module .hb-price s{order:-1;font-size:12px;line-height:12px;color:#8a9099;margin-bottom:12px}
[data-layout="market"] .hb-module .hb-price b{font-size:20px;line-height:20px;font-weight:800;padding-top:2px}
[data-layout="market"] .hb-module .hb-price--special b{color:var(--mk-price)}
[data-layout="market"] .hb-module .hb-pc__buy{width:42px;min-width:42px;height:40px;min-height:40px;border-radius:6px;font:400 14px/40px var(--hb-font)}
.mk-more{margin-top:32px}
.mk-more .hb-btn{min-width:212px;height:52px;line-height:52px;padding:0 38px;border:0;border-radius:6px;background:var(--hb-accent);color:var(--hb-on-accent);font-weight:400}
.mk-more .hb-btn:hover{background:var(--hb-accent-h);color:var(--hb-on-accent)}

/* подвал: тень, отступ 30, заголовки 16/500, текст 13 */
.mk-footer{margin-top:8px;padding:30px 0;border-top:1px solid var(--hb-bg);box-shadow:0 0 15px rgba(0,0,0,.06);font-size:14px;line-height:20px}
.mk-footer .hb-footer__title{font:500 16px/20px var(--hb-font);margin:0 0 12px;color:var(--hb-ink)}
.mk-footer a,.mk-footer li{font-size:13px;line-height:20px;font-weight:400}
.mk-footer a,.mk-footer .mk-footer__col a{color:var(--hb-mut)}
.mk-footer .hb-footer__phone{font-size:13px}
.mk-footer__top{padding-block:0 20px}
.mk-footer__grid{padding-block:20px 0}
.mk-footer .hb-footer__bottom{border-top:0}

/* правая панель: 64, плашка #656C7D, пункты 64x64 */
.mk-rail{width:64px;top:calc(50% - 154px);border-radius:6px 0 0 6px;background:var(--mk-rail-bg,#656c7d);box-shadow:0 0 20px rgba(0,0,0,.17)}
.mk-rail__item{padding:20px;height:64px;justify-content:center}
.mk-rail__item svg{font-size:24px}
.mk-rail__item .hb-count{top:10px;right:12px;min-width:18px;height:18px;line-height:18px;padding:0;border-radius:16px}

/* карточка ленты/«Товари дня»: цена и квадрат одной строкой по центру, старая цена над ней */
[data-layout="market"] .hb-module .hb-pc__body{padding:10px 12px 15px}
[data-layout="market"] .hb-module .hb-pc__stock{margin:8px 0 11px}
[data-layout="market"] .hb-module .hb-pc__foot,.mk-deal__foot{display:grid;grid-template-columns:minmax(0,1fr) 42px;grid-template-rows:auto 40px;align-items:center;gap:0 8px;padding-top:0}
[data-layout="market"] .hb-module .hb-pc__foot .hb-price,.mk-deal__foot .hb-price{display:contents}
[data-layout="market"] .hb-module .hb-pc__foot .hb-price s,.mk-deal__foot .hb-price s{grid-column:1/-1;grid-row:1;margin:0 0 6px;order:0}
[data-layout="market"] .hb-module .hb-pc__foot .hb-price b,.mk-deal__foot .hb-price b{grid-column:1;grid-row:2;align-self:center}
[data-layout="market"] .hb-module .hb-pc__foot .hb-pc__buy,.mk-deal__foot .mk-deal__buy{grid-column:2;grid-row:2;position:static}
.mk-deal__foot{margin-top:auto;padding-bottom:0}
.mk-deal{padding-bottom:0}
.mk-deals{position:relative}
.mk-deals__nav{position:absolute;left:0;right:0;bottom:10px;margin:0}
.mk-deals__view{margin-bottom:0}
/* стрелки ленты поверх ряда (как у образца): круги 38 */
[data-layout="market"] .hb-module{position:relative}
[data-layout="market"] .hb-module:not(.is-expanded) .mk-rail-nav{position:absolute;left:16px;right:16px;top:212px;margin:0;justify-content:space-between;pointer-events:none;z-index:3}
[data-layout="market"] .hb-module .mk-rail-nav button{pointer-events:auto;width:38px;height:38px;box-shadow:0 2px 10px rgba(0,0,0,.12);border-color:var(--mk-line)}

[data-layout="market"] .hb-module .hb-pc,.mk-deal{background:var(--hb-surface)}
[data-layout="market"] .hb-module .hb-pc__media,.mk-deal__img{color:var(--hb-ink)}
[data-layout="market"] .hb-module .hb-pc__media{background:var(--hb-surface)}
.mk-footer .mk-footer__col li a,.mk-footer__contacts a{color:var(--hb-mut)}


/* ---------- M10. Карточка товара (сверка с образцом) ---------- */
[data-layout="market"] .hb-layout{margin-inline:8px}
[data-layout="market"] .breadcrumb{padding:20px 0;margin:0;font-size:12px;line-height:20px;flex-wrap:wrap}
[data-layout="market"] .breadcrumb>li{font-size:12px;line-height:20px}
[data-layout="market"] .breadcrumb a{color:var(--mk-link);text-decoration:underline;font-size:12px}
[data-layout="market"] .breadcrumb>li:last-child a{color:var(--hb-ink);text-decoration:none}
[data-layout="market"] .breadcrumb>li+li::before{content:"/";width:auto;height:auto;margin:0 8px;border:0;transform:none;color:var(--hb-dim)}
[data-layout="market"] .breadcrumb .fa-home{font-size:12px}
[data-layout="market"] .hb-page{padding-top:0}
[data-layout="market"] .hb-layout__main:has(>.hb-product){background:transparent;border:0;padding:0;overflow:visible;border-radius:0}
[data-layout="market"] .hb-layout__main:has(>.hb-product)>*{margin-inline:0}
[data-layout="market"] .hb-layout__main:has(>.hb-product)>.hb-product{margin-top:0;gap:16px}
[data-layout="market"] .hb-product__gallery{border:1px solid var(--mk-line);border-radius:10px;background:var(--hb-surface)}
.mk-gstage{padding:30px 30px 0}
.mk-plate{border:1px solid var(--mk-line);border-radius:10px;margin:0 0 8px;background:var(--hb-surface)}
.mk-ptop{padding:12px 16px}
.mk-ptop .hb-product__title{font:400 20px/26px var(--hb-font);letter-spacing:0;color:var(--hb-ink)}
.mk-info{font-size:12px;line-height:24px;padding:12px 16px;gap:10px 24px}
.mk-info__i{line-height:14px}
.mk-info__i:last-child{grid-column:2}
.mk-info__i span:not(.hb-tag){color:var(--hb-ink)}
.mk-info__i a:not(.hb-rating){color:var(--mk-link)}
.mk-info .hb-tag{font:400 10px/18px var(--hb-font);padding:2px 6px;border-radius:6px;background:var(--hb-surface-2);gap:0}
.mk-info .hb-tag--ok{color:#27ae60}
.mk-info .hb-tag i{display:none}
.mk-info .hb-tag--ok::before{content:"\2713\00a0"}
.mk-commerce{margin-top:8px;padding:0 16px 16px}
.mk-commerce .hb-product__price{padding:14px 0 12px}
.mk-commerce .hb-product__price b{font-size:24px;line-height:29px;color:var(--hb-ink)}
.mk-commerce .hb-product__price.is-special b{color:var(--mk-price)}
.mk-price__old s{font-size:14px;line-height:17px;color:#777}
.mk-badge{display:flex;align-items:center;height:18px;padding:0 8px;border-radius:4px;font:500 10px/12px var(--hb-font)}
.mk-countdown{padding:7px 9px 6px;border-radius:8px}
.mk-countdown__g b{font-size:16px;font-weight:600;line-height:16px}
.mk-commerce .hb-buy__row{flex-wrap:wrap;gap:10px}
.mk-commerce .hb-qty{display:grid;grid-template-columns:44px 22px;grid-template-rows:22px 22px;height:44px;border:0;border-radius:6px;background:transparent;gap:0}
.mk-commerce .hb-qty input{grid-column:1;grid-row:1/3;width:44px;height:44px;border:1px solid var(--mk-line)!important;border-radius:6px 0 0 6px;background:var(--hb-surface);font:400 14px/21px var(--hb-font)}
.mk-commerce .hb-qty button{width:22px;height:22px;border:1px solid var(--mk-line);border-radius:0;background:var(--hb-surface);color:var(--hb-dim)}
.mk-commerce .hb-qty button:first-child{grid-column:2;grid-row:2;border-radius:0 0 6px 0;border-top:0}
.mk-commerce .hb-qty button:last-child{grid-column:2;grid-row:1;border-radius:0 6px 0 0}
.mk-commerce .hb-qty button svg{font-size:10px}
.mk-commerce .hb-qty{flex:none}
.mk-commerce .hb-buy__cart{flex:1 1 0;min-width:0;height:44px;min-height:44px;padding:0 10px;font:400 15px/44px var(--hb-font);border-radius:6px}
.mk-commerce .hb-buy__qo2{order:3;flex:1 1 100%;height:44px;min-height:44px;font:400 14px/42px var(--hb-font);border-radius:6px}
.mk-gnav{border-top:0;gap:12px;padding:0 6px 6px}
.mk-gnav button{flex:1;padding:8px;border:1px solid var(--mk-line);border-radius:6px;font:600 13px/18px var(--hb-font);color:var(--hb-ink)}
.mk-gnav button:first-child{border-bottom-color:var(--mk-line);color:var(--hb-ink)}
/* вкладки: шапка (радиус сверху) + белая панель (радиус снизу), на всю ширину блока */
[data-layout="market"] .hb-tabs,[data-layout="market"] .hb-layout__main>.hb-tabs{margin:8px 0 0;padding:0;background:transparent;border:0;border-radius:0}
[data-layout="market"] .hb-tabs__bar{margin:0;padding:0 12px;background:var(--hb-surface);border:1px solid var(--mk-line);border-bottom:0;border-radius:10px 10px 0 0;gap:0;height:60px}
[data-layout="market"] .hb-tabs__bar button{height:59px;padding:0 20px;font:500 14px/20px var(--hb-font);color:#495057}
[data-layout="market"] .hb-tabs__bar button[aria-selected="true"]{color:var(--hb-accent-t)}
[data-layout="market"] .hb-tabs__panel{padding:30px;background:var(--hb-surface);border:1px solid var(--mk-line);border-top:0;border-radius:0 0 10px 10px;margin:0 0 0;font-size:14px;line-height:20px}
[data-layout="market"] .hb-tabs .hb-prose{font-size:14px;line-height:20px}
[data-layout="market"] .mk-related,[data-layout="market"] .hb-layout__main>.mk-related{margin:8px 0 0;padding:16px 12px 14px;border:1px solid var(--mk-line);border-radius:10px}
[data-layout="market"] .mk-related .hb-section__head{margin:0;padding:0 4px 14px}
[data-layout="market"] .mk-related .hb-module__head{margin:0}
@media (min-width:992px){.mk-commerce .hb-buy__row{flex-wrap:nowrap}.mk-commerce .hb-buy__cart{flex:0 0 284px}.mk-commerce .hb-buy__qo2{order:0;flex:1 1 0}}
@media (max-width:991px){[data-layout="market"] .hb-layout{margin-inline:8px}[data-layout="market"] main .hb-wrap,[data-layout="market"] #common-home.container{padding-inline:0}[data-layout="market"] .breadcrumb{padding:12px 15px 10px}}

/* мобильная: «Товари дня» вертикальной карточкой как у образца, слайдер скрыт (у образца только от 768) */
@media (max-width:991px){
  .mk-deals{padding:16px 12px 14px}
  .mk-deals__view{flex:none;min-height:309px;height:309px}
  .mk-deal{display:flex;flex-direction:column;grid-template-columns:none;gap:0}
  .mk-deal__img{grid-row:auto;height:145px;flex:none}
  .mk-deal__name{align-self:auto;font-size:14px;line-height:24px}
  .mk-deal__foot{align-self:auto;flex-direction:column;align-items:stretch;display:grid}
  .mk-deal__buy span{display:none}
  .mk-deals__nav{bottom:10px}
}
@media (max-width:767px){
  /* 16.11: слайдер на телефоне снова показываем (у слайдов есть отдельные мобильные картинки) */
  [data-layout="market"] .hb-module .hb-pc__media{height:145px}
  [data-layout="market"] .hb-module .hb-pc__name{font-size:13px;line-height:18px;min-height:36px}
}
@media (max-width:991px){.mk-deals__title,:root[data-layout="market"] .mk-deals__title{font-size:20px;line-height:24px;text-transform:uppercase}.mk-deals__timer{margin-bottom:12px}}

/* ---------- M11. Мобильная шапка как у образца: фиксированная полоса 58px + поиск под ней ---------- */
@media (max-width:991px){
  [data-layout="market"] body{padding-top:58px}
  .mk-header{position:static;border:0;box-shadow:none;background:transparent;padding:10px 0 0}
  .mk-header::before{content:"";position:fixed;left:0;right:0;top:0;height:58px;background:var(--hb-header-bg,var(--hb-surface));box-shadow:0 2px 8px rgba(0,0,0,.06);z-index:61}
  .mk-header__row{display:block;min-height:0;padding:0 15px}
  .mk-header .mk-burger{position:fixed;left:15px;top:9px;z-index:62;width:44px;height:40px;margin:0;border-radius:6px}
  .mk-header .mk-logo{position:fixed;left:70px;top:9px;z-index:62;max-width:136px;height:40px;margin:0;display:flex;align-items:center}
  .mk-header .mk-logo img{max-width:136px;max-height:40px;height:auto;width:auto}
  .mk-header .mk-icons{position:fixed;right:0;top:0;height:58px;z-index:62;gap:0;display:flex}
  .mk-header .mk-icons>*{width:58px;height:58px;min-height:0;border-radius:0;border-left:1px solid var(--mk-hdr-line);display:grid;place-items:center;padding:0;margin:0;background:transparent}
  .mk-header .hb-cartbtn{width:58px;min-width:58px;height:58px;min-height:58px;padding:0;border:0;border-left:1px solid var(--mk-hdr-line);border-radius:0;background:transparent;font:600 12px/58px var(--hb-font)}
  .mk-header .hb-cartbtn__icon{margin:0;width:21px;height:21px;background:transparent;color:var(--hb-ink)}
  .mk-header .hb-cartbtn__icon svg{font-size:21px}
  .mk-header .hb-cartbtn__icon .hb-count{top:-6px;right:-11px;min-width:18px;height:18px;padding:0;border-radius:16px;font:500 11px/18px var(--hb-font)}
  .mk-header .mk-searchbox{display:block;margin:5px 0 15px;padding:0}
  .mk-searchbox .hb-search input[type="search"]{height:40px;border:1px solid var(--mk-line);border-radius:6px;padding:11px 15px 11px 44px;font:400 13px/18px var(--hb-font);background:var(--hb-surface)}
  .mk-searchbox .hb-search__icon{display:none}
  .mk-searchbox .hb-search__btn{left:0;right:auto;top:0;width:44px;height:40px;border-radius:6px 0 0 6px;background:transparent;color:var(--hb-dim)}
  .mk-searchbox .hb-search__btn svg{font-size:20px}
  .mk-addr{display:none}
  [data-layout="market"] .hb-drawer,[data-layout="market"] .hb-drawer__panel{z-index:90}
}
/* мелочи 390: line-height 24 у вкладок и текста карточки, таймер на 4px ниже */
[data-layout="market"] .hb-tabs__bar button{line-height:24px}
[data-layout="market"] .hb-product__gallery,[data-layout="market"] .mk-ptop,[data-layout="market"] .mk-commerce,[data-layout="market"] .hb-qty{line-height:24px}
.mk-deals__timer{height:25px;margin-bottom:12px}
.mk-deals__timer .mk-deals__box{padding:4px 6px;line-height:15px}
@media (max-width:991px){
  .mk-header__row{display:flow-root}
  [data-layout="market"] #common-home #content{padding-top:0}
  [data-layout="market"] .hb-catwall__card{padding:25px}
  .mk-deals{padding:16px 12px 12px}
  .mk-deals__title,:root[data-layout="market"] .mk-deals__title{margin-bottom:12px}
  .mk-deals__timer{margin-bottom:15px}
}
@media (max-width:767px){
  [data-layout="market"] .hb-module .hb-grid--rail>.hb-pc,[data-layout="market"] .hb-module.is-expanded .hb-grid--rail>.hb-pc{flex-basis:50%}
  [data-layout="market"] .hb-module .hb-pc__media{padding:8px}
  [data-layout="market"] .hb-module .hb-pc__body{padding:8px 10px 10px}
  [data-layout="market"] .hb-module .hb-pc__name{font:500 13px/21px var(--hb-font);-webkit-line-clamp:3;min-height:63px}
  [data-layout="market"] .hb-module .hb-pc__stock{margin:6px 0 11px}
  [data-layout="market"] .hb-module .hb-price b{font-size:19px;line-height:19px}
}

.mk-info .hb-tag{background:var(--mk-stock-bg)}
.mk-ptop .hb-product__title{border-radius:0}
.mk-commerce .hb-qty{border-radius:0}
.mk-gstage .hb-gallery__main{background:transparent;color:var(--hb-ink)}
@media (max-width:991px){
  .mk-footer{padding:20px 0}
  .mk-gstage{padding:21px 21px 0}
  [data-layout="market"] .breadcrumb{padding:0 15px 10px;font-size:14px;border-radius:0}
  .mk-info{font-size:14px}
  .mk-info__i{font-size:14px;line-height:14px}
  .mk-commerce .hb-product__price b{justify-self:start}
  .mk-commerce .hb-buy__cart{padding:0 15px}
}
@media (max-width:640px){.mk-countdown{display:none}}

/* мобильная карточка товара: крошки в одну строку, табы галереи единой полосой */
@media (max-width:991px){
  [data-layout="market"] .breadcrumb{display:flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;gap:0}
  [data-layout="market"] .breadcrumb>li{display:inline-flex;flex:0 1 auto;min-width:0;max-width:none}
  [data-layout="market"] .breadcrumb>li:first-child{flex:none}
  [data-layout="market"] .breadcrumb>li+li::before{flex:none}
  [data-layout="market"] .breadcrumb>li a{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  [data-layout="market"] .breadcrumb>li:last-child{max-width:none}
  .mk-gnav{gap:0;padding:0;border:0;border-bottom:1px solid var(--mk-line)}
  .mk-gnav button,.mk-gnav button:first-child{flex:1;padding:14px 8px;border:0;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;font:600 14px/20px var(--hb-font);color:var(--hb-ink)}
  .mk-gnav button:first-child{color:var(--hb-accent-t);border-bottom-color:var(--hb-accent)}
}
@media (max-width:991px){
  [data-layout="market"] .breadcrumb>li:not(:first-child):not(:last-child){max-width:30%}
  [data-layout="market"] .breadcrumb>li:last-child{flex:1 1 0}
}
@media (max-width:991px){
  [data-layout="market"] .breadcrumb>li:not(:first-child):not(:last-child){max-width:20%}
  [data-layout="market"] .breadcrumb>li:last-child{flex:1 1 0;min-width:90px}
}

/* M12 (28.10): каталог-меню по образцу — список категорий с картинками слева, подкатегории справа по наведению, затемнение страницы */
.mk-catalog__ico-close{display:none}
.mk-header [aria-expanded="true"] .mk-catalog__ico-open{display:none}
.mk-header [aria-expanded="true"] .mk-catalog__ico-close{display:block}
@media (min-width:992px){
  .mk-header__row{position:relative}
  .mk-header .mk-catalog{position:static}
  .mk-header .hb-catalog__panel.mk-mega{left:0;top:calc(100% + 11px);width:auto;padding:0;border:0;border-radius:0 0 var(--hb-radius-sm) var(--hb-radius-sm);box-shadow:0 12px 32px rgba(0,0,0,.18);display:flex;align-items:stretch;overflow:hidden}
  .mk-header .hb-catalog__panel.mk-mega[hidden]{display:none}
}
.mk-mega__list,.mk-mega__sub{list-style:none;margin:0;padding:0;width:350px;max-height:calc(100vh - 170px);overflow-y:auto}
.mk-mega__list{background:var(--hb-surface)}
.mk-mega__item+.mk-mega__item{border-top:1px solid var(--hb-line)}
.mk-mega__item>a{display:flex;align-items:center;gap:14px;min-height:61px;padding:8px 18px;color:var(--hb-ink);font-size:15px;line-height:1.25}
.mk-mega__img{flex:none;width:40px;height:40px;display:grid;place-items:center}
.mk-mega__img img{max-width:40px;max-height:40px;width:auto;height:auto;object-fit:contain}
.mk-mega__name{flex:1}
.mk-mega__arr{flex:none;width:12px;height:12px;color:var(--hb-mut)}
.mk-mega__item.is-active>a .mk-mega__name,.mk-mega__item>a:hover .mk-mega__name{color:var(--hb-accent-t);text-decoration:underline}
.mk-mega__sub{border-left:1px solid var(--hb-line);background:var(--hb-surface)}
.mk-mega__sub li+li{border-top:1px solid var(--hb-line)}
.mk-mega__sub a{display:flex;align-items:center;min-height:61px;padding:8px 22px;color:var(--hb-ink);font-size:15px;line-height:1.25}
.mk-mega__sub a:hover{color:var(--hb-accent-t);text-decoration:underline}
.mk-mega-ov{position:fixed;inset:0;z-index:59;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s}
.mk-cat-open .mk-mega-ov{opacity:1;visibility:visible}
@media (max-width:991px){.mk-mega-ov{display:none}}

/* M12: новости как у образца — дата плашкой на картинке, заголовок подчёркнут */
[data-layout="market"] .hb-news .hb-post{position:relative}
[data-layout="market"] .hb-news .hb-post__meta{position:absolute;right:10px;top:10px;margin:0;padding:3px 10px;border-radius:var(--hb-radius-xs);background:var(--hb-accent);color:var(--hb-on-accent);font-size:13px;font-weight:600}
[data-layout="market"] .hb-news .hb-post__title a{color:var(--hb-ink);text-decoration:underline;text-underline-offset:3px}
[data-layout="market"] .hb-news .hb-post__title a:hover{color:var(--hb-accent-t)}

/* M13 (30.10): телефон — фильтр из скрытой колонки открывается кнопкой */
.mk-mfilter{display:none}
@media (max-width:991px){
  .mk-mfilter{display:inline-flex;min-height:40px;padding:0 16px;font-size:14px}
  html[data-layout="market"] .hb-layout.has-left,html[data-layout="market"] .hb-layout.has-right{display:block}
  html[data-layout="market"] .hb-layout__side{margin-bottom:12px}
  [data-layout="market"] .hb-layout__side:has(#hb-filter){display:none;order:-1;width:100%}
  [data-layout="market"] .hb-layout__side:has(#hb-filter).is-open{display:block}
  [data-layout="market"] .hb-layout__side:has(#hb-filter)>aside{display:block!important}
  [data-layout="market"] .hb-layout__side:has(#hb-filter)>aside>.list-group{display:none}
  [data-layout="market"] .hb-layout__side:not(:has(#hb-filter)){display:none}
}
/* M13: до этапов 2-3 — подписка требует входа, форма возврата без условий; лишние поля в оформлении */
.mk-footer li:has(>a[href$="/povernennia-tovaru"]),.hb-drawer li:has(>a[href$="/povernennia-tovaru"]){display:none}
.form-group:has(#input-payment-company),.form-group:has(#input-payment-address-2),.form-group:has(#input-shipping-company),.form-group:has(#input-shipping-address-2){display:none}

/* M13: кнопки темы нет у образца, сайт всегда светлый */
[data-layout="market"] [data-hb-theme-toggle]{display:none!important}

/* M14 (31.10, этап 2): адрес/город/индекс/страна/область в форме оформления не нужны — точку даёт НП или самовывоз (сервер их не требует, OCMOD hb_shop_core 1.5) */
.form-group:has(#input-payment-address-1),.form-group:has(#input-payment-city),.form-group:has(#input-payment-postcode),.form-group:has(#input-payment-country),.form-group:has(#input-payment-zone),
.form-group:has(#input-shipping-address-1),.form-group:has(#input-shipping-city),.form-group:has(#input-shipping-postcode),.form-group:has(#input-shipping-country),.form-group:has(#input-shipping-zone),
#collapse-payment-address .checkbox:has(input[name="shipping_address"]){display:none}
/* M14: подписка без входа (форма e-mail, oc_hb_subscriber) */
.mk-sub{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mk-sub__in{height:44px;min-width:220px;padding:0 14px;border:1px solid #cfd8d1;border-radius:10px;font:inherit;background:#fff;color:#1b2a1f}
.mk-sub__msg{flex-basis:100%;font-size:13px;min-height:1em}
.mk-sub__msg.is-ok{color:#0f6b3a}.mk-sub__msg.is-err{color:#b3261e}
@media (max-width:767px){.mk-sub{width:100%}.mk-sub__in{flex:1 1 100%}}

/* M14-S2 (31.10, этап 2): мобильная и дизайн ПК */
/* ПК: цена в лентах и «Товари дня» красная как у образца */
[data-layout="market"] .hb-pc .hb-price b,[data-layout="market"] .mk-deal .hb-price b,[data-layout="market"] .hb-module .hb-price b{color:var(--mk-price)}
/* ПК: крошки 14px; выпадающий каталог крупнее, список не обрезается впритык */
[data-layout="market"] .breadcrumb{font-size:14px}
.mk-mega__item>a,.mk-mega__sub a{font-size:16px;line-height:1.3}
.mk-mega__list,.mk-mega__sub{max-height:calc(100vh - 196px);padding-bottom:14px;scrollbar-width:thin;scrollbar-color:var(--hb-line) transparent}
/* поиск: чекбоксы в ряд с отступом (в bootstrap input absolute с левым сдвигом) */
.hb-searchbox__opts{flex-wrap:wrap;gap:10px 32px;padding:12px 4px 4px}
.hb-searchbox__opts .checkbox-inline{display:inline-flex;align-items:center;gap:10px;min-height:32px;margin:0;padding-left:0;cursor:pointer}
.hb-searchbox__opts .checkbox-inline input[type=checkbox]{position:static;margin:0;width:18px;height:18px;flex:none;accent-color:var(--hb-accent)}
/* ПК: правая панель 64px не закрывает последнюю колонку карточек */
@media (min-width:992px){[data-layout="market"] .hb-layout{padding-right:44px}}
@media (max-width:767px){
  /* cookie компактной полосой */
  .hb-cookie{left:8px;right:8px;bottom:8px;flex-direction:row;align-items:center;gap:10px;padding:10px 10px 10px 12px;font-size:12px;line-height:1.35}
  .hb-cookie .hb-btn{flex:none;min-height:44px;padding:8px 14px;font-size:13px}
  body:has(.mk-sticky.is-on) .hb-cookie{bottom:76px}
  /* лента подкатегорий: сетка 2 в ряд вместо обрезанной ленты */
  [data-layout="market"] .hb-chips{display:grid;grid-template-columns:1fr 1fr;overflow:visible}
  [data-layout="market"] .hb-chip{max-width:none;min-height:56px;padding:8px 12px;font-size:14px;border-bottom:1px solid var(--hb-line-2)}
  [data-layout="market"] .hb-chip:nth-child(2n){border-right:0}
  /* с фото: лента, листается пальцем (край следующей плитки виден) */
  [data-layout="market"] .hb-chips--img{display:flex;overflow-x:auto;overflow-y:hidden}
  [data-layout="market"] .hb-chips--img .hb-chip{flex-direction:column;justify-content:flex-start;gap:6px;width:112px;max-width:112px;min-height:124px;padding:8px 6px;font-size:13px;border-bottom:0}
  [data-layout="market"] .hb-chips--img .hb-chip:nth-child(2n){border-right:1px solid var(--hb-line-2)}
  [data-layout="market"] .hb-chip__img{width:48px;height:48px}
  [data-layout="market"] .hb-chips__nav{display:none}
  /* цели касания от 44px */
  .hb-header__burger,.mk-header .hb-search__btn,.mk-header input[type="text"],.hb-search input,.hb-search__btn{height:44px}
  .hb-pc .hb-btn,.hb-pc .hb-btn--accent{min-width:44px;min-height:44px}
  .hb-pc__tool{width:44px;height:44px;border:6px solid transparent;background-clip:padding-box}
  .hb-view .hb-iconbtn,.mk-ptop__tools .hb-iconbtn,.mk-garrow{width:44px;height:44px}
  select,.hb-sort select,.form-control{min-height:44px}
  .breadcrumb a{padding:12px 0;margin:-12px 0}
  .hb-footer li a,.mk-footer li a,.hb-footer__phone,.hb-footer a[href^="mailto:"],.hb-post__more{display:inline-flex;align-items:center;min-height:44px}
  .hb-footer ul{gap:0}
  label.checkbox-inline,.radio label,.checkbox label,.hb-filter__opt{min-height:44px;display:flex;align-items:center;gap:10px}
  .radio input,.checkbox input,.hb-filter__opt input{position:static;margin:0;width:20px;height:20px;flex:none}
  /* количество в карточке: горизонтально -/+ по 44 */
  [data-layout="market"] .mk-commerce .hb-qty{grid-template-columns:44px 56px 44px;grid-template-rows:44px;width:auto;flex:0 0 100%}
  [data-layout="market"] .mk-commerce .hb-qty input{grid-column:2;grid-row:1;width:56px;border-radius:0!important;text-align:center}
  [data-layout="market"] .mk-commerce .hb-qty button{width:44px;height:44px}
  [data-layout="market"] .mk-commerce .hb-qty button:first-child{grid-column:1;grid-row:1;border:1px solid var(--mk-line);border-radius:6px 0 0 6px}
  [data-layout="market"] .mk-commerce .hb-qty button:last-child{grid-column:3;grid-row:1;border:1px solid var(--mk-line);border-radius:0 6px 6px 0}
  /* кнопки фильтра прилипают к низу панели */
  .hb-filter__btns{position:sticky;bottom:0;z-index:2;background:var(--hb-surface);padding:10px 0;margin-top:8px;box-shadow:0 -6px 12px -8px rgba(0,0,0,.2)}
  .hb-filter__apply,.hb-filter__btns a,.hb-filter__btns button{min-height:44px}
}
@media (max-width:767px){
  .mk-header .mk-burger{top:7px;height:44px}
  .mk-header .mk-logo{top:7px;height:44px}
  .mk-searchbox .hb-search input[type="search"],.mk-searchbox .hb-search__btn{height:44px}
  [data-layout="market"] .hb-module .hb-pc__buy,.mk-deal__buy,[data-layout="market"] .hb-products .hb-pc__buy{width:44px;min-width:44px;height:44px;min-height:44px}
  .hb-pagination a,.pagination a,.pagination li>a,.pagination li>span{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .hb-ci__rm,.hb-ci__update,.hb-summary__back,.accordion-toggle,.hb-linkbtn{min-height:44px;display:inline-flex;align-items:center}
  .hb-ci__rm{width:44px}
  .hb-pc__name a,.hb-pc a.hb-pc__more{display:block;min-height:44px}
}
@media (max-width:767px){
  .hb-btn{min-height:44px}
  .hb-post__title a,.hb-news .hb-post__title a,.hb-pc__name a{display:block;min-height:44px;padding-block:2px}
  .hb-news__all a,a[href$="/blog"].hb-linkbtn,.hb-section__more{min-height:44px;display:inline-flex;align-items:center}
}
@media (max-width:767px){
  .hb-btn.mk-mfilter{min-height:44px}
  .hb-drawer summary{min-height:44px}
  .hb-drawer li li a{display:flex;align-items:center;min-height:44px}
  .hb-post__title,.hb-post__title a{min-height:44px;display:block}
}
/* 08.11: на телефоне цена в ленте/«Товари дня» не помещалась рядом с кнопкой (4 875,00 грн) - цена отдельной строкой, кнопка «У кошик» во всю ширину */
@media (max-width:767px){
[data-layout="market"] .hb-module .hb-pc__foot,.mk-deal__foot{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 40px}
[data-layout="market"] .hb-module .hb-pc__foot .hb-price b,.mk-deal__foot .hb-price b{grid-column:1;grid-row:2;margin:0 0 8px;white-space:nowrap}
[data-layout="market"] .hb-module .hb-pc__foot .hb-pc__buy,.mk-deal__foot .mk-deal__buy{grid-column:1;grid-row:3;width:100%;justify-content:center;gap:8px}
[data-layout="market"] .hb-module .hb-pc__buy span,.mk-deal__foot .mk-deal__buy span{display:inline}
}
/* 08.11: карточка на телефоне - счётчик количества одним блоком во всю ширину (был разъезд «-  1  +»), строка «Виробник / Код / Відгуки / наявність» без ломаных переносов */
@media (max-width:767px){
[data-layout="market"] .mk-commerce .hb-qty{grid-template-columns:48px minmax(0,1fr) 48px;justify-content:stretch;width:100%}
[data-layout="market"] .mk-commerce .hb-qty input{width:100%;border-left:0!important;border-right:0!important}
[data-layout="market"] .mk-commerce .hb-qty button{width:48px}
.mk-info{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 16px}
.mk-info__i:has(.hb-rating){flex-wrap:nowrap;white-space:nowrap}
.mk-info .hb-rating svg{width:12px;height:12px}
.mk-info .hb-rating em{margin-right:4px}
}
/* 08.11: оформление заказа - радио/чекбоксы с отступом, подтверждение списком, согласие с офертой отдельной строкой */
#accordion .radio label,#accordion .checkbox label{display:flex;align-items:flex-start;gap:10px;padding-left:0;margin:0;line-height:1.4;cursor:pointer}
#accordion .radio,#accordion .checkbox{margin:0 0 12px}
#accordion .radio input[type=radio],#accordion .checkbox input[type=checkbox]{position:static;margin:2px 0 0;flex:none;width:18px;height:18px;accent-color:#0f5f2e}
#accordion #collapse-checkout-option .col-sm-6 + .col-sm-6{margin-top:24px}
#accordion #collapse-checkout-option #button-account{margin-top:4px}
#collapse-payment-address #address legend{display:none}
#accordion textarea[name=comment]{min-height:84px;resize:vertical}
.hb-agree-row{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.hb-agree-row .pull-right{float:none;align-self:flex-end}
.hb-agree{display:flex;align-items:flex-start;gap:10px;margin:0;font-weight:400;line-height:1.4;cursor:pointer}
.hb-agree input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:#0f5f2e}
.hb-confirm{margin:0 0 16px}
.hb-confirm__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--mk-line,#e3e8e4)}
.hb-confirm__row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--mk-line,#e3e8e4)}
.hb-confirm__name{min-width:0;flex:1}
.hb-confirm__name a{color:var(--hb-ink,#1b2a1f);font-weight:500}
.hb-confirm__name small,.hb-confirm__code{display:block;color:var(--hb-mut,#6b7a70);font-size:13px;margin-top:4px}
.hb-confirm__sum{text-align:right;white-space:nowrap;display:flex;flex-direction:column;gap:4px}
.hb-confirm__qty{color:var(--hb-mut,#6b7a70);font-size:13px}
.hb-confirm__totals{margin:8px 0 0}
.hb-confirm__total{display:flex;justify-content:space-between;gap:16px;padding:6px 0}
.hb-confirm__total dt{font-weight:400;color:var(--hb-mut,#6b7a70)}
.hb-confirm__total dd{margin:0;white-space:nowrap}
.hb-confirm__total.is-grand{border-top:1px solid var(--mk-line,#e3e8e4);margin-top:4px;padding-top:10px;font-size:17px}
.hb-confirm__total.is-grand dt{color:var(--hb-ink,#1b2a1f);font-weight:600}
.hb-confirm__total.is-grand dd{font-weight:700}
@media (max-width:767px){.hb-confirm__row{flex-direction:column;gap:6px}.hb-confirm__sum{flex-direction:row;justify-content:space-between;align-items:baseline;text-align:left}}

/* 08.11 торпеда: формы OC (возврат, кабинет) на телефоне не вылезают за край */
@media (max-width:767px){
#content .form-horizontal .form-group{margin-left:0;margin-right:0}
}
/* 08.11 торпеда: капча в форме контактов ровно с остальными полями */
.hb-contact__form [class*="col-sm-"]{float:none;width:auto;padding-left:0;padding-right:0}
.hb-contact__form .form-group{margin-left:0;margin-right:0}
/* 08.11: подпись «нет на складе, можно заказать» над кнопкой покупки */
.hb-buy__note{margin:0 0 10px;padding:8px 12px;border-radius:10px;background:#fff7e6;color:#7a4b00;font-size:13px;line-height:1.4}

/* QA 20.11 */
/* правая панель (.mk-rail, fixed) на 992-1540 накрывала правый край контента (кнопка «Товар дня») - отступ контейнерам */
@media (min-width:992px) and (max-width:1540px){[data-layout="market"] .hb-wrap,[data-layout="market"] .container{padding-right:calc(var(--hb-gutter) + var(--mk-rail))}}
/* точки «Товар дня» были под .mk-deal__foot - клик не проходил */
.mk-deals__nav{z-index:2;pointer-events:none}
.mk-deals__nav button{pointer-events:auto}
/* подвал: длинные названия не обрезаем, переносим */
nav.mk-footer__col a{white-space:normal;overflow:visible;text-overflow:clip}
/* купон/сертификат в корзине на узкой колонке: поле и кнопка друг под другом, а не сжатое поле */
.hb-cartmods .input-group{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.hb-cartmods .input-group>.form-control{flex:1 1 100%;min-width:0;width:100%;border-radius:var(--hb-radius-sm,8px)}
.hb-cartmods .input-group-btn{display:block;flex:1 1 100%;width:100%}
.hb-cartmods .input-group-btn .btn{width:100%;border-radius:var(--hb-radius-sm,8px)}
.hb-cartmods .panel-heading{padding:12px 14px}

/* 22.11.2026 просьба клиента 21.11: названия товаров в 3 строки (было 2) */
.hb-pc__name{-webkit-line-clamp:3;min-height:4.05em}
[data-layout="market"] .hb-module .hb-pc__name{-webkit-line-clamp:3;min-height:72px}
@media (max-width:767px){
  [data-layout="market"] .hb-module .hb-pc__name{min-height:63px}
  /* 22.11.2026: подкатегории с картинками на телефоне - плитка по 3 в ряд вместо карусели */
  [data-layout="market"] .hb-chips--img{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;scroll-snap-type:none}
  [data-layout="market"] .hb-chips--img .hb-chip{width:auto;max-width:none;min-height:0;gap:4px;padding:8px 4px;font-size:12.5px;line-height:1.25;border-bottom:1px solid var(--hb-line-2)}
  [data-layout="market"] .hb-chips--img .hb-chip__img{width:40px;height:40px}
  /* 22.11.2026: длинные слова («поліпропіленовий») вылезали за плитку на 5-11px - переносим внутри плитки */
  [data-layout="market"] .hb-chips--img .hb-chip{min-width:0;overflow-wrap:anywhere;word-break:break-word;hyphens:auto}
  [data-layout="market"] .hb-chips--img .hb-chip > *{min-width:0;max-width:100%;overflow-wrap:anywhere}
  [data-layout="market"] .hb-chips--img .hb-chip:nth-child(2n){border-right:1px solid var(--hb-line-2)}
  [data-layout="market"] .hb-chips--img .hb-chip:nth-child(3n){border-right:0}
}
