/* The brand mini-sites (scripts/brand-sites.mjs): areg.pro's look (public/css/store.css: colours, fonts, header,
   strip, cards, footer) with the brand's colour (--brand / --on-brand, set in the page) in place of the shop's orange. */
:root{
  --bg:#ECEEEA; --surface:#FFFFFF; --surface-2:#F4F5F2; --ink:#172027; --muted:#5A6770; --line:#D3D9D4;
  --tape:#DB5A30; --link:#1C68A8; --btn:#172027; --btn-ink:#F4F5F2; --wa:#1C8548;
  --hdr:#121A1F; --hdr-2:#1C262D; --hdr-line:#2C3942; --hdr-ink:#EEF2EF; --hdr-muted:#9EABB2;
  --f-body:"IBM Plex Sans","Noto Sans Armenian",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-disp:"IBM Plex Sans Condensed","Noto Sans Armenian","Arial Narrow",system-ui,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html,body{margin:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:12px}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--link)}
img{max-width:100%}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mono{font-family:var(--f-mono);font-size:.82em;letter-spacing:.01em}
.num{font-variant-numeric:tabular-nums}
.wrap{max-width:clamp(1100px,92vw,1600px);margin:0 auto;padding-inline:16px}
h1,h2{font-family:var(--f-disp);font-weight:700;line-height:1.1;letter-spacing:.005em}
h1{font-size:clamp(28px,4.4vw,40px);margin:4px 0 10px}
h2{font-size:clamp(20px,2.6vw,26px);margin:0 0 14px}
section{margin-block:30px}

/* header: areg.pro's dark bar; the brand's colour as the line under it */
header.top{position:relative;z-index:20;background:var(--hdr);color:var(--hdr-ink)}
.bar{display:flex;align-items:center;gap:12px;padding-block:10px;flex-wrap:wrap}
.logos{display:flex;align-items:center;gap:8px;text-decoration:none;flex:none}
.lbox{display:flex;align-items:center;height:52px;background:#fff;border-radius:8px;padding:4px 8px}
.blogo{height:26px;width:auto;display:block}
.alogo{height:42px;width:auto;display:block}
.search{flex:1 1 320px;display:flex;align-items:center;gap:8px;background:var(--hdr-2);border:1px solid var(--hdr-line);color:var(--hdr-ink);border-radius:8px;padding:0 12px;min-width:0}
.search:focus-within{border-color:var(--brand)}
.search svg{flex:none;color:var(--hdr-muted)}
.search input{flex:1;border:0;background:transparent;padding:12px 0;outline:none;min-width:0;font-size:16px;color:var(--hdr-ink)}
.search input::placeholder{color:var(--hdr-muted)}
.lang{display:flex;border:1px solid var(--hdr-line);border-radius:8px;overflow:hidden;flex:none}
.lang a,.lang b{padding:9px 10px;font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--hdr-muted);text-decoration:none}
.lang b{background:var(--brand);color:var(--on-brand)}
.lang a:hover{color:var(--hdr-ink)}
.strip{background:var(--hdr-2);color:var(--hdr-muted);font-size:12.5px;border-top:1px solid var(--hdr-line)}
.strip .wrap{display:flex;gap:4px 18px;flex-wrap:wrap;align-items:center;padding-block:6px}
.strip b{color:var(--hdr-ink);font-weight:600}
.strip a.tel{color:var(--hdr-ink);text-decoration:none;font-size:13px}
.strip .wa,footer .wa{display:inline-flex;vertical-align:middle;width:22px;height:22px;border-radius:50%;background:#25D366;color:#fff;align-items:center;justify-content:center}
.strip .wa svg,footer .wa svg{width:14px;height:14px}
.brandbar{height:4px;background:var(--brand)}

/* intro */
.intro{margin-top:18px}
.crumbs{font-size:13.5px;color:var(--muted)}
.crumbs a{text-decoration:none}
.intro p{max-width:900px;color:var(--muted);margin:0 0 10px;font-size:15.5px}
.intro .lead{color:var(--ink);font-size:17px}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--btn);background:var(--btn);color:var(--btn-ink);border-radius:8px;padding:0 16px;font-weight:600;text-decoration:none}
.btn.ghost{background:var(--surface);color:var(--ink);border-color:var(--line)}
.btn.brand{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
.btn.pwa{background:var(--wa);border-color:var(--wa);color:#fff}
.btn:hover{filter:brightness(1.08)}
.note{font-size:13.5px}

/* category tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.tile{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:13px 14px 13px 18px;text-decoration:none;color:var(--ink);font-weight:600;position:relative;overflow:hidden}
.tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand)}
.tile:hover{border-color:var(--muted)}
.tc{color:var(--muted);font-weight:500;font-size:13.5px}

/* the list: areg.pro's cards */
.lhead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.lhead h2{margin:0}
.bcount{margin:2px 0 0;color:var(--muted);font-size:14px}
.lctl{display:flex;gap:8px;flex-wrap:wrap}
.lctl select{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:var(--surface);font-size:15px;max-width:100%}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
#bgrid[aria-busy]{opacity:.5}
.empty{grid-column:1/-1;color:var(--muted)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;overflow:hidden;transition:border-color .15s}
.card:hover{border-color:var(--muted)}
.cl{display:flex;flex-direction:column;flex:1;text-decoration:none;color:var(--ink)}
.ph{aspect-ratio:4/3;position:relative;background:#fff;border-bottom:1px solid var(--line);overflow:hidden}
.ph .pimg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.ph .btag{position:absolute;left:8px;top:8px;z-index:1;background:#fff;padding:3px 6px;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.08);line-height:0}
.ph .btag img{height:18px;width:auto;max-width:90px}
.ph .flag{position:absolute;right:8px;top:8px;z-index:1;width:24px;height:18px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.12),0 1px 3px rgba(0,0,0,.15);object-fit:cover;background:#fff}
.ph .best{position:absolute;right:8px;top:8px;z-index:1;width:24px;height:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.ph .flag~.best{top:29px}
.cbody{padding:10px 12px 4px;display:flex;flex-direction:column;gap:6px;flex:1}
.sku{color:var(--muted)}
.cname{font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.9em}
.cfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 12px 12px}
.price.req{font-size:14px;font-weight:600;color:var(--muted)}
.ask{flex:none;width:38px;height:38px;border-radius:8px;background:var(--wa);color:#fff;display:grid;place-items:center}
.ask:hover{filter:brightness(1.1)}
.more{display:flex;justify-content:center;gap:10px;margin-top:18px}

/* the filter panel on the left: areg.pro's (store.css .layout / aside.filters / .fitem), the brand's colour on the
   chosen line; on a phone it slides in from the left after "Filters" */
.layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}
aside.filters{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;display:flex;flex-direction:column;gap:18px;padding-right:4px}
.fclose{display:none}
.fgroup h2,.fgroup h3{font-family:var(--f-disp);font-size:13px;letter-spacing:.09em;text-transform:uppercase;margin:0 0 8px;color:var(--muted);font-weight:600}
.flist{display:flex;flex-direction:column;gap:1px}
.fitem{display:flex;justify-content:space-between;gap:8px;align-items:center;border:0;background:transparent;text-align:left;padding:6px 8px;border-radius:6px;width:100%;color:var(--ink);text-decoration:none;font-size:14.5px}
.fitem:hover{background:var(--surface)}
.fitem[aria-pressed="true"]{background:var(--surface);box-shadow:inset 3px 0 0 var(--brand);font-weight:600}
.fitem .c{color:var(--muted);font-size:12px}
.btn.sm{min-height:34px;padding:0 12px;font-size:13.5px;align-self:flex-start}
#fopen{display:none}
.fback{position:fixed;inset:0;background:rgba(18,26,31,.45);z-index:39}
body.noscroll{overflow:hidden}

.why{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.why li{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:6px;border-top:4px solid var(--brand)}
.why span{color:var(--muted)}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-bottom:8px}
.faq summary{cursor:pointer;padding:13px 16px;font-weight:600}
.faq details p{margin:0;padding:0 16px 14px;color:var(--muted)}

/* footer: areg.pro's grey-blue footer, the brand's colour under the headings */
footer{background:#37434D;color:#fff;padding-block:34px 0;margin-top:40px;font-size:13.5px}
footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:26px}
footer h2{font-family:var(--f-disp);font-size:14px;letter-spacing:.09em;text-transform:uppercase;color:#fff;margin:0 0 14px;padding-bottom:9px;position:relative}
footer h2::after{content:"";position:absolute;left:0;bottom:0;width:42px;height:3px;border-radius:2px;background:var(--brand)}
footer h2.mt{margin-top:18px}
footer p{color:#C3CBD1;line-height:1.6;margin:0 0 4px}
footer p.num{color:#fff;font-size:14.5px}
footer a{color:#fff;text-decoration:none}
footer a:hover{color:#17A2A2}
footer .route{color:#C3CBD1;font-size:13px}
footer .fmap{display:block;margin-top:12px}
footer .fmap img{width:100%;height:auto;border-radius:8px;border:1px solid #4A5762;box-shadow:0 6px 20px rgba(0,0,0,.35);display:block}
footer .legalnav{margin-top:28px;padding-block:16px 18px;border-top:1px solid #4A5762;color:#C3CBD1;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* app.js: the contact button and the chat */
.fab{position:fixed;right:18px;bottom:18px;z-index:30;width:60px;height:60px;border-radius:50%;border:0;background:var(--tape);color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center}
.fmenu{position:fixed;right:18px;bottom:90px;z-index:30;background:var(--surface);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.2);padding:6px;display:flex;flex-direction:column;min-width:230px}
.fmenu a,.fmenu button{padding:12px 14px;text-decoration:none;font-weight:600;text-align:left;background:none;border:0;border-radius:10px;color:var(--ink)}
.fmenu a:hover,.fmenu button:hover{background:var(--bg)}
.totop{position:fixed;left:18px;bottom:18px;z-index:25;width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:20px;opacity:.85}
.chat{position:fixed;right:18px;bottom:90px;z-index:31;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 120px));background:var(--surface);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden}
.chat header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:var(--hdr);color:#fff;border-bottom:3px solid var(--brand)}
.chat header button{background:none;border:0;color:#fff;font-size:24px;line-height:1}
.clog{flex:1;overflow-y:auto;padding:12px;background:var(--bg);display:flex;flex-direction:column;gap:8px}
.cm{display:flex}.cm.me{justify-content:flex-end}
.cb{max-width:85%;padding:9px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:14px;line-height:1.45}
.cm.me .cb{background:var(--ink);color:#fff;border-color:var(--ink)}
.cm.me .cb a{color:#fff}
.cm.sys{justify-content:center;font-size:13px;color:var(--muted);text-align:center}
#cform{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}
#cform textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font-size:16px}
#cform button{border:0;border-radius:10px;background:var(--ink);color:#fff;padding:0 14px;font-size:16px}
.chat .cfoot{display:flex;gap:10px;align-items:center;padding:0 10px 10px;font-size:13px}
.chat .cfoot button{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:6px 12px}
#cerr{color:#B3261E}

@media (max-width:900px){
  .layout{grid-template-columns:1fr}
  #fopen{display:inline-flex}
  aside.filters{position:fixed;inset:0 auto 0 0;top:0;width:min(320px,88vw);max-height:none;height:100%;background:var(--bg);z-index:40;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 24px;transform:translateX(-105%);transition:transform .2s;box-shadow:0 10px 30px rgba(23,32,39,.14)}
  aside.filters.open{transform:none}
  .fclose{display:flex;justify-content:space-between;align-items:center;font-family:var(--f-disp);font-size:20px}
  .fclose button{border:0;background:none;font-size:28px;line-height:1;padding:0 4px}
}
@media (max-width:720px){
  .bar{gap:8px}
  .search{order:3;flex-basis:100%}
  .lang{margin-left:auto}
  .lbox{height:44px;padding:3px 6px}.blogo{height:20px}.alogo{height:36px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cbody{padding:9px 10px 2px}.cname{font-size:13px}.cfoot{padding:4px 10px 10px}.price.req{font-size:12.5px}
  .lctl{width:100%}.lctl select{flex:1;min-width:0}
}
@media (max-width:560px){
  .chat{inset:0;width:auto;height:auto;border-radius:0}
}

/* the cart (app.js): areg.pro's cart button in the header, "+" on the cards, the panel from the right */
.cartbtn{display:inline-flex;align-items:center;gap:7px;min-height:40px;border:1px solid var(--hdr-line);background:transparent;color:var(--hdr-ink);border-radius:8px;padding:0 12px;font-weight:600}
.cartbtn .cnt{min-width:22px;height:22px;border-radius:11px;background:var(--hdr-line);color:var(--hdr-ink);font-size:12px;display:grid;place-items:center;padding:0 6px}
.cartbtn .cnt.on{background:var(--tape);color:#fff}
.add{flex:none;width:38px;height:38px;border:0;border-radius:8px;background:var(--btn);color:var(--btn-ink);display:grid;place-items:center;padding:0;-webkit-appearance:none;appearance:none}
.add:hover{filter:brightness(1.15)}
.add.done{background:var(--wa)}
.cfoot .price.req{margin-right:auto}
.cartp{position:fixed;top:0;right:0;bottom:0;width:min(420px,100vw);background:var(--bg);z-index:41;transform:translateX(105%);transition:transform .2s;display:flex;flex-direction:column;box-shadow:-10px 0 30px rgba(23,32,39,.18)}
.cartp.open{transform:none}
.chead{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:var(--hdr);color:#fff;border-bottom:3px solid var(--brand);font-family:var(--f-disp);font-size:20px}
.chead button{border:0;background:none;color:#fff;font-size:28px;line-height:1}
.cbody2{flex:1;overflow-y:auto;padding:14px 16px 24px}
.cempty{color:var(--muted);text-align:center;margin-top:40px}
.clines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.clines li{display:flex;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px}
.cimg{flex:none;width:56px;height:56px;background:#fff;display:grid;place-items:center}
.cimg img{max-width:56px;max-height:56px;object-fit:contain}
.cinfo{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;font-size:13.5px}
.cinfo a{color:var(--ink);text-decoration:none;line-height:1.3}
.cqty{display:flex;align-items:center;gap:6px;margin-top:2px}
.cqty button{width:28px;height:28px;border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:0}
.cqty b{min-width:22px;text-align:center}
.cqty .crm{width:auto;border:0;background:none;color:var(--muted);text-decoration:underline;margin-left:auto;font-size:12.5px}
.cclear{border:0;background:none;color:var(--muted);text-decoration:underline;font-size:13px;margin:8px 0 0;padding:0}
.cform{display:flex;flex-direction:column;gap:10px;margin-top:16px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px}
.cform h3{margin:0;font-family:var(--f-disp);font-size:19px}
.cform label{display:flex;flex-direction:column;gap:4px;font-size:13.5px;font-weight:600}
.cform input,.cform textarea{border:1px solid var(--line);border-radius:8px;padding:10px 11px;font-size:16px;font-weight:400;background:#fff}
.cform input:focus,.cform textarea:focus{outline:2px solid var(--brand);outline-offset:0}
.cform .ccons{flex-direction:row;align-items:flex-start;gap:8px;font-weight:400}
.cform .ccons input{margin-top:3px;width:18px;height:18px;flex:none}
.cnote{color:var(--muted);font-size:13px;margin:0}
.cerr{color:#B3261E;font-size:13.5px;margin:0;min-height:0}
.cform .btn{justify-content:center}
.cdone{text-align:center;margin-top:30px}
.cdone h3{font-family:var(--f-disp);font-size:22px;margin:0 0 10px}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;z-index:50;transition:all .2s;pointer-events:none;font-weight:600}
.toast.on{opacity:1;transform:translate(-50%,0)}
@media (max-width:720px){
  .cartbtn .cl2{display:none}
  .cfoot{gap:6px}.ask,.add{width:34px;height:34px}
}

/* areg.pro's mini bar (store.css .minibar): at the top once the header has scrolled away */
.minibar{position:fixed;left:0;right:0;top:0;z-index:30;background:var(--hdr);color:var(--hdr-ink);border-bottom:3px solid var(--brand);box-shadow:0 2px 10px rgba(0,0,0,.25);padding-top:env(safe-area-inset-top,0px);transform:translateY(-110%);transition:transform .2s}
.minibar.show{transform:none}
.minibar .wrap{display:flex;align-items:center;justify-content:space-between;gap:10px;height:56px}
.minibar .ml,.minibar .mr{display:flex;gap:8px;align-items:center}
.minibar .lbox.sm{height:40px;padding:3px 6px}.minibar .lbox.sm .blogo{height:22px}
.hbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--hdr-line);background:transparent;color:var(--hdr-ink);border-radius:8px;padding:8px 11px;font-weight:600;white-space:nowrap;min-height:40px}
.hbtn .cnt{min-width:22px;height:22px;border-radius:11px;background:var(--hdr-line);font-size:12px;display:grid;place-items:center;padding:0 6px}
.hbtn .cnt.on{background:var(--tape);color:#fff}
.minibar .mbsbox{display:none;flex:1;align-items:center;gap:8px;background:rgba(255,255,255,.08);border:1px solid var(--hdr-line);border-radius:10px;padding:0 6px 0 12px;height:42px}
.minibar .mbsbox input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:inherit;font-size:16px;height:100%}
.minibar .mbsbox .x{background:transparent;border:0;color:inherit;font-size:24px;line-height:1;padding:4px 8px}
.minibar.searching .ml,.minibar.searching .mr{display:none}
.minibar.searching .mbsbox{display:flex}
.wall{justify-content:center;width:100%;margin-top:12px}
@media (max-width:560px){.minibar .mbl{display:none}.minibar #mbFilter .mbl{display:inline}.minibar .lang a,.minibar .lang b{padding:8px 7px}.minibar .lbox.sm{display:none}}

/* areg.pro's "added to cart" effect (store.css .flyimg / .bump) */
.flyimg{position:fixed;z-index:1000;pointer-events:none;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.28);overflow:hidden;display:grid;place-items:center;will-change:transform}
.flyimg>img{position:static;width:100%;height:100%;object-fit:contain}
.bump{animation:cbump .5s ease}
.bump .cnt{animation:cpop .5s ease}
@keyframes cbump{25%{transform:scale(1.14)}55%{transform:scale(.94)}80%{transform:scale(1.04)}}
@keyframes cpop{30%{transform:scale(1.5);background:var(--tape);color:#fff}}
@media (prefers-reduced-motion:reduce){.bump,.bump .cnt{animation:none}}
