/* ============================================================
   Каталог-drawer. Шапка = .wd-heading (стиль темы).
   Полосы прокрутки: нативные, серый 2px, скрыты до скролла.
   ============================================================ */

/* Скролл: кастомный индикатор .delive-sb — он умеет плавно появляться/исчезать */
:root { --delive-sb-w: 2px; --delive-sb-color: rgba(0,0,0,.1); --delive-bar-h: 55px; }
body.delive-locked { overflow: hidden; }

/* подложка под каталогом */
.delive-cat-overlay.open { opacity: 1; visibility: visible; }
.delive-cat-overlay {
    position: fixed; inset: 0; visibility: hidden; 
    opacity: 0; transition: .3s; z-index: 99999;
    background-color: rgb(187 187 187 / 20%) !important;
    overscroll-behavior: contain; touch-action: none;
    backdrop-filter: blur(15px) !important;
}
/* окно каталога */
.delive-cat-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 85%;
    background: #fff; transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; 
    overscroll-behavior: contain; z-index: 100000;
}
.delive-cat-drawer.open { transform: translateX(0); }
.delive-cat-drawer * { box-sizing: border-box; }
.delive-cat-drawer > .wd-heading { flex: 0 0 auto; }
.delive-cat-body { flex: 1 1 auto; min-height: 0; }
.delive-cat-body .eshop-catalog { height: 100%; }

/* сетка: левая колонка */
.eshop-catalog { position: relative; display: grid; grid-template-columns: 95px 1fr; background: #fff; }

/* вертикальный разделитель по  ширине левой колонки */
.eshop-catalog::after {
    content: ''; position: absolute; top: 12px; bottom: 12px; left: 95px;
    width: 1px; background: #e3e6ea; pointer-events: none; z-index: 2; 
}
.eshop-cats, .eshop-detail {
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
}
.eshop-cats::-webkit-scrollbar, .eshop-detail::-webkit-scrollbar { width: var(--delive-sb-w); height: var(--delive-sb-w); }
.eshop-cats::-webkit-scrollbar-track, .eshop-detail::-webkit-scrollbar-track { background: transparent; }
.eshop-cats::-webkit-scrollbar-thumb, .eshop-detail::-webkit-scrollbar-thumb { background: transparent; }
@-moz-document url-prefix() {
    .eshop-cats, .eshop-detail { scrollbar-width: thin; scrollbar-color: transparent transparent; }
}
/* кастомный индикатор: серый, тонкий, плавный fade */
.delive-sb {
    position: fixed; width: var(--delive-sb-w); border-radius: 2px;
    transition: opacity .4s ease; /* плавное ЗАТУХАНИЕ */
    background: var(--delive-sb-color);
    opacity: 0; z-index: 100000;
    pointer-events: none; 
}
.delive-sb.show {
    opacity: 1;
    transition: opacity .1s ease; /* быстрое появление */
}
.eshop-cats { background: #fff; padding: 12px 8px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.eshop-tile {
    position: relative; display: block; text-decoration: none;
    width: 100%; max-width: 100%; aspect-ratio: 1 / 1;
    border-radius: 8px; overflow: hidden; background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s ease; flex: 0 0 auto;
}
.eshop-tile:active { transform: scale(.97); }

/* эмодзи-заглушка в плитке */
.tile-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #f5f5f5; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* подпись на карточке */
.tile-label {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 2px;
    color: #1c1c1c; font-weight: 700; font-size: 12px; line-height: 1.3;
    text-align: center; font-family: inherit; text-transform: none;
    background: linear-gradient(to top, rgba(245,245,245,0.95) 0%, rgba(245,245,245,0) 100%);
}
.eshop-cat.active {
    border: 2px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#ffc107,#fa9e00) border-box;
}

/* отступы правой колонки */
.eshop-detail { padding: 8px 11px 22px; background: #fff; }
.eshop-hint { color: #999; padding: 40px 0; text-align: center; }
.eshop-lvl-divider { height: 1px; background: #e3e6ea; margin: 14px 0 12px; }
.eshop-lvl:first-child > .eshop-lvl-divider { display: none; }

/* заголовки уровней */
.eshop-lvl-title {
    font-family: var(--wd-title-font, "Mulish", Arial, sans-serif);
    font-size: 15px; font-weight: 800; color: #1c1c1c;
    margin: 0 0 12px; line-height: 1.25; text-transform: none; letter-spacing: normal;
}
.eshop-lvl-subh { font-size: 10px; font-weight: 700; color: #8a8f98; text-transform: uppercase; letter-spacing: .3px; margin: 14px 0 10px; }

/* карточки в правой сетке */
.eshop-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; }
.eshop-node { margin: 0; }
.eshop-empty { color: #999; text-align: center; padding: 24px 0; }

.delive-spin-wrap { padding: 22px 0; }
.delive-spinner {
    width: 30px; height: 30px; margin: 0 auto;
    border: 2px solid #f3f3f3; border-top-color: rgba(0,0,0,.15); border-radius: 50%;
    animation: deliveSpin .5s linear infinite;
}
@keyframes deliveSpin { to { transform: rotate(360deg); } }

.delive-plugin-stores { margin-top: 4px; }
.delive-plugin-stores ul, .delive-plugin-stores .store-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: 12px; }
.delive-plugin-stores li, .delive-plugin-stores .store-item { margin: 0; text-align: center; }
.delive-plugin-stores img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.delive-plugin-stores a { color: #1c1c1c; font-weight: 700; font-size: 12px; text-decoration: none; }