:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --bg: #f4f6f9;
  --accent: #dc1628;
  --accent2: #b80f1e;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); }
.topbar { background: #0f172a; color: #cbd5e1; }
.field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  outline: none;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(220,22,40,.12); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 0.75rem 1.25rem; border-radius: 0.6rem; border: 0; cursor: pointer;
}
.btn-primary:hover { background: var(--accent2); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; padding: 0.75rem 1.25rem; border-radius: 0.6rem; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 1rem 0.75rem; text-align: center; transition: .15s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  overflow: hidden; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 10px 30px rgba(15,23,42,.08); }
#cookieBar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #0f172a; color: #e2e8f0; padding: 14px 18px;
  display: none; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}



.product-card .price-lg{color:#dc1628;font-weight:800}
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:800px){.trust{grid-template-columns:1fr 1fr}}



.navico{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 8px;height:34px;border-radius:8px;color:#475569;font-weight:500;line-height:1;text-decoration:none;flex:0 0 auto;box-sizing:border-box;white-space:nowrap}
.navico:hover{background:#f8fafc;color:#dc1628}
.navsvg{width:16px;height:16px;flex:0 0 16px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.navlab{display:none;margin-left:4px;font-size:13px}
@media(min-width:1100px){.navlab{display:inline}}
.hdr-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.hdr-search{display:flex;align-items:center;flex:1 1 180px;min-width:120px;max-width:380px;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;height:36px;background:#fff}
.hdr-search input{flex:1;border:0;outline:none;padding:0 10px;font-size:14px;min-width:0;height:36px;background:#fff}
.hdr-search button{border:0;background:#dc1628;color:#fff;padding:0 12px;font-size:12px;height:36px}
.site-nav{display:flex;align-items:center;gap:2px;margin-left:auto;flex-wrap:nowrap}
@media(max-width:760px){
  .site-nav a[href="delivery.html"],
  .site-nav a[href="contacts.html"]{display:none}
}
@media(max-width:520px){
  .hdr-search{max-width:none;flex:1 1 100px;min-width:90px}
}
.cart-line{flex-wrap:wrap}
@media(max-width:640px){.cart-line{flex-direction:column;align-items:stretch}}
img,video,iframe{max-width:100%;height:auto}

.hdr-search-mob{display:none}
@media(max-width:1100px){
  .hdr-search-desk{display:none!important}
  .hdr-search-mob{display:flex!important;width:calc(100% - 24px)!important;max-width:none!important;margin:0 12px 8px!important;flex:none!important;height:42px!important}
  .hdr-search-mob input{font-size:16px;height:42px}
}

/* ---- Чат: помощник + консултант (над лентата за бисквитки) ---- */
#chatBtn{position:fixed;right:18px;bottom:18px;z-index:95;background:linear-gradient(135deg,#dc1628,#b30f1f);color:#fff;border:0;border-radius:999px;padding:12px 20px;font-weight:700;cursor:pointer;box-shadow:0 8px 24px rgba(220,22,40,.4);display:flex;align-items:center;gap:6px;transition:transform .15s}
#chatBtn:hover{transform:translateY(-2px)}
#chatUnread{background:#fff;color:#dc1628;border-radius:999px;font-size:11px;font-weight:800;min-width:18px;padding:1px 6px;margin-left:4px}
#chatBox{position:fixed;right:18px;bottom:72px;z-index:95;width:370px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 18px 50px rgba(15,23,42,.25);animation:chatIn .18s ease-out}
@keyframes chatIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
#chatBox .chat-hd{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;padding:12px 14px;display:flex;gap:10px;align-items:center}
#chatBox .chat-av{width:36px;height:36px;border-radius:12px;background:#dc1628;display:grid;place-items:center;font-weight:800;font-size:18px;flex:none}
#chatBox .chat-ht{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
#chatBox .chat-ht b{font-size:14px}
#chatBox .chat-ht small{font-size:11px;color:#94a3b8;display:flex;align-items:center;gap:5px}
#chatBox .chat-ht small:before{content:"";width:7px;height:7px;border-radius:50%;background:#22c55e;display:inline-block}
#chatBox .chat-hd button{background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;opacity:.8}
#chatCar{background:#f0fdf4;border-bottom:1px solid #bbf7d0;color:#166534;font-size:12px;padding:6px 12px;justify-content:space-between;align-items:center;gap:8px}
#chatCar button{background:none;border:0;color:#166534;cursor:pointer;font-size:14px}
#chatLog{height:330px;overflow:auto;padding:12px;font-size:13px;background:#f8fafc;scroll-behavior:smooth}
#chatLog .chat-m{max-width:88%;margin:7px 0;padding:8px 11px;border-radius:14px;line-height:1.4;word-wrap:break-word}
#chatLog .chat-m b{font-weight:700}
#chatLog .chat-m small{color:#94a3b8;font-weight:400}
#chatLog .chat-me{margin-left:auto;background:#dc1628;color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
#chatLog .chat-shop{margin-right:auto;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px}
#chatLog .chat-typing{display:flex;gap:4px;padding:11px 14px}
#chatLog .chat-typing i{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:chatDot 1s infinite}
#chatLog .chat-typing i:nth-child(2){animation-delay:.15s}#chatLog .chat-typing i:nth-child(3){animation-delay:.3s}
@keyframes chatDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.chat-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.chat-chips.used{opacity:.45}
.chat-chip{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:999px;padding:6px 12px;font-size:12.5px;cursor:pointer;text-decoration:none;text-align:left;line-height:1.3;transition:all .12s}
.chat-chip:hover:not(:disabled){border-color:#dc1628;color:#dc1628}
.chat-chip.pri{background:#dc1628;border-color:#dc1628;color:#fff}.chat-chip.pri:hover{color:#fff;opacity:.9}
.chat-cards{display:grid;gap:6px;margin-top:8px}
.chat-card{display:flex;gap:9px;align-items:center;border:1px solid #e2e8f0;border-radius:12px;padding:6px;background:#fff;text-decoration:none;color:#0f172a}
.chat-card:hover{border-color:#dc1628}
.chat-card img,.chat-card .ph{width:48px;height:48px;object-fit:contain;border-radius:8px;background:#f1f5f9;flex:none;display:grid;place-items:center;color:#94a3b8}
.chat-card .ct{display:flex;flex-direction:column;min-width:0;font-size:12px;line-height:1.3}.chat-card .ct small{color:#64748b}.chat-card .ct u{text-decoration:none;color:#dc1628;font-weight:700}
.chat-hf{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px;margin:6px 0}
.chat-hf .r2{display:flex;gap:6px}.chat-hf .r2>*{flex:1;min-width:0}
.chat-hf input,.chat-hf textarea{border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font-size:13px;width:100%;outline:none;font-family:inherit}
.chat-hf input:focus,.chat-hf textarea:focus{border-color:#dc1628}
.chat-hf button{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:8px;font-size:13px;cursor:pointer}.chat-hf button.pri{background:#dc1628;border-color:#dc1628;color:#fff;font-weight:700}
.chat-hf .er{color:#b91c1c;font-size:12px}
#chatQW{display:flex;align-items:center;border-top:1px solid #e2e8f0;background:#fff}#chatQW .qa{flex:none;width:26px;height:30px;border:0;background:#fff;color:#dc1628;font-size:22px;line-height:1;cursor:pointer;visibility:hidden}#chatQuick{flex:1;min-width:0;display:flex;gap:6px;overflow-x:auto;padding:8px 2px;background:#fff;scrollbar-width:none;cursor:grab;-webkit-overflow-scrolling:touch}#chatQuick:active{cursor:grabbing}#chatQuick button{user-select:none}#chatQuick::-webkit-scrollbar{display:none}#chatQuick button{flex:none;border:1px solid #cbd5e1;background:#f8fafc;border-radius:999px;padding:5px 11px;font-size:12px;cursor:pointer;white-space:nowrap}#chatQuick button:hover{border-color:#dc1628;color:#dc1628}
#chatForm{display:flex;border-top:1px solid #e2e8f0;background:#fff}
#chatForm input{flex:1;border:0;padding:14px;outline:none;font-size:14px;min-width:0}
#chatForm button{border:0;background:none;color:#dc1628;padding:0 16px;font-size:18px;cursor:pointer}
body.cookie-on #chatBtn{bottom:96px}
body.cookie-on #chatBox{bottom:150px}
@media(max-width:640px){ body.cookie-on #chatBtn{bottom:130px} body.cookie-on #chatBox{bottom:184px} #chatLog{height:calc(100vh - 330px);min-height:220px} }

/* ===== банери в началната страница ===== */
.bn-wrap{max-width:80rem;margin:0 auto;padding:16px 16px 0}
.bn{position:relative;border-radius:24px;overflow:hidden;background:#0b1220;box-shadow:0 18px 50px -22px rgba(2,6,23,.6)}
.bn-track{display:flex;transition:transform .7s cubic-bezier(.65,0,.25,1);will-change:transform}
.bn-slide{position:relative;flex:0 0 100%;min-height:340px;display:grid;grid-template-columns:1.05fr 1fr;align-items:center;color:#fff;text-decoration:none;overflow:hidden}
.bn-img{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(30px) saturate(1.1) brightness(.6)}
.bn-fg{position:absolute;top:0;bottom:0;right:4%;aspect-ratio:600/440;width:auto;background-size:contain;background-repeat:no-repeat;background-position:right center;-webkit-mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 64%,transparent 100%);mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 64%,transparent 100%)}
.bn-slide:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(6,10,22,.92) 0%,rgba(6,10,22,.7) 38%,rgba(6,10,22,0) 66%)}
.bn-txt{position:relative;z-index:2;padding:36px 48px;max-width:560px}
.bn-k{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;background:#dc2626;color:#fff;padding:4px 10px;border-radius:999px;margin-bottom:14px}
.bn-t{font-family:inherit;font-weight:800;font-size:clamp(28px,4.4vw,52px);line-height:1;text-transform:uppercase;margin:0 0 12px;text-shadow:0 2px 18px rgba(0,0,0,.4)}
.bn-s{font-size:clamp(14px,1.5vw,18px);opacity:.88;margin:0 0 20px;max-width:440px}
.bn-cta{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#0f172a;font-weight:700;padding:11px 20px;border-radius:12px;transition:transform .2s,background .2s}
.bn-slide:hover .bn-cta{transform:translateX(4px);background:#fecaca}
.bn-slide.on .bn-fg{animation:bnzoom 9s ease-out both}
@keyframes bnzoom{from{transform:scale(1.06)}to{transform:scale(1)}}
.bn-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:22px;cursor:pointer;backdrop-filter:blur(6px)}
.bn-nav:hover{background:rgba(255,255,255,.32)}.bn-prev{left:12px}.bn-next{right:12px}
.bn-dots{position:absolute;left:0;right:0;bottom:14px;z-index:5;display:flex;justify-content:center;gap:8px}
.bn-dots button{width:9px;height:9px;border-radius:999px;border:0;padding:0;background:rgba(255,255,255,.4);cursor:pointer;transition:all .3s}
.bn-dots button.on{width:28px;background:#fff}
@media(max-width:700px){.bn-wrap{padding:10px 10px 0}.bn{border-radius:18px}.bn-slide{min-height:300px;align-items:end;grid-template-columns:1fr}
 .bn-slide:before{background:linear-gradient(0deg,rgba(6,10,22,.94) 0%,rgba(6,10,22,.65) 50%,rgba(6,10,22,.05) 85%)}
 .bn-fg{top:0;bottom:36%;right:0;left:0;width:auto;aspect-ratio:auto;background-position:center}.bn-txt{padding:20px 20px 40px}.bn-nav{display:none}.bn-cta{padding:9px 16px}}
@media(prefers-reduced-motion:reduce){.bn-track{transition:none}.bn-slide.on .bn-fg{animation:none}}

/* банер със истинска снимка — на цял банер, без маска */
.bn-slide.ph .bn-img{inset:0;filter:none;background-position:center}
.bn-slide.ph .bn-fg{display:none}
.bn-slide.ph:before{background:linear-gradient(90deg,rgba(6,10,22,.88) 0%,rgba(6,10,22,.55) 40%,rgba(6,10,22,0) 70%)}
.bn-slide.ph.on .bn-img{animation:bnzoom 9s ease-out both}
@media(max-width:700px){.bn-slide.ph:before{background:linear-gradient(0deg,rgba(6,10,22,.92) 0%,rgba(6,10,22,.55) 55%,rgba(6,10,22,.1) 100%)}}


/* лога на производители вътре в банера */
.bn-brands{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;max-width:520px}
.bn-b{display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:34px;padding:4px 12px;border-radius:10px;background:rgba(255,255,255,.94);color:#0f172a;font-weight:700;font-size:13px;cursor:pointer;transition:transform .2s,box-shadow .2s}
.bn-b img{max-height:20px;max-width:64px;object-fit:contain}
.bn-b:hover{transform:translateY(-2px);box-shadow:0 6px 16px -6px rgba(0,0,0,.6)}
@media(max-width:700px){.bn-brands{gap:6px;margin-top:12px}.bn-b{min-width:54px;height:30px;font-size:12px;padding:3px 9px}.bn-slide{min-height:340px}}

/* ---- Страници от конструктора (Админ → Страници) ---- */
.pgb{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:28px}
.pgb h2{font-size:1.5rem;font-weight:700;line-height:1.25;margin:0}
.pgb h3{font-size:1.1rem;font-weight:600;margin:0}
.pgb-p{color:#334155;line-height:1.7}
.pgb-p p{margin:0 0 .8em}
.pgb-img{display:block;margin:0 auto;border-radius:16px;max-width:100%;height:auto}
.pgb-img.w-half{max-width:50%}.pgb-img.w-wide{max-width:880px}.pgb-img.w-full{width:100%}
.pgb-btn{display:inline-block;background:#dc1628;color:#fff;font-weight:600;border-radius:12px;padding:12px 22px;text-decoration:none}
.pgb-btn:hover{background:#b91c1c}
.pgb-banner{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:center;background:linear-gradient(120deg,#0f172a,#1e293b);color:#fff;border-radius:20px;padding:28px 32px;overflow:hidden}
.pgb-banner h2{color:#fff;font-size:1.9rem}
.pgb-banner p{color:#cbd5e1;margin:10px 0 16px}
.pgb-banner img{width:100%;max-height:240px;object-fit:contain}
.pgb-feat{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.pgb-feat>div{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px}
.pgb-feat b{color:#dc1628;font-size:1.3rem}
.pgb-feat p{color:#475569;font-size:.92rem;margin:6px 0 0}
.pgb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pgb-tile{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px 10px;text-align:center;text-decoration:none;color:#0f172a;font-weight:500;font-size:.92rem;line-height:1.3}
.pgb-tile:hover{border-color:#dc1628;color:#b91c1c}
.pgb-tile .ti{height:74px;width:100%;display:grid;place-items:center}
.pgb-tile img{max-height:74px;max-width:100%;object-fit:contain}
.pgb-tile .tl{width:56px;height:56px;border-radius:50%;background:#f1f5f9;display:grid;place-items:center;font-weight:700;color:#64748b;font-size:1.3rem}
.pgb-pl{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:start}
.pgb-flt{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px 16px;position:sticky;top:12px}
.pgb-fh{font-weight:700;margin-bottom:6px}
.pgb-fs{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;margin:12px 0 6px}
.pgb-flt label{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:.92rem;cursor:pointer}
.pgb-flt label i{color:#94a3b8;font-style:normal;font-size:.8rem;margin-left:auto}
.pgb-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-weight:600}
.pgb-ftog{display:none}
.pgb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.pgb-item{display:flex;flex-direction:column;min-width:0}
.pgb-item>.product-card{flex:1}
.pgb-na{font-size:.78rem;color:#b45309;padding:6px 4px 0}
.pgb-more{display:block;margin:18px auto 0}
.pgb-empty{padding:30px;text-align:center;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:14px}
@media(max-width:820px){
  .pgb-banner{grid-template-columns:1fr;padding:20px}.pgb-feat{grid-template-columns:1fr 1fr}
  .pgb-pl{grid-template-columns:1fr}.pgb-flt{position:static;display:none}.pgb-flt.open{display:block}
  .pgb-ftog{display:inline-block}.pgb-img.w-half{max-width:100%}
}
@media(max-width:480px){.pgb-feat{grid-template-columns:1fr}}
