/* DONSTORE: главная + мобильная нижняя панель. Не зависит от tailwind.min.css */
.hm{flex:1;width:100%;max-width:1320px;margin:0 auto;padding:1rem 1rem 2rem}
@media(min-width:1024px){.hm{padding:1.5rem 1.5rem 3rem}}
.hm section+section{margin-top:2rem}
.hm a{text-decoration:none}

/* Баннер */
.hm-banner{position:relative;overflow:hidden;border-radius:var(--r3);background:#e8edf3;aspect-ratio:4/5}
.hm-banner.no-m{aspect-ratio:16/9}
@media(min-width:640px){.hm-banner,.hm-banner.no-m{aspect-ratio:21/8}}
.hm-slide,.hm-slide picture,.hm-slide img{position:absolute;inset:0;width:100%;height:100%;display:block}
.hm-slide img{object-fit:cover}
.hm-slide.plain{background:linear-gradient(135deg,var(--g),var(--gd))}
.hm-ov{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:.5rem;padding:1.25rem 1.25rem 4rem;color:#fff;background:linear-gradient(0deg,rgba(15,23,42,.78),rgba(15,23,42,.1) 60%,transparent)}
.hm-ov h2{font-size:clamp(1.5rem,4vw,2.75rem);font-weight:700;line-height:1.1;letter-spacing:-.02em;max-width:18ch}
.hm-ov p{max-width:42ch;opacity:.92}
.hm-cta{position:absolute;left:1.25rem;bottom:1.1rem;background:#fff;color:var(--ink);font-weight:600;font-size:.9375rem;padding:.65rem 1.1rem;border-radius:var(--r1)}
.hm-bn{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:2.5rem;height:2.5rem;border:0;border-radius:50%;background:rgba(15,23,42,.45);color:#fff;display:none;align-items:center;justify-content:center;cursor:pointer}
.hm-bn:hover{background:var(--g)}
.hm-bn.prev{left:.75rem}.hm-bn.next{right:.75rem}
@media(min-width:640px){.hm-bn{display:flex}}
.hm-dots{position:absolute;right:1rem;bottom:1.25rem;z-index:2;display:flex;gap:.4rem}
.hm-dots button{width:.5rem;height:.5rem;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.65);cursor:pointer;transition:width .2s}
.hm-dots button.on{width:1.5rem;background:#fff}

/* Быстрые ссылки */
.hm-quick{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-top:1rem}
@media(min-width:1024px){.hm-quick{grid-template-columns:repeat(4,1fr)}}
.hm-q{display:flex;align-items:center;gap:.75rem;padding:.85rem;background:#fff;border:1px solid var(--line);border-radius:var(--r2);color:var(--ink);transition:border-color .15s}
.hm-q:hover,.hm-cat:hover{border-color:var(--g)}
.hm-ico{flex:none;width:2.5rem;height:2.5rem;display:grid;place-items:center;border-radius:var(--r1);background:#ecfdf3;color:var(--g);font-size:1.15rem}
.hm-q b{display:block;font-size:.9375rem;font-weight:600}
.hm-q small{display:block;color:var(--mut);font-size:.8125rem;line-height:1.3}

/* Заголовки секций */
.hm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.hm-head h2{font-size:1.375rem;font-weight:700;letter-spacing:-.01em;line-height:1.2}
@media(min-width:640px){.hm-head h2{font-size:1.75rem}}
.hm-link{color:var(--gd);font-weight:600;font-size:.9375rem}
.hm-pager{display:flex;align-items:center;gap:.5rem;color:var(--mut);font-size:.875rem}
.hm-pager button{width:2.5rem;height:2.5rem;border:1px solid var(--line);border-radius:var(--r1);background:#fff;color:var(--ink);cursor:pointer}
.hm-pager button:disabled{opacity:.4;cursor:default}

/* Категории */
.hm-cats{display:flex;align-items:stretch;gap:.75rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem;scrollbar-width:none}
.hm-cats::-webkit-scrollbar{display:none}
@media(min-width:640px){.hm-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}}
@media(min-width:768px){.hm-cats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.hm-cats{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}}
@media(min-width:1280px){.hm-cats{grid-template-columns:repeat(5,minmax(0,1fr))}}
.hm-cat{flex:none;scroll-snap-align:start;width:260px;display:flex;flex-direction:column;gap:.1rem;padding:.9rem;background:#fff;border:1px solid var(--line);border-radius:var(--r2);transition:border-color .15s}
@media(min-width:640px){.hm-cat{width:auto}}
.hm-cat-h{display:flex;align-items:center;gap:.6rem;margin-bottom:.4rem;color:var(--ink);font-weight:600}
.hm-cat-h .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-cat em{font-style:normal;color:var(--mut);font-size:.8125rem;font-weight:400}
.hm-cat ul{margin:0;padding:0;list-style:none}
.hm-cat li a{display:flex;justify-content:space-between;gap:.5rem;padding:.3rem 0;color:var(--mut);font-size:.875rem}
.hm-cat li a:hover{color:var(--gd)}
.hm-cat li a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-cat-all{margin-top:auto;padding-top:.5rem;color:var(--gd);font-weight:600;font-size:.875rem}
.sk-cat{flex:none;width:260px;height:12rem}
@media(min-width:640px){.sk-cat{width:auto}}

/* Товары */
.hm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
@media(min-width:768px){.hm-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}}
@media(min-width:1024px){.hm-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}}
.pc{position:relative;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--r2);transition:border-color .15s,box-shadow .15s}
.pc:hover{border-color:#b7e1c1;box-shadow:var(--sh)}
.pc.yellow{border:2px solid #eab308}.pc.lime{border:2px solid var(--g)}.pc.red{border:2px solid #ef4444}
.pc-shop{padding:.3rem .5rem;text-align:center;font-size:.8125rem;font-weight:600;color:#fff;background:var(--g)}
.pc-shop.yellow{background:#facc15;color:#422006}.pc-shop.red{background:#ef4444}
.pc-img{position:relative;display:block;aspect-ratio:1;overflow:hidden;background:#fff}
.pc-img img{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;object-fit:contain;padding:.5rem}
.pc-off{position:absolute;left:.5rem;top:.5rem;padding:.15rem .5rem;border-radius:8px;background:#ef4444;color:#fff;font-size:.8125rem;font-weight:600}
.pc-fav{position:absolute;right:.5rem;top:.5rem;z-index:1;width:2.25rem;height:2.25rem;border:0;border-radius:var(--r1);background:rgba(255,255,255,.92);color:#94a3b8;cursor:pointer}
.pc-body{display:flex;flex-direction:column;gap:.4rem;flex:1;padding:.75rem}
.pc-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;font-size:.9375rem;font-weight:500;line-height:1.35;color:var(--ink)}
.pc-price b{font-size:1.25rem;font-weight:700}
.pc-price s{margin-left:.4rem;color:#94a3b8;font-size:.875rem}
.pc-foot{display:flex;align-items:center;gap:.5rem;margin-top:auto}
.pc-rate{color:#d97706;font-size:.8125rem;font-weight:600}
.pc-add{flex:1;padding:.6rem;border:0;border-radius:var(--r1);background:var(--g);color:#fff;font-weight:600;cursor:pointer;transition:background .15s}
.pc-add:hover{background:var(--gd)}
.hm-more{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:1.5rem}
.hm-btn{padding:.8rem 1.4rem;border:1px solid var(--line);border-radius:var(--r1);background:#fff;color:var(--ink);font-weight:600}
.hm-btn.pri{background:var(--g);border-color:var(--g);color:#fff}
.hm-btn:hover{border-color:var(--g)}

/* Нижняя панель на телефоне */
.tabbar{display:none}
@media(max-width:1023px){
 .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
 body{padding-bottom:calc(3.6rem + env(safe-area-inset-bottom))}
}
.tabbar a{position:relative;display:flex;flex-direction:column;align-items:center;gap:.1rem;padding:.5rem 0;color:var(--mut);font-size:.6875rem;font-weight:500;text-decoration:none}
.tabbar a i{font-size:1.4rem}
.tabbar a.on{color:var(--g)}
.tabbar b{position:absolute;top:.2rem;left:55%;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:99px;background:var(--g);color:#fff;font-size:.6875rem;line-height:1rem;text-align:center}
