/*
 * market.css — «привычный» вид витрины Океано (13.10.2026). Подключается последним, после store.css.
 * Задача слоя: магазин выглядит и работает как крупные площадки — серая подложка и белые карточки,
 * в карточке товара «фото → цена → название → оценка → кнопка „В корзину“ во всю ширину»,
 * сортировка с подписью, фильтры слева, «Ваш заказ» справа от корзины.
 * Цвета магазина берутся из настроек: --main-color (шапка, ссылки), --accent-color (кнопка покупки, скидки).
 * Новые блоки — с приставкой mk-; старые классы оставлены там, где на них завязаны скрипты.
 */
:root{--mk-bg:#f2f3f7;--mk-ink:#1b1e2b;--mk-mut:#6e7587;--mk-line:#e3e6ee;--mk-r:16px;--mk-sale:var(--accent-color);--mk-ok:#0f9d58;--mk-star:#ffa51f;
  --mk-soft:color-mix(in srgb,var(--accent-color) 11%,#fff);--st-stick:100px;
  --i-filter:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E");
  --i-star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .9l2.1 4.5 4.9.6-3.6 3.4.9 4.9L8 11.9l-4.3 2.4.9-4.9L1 6l4.9-.6z'/%3E%3C/svg%3E");
  --i-arr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-truck:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v10h-11zM13.5 10h4l3 3.2v3.3h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
  --i-card:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E");
  --i-shop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v9.5h16V10M3 5h18l-1 5H4zM10 19.5v-5h4v5'/%3E%3C/svg%3E")}

/* ═══════════ Основа: подложка, ширина колонки, типографика ═══════════ */
html body{background:var(--mk-bg);color:var(--mk-ink)}
html .main{padding:18px 0 64px!important;border-radius:0!important;background:var(--mk-bg)!important;min-height:60vh}
html .container{box-sizing:border-box;width:auto!important;max-width:1392px;margin-left:auto!important;margin-right:auto!important;padding-left:24px;padding-right:24px}
html .container .container{max-width:none;padding-left:0;padding-right:0}
.mk-ico::before,.mk-chip--all::before,.mk-bar__filter::before,.mk-filters__close::before,.pc__add.active::before,.pc__star,.mk-sec__all::after,.mk-catcard__head::after,
.mk-nav::before,.mk-links a::before,.mk-empty__title::before{content:"";flex:none;-webkit-mask:var(--ki) center/contain no-repeat;mask:var(--ki) center/contain no-repeat;background:currentColor}
.mk-card{padding:22px 24px;border-radius:var(--mk-r);background:#fff}
.mk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border:0;border-radius:12px;background:var(--accent-color);color:#fff!important;
  font:inherit;font-size:15.5px;font-weight:700;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:filter .15s,background .15s,color .15s}
.mk-btn:hover{filter:brightness(1.08)}
.mk-btn--ghost{background:var(--mk-soft);color:var(--accent-color)!important}
.mk-btn--ghost:hover{filter:none;background:color-mix(in srgb,var(--accent-color) 18%,#fff)}
.mk-btn--line{background:#fff;color:var(--mk-ink)!important;box-shadow:inset 0 0 0 1px var(--mk-line)}
.mk-btn--line:hover{filter:none;box-shadow:inset 0 0 0 1px var(--main-color);color:var(--main-color)!important}
.mk-btn:focus-visible,.mk-chip:focus-visible,.pc__add:focus-visible,.mk-sort__select:focus-visible{outline:2px solid var(--main-color);outline-offset:2px}

/* ═══════════ Шапка: ниже и плотнее; на телефоне поиск всегда на виду ═══════════ */
@media screen and (min-width:556px){
  html .header{padding:8px 0 14px!important}
  html .header__links .mk-nav{display:none!important}
}
@media screen and (max-width:555px){
  html .header,html .kt-brand .header{padding:8px 0 12px!important;top:-54px}
  html .mheader__search{display:none!important}
  html .mheader__top{justify-content:flex-start;gap:12px}
  html .header .search{display:block!important;width:100%!important;max-width:none!important}
  html .search__form{width:100%!important;height:44px!important;margin-top:10px!important}
  html .search__input{height:44px!important}
  /* нижняя панель: Главная · Каталог · Корзина · Избранное · Профиль */
  html .header__links{justify-content:space-between!important;border-radius:0!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom))!important;box-shadow:0 -1px 0 var(--mk-line),0 -6px 18px rgba(20,24,40,.06)!important;border-top:0!important}
  html .header__links-item{flex:1 1 0;min-width:0!important;height:48px}
  html .header__links-item.is-here{color:var(--accent-color)}
  html #comparison_informer{display:none!important}
  .mk-nav--home{order:1}.mk-nav--cat{order:2}html #cart_informer{order:3}html #wishlist_informer{order:4}html .header__links-item[href="/user"]{order:5}
  html .mk-nav--home::before{--ki:var(--i-home)} html .mk-nav--home::after{content:"Главная"}
  html .mk-nav--cat::before{--ki:var(--i-grid)} html .mk-nav--cat::after{content:"Каталог"}
  html .footer.kf{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
}

/* ═══════════ Хлебные крошки ═══════════ */
html .breadcrumbs{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;margin:0 0 12px!important;min-width:0}
html .breadcrumbs__back{flex:none;padding:5px 12px 5px 10px!important;font-size:13px!important}
html .breadcrumbs__items{display:flex;flex:1 1 auto;flex-wrap:nowrap;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
html .breadcrumbs__items::-webkit-scrollbar{display:none}
html .breadcrumbs__item{flex:none;font-size:13px!important}

/* ═══════════ Заголовки страниц и блоков ═══════════ */
.mk-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0 0 14px}
html .mk-h1,html h1.categories__title{margin:0!important;font-size:clamp(22px,2.4vw,30px)!important;font-weight:700!important;line-height:1.18!important;letter-spacing:-.02em;color:var(--mk-ink)!important;text-align:left!important}
.mk-count{font-size:15px;color:var(--mk-mut);white-space:nowrap}
html .banners,html .categories,html .populars,html .recent,html .st-about{padding:14px 0!important}
html .container .title,html .title{margin:0 0 14px;font-size:24px;line-height:1.2}
.mk-sec{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 14px}
.mk-sec .title{margin:0!important}
.mk-sec__all{display:inline-flex;align-items:center;gap:2px;flex:none;font-size:15px;font-weight:600;color:var(--accent-color)!important;text-decoration:none!important;white-space:nowrap}
.mk-sec__all::after{width:16px;height:16px;--ki:var(--i-arr)}
.mk-sec__all:hover{filter:brightness(.85)}

/* ═══════════ «Таблетки»: разделы на главной, подразделы в разделе ═══════════ */
.mk-cats{padding:0 0 6px}
.mk-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.mk-chip{display:inline-flex;align-items:center;gap:7px;flex:none;height:38px;padding:0 15px;border-radius:999px;background:#fff;color:var(--mk-ink)!important;font-size:14.5px;font-weight:500;line-height:1;
  white-space:nowrap;text-decoration:none!important;transition:background .15s,color .15s,box-shadow .15s}
.mk-chip:hover{color:var(--accent-color)!important;box-shadow:inset 0 0 0 1.5px var(--accent-color)}
.mk-chip--all{background:var(--main-color);color:#fff!important;font-weight:600}
.mk-chip--all::before{width:17px;height:17px;--ki:var(--i-grid)}
.mk-chip--all:hover{color:#fff!important;box-shadow:none;filter:brightness(1.15)}
.mk-chips--home{max-height:84px;overflow:hidden;margin-bottom:8px}
@media (max-width:700px){
  .mk-chips{flex-wrap:nowrap;overflow-x:auto;margin-left:-14px;margin-right:-14px;padding:0 14px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .mk-chips::-webkit-scrollbar{display:none}
  .mk-chips--home{max-height:none}
  .mk-chip{height:36px;padding:0 13px;font-size:14px}
}

/* ═══════════ Сетка и карточка товара ═══════════ */
html .items{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:14px!important;row-gap:14px!important}
html .pc__body{gap:0;padding:8px 8px 10px!important;border:0!important;border-radius:var(--mk-r)!important;background:#fff;box-shadow:none!important;transition:box-shadow .2s}
html .pc:hover .pc__body{transform:none;box-shadow:0 10px 28px rgba(22,27,45,.13)!important}
html .pc__media{border-radius:11px;background:#fff}
html .pc__media .item__img{object-fit:contain}
html .pc .item__discount{left:6px;top:auto;bottom:6px;padding:3px 7px;border-radius:7px;background:var(--mk-sale);font-size:12.5px;font-weight:700}
html .pc__wish{top:14px;right:14px;width:34px;height:34px;opacity:1;transform:none;color:#9aa0b0!important;box-shadow:0 1px 5px rgba(22,27,45,.14)}
html .pc__wish:hover{color:var(--mk-sale)!important;transform:none}
html .pc__wish.active{color:var(--mk-sale)!important}
html .pc .pc__price{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:2px 8px;margin:10px 2px 0;padding:0}
html .pc .item__newprice{font-size:20px!important;font-weight:700;line-height:1.2;letter-spacing:-.01em;color:var(--mk-ink)}
html .pc .is-sale .item__newprice{color:var(--mk-sale)}
html .pc .item__oldprice{font-size:13px;line-height:1.2;color:#9197a8}
html .pc .pc__ask{font-size:15px!important;font-weight:600;color:var(--mk-mut)}
html .pc__title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 2px 0!important;min-height:38px;font-size:14px!important;font-weight:400;line-height:19px!important;color:var(--mk-ink)!important}
html .pc__title:hover{color:var(--accent-color)!important}
html .pc__grade{display:flex;align-items:center;gap:4px;margin:6px 2px 0;font-size:12.5px;line-height:1;color:var(--mk-mut)}
.pc__star{width:13px;height:13px;--ki:var(--i-star);background:var(--mk-star)!important}
.pc__grade b{font-weight:600;color:var(--mk-ink)}
.pc__votes::before{content:"·";margin:0 5px 0 2px}
html .pc__form{display:block;margin:auto 0 0;padding-top:10px}
html .pc__body > .pc__add--more{margin-top:auto}
.pc__add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:40px;padding:0 10px;border:0;border-radius:11px;background:var(--accent-color);color:#fff!important;
  font:inherit;font-size:14.5px;font-weight:700;line-height:1;text-decoration:none!important;cursor:pointer;transition:filter .15s,background .15s,color .15s}
.pc__add:hover{filter:brightness(1.08)}
.pc__add.active{background:var(--mk-soft);color:var(--accent-color)!important}
.pc__add.active:hover{filter:none;background:color-mix(in srgb,var(--accent-color) 18%,#fff)}
.pc__add.active::before{width:16px;height:16px;--ki:var(--i-check)}
.pc__add--more{box-sizing:border-box;margin-top:10px;background:#fff;color:var(--mk-ink)!important;box-shadow:inset 0 0 0 1px var(--mk-line)}
.pc__add--more:hover{filter:none;color:var(--accent-color)!important;box-shadow:inset 0 0 0 1px var(--accent-color)}
html .st-more{margin-top:18px;min-height:46px;padding:0 26px;border:0;border-radius:12px;background:#fff;font-size:15px}
html .st-more:hover{color:var(--accent-color)!important;box-shadow:inset 0 0 0 1.5px var(--accent-color)}
html button.st-more{font:inherit;font-size:15px;font-weight:600;cursor:pointer}
html .st-more.is-loading{pointer-events:none;color:var(--mk-mut)!important}
html #products_list > .st-more{width:100%;max-width:none;min-height:50px;background:var(--mk-soft);color:var(--accent-color)!important;font-size:15.5px;font-weight:700}
html #products_list > .st-more:hover{box-shadow:none;background:color-mix(in srgb,var(--accent-color) 18%,#fff)}
html .st-about__card{background:#fff;border-radius:var(--mk-r)}
html .promo__link,html .banners__item{border-radius:var(--mk-r)}
@media (max-width:600px){
  html .main{padding:12px 0 36px!important}
  html .container{padding-left:14px;padding-right:14px}
  html .container .title,html .title{font-size:20px}
  html .items{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;row-gap:8px!important}
  html .pc__body{padding:6px 6px 8px!important;border-radius:14px!important}
  html .pc .item__newprice{font-size:18px!important}
  html .pc__title{font-size:13.5px!important;line-height:18px!important;min-height:36px}
  html .pc__wish{top:10px;right:10px;width:32px;height:32px}
  .pc__add{height:38px;font-size:14px}
  .mk-card{padding:16px}
}

/* ═══════════ Раздел каталога и поиск ═══════════ */
.mk-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 12px}
.mk-bar__filter{display:none;align-items:center;gap:8px;height:42px;padding:0 16px;border:0;border-radius:12px;background:#fff;color:var(--mk-ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.mk-bar__filter::before{width:19px;height:19px;--ki:var(--i-filter)}
.mk-sort{display:inline-flex;align-items:center;gap:0;height:42px;padding:0 4px 0 14px;border-radius:12px;background:#fff;font-size:14.5px;color:var(--mk-mut);cursor:pointer}
.mk-sort__label{flex:none}
.mk-sort__select{height:42px;margin:0;padding:0 30px 0 6px;border:0;border-radius:12px;background:transparent no-repeat right 8px center/16px;appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1e2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color:var(--mk-ink);font:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
html .categories__wrapper{grid-template-columns:262px minmax(0,1fr);gap:16px}
html .categories__wrapper.mk-list--empty{grid-template-columns:minmax(0,1fr)}
html .categories__filters{top:var(--st-stick);max-height:calc(100vh - var(--st-stick) - 16px);overflow-y:auto;padding:18px!important;border:0!important;border-radius:var(--mk-r)!important;scrollbar-width:thin}
.mk-filters__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
html .mk-filters__head .categories__filters-title{margin:0!important;font-size:18px!important}
.mk-filters__close{display:none;width:40px;height:40px;border:0;border-radius:50%;background:var(--mk-bg);color:var(--mk-ink);cursor:pointer;align-items:center;justify-content:center}
.mk-filters__close::before{width:18px;height:18px;--ki:var(--i-x)}
html .categories__filters-prices,html .categories__filters-selectbox{display:block;margin:0 0 16px!important;padding:0!important}
html .categories__filters-selectbox-title{display:block;margin:0 0 7px!important;font-size:14px!important;font-weight:600!important;color:var(--mk-ink)!important}
html .categories__filters-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mk-range{position:relative;display:block;min-width:0}
.mk-range span{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:13.5px;color:var(--mk-mut);pointer-events:none}
html .mk-range .categories__filter-input{box-sizing:border-box;width:100%!important;height:42px!important;padding:0 8px 0 32px!important;border-radius:10px!important;font-size:14.5px!important;text-align:left}
.mk-select{box-sizing:border-box;width:100%;height:42px;padding:0 34px 0 12px;border:1px solid #dfe3ec;border-radius:10px;background:#fff no-repeat right 10px center/16px;appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e7587' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color:var(--mk-ink);font:inherit;font-size:14.5px;cursor:pointer}
.mk-select:focus{outline:0;border-color:var(--main-color)}
.mk-checks{display:grid;gap:2px;margin:0 0 6px;padding-top:12px;border-top:1px solid var(--mk-line)}
.mk-check{display:flex;align-items:center;gap:10px;min-height:38px;font-size:14.5px;color:var(--mk-ink);cursor:pointer}
.mk-check input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--accent-color);cursor:pointer}
.mk-filters__foot{position:sticky;bottom:-18px;margin:8px -18px -18px;padding:12px 18px 18px;background:#fff;border-top:1px solid var(--mk-line)}
.mk-filters__found{margin:0 0 10px;font-size:13.5px;color:var(--mk-mut)}
.mk-filters__found b{color:var(--mk-ink);font-weight:700}
html .mk-filters__foot .btn_categories{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:0!important;border-radius:12px!important;font-size:15px!important}
html .mk-filters__foot .btn_categories::before{display:none}
.mk-filters__reset{display:block;margin-top:10px;font-size:14px;text-align:center;color:var(--mk-mut)!important;text-decoration:none!important}
.mk-filters__reset:hover{color:var(--accent-color)!important}
.mk-seo{margin-top:28px;font-size:15px;line-height:1.6;color:#3a4052}
.mk-seo > :first-child{margin-top:0}.mk-seo > :last-child{margin-bottom:0}
.mk-seo p{margin:0 0 .8em}
.mk-empty{padding:44px 24px;border-radius:var(--mk-r);background:#fff;text-align:center}
.mk-empty__title{margin:0 0 8px;font-size:22px;font-weight:700;line-height:1.25;color:var(--mk-ink)}
.mk-empty__text{max-width:30em;margin:0 auto 20px;font-size:15.5px;line-height:1.5;color:var(--mk-mut)}
.mk-empty__btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
html .mk-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin-top:16px}
html .mk-pages a,.mk-pages__gap{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 6px;border-radius:11px;font-size:15px;font-weight:600;line-height:1;text-decoration:none!important}
html .mk-pages a{background:#fff;color:var(--mk-ink)!important;transition:color .15s,box-shadow .15s}
html .mk-pages a:hover{color:var(--accent-color)!important;box-shadow:inset 0 0 0 1.5px var(--accent-color)}
html .mk-pages a.is-on{background:var(--accent-color);color:#fff!important;box-shadow:none;pointer-events:none}
html .mk-pages__arr{font-size:20px!important}
.mk-pages__gap{min-width:20px;color:var(--mk-mut)}
@media (max-width:980px){
  .mk-bar{justify-content:space-between}
  .mk-bar__filter{display:inline-flex}
  html .categories__wrapper{grid-template-columns:minmax(0,1fr)}
  html .categories__wrapper-left{display:none!important}
  html .categories__wrapper-left.is-open{display:block!important;position:fixed;inset:0;z-index:1200;overflow-y:auto;background:#fff;-webkit-overflow-scrolling:touch}
  html .categories__wrapper-left.is-open .categories__filters{position:static;max-height:none;overflow:visible;padding:16px 16px 0!important;border-radius:0!important}
  .mk-filters__close{display:inline-flex}
  .mk-filters__foot{bottom:0;margin:8px -16px 0;padding:12px 16px calc(14px + env(safe-area-inset-bottom))}
}
@media (max-width:600px){
  .mk-bar__filter{flex:none}
  .mk-sort{flex:0 1 auto;padding-left:10px;min-width:0;max-width:100%}
  .mk-sort__label{display:none}
  .mk-sort__select{min-width:0;width:100%;max-width:none;padding-left:4px;text-overflow:ellipsis}
  .mk-sort__select option{text-transform:none}
}

/* ═══════════ Каталог: разделы с подразделами ═══════════ */
.mk-catgrid{columns:4 250px;column-gap:14px}
.mk-catcard{break-inside:avoid;margin:0 0 14px;padding:16px 18px;border-radius:var(--mk-r);background:#fff}
.mk-catcard__head{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:700;line-height:1.3;color:var(--mk-ink)!important;text-decoration:none!important;overflow-wrap:break-word;hyphens:auto}
.mk-catcard__head:hover{color:var(--accent-color)!important}
.mk-catcard__head::after{display:none;margin-left:auto;width:18px;height:18px;--ki:var(--i-arr);color:#a4a9b8}
.mk-catcard__img{flex:none;width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--mk-bg)}
.mk-catcard__name{min-width:0}
.mk-catcard__subs{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:7px}
.mk-catcard__subs a{font-size:14px;line-height:1.35;color:#4a5064!important;text-decoration:none!important}
.mk-catcard__subs a:hover{color:var(--accent-color)!important}
.mk-catcard__more a{color:var(--accent-color)!important;font-weight:600}
@media (max-width:600px){
  .mk-catgrid{columns:auto;display:grid;gap:0;border-radius:var(--mk-r);background:#fff;overflow:hidden}
  .mk-catcard{margin:0;padding:0;border-radius:0;background:none;border-bottom:1px solid var(--mk-line)}
  .mk-catcard:last-child{border-bottom:0}
  .mk-catcard__head{min-height:52px;padding:8px 12px 8px 16px;font-size:15.5px;font-weight:500}
  .mk-catcard__head::after{display:block}
  .mk-catcard__subs{display:none}
}

/* ═══════════ Страница товара ═══════════ */
html .mk-pg{padding:0!important;margin:0!important}
.mk-pg__top{margin:0 0 16px}
html .mk-pg__h1{max-width:26em;font-size:clamp(21px,2.1vw,28px)!important}
.mk-pg__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:10px;font-size:14px;color:var(--mk-mut)}
.mk-pg__meta a{color:var(--mk-mut)!important;text-decoration:none!important}
.mk-pg__meta a:hover{color:var(--accent-color)!important}
.mk-pg__rate{display:inline-flex;align-items:center;gap:5px}
.mk-pg__rate b{font-weight:700;color:var(--mk-ink)}
.mk-pg__sku b{font-weight:600;color:var(--mk-ink)}
.mk-pg__share{display:inline-flex;align-items:center;gap:6px}
.mk-pg__share::before{content:"";width:16px;height:16px;-webkit-mask:var(--i-share) center/contain no-repeat;mask:var(--i-share) center/contain no-repeat;background:currentColor}
.mk-pg__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) 368px;gap:16px;align-items:start}
.mk-pg__grid--2{grid-template-columns:minmax(0,1fr) 380px}
/* фото */
.mk-gal{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:14px;border-radius:var(--mk-r);background:#fff;position:sticky;top:var(--st-stick)}
.mk-gal:not(:has(.mk-gal__thumbs)){grid-template-columns:minmax(0,1fr)}
.mk-gal__thumbs{display:flex;flex-direction:column;gap:8px;max-height:560px;overflow-y:auto;scrollbar-width:none}
.mk-gal__thumbs::-webkit-scrollbar{display:none}
.mk-gal__thumb{flex:none;width:72px;height:72px;padding:0;border:0;border-radius:10px;background:#fff;overflow:hidden;cursor:pointer;box-shadow:inset 0 0 0 1px var(--mk-line);transition:box-shadow .15s}
.mk-gal__thumb img{display:block;width:100%;height:100%;object-fit:contain}
.mk-gal__thumb{outline:1px solid var(--mk-line);outline-offset:-1px}
.mk-gal__thumb.is-on{outline:2px solid var(--accent-color);outline-offset:-2px}
.mk-gal__stage{position:relative;min-width:0;border-radius:12px;background:#fff;overflow:hidden}
.mk-gal__strip{display:flex;overflow:hidden;scroll-snap-type:x mandatory;scrollbar-width:none}
.mk-gal__strip::-webkit-scrollbar{display:none}
.mk-gal__slide{flex:0 0 100%;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;max-height:560px;scroll-snap-align:start;cursor:zoom-in}
.mk-gal__slide img{display:block;width:100%;height:100%;object-fit:contain}
.mk-gal__off{position:absolute;left:12px;bottom:12px;padding:5px 10px;border-radius:9px;background:var(--mk-sale);color:#fff;font-size:15px;font-weight:700;line-height:1.2}
.mk-gal__count{display:none;position:absolute;right:10px;bottom:10px;padding:4px 9px;border-radius:999px;background:rgba(20,24,40,.6);color:#fff;font-size:12.5px;font-weight:600;line-height:1.2}
/* коротко о товаре */
.mk-pg__info{padding:20px 22px;border-radius:var(--mk-r);background:#fff}
.mk-short__title,.mk-h2{margin:0 0 14px;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.01em;color:var(--mk-ink)}
.mk-short__title{font-size:17px;margin-bottom:12px}
.mk-specs{margin:0;display:grid;gap:9px}
.mk-specs > div{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:14px;line-height:1.4}
.mk-specs dt{flex:1 1 46%;min-width:0;display:flex;align-items:baseline;margin:0;color:var(--mk-mut);font-weight:400}
.mk-specs dt::after{content:"";flex:1;min-width:16px;margin:0 0 3px 6px;border-bottom:1px dotted #c6cad6}
.mk-specs dd{flex:1 1 54%;min-width:0;margin:0;color:var(--mk-ink);overflow-wrap:anywhere}
.mk-specs--2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 40px}
.mk-link{display:inline-block;margin-top:14px;font-size:14.5px;font-weight:600;color:var(--accent-color)!important;text-decoration:none!important}
.mk-link:hover{filter:brightness(.85)}
.mk-pg__brand{margin-top:14px;font-size:14.5px;color:var(--mk-mut)}
.mk-short + .mk-pg__brand{padding-top:14px;border-top:1px solid var(--mk-line)}
.mk-pg__brand a{font-weight:600;color:var(--accent-color)!important;text-decoration:none!important}
/* блок покупки */
.mk-buy{position:sticky;top:var(--st-stick);padding:20px;border-radius:var(--mk-r);background:#fff;box-shadow:0 6px 24px rgba(22,27,45,.07)}
.mk-buy form.variants{display:block;width:auto}
.mk-buy__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.mk-buy__new{font-size:32px;font-weight:700;line-height:1.1;letter-spacing:-.02em;color:var(--mk-ink);white-space:nowrap}
.mk-buy__price.is-sale .mk-buy__new{color:var(--mk-sale)}
.mk-buy__new--ask{font-size:22px;white-space:normal}
.mk-buy__old{font-size:16px;color:#9197a8;text-decoration:line-through;white-space:nowrap}
.mk-buy__stock{display:flex;align-items:center;gap:7px;margin:10px 0 16px;font-size:14px;font-weight:600;color:var(--mk-ok)}
.mk-buy__stock::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.mk-buy__stock.is-wait{color:#c77700}
.mk-buy__ask{margin:10px 0 0;font-size:14.5px;line-height:1.5;color:var(--mk-mut)}
.mk-buy__ask a{color:var(--accent-color)!important}
.mk-field{margin:0 0 14px}
.mk-field > label,.mk-field__label{display:block;margin:0 0 6px;font-size:13.5px;font-weight:600;color:var(--mk-mut)}
.mk-buy__row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
.mk-buy__add{white-space:nowrap}
.mk-qty{display:inline-flex;align-items:center;height:50px;border-radius:12px;background:var(--mk-bg)}
.mk-qty button{width:40px;height:50px;padding:0;border:0;background:none;color:var(--mk-ink);font-size:22px;line-height:1;cursor:pointer;border-radius:12px}
.mk-qty button:hover{color:var(--accent-color)}
.mk-qty input{width:36px;height:50px;padding:0;border:0;background:none;text-align:center;font:inherit;font-size:16px;font-weight:600;color:var(--mk-ink)}
.mk-qty input:focus{outline:0}
.mk-buy__add{min-height:50px;padding:0 10px;font-size:15.5px}
.mk-buy__go{display:none;width:100%;box-sizing:border-box;margin-top:10px}
.mk-buy.is-added .mk-buy__go{display:flex}
.mk-buy__acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.mk-act{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 8px;border:0;border-radius:11px;background:var(--mk-bg);color:var(--mk-ink);font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:color .15s,background .15s}
.mk-act:hover{color:var(--accent-color)}
.mk-act.active{background:var(--mk-soft);color:var(--accent-color)}
.mk-act__ico{flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-heart) center/contain no-repeat;mask:var(--i-heart) center/contain no-repeat}
.mk-act.active .mk-act__ico--heart{-webkit-mask-image:var(--i-heart-f);mask-image:var(--i-heart-f)}
.mk-act__ico--cmp{-webkit-mask-image:var(--i-scales);mask-image:var(--i-scales)}
.mk-links{display:grid;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--mk-line)}
.mk-links a{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.3;color:var(--mk-ink)!important;text-decoration:none!important}
.mk-links a::before{width:20px;height:20px;color:var(--mk-mut);--ki:var(--i-truck)}
.mk-links a.mk-links__pay::before{--ki:var(--i-card)}
.mk-links a.mk-links__shop::before{--ki:var(--i-shop)}
.mk-links a:hover{color:var(--accent-color)!important}
/* описание, характеристики, отзывы */
.mk-pg__body{display:grid;gap:16px;margin-top:16px}
html .mk-pg__body .descr,html .mk-pg__body .reviews{margin:0!important}
html .mk-pg__body .descr__text{max-width:860px;font-size:15.5px!important;line-height:1.65!important}
html .mk-rev .reviews_tabs{margin:0 0 18px!important;gap:8px}
html .mk-rev .reviews__title{font:inherit;border:0!important;background:var(--mk-bg)!important}
html .mk-rev .reviews__title.active{background:var(--mk-ink)!important}
.mk-rev__none{margin:0 0 16px;font-size:15px;line-height:1.5;color:var(--mk-mut)}
.mk-more > summary{list-style:none;width:max-content;max-width:100%;cursor:pointer}
.mk-more > summary::-webkit-details-marker{display:none}
.mk-more[open] > summary{display:none}
.mk-form{max-width:560px;margin-top:4px}
.mk-input{box-sizing:border-box;display:block;width:100%;min-height:48px;padding:12px 14px;border:1px solid #dfe3ec;border-radius:12px;background:#fff;color:var(--mk-ink);font:inherit;font-size:15.5px;line-height:1.4;transition:border-color .15s,box-shadow .15s}
html textarea.mk-input{resize:vertical;height:auto!important;min-height:92px}
.mk-input:focus{outline:0;border-color:var(--main-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--main-color) 14%,transparent)}
.mk-input::placeholder{color:#9aa1b2}
.mk-file{font:inherit;font-size:14px;color:var(--mk-mut);max-width:100%}
.mk-form__foot{margin-top:14px}
.mk-rate{display:inline-flex;flex-direction:row-reverse;gap:2px}
.mk-rate input{position:absolute;opacity:0;width:0;height:0}
.mk-rate label{width:34px;height:34px;margin:0;cursor:pointer;background:#d5d9e3;-webkit-mask:var(--i-star) center/28px no-repeat;mask:var(--i-star) center/28px no-repeat;transition:background .12s}
.mk-rate input:checked ~ label,.mk-rate label:hover,.mk-rate label:hover ~ label{background:var(--mk-star)}
.mk-rate input:focus-visible + label{outline:2px solid var(--main-color);outline-offset:1px}
.mk-revs{display:grid;gap:0;margin:0 0 18px!important}
html .mk-revitem{margin:0!important;padding:16px 0!important;border:0!important;border-bottom:1px solid var(--mk-line)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
html .mk-revitem:first-child{padding-top:0!important}
.mk-revitem__head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.mk-revitem__ava{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--mk-soft);color:var(--accent-color);font-size:16px;font-weight:700}
.mk-revitem__who{min-width:0;display:grid;gap:1px;margin-right:auto}
.mk-revitem__name{font-size:15px;font-weight:600;color:var(--mk-ink);overflow-wrap:anywhere}
.mk-revitem__date{font-size:13px;color:var(--mk-mut)}
.mk-stars{flex:none;position:relative;display:inline-block;width:80px;height:14px;background:#d5d9e3;-webkit-mask:var(--i-star) left center/16px 14px repeat-x;mask:var(--i-star) left center/16px 14px repeat-x}
.mk-stars::after{content:"";position:absolute;inset:0 auto 0 0;width:calc(var(--r,0)*16px);background:var(--mk-star)}
html .mk-revitem__text{margin:0!important;padding:0!important;font-size:15px!important;line-height:1.55!important;color:var(--mk-ink)!important}
.mk-faq{display:grid;gap:12px;margin:0 0 18px}
.mk-faq__item{padding:14px 16px;border-radius:12px;background:var(--mk-bg);font-size:15px;line-height:1.5}
.mk-faq__q b,.mk-faq__a b{display:block;margin-bottom:2px;font-size:13px;font-weight:600;color:var(--mk-mut)}
.mk-faq__a{margin-top:10px;padding-top:10px;border-top:1px solid var(--mk-line)}
.mk-pg__more{margin-top:30px!important;padding:0!important}
@media (max-width:1180px){
  .mk-pg__grid,.mk-pg__grid--2{grid-template-columns:minmax(0,1fr) 368px}
  .mk-pg__info{grid-column:1;grid-row:2}
  .mk-buy{grid-column:2;grid-row:1 / span 2}
  .mk-pg__grid--2 .mk-buy{grid-row:1}
}
@media (max-width:860px){
  .mk-pg__grid,.mk-pg__grid--2{grid-template-columns:minmax(0,1fr)}
  .mk-gal,.mk-buy{position:static}
  .mk-buy{grid-column:1;grid-row:auto;order:2;box-shadow:none}
  .mk-pg__info{grid-column:1;grid-row:auto;order:3}
  .mk-specs--2{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .mk-gal{display:block;padding:8px}
  .mk-gal__thumbs{display:none}
  .mk-gal__strip{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .mk-gal__count{display:block}
  .mk-pg__info,.mk-buy{padding:16px}
  .mk-buy__new{font-size:28px}
  .mk-specs dt{flex-basis:44%}
}

/* ═══════════ Корзина, оформление, страница заказа ═══════════ */
html .mk-cart,html .mk-order,html .mk-me,html .mk-wish{padding:0!important;margin:0!important}
.mk-cart__grid{display:grid;grid-template-columns:minmax(0,1fr) 372px;gap:16px;align-items:start}
.mk-cart__main{display:grid;gap:16px;min-width:0}
.mk-lines{padding-top:6px;padding-bottom:6px}
.mk-lines > .mk-h2{margin:16px 0 4px}
.mk-line{display:grid;grid-template-columns:84px minmax(0,1fr) auto 110px 36px;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--mk-line)}
.mk-line:last-child{border-bottom:0}
.mk-line--ro{grid-template-columns:72px minmax(0,1fr) auto}
.mk-line__pic{display:block;width:84px;height:84px;border-radius:11px;background:#fff;overflow:hidden;box-shadow:inset 0 0 0 1px var(--mk-line)}
.mk-line--ro .mk-line__pic{width:72px;height:72px}
.mk-line__pic img{display:block;width:100%;height:100%;object-fit:contain}
.mk-line__info{min-width:0;display:grid;gap:4px}
.mk-line__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px;font-weight:500;line-height:1.35;color:var(--mk-ink)!important;text-decoration:none!important}
a.mk-line__name:hover{color:var(--accent-color)!important}
.mk-line__var,.mk-line__unit,.mk-line__shop{font-size:13.5px;line-height:1.35;color:var(--mk-mut)}
.mk-line__unit s{margin-left:4px;color:#a3a8b6}
.mk-line__shop a{color:var(--accent-color)!important;text-decoration:none!important}
.mk-line__sum{text-align:right;font-size:18px;font-weight:700;white-space:nowrap;color:var(--mk-ink)}
.mk-line__del{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:#9aa0b0!important;transition:background .15s,color .15s}
.mk-line__del::before{content:"";width:19px;height:19px;background:currentColor;-webkit-mask:var(--i-trash) center/contain no-repeat;mask:var(--i-trash) center/contain no-repeat}
.mk-line__del:hover{background:var(--mk-bg);color:#e0483f!important}
.mk-qty--sm{height:42px;border-radius:11px}
.mk-qty--sm button{width:36px;height:42px;font-size:20px}
.mk-qty--sm input{width:34px;height:42px;font-size:15px}
.mk-lines__back{display:inline-flex;align-items:center;gap:6px;margin:14px 0 12px;font-size:14.5px;font-weight:600;color:var(--accent-color)!important;text-decoration:none!important}
.mk-lines__back::before{content:"←"}
.mk-cart__formhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin:0 0 16px}
.mk-cart__formhead .mk-h2{margin:0}
.mk-cart__login{font-size:14.5px;font-weight:600;color:var(--accent-color)!important;text-decoration:none!important}
html .mk-cart__form.form,html .mk-me form.form.mk-card{padding:22px 24px!important;border:0!important;border-radius:var(--mk-r)!important;background:#fff!important;box-shadow:none!important;max-width:none!important;width:auto!important}
.mk-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}
.mk-select--lg{height:48px;border-radius:12px;font-size:15.5px;text-overflow:ellipsis}
html #sdek_info:empty,html #forpvz:empty{display:none!important}
.mk-sum{position:sticky;top:var(--st-stick);padding:22px;border-radius:var(--mk-r);background:#fff;box-shadow:0 6px 24px rgba(22,27,45,.07)}
.mk-sum__title{margin:0 0 14px;font-size:20px;font-weight:700;line-height:1.25;color:var(--mk-ink)}
.mk-sum__row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:15px;color:var(--mk-mut)}
.mk-sum__row b{font-weight:600;color:var(--mk-ink);white-space:nowrap}
.mk-sum__total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:14px 0 16px;padding-top:14px;border-top:1px solid var(--mk-line);font-size:17px;font-weight:600;color:var(--mk-ink)}
.mk-sum__total b{font-size:26px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
html .mk-sum .form__checkbox{align-items:flex-start;margin:0 0 14px!important;font-size:13.5px;line-height:1.4;color:var(--mk-mut)}
html .mk-sum .form__checkbox input{margin-top:1px;accent-color:var(--accent-color)}
html .form__checkbox-title{font-size:13.5px!important;font-weight:400!important;line-height:1.4!important;color:var(--mk-mut)!important}
html .form__checkbox-title a,html .form__checkbox a{font-size:inherit!important;font-weight:400!important;line-height:inherit!important;color:var(--accent-color)!important}
html .mk-sum .form__checkbox input,html .mk-form .form__checkbox input{width:18px;height:18px}
html .mk-form .form__checkbox{margin:4px 0 0!important}
.mk-sum__btn{width:100%;min-height:54px;font-size:17px}
.mk-sum__note{margin:12px 0 0;font-size:13px;line-height:1.45;color:var(--mk-mut)}
.mk-sum__wait{margin:0;padding:16px;border-radius:12px;background:var(--mk-soft);color:var(--accent-color);font-weight:600;text-align:center}
.mk-dl{margin:0;display:grid;gap:10px}
.mk-dl > div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:10px;font-size:14.5px;line-height:1.4}
.mk-dl dt{margin:0;color:var(--mk-mut)}
.mk-dl dd{margin:0;color:var(--mk-ink);overflow-wrap:anywhere}
.mk-order__head{display:flex;align-items:flex-start;gap:16px;margin:0 0 16px}
.mk-order__ok{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--mk-ok) 14%,#fff);color:var(--mk-ok)}
.mk-order__ok::before{content:"";width:24px;height:24px;background:currentColor;-webkit-mask:var(--i-check) center/contain no-repeat;mask:var(--i-check) center/contain no-repeat}
.mk-order__lead{max-width:44em;margin:8px 0 0;font-size:15px;line-height:1.5;color:var(--mk-mut)}
.mk-order__lead a{color:var(--accent-color)!important}
.mk-order__status{display:inline-block;margin-top:10px;padding:5px 12px;border-radius:999px;background:var(--mk-soft);color:var(--accent-color);font-size:13.5px;font-weight:600}
.mk-order__paynote{margin:0 0 12px;font-size:14px;line-height:1.5;color:var(--mk-mut)}
.mk-order__pay:empty{display:none}
html .mk-order__pay input[type=submit],html .mk-order__pay button{width:100%;min-height:52px;padding:0 20px;border:0;border-radius:12px;background:var(--accent-color);color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
html .mk-sum .docs{margin-top:16px;padding-top:14px}
@media (max-width:1040px){
  .mk-cart__grid{grid-template-columns:minmax(0,1fr)}
  .mk-sum{position:static;box-shadow:none}
}
@media (max-width:640px){
  .mk-line{grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"pic info del" "pic qty sum";gap:10px 12px;align-items:start;padding:14px 0}
  .mk-line__pic{grid-area:pic;width:64px;height:64px}
  .mk-line__info{grid-area:info}
  .mk-line .mk-qty{grid-area:qty;justify-self:start}
  .mk-line__sum{grid-area:sum;align-self:center;justify-self:end;font-size:17px}
  .mk-line__del{grid-area:del;justify-self:end;margin:-6px -8px 0 0}
  .mk-line--ro{grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:none}
  .mk-line--ro .mk-line__pic,.mk-line--ro .mk-line__info,.mk-line--ro .mk-line__sum{grid-area:auto;grid-column:auto}
  .mk-line--ro .mk-line__pic{width:56px;height:56px}
  .mk-fields{grid-template-columns:minmax(0,1fr)}
  html .mk-cart__form.form,html .mk-me form.form.mk-card{padding:16px!important}
  .mk-sum{padding:16px}
  .mk-order__head{gap:12px}
  .mk-order__ok{width:40px;height:40px}
}

/* ═══════════ Кабинет покупателя ═══════════ */
.mk-me__grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}
.mk-me__side{position:sticky;top:var(--st-stick);padding:18px;border-radius:var(--mk-r);background:#fff}
.mk-me__who{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--mk-line)}
.mk-me__ava{flex:none;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--mk-soft);color:var(--accent-color);font-size:19px;font-weight:700}
.mk-me__id{min-width:0;display:grid;gap:2px}
.mk-me__id b{font-size:15.5px;font-weight:700;line-height:1.25;color:var(--mk-ink);overflow-wrap:anywhere}
.mk-me__id span{font-size:13px;color:var(--mk-mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-me__nav{display:grid;gap:2px}
.mk-me__link{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:11px;font-size:15px;font-weight:500;color:var(--mk-ink)!important;text-decoration:none!important;transition:background .15s,color .15s}
.mk-me__link::before{content:"";flex:none;width:20px;height:20px;background:currentColor;opacity:.6;-webkit-mask:var(--i-orders) center/contain no-repeat;mask:var(--i-orders) center/contain no-repeat}
.mk-me__link--data::before{-webkit-mask-image:var(--i-user);mask-image:var(--i-user)}
.mk-me__link--wish::before{-webkit-mask-image:var(--i-heart);mask-image:var(--i-heart)}
.mk-me__link--cart::before{-webkit-mask-image:var(--i-bag);mask-image:var(--i-bag)}
.mk-me__link:hover{background:var(--mk-bg);color:var(--accent-color)!important}
.mk-me__link i{margin-left:auto;min-width:22px;padding:2px 7px;border-radius:999px;background:var(--mk-bg);font-style:normal;font-size:12.5px;font-weight:600;text-align:center;color:var(--mk-mut)}
html .mk-me .profile__exit{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--mk-line)}
html .mk-me .kon-exit{width:100%;box-sizing:border-box}
.mk-me__main{display:grid;gap:16px;min-width:0}
html .mk-me form.form.mk-card,html .mk-cart__form.form{margin:0!important}
html .mk-me .profile__orders{width:auto!important;padding:22px 24px!important;border:0!important;border-radius:var(--mk-r)!important}
.mk-orders{display:grid}
.mk-ord{display:grid;grid-template-columns:minmax(0,1fr) auto 110px;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--mk-line);text-decoration:none!important;color:var(--mk-ink)!important}
.mk-ord:last-child{border-bottom:0;padding-bottom:0}
.mk-ord:hover .mk-ord__n{color:var(--accent-color)}
.mk-ord__n{font-size:15.5px;font-weight:600}
.mk-ord__n small{margin-left:8px;font-size:13.5px;font-weight:400;color:var(--mk-mut)}
.mk-ord__st{padding:5px 12px;border-radius:999px;background:var(--mk-soft);color:var(--accent-color);font-size:13px;font-weight:600;white-space:nowrap}
.mk-ord__sum{text-align:right;font-size:16px;font-weight:700;white-space:nowrap}
.mk-seg{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px!important}
html .mk-seg .radiobtns__item{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0!important;padding:0 14px;border-radius:999px;background:var(--mk-bg);cursor:pointer;font-size:14.5px}
html .mk-seg .radiobtns__item:has(input:checked){background:var(--mk-soft);color:var(--accent-color);box-shadow:inset 0 0 0 1.5px var(--accent-color)}
html .mk-seg input{width:16px;height:16px;margin:0;accent-color:var(--accent-color)}
html .mk-seg .radiobtns__title{margin:0!important;font-size:14.5px!important;font-weight:500!important;color:inherit!important}
.mk-me__pass{margin:2px 0 12px}
.mk-note{padding:14px 16px;border-radius:12px;font-size:15px;font-weight:500}
.mk-note--ok{background:color-mix(in srgb,var(--mk-ok) 12%,#fff);color:#0a7a43}
@media (max-width:900px){
  .mk-me__grid{grid-template-columns:minmax(0,1fr)}
  .mk-me__side{position:static}
  .mk-me__nav{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .mk-ord{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
  .mk-ord__n small{display:block;margin:2px 0 0}
  .mk-ord__st{grid-column:1;justify-self:start}
  .mk-ord__sum{grid-column:2;grid-row:1}
  html .mk-me .profile__orders{padding:16px!important}
}

/* ═══════════ Текстовые страницы, контакты, вход, сравнение, 404 ═══════════ */
html .container > .contacts{padding:24px 28px!important;margin:0!important;border-radius:var(--mk-r);background:#fff}
html .contacts__title{margin:0 0 16px!important;text-align:left!important}
html .contacts__recs{max-width:860px}
html .profile:not(.mk-me) form.form:not(#user_form){border:0!important;border-radius:var(--mk-r)!important}
html .profile:not(.mk-me),html .favourites,html .comparison,html .basket,html .orders,html .error{padding-top:0!important;margin-top:0!important}
html .alert{margin:0 0 14px;padding:14px 16px;border-radius:12px;background:#fdecec;color:#b3261e;font-size:15px}
html .alert p{margin:0;color:inherit!important}
html .alert p + p{margin-top:4px}
@media (max-width:600px){html .container > .contacts{padding:16px!important}}

/* ═══════════ Сравнение ═══════════ */
.mk-cmp__diff{display:inline-flex;margin:0 0 12px}
.mk-cmp__box{padding:0;overflow:hidden}
.mk-cmp__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.mk-cmp__table{border-collapse:collapse;width:max-content;table-layout:fixed}
.mk-cmp__table td{box-sizing:border-box;width:240px;min-width:240px;padding:12px 16px;border-bottom:1px solid var(--mk-line);font-size:14.5px;line-height:1.4;color:var(--mk-ink);vertical-align:top;text-align:left;overflow-wrap:anywhere}
.mk-cmp__table tr:last-child td{border-bottom:0}
.mk-cmp__table td.mk-cmp__label{position:sticky;left:0;z-index:1;width:190px;min-width:190px;background:#fff;color:var(--mk-mut);font-size:14px;box-shadow:1px 0 0 var(--mk-line)}
.mk-cmp__top td{padding:16px}
.mk-cmp__card{position:relative;display:flex;flex-direction:column;height:100%}
.mk-cmp__del{position:absolute;right:0;top:0;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#fff;color:#9aa0b0!important;box-shadow:0 1px 5px rgba(22,27,45,.16)}
.mk-cmp__del::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:var(--i-x) center/contain no-repeat;mask:var(--i-x) center/contain no-repeat}
.mk-cmp__del:hover{color:#e0483f!important}
.mk-cmp__pic{display:block;aspect-ratio:1/1;border-radius:11px;background:#fff;overflow:hidden}
.mk-cmp__pic img{display:block;width:100%;height:100%;object-fit:contain}
.mk-cmp__price{margin-top:10px;font-size:19px;font-weight:700;line-height:1.2;color:var(--mk-ink)}
.mk-cmp__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:6px 0 10px;font-size:14px;line-height:1.35;color:var(--mk-ink)!important;text-decoration:none!important}
.mk-cmp__name:hover{color:var(--accent-color)!important}
.mk-cmp__card form{margin-top:auto}
.mk-cmp__rate{display:inline-flex;align-items:center;gap:5px;font-weight:600}
@media (max-width:600px){
  .mk-cmp__table td{width:170px;min-width:170px;padding:10px 12px;font-size:14px}
  .mk-cmp__table td.mk-cmp__label{width:112px;min-width:112px;font-size:13px}
  .mk-cmp__top td{padding:12px}
}

/* ═══════════ Бренды ═══════════ */
.mk-brandgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.mk-brand{padding:16px 18px;border-radius:var(--mk-r);background:#fff}
.mk-brand__head{display:flex;align-items:center;gap:12px;min-height:44px;font-size:16px;font-weight:700;line-height:1.3;color:var(--mk-ink)!important;text-decoration:none!important}
.mk-brand__head:hover{color:var(--accent-color)!important}
.mk-brand__img{flex:none;width:56px;height:56px;border-radius:10px;object-fit:contain;background:var(--mk-bg)}
.mk-brand__name{min-width:0;overflow-wrap:anywhere}
@media (max-width:600px){.mk-brandgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mk-brand{padding:12px 14px}}

/* ═══════════ Доводка 13.10: ровные ряды, без «дырок» ═══════════ */
/* раздел: 24 товара на странице делятся на 4, 3 и 2 без остатка — последний ряд всегда полный */
@media (min-width:1180px){html .categories__wrapper-main .items{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (min-width:981px) and (max-width:1179px){html .categories__wrapper-main .items{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (min-width:601px) and (max-width:980px){html .categories__wrapper-main .items{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}}
@media (min-width:601px) and (max-width:720px){html .categories__wrapper-main .items{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* главная и подборки на странице товара: число колонок задано по ширине, лишние карточки неполного ряда скрыты */
@media (min-width:1240px){
  html .populars .items,html .recent .items,html .foryou .items,html .favourites__catalog{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html .items:has(> .item:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (min-width:1000px) and (max-width:1239px){
  html .populars .items,html .recent .items,html .foryou .items,html .favourites__catalog{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  html .populars .items:not(#featured_products) > .item:nth-child(n+16):nth-child(-n+18),html .recent .items > .item:nth-child(n+11):nth-child(-n+12),html .mk-pg__more .items > .item:nth-child(6){display:none}
}
@media (min-width:760px) and (max-width:999px){
  html .populars .items,html .recent .items,html .foryou .items,html .favourites__catalog{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html .populars .items:not(#featured_products) > .item:nth-child(n+17):nth-child(-n+18),html .mk-pg__more .items > .item:nth-child(n+5){display:none}
}
@media (min-width:601px) and (max-width:759px){
  html .populars .items,html .recent .items,html .foryou .items,html .favourites__catalog{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
/* телефон: последняя карточка без пары занимает всю ширину — фото слева, цена и кнопка справа */
@media (max-width:600px){
  html .items > .item.pc:last-child:nth-child(odd){grid-column:1 / -1}
  html .items > .item.pc:last-child:nth-child(odd) .pc__body{display:grid;grid-template-columns:42% minmax(0,1fr);grid-template-rows:auto auto auto 1fr;column-gap:12px;align-content:start}
  html .items > .item.pc:last-child:nth-child(odd) .pc__media{grid-column:1;grid-row:1 / -1;align-self:start}
  html .items > .item.pc:last-child:nth-child(odd) .pc__body > :not(.pc__media):not(.pc__wish){grid-column:2}
  html .items > .item.pc:last-child:nth-child(odd) .pc__price{margin-top:4px}
  html .items > .item.pc:last-child:nth-child(odd) .pc__form,html .items > .item.pc:last-child:nth-child(odd) .pc__add--more{align-self:end}
  html .items > .item.pc:last-child:nth-child(odd) .pc__wish{right:auto;left:calc(42% - 40px)}
}
/* товар: начало описания рядом с фото */
.mk-short + .mk-lead,.mk-pg__brand + .mk-lead{margin-top:16px;padding-top:16px;border-top:1px solid var(--mk-line)}
.mk-lead__text{margin:0;font-size:14.5px;line-height:1.55;color:#3a4052}
@media (max-width:860px){.mk-lead{display:none}.mk-pg__info:not(:has(.mk-short,.mk-pg__brand)){display:none}}
html .mk-rev .reviews__title span{background:rgba(27,30,43,.08)!important;color:var(--mk-mut)!important}
html .mk-rev .reviews__title.active span{background:rgba(255,255,255,.2)!important;color:#fff!important}
/* страница товара: название товара в крошках не повторяем — оно в заголовке под ними */
html .mk-pg .breadcrumbs__items span.breadcrumbs__item{display:none}
html .mk-pg .breadcrumbs__items a.breadcrumbs__item:nth-last-child(2)::after{display:none}

/* ═══════════ Телефон: меню, полоса покупки, касания (13.10) ═══════════ */
/* меню по «бургеру»: город, разделы, страницы магазина — то, что на компьютере стоит в верхней строке шапки */
.mk-menu{position:fixed;inset:0 auto 0 0;width:min(86vw,340px);max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:#fff;color:var(--mk-ink);overflow-y:auto;-webkit-overflow-scrolling:touch}
.mk-menu::backdrop{background:rgba(20,24,40,.5)}
.mk-menu[open]{animation:mkMenuIn .22s ease}
@keyframes mkMenuIn{from{transform:translateX(-24px);opacity:0}to{transform:none;opacity:1}}
.mk-menu__in{padding:10px 12px calc(20px + env(safe-area-inset-bottom))}
.mk-menu__head{display:flex;align-items:center;justify-content:space-between;padding:6px 6px 10px 10px}
.mk-menu__head b{font-size:20px;font-weight:700}
.mk-menu__close{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:0;border-radius:50%;background:var(--mk-bg);color:var(--mk-ink);cursor:pointer}
.mk-menu__close::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-x) center/contain no-repeat;mask:var(--i-x) center/contain no-repeat}
.mk-menu__list{display:grid}
.mk-menu__row{display:flex;align-items:center;gap:12px;min-height:50px;padding:0 10px;border-radius:12px;font-size:16px;font-weight:500;color:var(--mk-ink)!important;text-decoration:none!important}
.mk-menu__row:active{background:var(--mk-bg)}
.mk-menu__row span{min-width:0;margin-right:auto}
.mk-menu__row i{min-width:22px;padding:2px 7px;border-radius:999px;background:var(--accent-color);color:#fff;font-style:normal;font-size:12.5px;font-weight:700;text-align:center}
.mk-menu__row[class*="--"]::before{content:"";flex:none;width:22px;height:22px;background:currentColor;opacity:.65;-webkit-mask:var(--i-grid) center/contain no-repeat;mask:var(--i-grid) center/contain no-repeat}
.mk-menu__row--city{margin-bottom:6px;background:var(--mk-bg);font-weight:600}
.mk-menu__row--city::before{-webkit-mask-image:var(--i-pin)!important;mask-image:var(--i-pin)!important}
.mk-menu__row--cart::before{-webkit-mask-image:var(--i-bag)!important;mask-image:var(--i-bag)!important}
.mk-menu__row--wish::before{-webkit-mask-image:var(--i-heart)!important;mask-image:var(--i-heart)!important}
.mk-menu__row--cmp::before{-webkit-mask-image:var(--i-scales)!important;mask-image:var(--i-scales)!important}
.mk-menu__row--user::before{-webkit-mask-image:var(--i-user)!important;mask-image:var(--i-user)!important}
.mk-menu__title{margin:14px 10px 4px;padding-top:14px;border-top:1px solid var(--mk-line);font-size:13px;font-weight:600;color:var(--mk-mut)}
@media (prefers-reduced-motion:reduce){.mk-menu[open]{animation:none}}
/* полоса покупки (товар) и итога (корзина) */
.mk-stick{display:none}
@media (max-width:860px){
  .mk-stick{position:fixed;left:0;right:0;bottom:0;z-index:98;display:flex;align-items:center;gap:12px;padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:#fff;
    box-shadow:0 -1px 0 var(--mk-line),0 -8px 20px rgba(20,24,40,.08);transform:translateY(120%);visibility:hidden;transition:transform .22s ease,visibility 0s .22s}
  .mk-stick.is-on{transform:none;visibility:visible;transition:transform .22s ease}
  .mk-stick__info{min-width:0;margin-right:auto;display:grid;gap:1px}
  .mk-stick__price{font-size:18px;font-weight:700;line-height:1.2;color:var(--mk-ink);white-space:nowrap}
  .mk-stick__name{font-size:12.5px;line-height:1.25;color:var(--mk-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mk-stick__btn{flex:none;min-height:46px;padding:0 20px;font-size:15.5px}
}
@media (max-width:555px){
  .mk-stick{bottom:calc(58px + env(safe-area-inset-bottom));padding-bottom:8px}
  html body.has-mkstick .footer.kf{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
  html body.has-mkstick #cart_informer_client.informer{bottom:calc(138px + env(safe-area-inset-bottom))}
  html body.has-mkstick .cookie-bnr.kc{bottom:calc(134px + env(safe-area-inset-bottom))}
  /* плашка cookies — одной невысокой строкой, не закрывает карточки */
  html .cookie-bnr.kc{flex-wrap:nowrap;align-items:center;gap:10px;padding:10px 10px 10px 14px;border-radius:14px;bottom:calc(70px + env(safe-area-inset-bottom))}
  html .cookie-bnr.kc .kc__ico,html .cookie-bnr.kc .kc__title{display:none}
  html .cookie-bnr.kc .kc__body{flex:1 1 auto}
  html .cookie-bnr.kc .kc__text{display:block;font-size:12.5px;line-height:1.35}
  html .cookie-bnr.kc .kc__ok{flex:none;width:auto;height:38px;padding:0 14px;font-size:13.5px;box-shadow:none}
}
/* пальцем удобно: ссылки-действия не ниже 36 px */
@media (max-width:860px){
  .mk-sec__all{min-height:36px}
  .mk-pg__meta{gap:2px 16px}
  .mk-pg__meta a{display:inline-flex;align-items:center;min-height:34px}
  .mk-links{gap:2px}
  .mk-links a{min-height:40px}
  .mk-lines__back{min-height:40px;margin:6px 0}
  .mk-cart__login{display:inline-flex;align-items:center;min-height:36px}
  .mk-filters__reset{padding:10px 0}
  .mk-link{padding:7px 0;margin-top:8px}
  .mk-line__name{padding:2px 0}
  .mk-file{min-height:40px}
}
/* всплывающие окна на телефоне (город, «Поделиться», обращение): во всю ширину экрана с полями, прокрутка внутри */
@media (max-width:600px){
  html dialog.anketa__popup,html dialog.contacts__popup{box-sizing:border-box;position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;transform:none!important;
    width:calc(100vw - 24px)!important;max-width:520px!important;height:fit-content!important;max-height:86vh;margin:auto!important;padding:22px 18px 20px!important;border-radius:18px!important;overflow-y:auto;-webkit-overflow-scrolling:touch}
  html .anketa__popup-close,html .contacts__popup-close{top:12px!important;right:12px!important;width:40px!important;height:40px!important;padding:10px!important}
  html .cities__title,html .contacts__popup-title,html .popup_title{margin:0 44px 14px 0!important;font-size:20px!important;line-height:1.25!important;text-align:left!important}
  html .cities__items{display:block!important;width:auto!important;max-width:none!important;columns:auto!important}
  html .cities__item{display:block!important;width:auto!important;margin:0 0 4px!important}
  html .cities__item-citi{display:inline-flex!important;align-items:center;min-height:36px;padding:0 13px!important;font-size:14.5px!important}
  html .contacts__popup form,html .contacts__popup .contacts__form{width:auto!important;max-width:none!important}
  html .contacts__popup input:not([type=checkbox]),html .contacts__popup textarea{box-sizing:border-box;width:100%!important;max-width:none!important}
  html .contacts__popup textarea{height:112px!important;min-height:0!important}
  html .contacts__popup .contacts__form{margin-top:0!important}
  html #cities_modal .cities__items{max-height:none!important;height:auto!important;overflow:visible!important}
}
