/* HotWell.kz — компактный верх страниц каталога на телефоне (23.11.2026). Разметку готовит catalog-mobile.js и
   включает класс html.hwct-on только на ширине до 768 px; компьютерная версия не меняется. Цвета — из темы сайта. */
.hwct-on{--hwg:var(--green,#284e3e);--hwi:var(--ink,#1c332d);--hwm:var(--muted,#58685e);--hwa:var(--accent,#e9eee2);--hwl:var(--line,#dfe3d8);--hwe:cubic-bezier(.2,.8,.2,1)}

/* 1. Карточка-заголовок */
.hwct-on .hwct-hero{grid-column:1/-1;position:relative;overflow:hidden;margin:0 0 12px;padding:14px 16px 15px;border-radius:20px;
 background:linear-gradient(125deg,color-mix(in srgb,var(--hwa) 80%,#fff),#fff 70%);border:1px solid var(--hwl);animation:hwct-rise .6s var(--hwe) both}
.hwct-on .hwct-hero::after{content:"";position:absolute;right:-30px;top:-40px;width:140px;height:140px;border-radius:50%;
 background:radial-gradient(closest-side,color-mix(in srgb,var(--hwg) 14%,transparent),transparent);pointer-events:none}
.hwct-on .hwct-hero .wd-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;margin:0 0 6px;padding:0;font-size:12.5px;line-height:1.4;color:var(--hwm)}
.hwct-on .hwct-hero .wd-breadcrumbs a{color:var(--hwm)!important;text-decoration:none}
.hwct-on .hwct-hero .wd-breadcrumbs .wd-delimiter{margin:0 6px;opacity:.5}
.hwct-on .hwct-hero .wd-breadcrumbs .wd-last{color:var(--hwi);font-weight:600}
.hwct-on .hwct-hero h1{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;min-height:0!important;
 font-size:clamp(22px,6.4vw,27px)!important;line-height:1.15!important;letter-spacing:-.01em;color:var(--hwi)}
.hwct-on .hwct-total{display:inline-flex;align-items:center;gap:6px;margin-top:9px;padding:4px 10px 4px 8px;border-radius:999px;background:#fff;
 border:1px solid var(--hwl);font-size:12.5px;color:var(--hwm);font-variant-numeric:tabular-nums}
.hwct-on .hwct-total b{color:var(--hwi)}
.hwct-on .hwct-total.hwct-pop{animation:hwct-pop .45s cubic-bezier(.3,1.6,.5,1)}
.hwct-on .hwct-total i{width:7px;height:7px;border-radius:50%;background:var(--hwg);box-shadow:0 0 0 0 color-mix(in srgb,var(--hwg) 40%,transparent);animation:hwct-dot 2.4s ease-out infinite}

/* Прежние части верха, которые теперь в карточке или в строке инструментов */
.hwct-on .shop-loop-head{display:none!important}
.hwct-on .wd-show-sidebar-btn{display:none!important}

/* 2. Строка «Фильтры · Сортировка · Вид» — прилипает под шапкой */
.hwct-on .hwct-sentinel{height:1px;margin-bottom:-1px}
.hwct-on .hwct-bar{position:sticky;top:var(--hwct-top,0px);z-index:25;display:flex;align-items:center;gap:8px;margin:0 calc(50% - 50vw) 14px;padding:8px calc(50vw - 50%);
 background:color-mix(in srgb,var(--paper,#f8f7f2) 86%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);
 transition:box-shadow .3s,background .3s;animation:hwct-rise .6s var(--hwe) .08s both}
.hwct-on .hwct-bar.is-stuck{box-shadow:0 10px 24px -18px rgba(20,30,25,.45);border-bottom:1px solid var(--hwl)}
.hwct-on .hwct-fbtn{position:relative;overflow:hidden;flex:none;display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 15px 0 13px;border:0;border-radius:999px;
 background:var(--hwg);color:#fff;font:inherit;font-size:14.5px;font-weight:700;box-shadow:0 8px 18px -10px color-mix(in srgb,var(--hwg) 80%,transparent);
 -webkit-tap-highlight-color:transparent;transition:transform .25s var(--hwe),box-shadow .25s;cursor:pointer}
.hwct-on .hwct-fbtn svg{width:20px;height:20px;flex:none}
.hwct-on .hwct-fbtn svg circle{fill:var(--hwg);transition:transform .5s var(--hwe)}
.hwct-on .hwct-fbtn::after{content:"";position:absolute;top:0;bottom:0;left:-50%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);
 transform:skewX(-20deg);animation:hwct-sheen 5s var(--hwe) 1.2s infinite}
.hwct-on .hwct-fbtn:active{transform:scale(.95)}
.hwct-on .hwct-fbtn:active .hwct-k1,.hwct-on .hwct-fbtn[aria-expanded="true"] .hwct-k1{transform:translateX(6px)}
.hwct-on .hwct-fbtn:active .hwct-k2,.hwct-on .hwct-fbtn[aria-expanded="true"] .hwct-k2{transform:translateX(-6px)}
.hwct-on .hwct-k1{animation:hwct-k1 5s var(--hwe) 1.2s infinite}
.hwct-on .hwct-k2{animation:hwct-k2 5s var(--hwe) 1.2s infinite}
.hwct-on .hwct-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#fff;color:var(--hwg);font-size:12px;font-weight:800}
.hwct-on .hwct-badge[hidden]{display:none}
.hwct-on .hwct-badge.hwct-pop{animation:hwct-pop .45s cubic-bezier(.3,1.6,.5,1)}

.hwct-on .hwct-sort{position:relative;flex:1 1 0;min-width:0;display:flex;align-items:center;height:42px;border-radius:999px;background:#fff;border:1px solid var(--hwl);color:var(--hwi)}
.hwct-on .hwct-sort>svg{position:absolute;left:12px;width:18px;height:18px;color:var(--hwg);pointer-events:none}
.hwct-on .hwct-sort form{flex:1 1 0;width:100%!important;min-width:0;max-width:none!important;margin:0!important;padding:0!important;float:none!important}
.hwct-on .hwct-sort select{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;height:40px;margin:0;padding:0 26px 0 36px!important;}
@media (max-width:420px){.hwct-on .hwct-sort>svg{display:none}.hwct-on .hwct-sort select{padding-left:14px!important}}
.hwct-on .hwct-sort select{border:0!important;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23697466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center/16px!important;
 -webkit-appearance:none;appearance:none;box-shadow:none!important;font:inherit;font-size:13.5px!important;color:var(--hwi);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-radius:999px}
.hwct-on .hwct-sort:focus-within{outline:2px solid var(--hwg);outline-offset:2px}

.hwct-on .hwct-view{flex:none;display:flex}
.hwct-on .hwct-view:empty{display:none}
.hwct-on .hwct-view .hw-mobile-grid-control{display:flex!important;width:auto!important;min-width:0!important;flex:none!important;gap:0;margin:0!important;padding:3px!important;border:1px solid var(--hwl);border-radius:999px;background:#fff;position:relative}
.hwct-on .hwct-view .hw-mobile-grid-control>span{display:none!important}
.hwct-on .hwct-view .hw-mobile-grid-control button{position:relative;z-index:1;flex:none!important;width:36px!important;min-width:0!important;max-width:36px!important;height:34px;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;
 background:transparent!important;color:var(--hwm)!important;font-size:0!important;box-shadow:none!important;transition:color .3s,background .35s var(--hwe)}
.hwct-on .hwct-view .hw-mobile-grid-control button::before{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;background:currentColor;
 -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.hwct-on .hwct-view .hw-mobile-grid-control button[data-columns="1"]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='14' height='14' rx='3'/%3E%3C/svg%3E")}
.hwct-on .hwct-view .hw-mobile-grid-control button[data-columns="2"]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='6' rx='1.6'/%3E%3Crect x='9' y='1' width='6' height='6' rx='1.6'/%3E%3Crect x='1' y='9' width='6' height='6' rx='1.6'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1.6'/%3E%3C/svg%3E")}
/* Одна кнопка: показывает вид, на который переключит (активный вариант скрыт) */
.hwct-on .hwct-view .hw-mobile-grid-control button[aria-pressed="true"]{display:none!important}
.hwct-on .hwct-view .hw-mobile-grid-control button[aria-pressed="false"]{color:var(--hwg)!important;animation:hwct-pop .4s cubic-bezier(.3,1.6,.5,1)}
.hwct-on .hwct-view .hw-mobile-grid-control button:active{transform:scale(.88)}

/* 3. Шторка с фильтрами */
.hwct-lock,.hwct-lock body{overflow:hidden!important}
.hwct-sheet{position:fixed;inset:0;z-index:2147483000}
.hwct-sheet[hidden]{display:none}
.hwct-backdrop{position:absolute;inset:0;background:rgba(16,24,20,.42);opacity:0;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:opacity .4s,backdrop-filter .4s,-webkit-backdrop-filter .4s}
.hwct-sheet.is-open .hwct-backdrop{opacity:1;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.hwct-panel{position:absolute;left:0;right:0;bottom:0;max-height:88vh;max-height:88dvh;display:flex;flex-direction:column;background:#fff;border-radius:24px 24px 0 0;
 box-shadow:0 -20px 50px -20px rgba(16,24,20,.45);transform:translateY(104%);transition:transform .48s cubic-bezier(.22,1.15,.36,1);padding-bottom:env(safe-area-inset-bottom)}
.hwct-sheet.is-open .hwct-panel{transform:translateY(0)}
.hwct-panel.is-drag{transition:none}
.hwct-grab{display:grid;place-items:center;height:22px;flex:none;touch-action:none}
.hwct-grab i{width:42px;height:5px;border-radius:5px;background:#d5d9d2}
.hwct-sheet-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 10px 20px;border-bottom:1px solid var(--line,#dfe3d8);touch-action:none}
.hwct-sheet-head b{font-size:18px;line-height:1.25;color:var(--ink,#1c332d)}
.hwct-x{display:grid;place-items:center;width:38px;height:38px;flex:none;border:0;border-radius:50%;background:var(--accent,#e9eee2);color:var(--ink,#1c332d);cursor:pointer;transition:transform .3s}
.hwct-x svg{width:18px;height:18px}
.hwct-x:active{transform:rotate(90deg) scale(.9)}
.hwct-sheet-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.hwct-sheet details.hwct-in-sheet{overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.hwct-sheet details.hwct-in-sheet>summary{display:none!important}
.hwct-sheet .hw-catalog-filter-body{padding:12px 20px 0!important;margin:0!important;border:0!important}
.hwct-sheet .hw-filter-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
.hwct-sheet .hw-filter-group{margin:0!important;padding:12px 14px 14px!important;border:1px solid var(--line,#dfe3d8)!important;border-radius:16px!important;background:#fbfbf8}
.hwct-sheet .hw-filter-actions{position:sticky;bottom:0;z-index:2;display:grid!important;grid-template-columns:1fr auto!important;align-items:center;gap:8px!important;margin:14px -20px 0!important;padding:12px 20px!important;
 background:linear-gradient(rgba(255,255,255,.85),#fff 30%);border-top:1px solid var(--line,#dfe3d8)}
.hwct-sheet .hw-catalog-filter-apply,.hwct-sheet .hw-filter-reset{width:auto!important;margin:0!important;min-height:0!important}
.hwct-sheet .hw-catalog-filter-apply{height:48px;border-radius:14px!important;white-space:nowrap}
.hwct-sheet .hw-filter-group>legend{float:left;width:100%;margin:0 0 8px!important;padding:0!important;font-size:14px;font-weight:700;color:var(--ink,#1c332d)}
.hwct-sheet .hw-filter-group>legend+*{clear:both}
.hwct-sheet .hw-filter-reset{height:48px;padding:0 14px!important;border-radius:14px!important}
.hwct-sheet .hw-filter-note{margin:12px 0 16px!important;font-size:12px!important}
.hwct-sheet.is-open .hw-filter-group,.hwct-sheet.is-open .hw-filter-intro,.hwct-sheet.is-open .hw-filter-note{animation:hwct-in .55s var(--hwe,cubic-bezier(.2,.8,.2,1)) both;animation-delay:calc(.12s + var(--d,0) * 60ms)}

@keyframes hwct-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes hwct-in{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
@keyframes hwct-dot{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green,#284e3e) 45%,transparent)}70%,100%{box-shadow:0 0 0 7px transparent}}
@keyframes hwct-sheen{0%,70%{transform:skewX(-20deg) translateX(0)}100%{transform:skewX(-20deg) translateX(420%)}}
@keyframes hwct-k1{0%,62%,100%{transform:none}70%,80%{transform:translateX(6px)}}
@keyframes hwct-k2{0%,62%,100%{transform:none}70%,80%{transform:translateX(-6px)}}
@keyframes hwct-pop{0%{transform:scale(.4)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
 .hwct-on *,.hwct-on *::before,.hwct-on *::after,.hwct-sheet *{animation:none!important;transition:none!important}
}
