/* ===== Snow Limit – подобрения по принципите на Apple (одит 22.11.2026): по-ниска горна лента, четими имена,
   едно главно действие, спокойни карти, една скала за шрифт/заобляния/натиск. Зарежда се след snowlimit.css. ===== */
:root {
  --spring: cubic-bezier(.22, 1, .36, 1);
  /* скала: шрифт 12/13/15/17/20/24/28/34 · заобляния 8/14/20/99 */
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 15px; --fs-l: 17px; --fs-xl: 20px; --fs-2: 24px; --fs-3: 28px;
  --r-s: 8px; --r-m: 14px; --r-l: 20px;
  --img-bg: #f3f5f8;
}

/* ---------- Натиск: всичко, което се натиска, отговаря веднага ---------- */
a, button, label, summary, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn, .add, .fav, .fav-btn, .acc-btn, .cart-btn, .q-tog, .vars-o a, .thumbs button, .rail-btn, .all-cats, .nav-grp, .catlinks a, .side-toggle, .pc { transition: scale .28s var(--spring), background-color .2s, border-color .2s, color .2s, box-shadow .2s, opacity .2s; }
.btn:active, .vars-o a:active, .thumbs button:active, .rail-btn:active, .all-cats:active, .nav-grp:active, .catlinks a:active, .side-toggle:active, .pc:active { scale: .96; transition-duration: .08s; }
.add:active, .fav:active, .fav-btn:active, .acc-btn:active, .cart-btn:active, .q-tog:active { scale: .9; transition-duration: .08s; }

/* ---------- 4. Карти: еднакъв фон на снимките, по-малко шум ---------- */
.card { border-radius: var(--r-l); }
.card .img { background: var(--img-bg); border-radius: var(--r-m); }
.card .img img { mix-blend-mode: multiply; }          /* белите ленти на снимките се сливат с фона */
.card .name { font-size: var(--fs-m); font-weight: 600; line-height: 1.3; }
.card .name .ey, .p-ey { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card .name .ey { margin-bottom: 3px; }
.card .price { font-size: var(--fs-l); }
.card .price .lp { font-size: var(--fs-s); }
@media (hover: hover) and (pointer: fine) {
  /* „+“ се показва при посочване на картата – стоката е на първо място */
  .card .cf .add { opacity: 0; scale: .85; }
  .card:hover .cf .add, .card:focus-within .cf .add { opacity: 1; scale: 1; }
}

/* началната: 2 големи + 6 малки групи → последният ред без празни места */
@media (min-width: 961px) { .sl-cat-g:has(> .sl-cat:nth-child(8):last-child) > .sl-cat:nth-child(n+7) { grid-column: span 2; } }

/* ---------- 3. Страница на стоката: едно главно действие ---------- */
.product .info .p-ey { margin: 0 0 6px; }
.product .info h1 { font-family: var(--font); text-transform: none; font-size: var(--fs-3); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.product .gallery .big, .buybox { border-radius: var(--r-l); }
.buy-row { display: flex; width: 100%; flex-wrap: nowrap; gap: 10px; }
.buy-row > .btn, .buy-row > .step { flex: 1; min-width: 0; height: 54px; font-size: 16px; white-space: nowrap; }
.buy-row .fav.big { flex: none; width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
.buy-row .fav.big span { display: none; }
.quick { margin-top: 6px; }
.quick .quick-btn { display: block; width: 100%; border: 0 !important; background: none !important; box-shadow: none !important; padding: 12px; min-height: 44px; font-size: var(--fs-m); font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-align: center; }
.quick .quick-btn:hover { color: var(--text); }
.perks a, .p-perks a, a[href^="tel:"] { white-space: nowrap; }
.sl-mbuy { display: none; }
@media (max-width: 700px) {
  .product .info h1 { font-size: var(--fs-2); }
  /* по-малко рамки в рамки: повече ширина за бутона */
  .product { padding: 14px !important; }
  .product .buybox { padding: 16px !important; }
  .product .perks { grid-template-columns: 1fr !important; }
  .sl-mbuy { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -1px 0 rgba(13, 27, 42, .08); transform: translateY(110%); transition: transform .36s var(--spring); }
  .sl-mbuy.in { transform: none; }
  .sl-mbuy .mb-p { display: grid; line-height: 1.1; }
  .sl-mbuy .mb-p b { font-size: var(--fs-xl); }
  .sl-mbuy .mb-p s { font-size: var(--fs-xs); color: var(--muted); }
  .sl-mbuy .btn { flex: 1; height: 48px; padding: 0 16px; font-size: var(--fs-m); }
  body.has-mbuy .bk-nudge { display: none; }
}

/* ---------- 1. Телефон: една ниска лента; търсенето е зад лупата; при скрол надолу се прибира ---------- */
.q-tog { display: none; }
@media (max-width: 700px) {
  .tb1 { display: none; }
  .tb2-in { height: 30px; }
  .tb2 #tagline { font-size: var(--fs-s); }
  .tb2-a { width: 44px; }
  .hdr { position: sticky; top: 0; z-index: 80; transition: transform .34s var(--spring); }
  .hdr.away { transform: translateY(-100%); }
  .hdr-in { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .hdr-in .logo { margin-right: auto; }
  .hdr-in .logo img { height: 38px; width: auto; }
  .hdr-in .search { display: none; }
  .hdr.q-open .hdr-in { flex-wrap: wrap; }
  .hdr.q-open .hdr-in .search { display: flex; order: 9; flex: 1 0 100%; margin-top: 6px; animation: qOpen .32s var(--spring); }
  .q-tog { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
  .hdr.q-open .q-tog { background: #e7edf3; }
  .hdr-in .fav-btn, .hdr-in .acc-btn, .hdr-in .cart-btn { width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; border: 0 !important; border-radius: 50% !important; background: transparent; box-shadow: none; display: grid; place-items: center; }
  .hdr-in .cart-btn { background: var(--red); color: #fff; }
  .hdr-in .fav-btn .cart-n { right: 0; top: 0; } .hdr-in .cart-btn .cart-n { left: auto; right: -2px; top: -2px; }
  .hdr-in .lang-sw { margin-left: 2px; }
  .hdr-in .lang-cur { height: 44px; padding: 0 6px; border: 0; background: transparent; }
  .catbar-in { padding-top: 0; padding-bottom: 8px; }
  /* категория + филтри на един ред; отвореното меню е на цялата ширина */
  #side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  #side .side-toggle { grid-column: 1; grid-row: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #side .side-fc { display: contents; }
  #side .side-fc-h { grid-column: 2; grid-row: 1; margin: 0; width: 100%; min-height: 48px; padding: 12px 14px; text-align: left; font: 700 var(--fs-m) var(--font); color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
  #side .groups, #side .side-fc-b { grid-column: 1 / -1; }
  .side-toggle { border-radius: var(--r-m); }
  .card .name .ey { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@keyframes qOpen { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 5. Четливост: контраст, дребен текст, места за натискане ---------- */
.foot { --muted: #a9b8c8; }
.foot a { color: #c3cfdc; }
.foot a:hover { color: #fff; }
.crumbs { font-size: var(--fs-s); }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
@media (max-width: 700px) {
  .side-toggle { min-height: 48px; font-size: var(--fs-m); }
  .vars-o a { min-height: 44px; min-width: 44px; }
}

/* ---------- Настройките на устройството ---------- */
@media (prefers-reduced-motion: reduce) {
  .hdr, .sl-mbuy { transition: none !important; }   /* лентата пак се прибира, но без плъзгане */
  .btn:active, .add:active, .fav:active, .vars-o a:active { scale: 1 !important; opacity: .8; }
}
@media (prefers-reduced-transparency: reduce) { .sl-mbuy { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
