/* ===== Подобрения по принципите на Apple (одит 22.11.2026): четливост, натиск, движение, по-малко ленти ===== */
:root {
  --leaf-d: #44702b;   /* зеленото за текст: 4,5:1 и върху светлозелено */
  --muted: #586659;
  --red: #bf3d27;
  --spring: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Натиск: всичко, което се натиска, отговаря веднага ---------- */
a, button, label, summary, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn, .add, .fav, .fav-btn, .acc-btn, .cart-btn, .deal, .vars-o a, .thumbs button, .thx, .see-all, .rail-btn, .qo-open, .ask-ai, .all-cats, .nav-grp, .catlinks a, .ptabs-nav button, .m-nav > *, .ai-launch, .ai-chips button, .qty button, .sp-fab, .lang-cur, .cta, .card { transition: scale .28s var(--spring), background-color .2s, border-color .2s, color .2s, box-shadow .2s, opacity .2s; }
.btn:active, .add:active, .fav:active, .fav-btn:active, .acc-btn:active, .cart-btn:active, .deal:active, .vars-o a:active, .thumbs button:active, .thx:active, .see-all:active, .rail-btn:active, .qo-open:active, .ask-ai:active, .all-cats:active, .nav-grp:active, .catlinks a:active, .ptabs-nav button:active, .m-nav > *:active, .ai-launch:active, .ai-chips button:active, .qty button:active, .sp-fab:active, .lang-cur:active, a:active > .hh-in .cta { scale: .96; transition-duration: .08s; }
.add:active, .fav:active, .fav-btn:active, .acc-btn:active, .m-nav > *:active { scale: .9; transform: none; }
.card:active:not(:has(button:active)) { scale: .985; transition-duration: .1s; }

/* ---------- Лентите: материал вместо линия ---------- */
.hdr { background: rgba(250, 251, 247, .82); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: 0; box-shadow: 0 1px 0 rgba(34, 51, 42, .06), 0 10px 24px -18px rgba(34, 51, 42, .28); }
.m-nav:not([hidden]), .m-buy { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top-color: rgba(34, 51, 42, .07); }

/* ---------- Меню: един стил; само магазинът е бутон ---------- */
.catlinks a, .nav-grp, .catlinks .all-cats { font-size: 15px; }
.catlinks a[href*="therapeutic-standard"] { color: var(--text) !important; }
.catlinks a[href*="promocii"] { background: transparent !important; color: var(--text) !important; }
.catlinks a[href*="promocii"]::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--sun); vertical-align: 2px; }
.catlinks a[href*="promocii"]:hover, .catlinks a[href*="promocii"].on { background: var(--t-green) !important; }

/* ---------- Асистентът – в горната лента, не върху стоките ---------- */
.ai-launch.in-hdr { position: static; flex: none; height: 46px; padding: 0 16px; gap: 8px; background: #fff; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ai-launch.in-hdr svg { color: var(--leaf-d); }
.ai-launch.in-hdr:hover { border-color: var(--leaf); }
.ai-launch.in-hdr.mini span, body.has-mbuy .ai-launch.in-hdr span { display: inline; }
body.has-mbuy .ai-launch.in-hdr { padding: 0 16px; }
@media (max-width: 1240px) { .ai-launch.in-hdr, body.has-mbuy .ai-launch.in-hdr { width: 46px; padding: 0; justify-content: center; border-radius: 50%; } .ai-launch.in-hdr span, .ai-launch.in-hdr.mini span, body.has-mbuy .ai-launch.in-hdr span { display: none; } }
@media (min-width: 701px) {
  .ai-chat { top: 146px; bottom: auto; height: min(600px, calc(100vh - 166px)); transform-origin: 60% 0; }
  .ai-chat.open { animation: fromTop .42s var(--spring); }
  .ai-nudge { top: 146px; bottom: auto; border-radius: 14px 4px 14px 14px; transform: translateY(-10px); }
}
@keyframes fromTop { from { opacity: 0; transform: scale(.9) translateY(-14px); } }
/* колелото: прибира се при скрол и не стои върху текст или бутон */
.sp-fab { transition: scale .28s var(--spring), opacity .22s; }
.sp-fab.away { opacity: 0; scale: .6; pointer-events: none; }

/* ---------- Количката: влиза и излиза отдясно ---------- */
.drawer { animation: none; transform: translateX(104%); transition: transform .38s var(--spring); touch-action: pan-y; will-change: transform; }
.drawer.in { transform: none; }
.drawer.drag { transition: none; }
.drawer-bg { opacity: 0; transition: opacity .3s; z-index: 120; }
.drawer { z-index: 121; }
.drawer-bg.in { opacity: 1; }
.drawer-bg.drag { transition: none; }
.drawer .x { width: 44px; height: 44px; display: grid; place-items: center; }
/* заявените движения на съобщението и лентите */
.hdr { transition: transform .34s var(--spring); }

/* ---------- Банерът: върви с пръста, текстовете не се застъпват ---------- */
.hh { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hh .hh-s { opacity: 1; visibility: hidden; transition: none; z-index: 0; }
.hh .hh-s.on, .hh .hh-s.mv { visibility: visible; }
.hh .hh-s.on { z-index: 1; }
.hh .hh-s.mv { z-index: 1; will-change: transform; }
.hh .dots { z-index: 3; }
.hh .dots button { transition: width .3s var(--spring), background-color .3s; }
.hh-txt small, .eyebrow { color: #34581f; }
.hh-txt p { color: #4d5a50; }

/* ---------- Страница на продукта ---------- */
.p-rt { margin-bottom: 6px; }
.product .meta-row { margin-bottom: 14px; }
.pr-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pr-row .vat { margin: 0; }
.buybox .pr-row .stock { display: inline; margin: 0 0 0 auto; align-self: center; font-weight: 700; }
.buybox .stock.ok { color: #1f7a4a; }
.deals { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 16px 0 14px; }
.deals-h { flex: 0 0 100%; margin-bottom: 4px; }
.deal { flex: 1 1 88px; width: auto; min-width: 0; grid-template-columns: 1fr; gap: 2px; padding: 12px 10px 10px; text-align: center; border-radius: 14px; align-content: start; }
.deal .dr, .deal .dq small { display: none; }
.deal .dq b { font-size: 14px; font-weight: 600; color: var(--muted); }
.deal .dp { justify-items: center; gap: 0; }
.deal .dp b { font-size: 16px; }
.deal.on { border-color: var(--g); box-shadow: inset 0 0 0 1px var(--g); }
.deal.on .dq b { color: var(--text); }
.deal i { top: -10px; right: 50%; translate: 50% 0; }
.deal .dbest { top: auto; bottom: -9px; left: 50%; translate: -50% 0; white-space: nowrap; }
.deals:has(.dbest) { margin-bottom: 22px; }
.buy-row { flex-wrap: nowrap; }
.buy-row > .btn { flex: 1; min-width: 0; height: 54px; font-size: 16px; padding: 0 16px; }
.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; }
.qo-open { border: 0; background: none; padding: 12px; text-decoration: underline; text-underline-offset: 3px; }
.qo-open:hover { background: none; color: var(--text); }
.p-notes { margin: 0 0 14px; }
.ask-ai { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 13px 16px; text-align: left; background: var(--t-green); border: 0; border-radius: 14px; color: #2f5a1e; font: 500 14px/1.4 var(--font); cursor: pointer; }
.ask-ai svg { flex: none; } .ask-ai b { font-weight: 800; }
.ask-ai:hover { background: #d9e9c6; }
.product .perks { padding: 14px; gap: 10px 16px; }
.perks a { white-space: nowrap; }
@media (min-width: 901px) {
  /* снимката остава на място, докато дясната част се чете */
  .product { align-items: start; }
  .product .gallery { position: sticky; top: 150px; }
  .gallery .big { aspect-ratio: auto; height: clamp(320px, calc(100vh - 290px), 640px); overflow: hidden; }
  .gallery .big img { min-height: 0; }
  .product::after { display: none; }
  .product .info h1 { font-size: 28px; margin-bottom: 6px; }
}
@media (max-width: 700px) { .deals { gap: 24px 10px; } .deal { flex-basis: calc(50% - 5px); } .deals-h { margin-bottom: -8px; } .buybox .pr-row .stock { margin: 0; flex-basis: 100%; } }

/* ---------- Четене: до 70 знака на ред ---------- */
.ptab.rte:not(:has(.yt-grid)), .desc.p-faq > *, .desc:not(.fits):not(.p-faq) > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.ptab.rte { line-height: 1.65; }
.ptab.rte:has(> table) { max-width: 900px; }

html[lang="en"] .th-sec::before { content: 'What are you looking for today?'; }
.code-box input { min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: 500 16px var(--font); color: var(--text); }
.code-box input:focus { outline: 0; border-color: var(--leaf); }
/* среден екран: менюто остава на един ред */
@media (min-width: 701px) and (max-width: 1240px) {
  .catlinks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .catlinks a, .nav-grp, .catlinks .all-cats { flex: none; white-space: nowrap; font-size: 14px; padding: 8px 11px !important; }
}
@media (min-width: 701px) and (max-width: 1000px) { .hh-txt { max-width: 270px; } }
@media (max-width: 700px) { body:not(.has-mnav) .ai-launch.in-hdr { display: none; } }

/* ---------- Броячи и дребен текст ---------- */
.groups .n { color: var(--muted) !important; }
.groups a.active .n { color: rgba(255, 255, 255, .88) !important; }

@media (max-width: 700px) {
  /* горе: едно съобщение, логото и менюто на един ред; търсенето и количката са в долното меню */
  .tb1 { display: none; }
  .tb2-a { display: none; }
  .tb2-in { height: 30px; }
  .tb2 #tagline { font-size: 12px; }
  .hdr-in { flex-wrap: nowrap; gap: 8px; padding-top: 6px; padding-bottom: 4px; min-height: 52px; }
  .hdr-in .logo { margin-right: auto; }
  .logo img { height: 34px; }
  .hdr .search { display: none; }
  .hdr.q-open .hdr-in { flex-wrap: wrap; }
  .hdr.q-open .search { display: flex; order: 9; flex: 1 0 100%; animation: qOpen .32s var(--spring); }
  .acc-btn, .fav-btn, .cart-btn { width: 44px; height: 44px; }
  .acc-btn, .fav-btn { border-color: transparent; background: transparent; }
  .hdr-in .lang-sw { position: relative; inset: auto; transform: none; flex: none; }
  .hdr-in .lang-cur { height: 36px; }
  body.has-mnav:not(.has-mbuy) .cart-btn { display: none; }
  .catbar-in { min-height: 0; padding: 0 12px 8px; }
  .catlinks { gap: 4px; -webkit-overflow-scrolling: touch; }
  .catlinks a, .nav-grp, .catlinks .all-cats { min-height: 44px; display: inline-flex !important; align-items: center; padding: 0 13px !important; font-size: 14px; }
  .catlinks a[href="/"], .catlinks a[href$="/demo-botalife/"], .catlinks a[href$="/en/"] { display: none !important; }
  .catlinks .all-cats { min-height: 38px; margin: 3px 0; }
  .hh { height: 540px; }
  .hh-bg { height: 240px; }
  .hh-s::after { background: linear-gradient(0deg, #f4e9d8 0%, #f4e9d8 56%, rgba(244, 233, 216, 0) 70%); }
  .hh-in { padding-bottom: 48px; }
  .hh-txt h2 { font-size: 28px; margin-bottom: 12px; }
  .hh-txt small { margin-bottom: 14px; }
  .hh-txt p { margin-bottom: 20px; }
  .drawer { box-shadow: -12px 0 40px rgba(20, 32, 24, .28); }
}
@keyframes qOpen { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Настройките на устройството ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .drawer, .hdr, .m-nav, .m-buy, .co-bar { transition: opacity .2s !important; }
  .btn:active, .add:active, .card:active, .deal:active, .fav:active { scale: 1 !important; opacity: .8; }
}
@media (prefers-reduced-transparency: reduce) { .hdr, .m-nav:not([hidden]), .m-buy { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --muted: #3c473f; --line: #8b978c; --leaf-d: #2f5217; } .hdr { border-bottom: 1px solid #22332a; background: #fff; } }
