/* =========================================================================
   androidbox — homepage frontend (PSD-accurate)
   Font: Plus Jakarta Sans | Shell 1400px | Content 1340px (30px side padding)
   ========================================================================= */

/* ---------- Design tokens (values taken from androidbox_new.psd) ---------- */
:root{
  --shell: 1400px;
  --pad: 30px;                 /* content padding L/R  -> content width 1340px */
  --gap: 38px;                 /* grid gutter between 4 columns */

  /* colours */
  --ink:        #2F343A;       /* primary text + dark UI fills            */
  --muted:      #646E79;       /* secondary paragraph text               */
  --label:      #C3C5C8;       /* "KONSULTACIJA" mini label              */
  --art-cat:    #5F6976;       /* article category                       */
  --art-date:   #AFB7C0;       /* article date                           */
  --blue:       #007AFF;       /* buttons, cart, icons, active dot        */
  --blue-dark:  #0067d8;
  --red:        #F71B1B;       /* discount badge                         */
  --line:       #DCDFE5;       /* 1px borders                            */
  --bg:         #FFFFFF;
  --bg-soft:    #FBFCFE;       /* alt section background                 */
  --bg-tint:    #EBEFF6;       /* hero / category zone (darker)          */
  --thumb-bg:   #ECEEEF;       /* product image plate                    */

  --r-pill:  22px;             /* nav pills / inputs (h45)               */
  --r-btn:   20px;             /* action buttons (h42)                   */
  --r-card:  10px;             /* product / category / article cards     */
  --r-band:  20px;             /* hero + full-width image banners        */
  --r-badge: 14px;

  --shadow-pill: 0 12px 26px -12px rgba(19,42,90,.28);
  --shadow-card: 0 1px 2px rgba(16,24,40,.04);
}

/* ---------------------------------- reset -------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{
  margin:0;
  overflow-x:clip;
  font-family:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  letter-spacing:.01em;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}
input{font:inherit}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,p{margin:0}

/* --------------------------------- layout ------------------------------- */
.shell{max-width:var(--shell);margin-inline:auto;padding-inline:var(--pad)}
.section{padding-block:44px}
/* full-width hairlines delimit the white content sections; a banner lives inside
   its section so it is never framed, and the hero zone stays rule-free */
.section--white{background:var(--bg);border-block:1px solid var(--line)}
.section--white + .section--white{border-top:0}
.lede + .section--white{border-top:0}
.section--soft{background:var(--bg-soft)}
.banner-wrap{margin-top:44px}
/* a banner that introduces its section sits above the heading */
.banner-wrap--top{margin-top:0;margin-bottom:44px}

/* hero + category zone sits on a darker ground, no rules of its own */
.lede{background:var(--bg-tint);padding-block:40px 44px}
.lede .hero{margin-top:0}
.stack-lg{display:flex;flex-direction:column;gap:38px}

/* inline sprite icons — each <symbol> carries its own fill/stroke = currentColor */
.ic{width:22px;height:22px;flex:none;display:block;overflow:visible}
.ic--sm{width:18px;height:18px}
.ic--blue{color:var(--blue)}

/* --------------------------- buttons / pills --------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  height:42px;padding:0 20px;border-radius:var(--r-btn);
  font-weight:800;font-size:12px;letter-spacing:.045em;text-transform:uppercase;
  white-space:nowrap;transition:transform .15s ease,background .15s ease,box-shadow .15s ease;
}
.btn .ic{width:16px;height:16px}
.btn .ic--sm{width:17px;height:14px}
.btn--primary{background:var(--blue);color:#fff}
.btn--primary:hover{background:var(--blue-dark)}
.btn--primary:active{transform:translateY(1px)}
.btn--light{background:#fff;color:var(--ink);box-shadow:var(--shadow-pill)}
.btn--light:hover{transform:translateY(-1px)}
.btn--dark{background:var(--ink);color:#fff;height:45px;border-radius:var(--r-pill);padding:0 22px}
.btn--dark:hover{background:#22262b}

.link-all{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:800;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink);
  white-space:nowrap;
}
.link-all .ic{width:18px;height:14px}
.link-all:hover{color:var(--blue)}

/* ============================== HEADER =============================== */
.site-top{position:sticky;top:0;z-index:60}
.header{position:relative;z-index:2;background:#fff;border-bottom:1px solid var(--line)}

.header__row{display:flex;align-items:center;gap:28px;height:120px}
.logo{flex:none}
.logo img{height:40px;width:auto}

.pill-menu{flex:none}
.pill-menu .ic{width:15px;height:15px}

.search{
  flex:1 1 auto;display:flex;align-items:center;gap:10px;
  height:45px;padding:0 18px;border:1px solid var(--line);border-radius:var(--r-pill);background:#fff;
}
.search input{
  flex:1;border:0;outline:0;background:none;
  font-weight:600;font-size:11px;letter-spacing:.03em;color:var(--ink);
}
.search input::placeholder{color:#9AA0A6}
.search__btn{color:#9AA0A6;display:flex}
.search__btn .ic{width:16px;height:16px}

.consult{flex:none;display:flex;flex-direction:column;gap:3px;line-height:1.1}
.consult span{font-weight:700;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--label)}
.consult a{font-weight:800;font-size:14px;letter-spacing:.02em}

.icon-btn{
  flex:none;width:45px;height:45px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:var(--ink);color:#fff;
}
.icon-btn .ic{width:19px;height:19px}
.header-cart{
  flex:none;height:45px;min-width:76px;padding:0 16px;border-radius:var(--r-pill);
  background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;
  font-weight:800;font-size:14px;letter-spacing:.03em;
}
.header-cart .ic{width:18px;height:18px}
.header-cart:hover{background:var(--blue-dark)}

.nav-toggle{display:none}

/* ===================== MEGA MENU ("Visos prekės") ===================== */
.mm-backdrop{
  position:fixed;inset:0;z-index:55;background:rgba(15,23,42,.32);
  backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s;
}
.mm-backdrop.open{opacity:1;visibility:visible}

.megamenu{
  --mm-rail-w:326px;
  position:absolute;top:calc(100% - 1px);left:0;right:0;
  z-index:61;background:#fff;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  overflow:hidden;
  box-shadow:0 44px 80px -30px rgba(16,24,40,.34),0 14px 32px -22px rgba(16,24,40,.2);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(-14px);transform-origin:top center;
  transition:opacity .22s cubic-bezier(.22,.7,.24,1),transform .22s cubic-bezier(.22,.7,.24,1),visibility .22s;
}
.megamenu.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}

/* content aligns with the page grid; the bar itself is full-bleed */
.mm-inner{max-width:var(--shell);margin-inline:auto;padding-inline:var(--pad)}

/* rail + panels share a positioning context; footer link sits below it */
.mm-body{position:relative}

/* left rail */
.mm-rail{
  display:flex;flex-direction:column;gap:2px;
  padding:12px;min-height:340px;
  background:#F6F8FC;border-right:1px solid var(--line);
  width:var(--mm-rail-w);
  /* many categories: scroll the rail instead of running off the screen */
  max-height:calc(100dvh - 190px);overflow-y:auto;overscroll-behavior:contain;
}
.mm-item{position:static}
.mm-cat{
  position:relative;width:100%;
  display:flex;align-items:center;gap:12px;
  padding:8px 12px;border-radius:11px;
  font-weight:700;font-size:13px;letter-spacing:.005em;color:var(--ink);
  white-space:nowrap;text-align:left;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.mm-cat__i{
  flex:none;width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--line);color:var(--blue);
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.mm-cat__i .ic{width:19px;height:19px}
.mm-cat > span:not([class]){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.mm-cat__chev{flex:none;width:13px;height:13px;color:#b7c0cc;transition:color .15s ease,transform .15s ease}
.mm-cat:hover{background:#fff;box-shadow:0 2px 10px -4px rgba(16,24,40,.14)}
.mm-item.is-active .mm-cat{background:#EAF3FF;color:var(--blue)}
.mm-item.is-active .mm-cat__i{background:var(--blue);border-color:var(--blue);color:#fff}
.mm-item.is-active .mm-cat__chev{color:var(--blue);transform:translateX(2px)}

/* right panel — matches the rail height automatically */
.mm-panel{
  position:absolute;left:var(--mm-rail-w);right:0;top:0;bottom:0;
  padding:24px 30px;display:flex;gap:30px;overflow:hidden;
  opacity:0;visibility:hidden;
}
.mm-item.is-active .mm-panel{opacity:1;visibility:visible;animation:mmFade .24s cubic-bezier(.22,.7,.24,1)}
@keyframes mmFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.mm-main{flex:1;display:flex;flex-direction:column;min-width:0}
.mm-main h3{font-weight:800;font-size:22px;letter-spacing:.005em}
.mm-main > p{margin-top:4px;font-weight:600;font-size:14px;color:var(--muted)}
.mm-links{
  margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:2px 28px;align-content:start;
}
.mm-links a{
  display:block;padding:9px 0;border-bottom:1px solid var(--line);
  font-weight:600;font-size:14px;color:var(--ink);
  transition:color .14s ease,padding .14s ease;
}
.mm-links a:hover{color:var(--blue);padding-left:4px}
.mm-all{
  margin-top:auto;align-self:flex-start;padding-top:22px;
  display:inline-flex;align-items:center;gap:8px;
  font-weight:800;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--blue);
}
.mm-all .ic{width:18px;height:14px;transition:transform .2s ease}
.mm-all:hover .ic{transform:translateX(4px)}

/* one featured product */
.mm-promo{
  flex:none;width:232px;align-self:stretch;display:flex;flex-direction:column;
  padding:16px;border-radius:14px;background:var(--bg-soft);border:1px solid var(--line);
  transition:transform .2s ease,box-shadow .2s ease;
}
.mm-promo:hover{transform:translateY(-3px);box-shadow:0 18px 34px -20px rgba(16,24,40,.32)}
.mm-promo img{width:100%;height:132px;object-fit:cover;border-radius:10px;background:#fff}
.mm-promo__k{margin-top:13px;font-weight:800;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--blue)}
.mm-promo b{margin-top:5px;font-weight:700;font-size:13px;line-height:1.45;color:var(--ink)}
.mm-promo__p{margin-top:auto;font-weight:800;font-size:15px;color:var(--ink)}

/* rail link without a sub-menu (sale) */
.mm-cat__badge{
  flex:none;padding:2px 8px;border-radius:999px;background:var(--red);color:#fff;
  font-weight:800;font-size:11px;
}
.mm-item--link .mm-cat__i{color:var(--red)}
.mm-item--link .mm-cat:hover{background:#fff;box-shadow:0 2px 10px -4px rgba(16,24,40,.14)}

/* ========================= AI ASSISTANT STRIP ======================== */
.aibar{background:#EAF3FF;border-bottom:1px solid #D5E5FA}
.aibar__row{display:flex;align-items:center;gap:16px;min-height:64px;padding-block:12px}
.aibar__ico{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--blue);color:#fff}
.aibar__ico .ic{width:21px;height:21px}
.aibar__text{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
.aibar__text h2{font-weight:800;font-size:15px;line-height:1.3}
.aibar__text p{font-weight:600;font-size:13px;line-height:1.4;color:var(--muted)}
.aibar .btn{flex:none;height:38px;padding:0 18px;font-size:11px}

/* =============================== HERO ============================== */
.hero{
  position:relative;overflow:hidden;border-radius:var(--r-band);
  background:linear-gradient(118deg,#EAEEF7 0%,#D9E1F1 55%,#C9D6EE 100%);
  min-height:318px;margin-top:39px;
}
/* legibility wash so the overlaid copy stays readable on the left */
.hero::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgb(223 229 244 / 92%) 0%,rgba(234,238,247,.55) 34%,rgba(234,238,247,.08) 58%,rgba(234,238,247,0) 72%);
}
.hero__inner{position:relative;z-index:2;max-width:52%;padding:40px}
.hero h1{
  font-weight:800;font-size:36px;line-height:1.18;letter-spacing:.005em;
  color:var(--ink);text-transform:uppercase;
}
.hero p{
  margin-top:20px;max-width:470px;
  font-weight:600;font-size:16px;line-height:1.85;color:var(--muted);
}
.hero .btn--light{margin-top:34px}
.hero__img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:right center;z-index:0;pointer-events:none;
}

/* ========================== CATEGORY CARDS ======================== */
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);margin-top:39px}
.cat{
  display:flex;align-items:center;gap:16px;
  padding:20px 22px;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;
  transition:box-shadow .15s ease,transform .15s ease;
}
.cat:hover{transform:translateY(-2px);box-shadow:0 12px 24px -14px rgba(16,24,40,.25)}
.cat__ico{color:var(--blue);flex:none;display:flex}
.cat__ico .ic{width:26px;height:26px}
.cat__txt{flex:1;min-width:0}
.cat__txt b{display:block;font-weight:800;font-size:14px;letter-spacing:.01em}
.cat__txt span{display:block;font-weight:600;font-size:12px;color:var(--ink);margin-top:2px}
.cat__arw{color:var(--ink);flex:none;display:flex}
.cat__arw .ic{width:20px;height:15px}
.cat:hover .cat__arw{color:var(--blue)}

/* ===================== SECTION HEAD (title + link) =============== */
.head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:35px}
.head__t h2{font-weight:800;font-size:18px;letter-spacing:.02em;text-transform:uppercase}
.head__t p{margin-top:6px;font-weight:600;font-size:14px;color:var(--ink)}

/* ============================ CAROUSEL =========================== */
.carousel{
  display:grid;grid-auto-flow:column;
  grid-auto-columns:calc((100% - 3*var(--gap)) / 4);
  gap:var(--gap);
  overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-ms-overflow-style:none;
  /* vertical breathing room so hover lift + shadow aren't clipped by the scroller
     (kept off the inline axis so the first card stays aligned to the shell) */
  padding:16px 0 36px;margin:-16px 0 -20px;
}
.carousel::-webkit-scrollbar{display:none}
.carousel > *{scroll-snap-align:start}

/* prev / dots / next share one row, aligned to the content edges (as in the PSD) */
.carousel-foot{display:flex;align-items:center;gap:16px;margin-top:24px}
.carousel-foot .dots{flex:1}
.cbtn{display:flex;align-items:center;justify-content:center;padding:6px;color:var(--ink);flex:none}
.cbtn .ic{width:11px;height:16px}
.cbtn:hover{color:var(--blue)}
.cbtn[disabled]{opacity:.3;cursor:default}
.cbtn[disabled]:hover{color:var(--ink)}

.dots{display:flex;justify-content:center;gap:8px}
.dots button{width:12px;height:12px;border-radius:5px;background:var(--ink);opacity:.1;transition:opacity .15s,width .15s}
.dots button.active{opacity:1;background:var(--blue);width:22px}

/* ========================== PRODUCT CARD ======================== */
.card{
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:var(--r-card);background:#fff;
  box-shadow:var(--shadow-card);overflow:hidden;
}
.card__media{
  position:relative;background:var(--thumb-bg);
  aspect-ratio:302 / 282;border-radius:var(--r-card);overflow:hidden;
  transform:translateZ(0);      /* keeps rounded corners while the img scales */
}
.card__media img{width:100%;height:100%;object-fit:cover;object-position:center}
.badge{
  position:absolute;left:14px;top:14px;z-index:2;   /* stays above the scaling img */
  background:var(--red);color:#fff;border-radius:var(--r-badge);
  padding:6px 11px;font-weight:800;font-size:12px;letter-spacing:.02em;
}
.card__body{display:flex;flex-direction:column;flex:1;padding:24px 26px 26px}
.card__title{
  font-weight:700;font-size:12px;line-height:1.5;text-align:center;color:var(--ink);
  min-height:36px;
}
.card__foot{
  margin-top:auto;padding-top:16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.price{display:flex;flex-direction:column;gap:4px;line-height:1}
.price__old{font-weight:600;font-size:12px;opacity:.5;text-decoration:line-through}
.price__now{font-weight:800;font-size:16px;letter-spacing:.01em}
.card .btn{flex:none}

/* plan card = product card; the branded graphic is shown in full */
.card--plan .card__media{background:#FBF2EE}
.card--plan .card__media img{object-fit:contain}

/* ===================== FULL-WIDTH IMAGE BANNER ================== */
.banner{
  position:relative;overflow:hidden;border-radius:var(--r-band);
  min-height:208px;display:flex;align-items:center;
  background:#20242a;
}
.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.banner::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(15,20,28,.82) 0%,rgba(15,20,28,.55) 34%,rgba(15,20,28,.05) 72%,rgba(15,20,28,0) 100%);
}
.banner__in{position:relative;z-index:2;padding:40px;color:#fff;max-width:70%}
.banner__in h2{font-weight:800;font-size:36px;line-height:1.2;text-transform:uppercase;letter-spacing:.005em}
.banner__in p{margin-top:14px;font-weight:600;font-size:16px;opacity:.92}

/* ============================= WHY US ========================== */
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:44px}
.why__col{display:flex;gap:16px}
.why__ico{color:var(--blue);flex:none;display:flex}
.why__ico .ic{width:26px;height:26px}
.why__col b{display:block;font-weight:800;font-size:12px;letter-spacing:.03em;text-transform:uppercase}
.why__col p{margin-top:6px;font-weight:600;font-size:10px;line-height:1.6;color:var(--ink)}

/* ============================ ARTICLES ========================= */
.article{
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:var(--r-card);background:#fff;
  box-shadow:var(--shadow-card);overflow:hidden;
}
.article__media{aspect-ratio:302 / 226;background:var(--thumb-bg);border-radius:var(--r-card);overflow:hidden;transform:translateZ(0)}
.article__media img{width:100%;height:100%;object-fit:cover}
.article__body{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;padding:22px 26px 26px}
.article__date{font-weight:600;font-size:10px;letter-spacing:.03em;color:var(--art-date)}
.article__cat{margin-top:6px;font-weight:600;font-size:12px;color:var(--art-cat)}
.article__title{margin-top:12px;font-weight:700;font-size:12px;line-height:1.5;color:var(--ink)}
.article .btn{margin-top:20px}

/* ============================= FOOTER ========================= */
.footer{background:var(--bg-soft);padding-block:44px;border-top:1px solid var(--line)}
/* the footer draws the dividing line itself, so the homepage's last white section must not add a second one */
#content > .section--white:last-child{border-bottom:0}
.fgrid{display:grid;grid-template-columns:1.15fr 1fr 1.18fr 1.05fr;gap:40px}
.fgrid > *{min-width:0}
.fcol h3{font-weight:700;font-size:16px;letter-spacing:.01em;margin-bottom:26px}
.fcol a,.fcol address{overflow-wrap:anywhere}
.fcol li + li{margin-top:14px}
.fcol a,.fcol p,.fcol address{
  font-weight:600;font-size:12px;line-height:1.6;color:var(--ink);font-style:normal;
}
.fcol a:hover{color:var(--blue)}
.fcol .strong{font-weight:800}
.fcol .contact li{margin-top:22px}
.newsletter p{margin-bottom:20px}
.news-form{
  display:flex;align-items:center;gap:10px;height:45px;padding:0 6px 0 18px;
  border:1px solid var(--line);border-radius:var(--r-pill);background:#fff;max-width:310px;
}
.news-form input{flex:1;border:0;outline:0;background:none;font-weight:600;font-size:11px;color:var(--ink)}
.news-form input::placeholder{color:#9AA0A6}
.news-form button{
  width:34px;height:34px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:var(--blue);
}
.news-form button .ic{width:16px;height:16px}
.news-ok{margin-top:12px;font-weight:700;font-size:11px;color:var(--blue)}
.badges{display:flex;align-items:center;flex-wrap:wrap;gap:18px 24px;margin-top:28px;max-width:100%}
.badges img{flex:none;max-width:100%;width:auto}
.badges .tp{height:24px}
.badges .varle{height:28px}

/* ========================== SMALL FOOTER ===================== */
.subfooter{border-top:1px solid var(--line);background:#fff}
.subfooter__row{display:flex;align-items:center;gap:24px;min-height:122px;padding-block:18px}
.subfooter__row > *{min-width:0}
.banks{display:flex;align-items:center;flex:1}
.banks img{height:26px;width:auto;max-width:100%}
.copyright{font-weight:600;font-size:11px;color:var(--ink);white-space:nowrap}
.social{display:flex;align-items:center;gap:20px;flex:1;justify-content:flex-end;color:var(--ink)}
.social a{display:flex}
.social .ic{width:19px;height:19px}
.social a:hover{color:var(--blue)}

/* ============================ AI CHAT DRAWER ================= */
.chat{
  position:fixed;right:0;top:0;height:100dvh;width:380px;max-width:92vw;z-index:100;
  background:#fff;box-shadow:-20px 0 60px -20px rgba(16,24,40,.35);
  display:flex;flex-direction:column;transform:translateX(100%);visibility:hidden;transition:transform .28s ease,visibility .28s;
}
.chat.open{transform:none;visibility:visible}
.chat__head{
  background:linear-gradient(100deg,#1C8AFF,#0A7CFB);color:#fff;
  padding:20px;display:flex;align-items:center;gap:12px;
}
.chat__head b{font-weight:800;font-size:15px}
.chat__head p{font-weight:600;font-size:11px;opacity:.9}
.chat__head button{margin-left:auto;color:#fff;font-size:22px;line-height:1}
.chat__body{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:var(--bg-soft)}
.msg{max-width:80%;padding:10px 14px;border-radius:14px;font-weight:600;font-size:13px;line-height:1.45}
.msg--bot{background:#fff;border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:4px}
.msg--me{background:var(--blue);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.msg--typing{display:flex;align-items:center;gap:5px;padding:14px 16px}
.msg--typing i{width:7px;height:7px;border-radius:50%;background:#9aa3af;animation:typing 1.1s infinite ease-in-out}
.msg--typing i:nth-child(2){animation-delay:.18s}.msg--typing i:nth-child(3){animation-delay:.36s}
@keyframes typing{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.msg-products{align-self:flex-start;display:grid;gap:8px;width:86%}
.msg-product{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;border:1px solid var(--line);border-radius:12px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.msg-product:hover{border-color:var(--blue);box-shadow:0 8px 18px -12px rgba(16,24,40,.3)}
.msg-product img{flex:none;width:48px;height:48px;border-radius:9px;object-fit:cover;background:var(--thumb-bg)}
.msg-product span{min-width:0}
.msg-product b{display:block;font-weight:700;font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msg-product em{display:block;margin-top:2px;font-style:normal;font-weight:800;font-size:13px;color:var(--blue)}
@media (prefers-reduced-motion:reduce){.msg--typing i{animation:none;opacity:.6}}
.chat__form{display:flex;gap:10px;padding:16px;border-top:1px solid var(--line)}
.chat__form input{flex:1;height:42px;padding:0 16px;border:1px solid var(--line);border-radius:var(--r-pill);outline:0;font-weight:600;font-size:13px}
.chat__form button{width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}
.chat__form button .ic{width:16px;height:16px}
.scrim{position:fixed;inset:0;background:rgba(16,24,40,.35);z-index:90;opacity:0;visibility:hidden;transition:.25s}
.scrim.open{opacity:1;visibility:visible}

/* toast */
.toast{
  position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);
  background:var(--ink);color:#fff;padding:12px 20px;border-radius:12px;
  font-weight:700;font-size:13px;opacity:0;visibility:hidden;transition:.25s;z-index:120;
}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

/* ============================ MOTION ====================== */
html{scroll-behavior:smooth}

/* scroll-in reveals (only when JS is present so no-JS still shows content) */
.js .reveal{
  opacity:0;transform:translateY(22px);
  transition:opacity .62s cubic-bezier(.22,.7,.24,1),transform .62s cubic-bezier(.22,.7,.24,1);
  will-change:opacity,transform;
}
.js .reveal.is-in{opacity:1;transform:none}

/* hero load-in */
.hero__img{animation:heroZoom 1.5s cubic-bezier(.22,.7,.24,1) both}
@keyframes heroZoom{from{transform:scale(1.06)}to{transform:scale(1)}}

/* card / media hover motion */
.card,.article{transition:transform .3s cubic-bezier(.22,.7,.24,1),box-shadow .3s ease}
.card__media img,.article__media img{transition:transform .55s cubic-bezier(.22,.7,.24,1)}
.card:hover,.article:hover{transform:translateY(-6px);box-shadow:0 24px 44px -24px rgba(16,24,40,.3)}
.card:hover .card__media img,.article:hover .article__media img{transform:scale(1.06)}

/* small interactive flourishes */
.link-all .ic{transition:transform .2s ease}
.link-all:hover .ic{transform:translateX(4px)}
.cat__ico{transition:transform .2s ease}
.cat:hover .cat__ico{transform:scale(1.1)}
.why__ico{transition:transform .25s ease}
.why__col:hover .why__ico{transform:translateY(-3px)}
.cbtn .ic{transition:transform .18s ease}
.cbtn:not([disabled]):hover .ic{transform:scale(1.25)}
.btn--primary{transition:transform .15s ease,background .15s ease,box-shadow .2s ease}
.icon-btn,.header-cart{transition:transform .15s ease,background .15s ease}
.icon-btn:hover{transform:translateY(-2px)}
.social a .ic{transition:transform .18s ease}
.social a:hover .ic{transform:translateY(-3px)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1!important;transform:none!important;transition:none!important}
  .hero__img{animation:none}
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* ============================ RESPONSIVE ==================== */
@media (max-width:1200px){
  .carousel{grid-auto-columns:calc((100% - 2*var(--gap)) / 3)}
  .fgrid{grid-template-columns:1fr 1fr;row-gap:40px}
  .why{grid-template-columns:1fr 1fr;row-gap:32px}
  .hero__inner{max-width:70%}
}
@media (max-width:992px){
  .header__row{flex-wrap:wrap;height:auto;padding-block:16px;gap:14px 20px}
  .search{order:5;flex-basis:100%}
  .consult{margin-left:auto}
  .cats{grid-template-columns:1fr 1fr}

  /* mega menu -> full-width accordion */
  .megamenu{top:calc(100% - 1px);max-height:calc(100dvh - 96px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .mm-rail{min-height:0;display:block;width:100%;padding:6px;background:#fff;border-right:0;gap:0;max-height:none;overflow:visible}
  .mm-item{border-bottom:1px solid var(--line)}
  .mm-item:last-child{border-bottom:0}
  .mm-cat{border-radius:8px;padding:12px}
  .mm-cat__i{width:30px;height:30px}
  .mm-cat__chev{transform:none;color:#9aa3af;transition:transform .2s ease}
  .mm-cat:hover{box-shadow:none;background:transparent}
  .mm-item.is-active .mm-cat{background:var(--bg-soft)}
  .mm-item.is-active .mm-cat__chev{transform:rotate(90deg);color:var(--blue)}
  .mm-panel{position:static;display:none;padding:2px 14px 16px;opacity:1;visibility:visible;animation:none}
  .mm-item.is-active .mm-panel{display:block}
  .mm-main h3,.mm-main > p,.mm-promo{display:none}
  .mm-links{margin-top:0;grid-template-columns:1fr}
  .mm-all{padding-top:14px}
  .carousel{grid-auto-columns:calc((100% - var(--gap)) / 2)}
  .hero__inner{max-width:100%}
  .hero::before{background:linear-gradient(90deg,rgba(234,238,247,.95) 0%,rgba(234,238,247,.75) 45%,rgba(234,238,247,.35) 75%,rgba(234,238,247,.12) 100%)}
  .banner__in{max-width:100%}
  .banner__in h2{font-size:28px}
}
@media (max-width:768px){
  .section{padding-block:34px}
  .nav-toggle{display:flex}
  .pill-menu{display:none}
  .consult{display:none}
  .logo{margin-right:auto}
  .hero h1{font-size:26px}
  .hero p{font-size:14px}
  .banner{min-height:170px}
  .banner__in{padding:26px;max-width:100%}
  .banner__in h2{font-size:22px}
  .banner__in p{font-size:14px}
  .head{flex-direction:column;align-items:flex-start;gap:10px}
  .why{grid-template-columns:1fr}
  .fgrid{grid-template-columns:1fr}
  .subfooter__row{flex-direction:column;text-align:center;min-height:0;padding-block:24px;gap:18px}
  .banks,.social{justify-content:center;flex:none}
}
@media (max-width:560px){
  :root{--pad:18px}
  /* one card per view — full width, so it reads as centred */
  .carousel{grid-auto-columns:100%;scroll-snap-type:x mandatory}
  .carousel > *{scroll-snap-align:center}

  /* product lists: compact 2-up grid (articles keep the swipe carousel) */
  [data-carousel]:not([data-carousel="articles"]) .carousel{
    grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 14px;overflow:visible;padding:0;margin:0;
  }
  [data-carousel]:not([data-carousel="articles"]) .carousel > :nth-child(n+7){display:none}
  [data-carousel]:not([data-carousel="articles"]) .carousel-foot{display:none}
  .card{border:0;border-radius:0;box-shadow:none;background:none;overflow:visible}
  .card:hover{transform:none;box-shadow:none}
  .card:hover .card__media img{transform:none}
  .card__media{aspect-ratio:1/1}
  .badge{left:8px;top:8px;padding:5px 10px;font-size:12px}
  .card__body{padding:12px 0 0}
  .card__title{
    min-height:0;text-align:left;font-size:14px;line-height:1.4;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .card__foot{padding-top:8px}
  .price{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
  .price__old{order:-1;font-size:14px}
  .price__now{font-size:16px}
  /* buy button becomes a round cart icon on the image's bottom-right corner */
  .card{position:relative;container-type:inline-size}
  .card .btn{
    position:absolute;right:8px;top:calc(100cqw - 46px);
    width:38px;height:38px;padding:0;gap:0;border-radius:50%;
    font-size:0;
  }
  .card .btn .ic{width:18px;height:18px}
  .cats{grid-template-columns:1fr}
  /* phones: one slim row (icon · headline · button) so it can stay pinned under the header without eating the screen */
  .aibar__row{flex-wrap:nowrap;gap:10px;min-height:52px;padding-block:8px}
  .aibar__ico{width:32px;height:32px;border-radius:10px}
  .aibar__ico .ic{width:17px;height:17px}
  .aibar__text{flex:1;min-width:0}
  .aibar__text p{display:none}
  .aibar__text h2{font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .aibar .btn{width:auto;height:34px;padding:0 14px;font-size:10.5px}
  .aibar .btn .ic{display:none}
  .header__row{gap:10px}
  .logo img{height:30px}
  .btn--dark{padding:0 14px;height:42px}
  .nav-toggle{width:42px;padding:0}
  .icon-btn{width:42px;height:42px}
  .header-cart{height:42px;min-width:64px;padding:0 12px;font-size:13px}
  .hero__inner{padding:26px}
  .hero h1{font-size:23px}
  .banner__in h2{font-size:18px}
  .banner__in p{font-size:13px}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
}

/* =========================================================================
   WordPress additions
   ========================================================================= */
.skip-link{position:absolute;left:-9999px;top:8px;z-index:200;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;font-weight:700}
.skip-link:focus{left:8px}
.admin-bar .site-top{top:32px}
@media (max-width:782px){.admin-bar .site-top{top:46px}}
@media (max-width:600px){.admin-bar .site-top{top:0}} /* WP's admin bar scrolls away on small screens */

/* cards: media + title are links, the buy button is an <a> */
.card__media{display:block}
.card__title a:hover{color:var(--blue)}
.article__media{display:block}
.article__title a:hover{color:var(--blue)}
.card__title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card .btn.loading{opacity:.6;pointer-events:none}
.card .btn.added{background:#12a150}
.card .added_to_cart{display:none}  /* the toast replaces the "view cart" link */
.chat__head > .ic{width:24px;height:24px}
.news-ok[hidden]{display:none}

/* ============================ CART DRAWER ============================ */
html.is-locked{overflow:hidden}
.btn--block{width:100%}
.btn--outline{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .15s ease,color .15s ease,background .15s ease}
.btn--outline:hover{color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}

.scrim--cart{z-index:100}
.minicart{
  position:fixed;right:0;top:0;height:100dvh;width:440px;max-width:100vw;z-index:101;
  display:flex;flex-direction:column;background:#fff;
  box-shadow:-24px 0 60px -24px rgba(16,24,40,.4);
  transform:translateX(100%);visibility:hidden;
  transition:transform .32s cubic-bezier(.22,.7,.24,1),visibility .32s;
}
.minicart.open{transform:none;visibility:visible}
.minicart .widget_shopping_cart_content{display:flex;flex-direction:column;flex:1;min-height:0}

.mc__head{display:flex;align-items:center;gap:12px;padding:22px 24px;border-bottom:1px solid var(--line);flex:none}
.mc__head h2{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:.02em;text-transform:uppercase}
.mc__count{
  min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:var(--blue);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;letter-spacing:0;
}
.mc__close{
  margin-left:auto;width:40px;height:40px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;background:var(--bg-soft);border:1px solid var(--line);color:var(--ink);
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .2s ease;
}
.mc__close .ic{width:16px;height:16px}
.mc__close:hover{background:var(--ink);border-color:var(--ink);color:#fff;transform:rotate(90deg)}

/* items */
.mc__list{flex:1;min-height:0;overflow-y:auto;padding:4px 24px;overscroll-behavior:contain}
.mc__item{
  position:relative;display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;
  padding:18px 0;border-bottom:1px solid var(--line);transition:opacity .2s ease;
}
.mc__item:last-child{border-bottom:0}
.mc__item.is-busy{opacity:.45;pointer-events:none}
.mc__thumb{display:block;width:84px;height:84px;border-radius:var(--r-card);overflow:hidden;background:var(--thumb-bg)}
.mc__thumb img{width:100%;height:100%;object-fit:cover}
.mc__info{display:flex;flex-direction:column;min-width:0;padding-right:30px}
.mc__title{font-weight:700;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mc__title a:hover{color:var(--blue)}
.mc__info .variation{margin:4px 0 0;font-size:11px;color:var(--muted)}
.mc__info .variation dt,.mc__info .variation dd{display:inline;margin:0}
.mc__info .variation dd p{display:inline;margin:0}
.mc__unit{margin-top:2px;font-weight:600;font-size:12px;color:var(--muted)}
.mc__row{margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.mc__line{font-weight:800;font-size:15px}

.mc-qty{display:inline-flex;align-items:center;height:36px;border:1px solid var(--line);border-radius:18px;background:#fff}
.mc-qty button{
  width:34px;height:100%;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:16px;line-height:1;color:var(--ink);border-radius:18px;transition:color .15s ease,background .15s ease;
}
.mc-qty button:hover:not(:disabled){color:var(--blue);background:#EAF3FF}
.mc-qty button:disabled{opacity:.3;cursor:default}
.mc-qty span{min-width:22px;text-align:center;font-weight:800;font-size:13px}

.mc__remove{
  position:absolute;top:14px;right:-6px;width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#9aa3af;transition:color .15s ease,background .15s ease;
}
.mc__remove .ic{width:17px;height:17px}
.mc__remove:hover{color:var(--red);background:#FFF1F1}

/* footer */
.mc__foot{flex:none;padding:20px 24px 24px;border-top:1px solid var(--line);background:var(--bg-soft)}
.mc__sub{display:flex;align-items:baseline;justify-content:space-between;font-weight:700;font-size:14px}
.mc__sub strong{font-weight:800;font-size:20px}
.mc__note{margin:4px 0 18px;font-weight:600;font-size:12px;color:var(--muted)}
.mc__btns{display:grid;gap:10px}
.mc__btns .btn{height:48px}

/* empty state */
.mc__empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 40px 72px}
.mc__empty-ico{
  width:104px;height:104px;border-radius:50%;margin-bottom:26px;
  display:flex;align-items:center;justify-content:center;background:#EAF3FF;color:var(--blue);
  box-shadow:0 0 0 14px #F3F8FF;
}
.mc__empty-ico .ic{width:44px;height:44px}
.mc__empty h3{font-weight:800;font-size:20px}
.mc__empty p{margin:8px 0 26px;font-weight:600;font-size:14px;line-height:1.6;color:var(--muted);max-width:280px}

@media (max-width:560px){
  .mc__head{padding:18px 18px}
  .mc__list{padding:2px 18px}
  .mc__foot{padding:16px 18px 20px}
  .mc__item{grid-template-columns:72px minmax(0,1fr);gap:14px}
  .mc__thumb{width:72px;height:72px}
}

/* WooCommerce's own stylesheet (loaded on some setups) styles `.woocommerce ul.product_list_widget li …`
   – out-rank it so the drawer looks the same everywhere */
.minicart ul.mc__list.cart_list{padding:4px 24px;margin:0}
.minicart ul.mc__list.cart_list li.mc__item{padding:18px 0;margin:0;display:grid}
.minicart ul.mc__list.cart_list li.mc__item img{float:none;margin:0;width:100%;height:100%;box-shadow:none}
.minicart ul.mc__list.cart_list li.mc__item a{font-weight:inherit}
.minicart ul.mc__list.cart_list li.mc__item .mc__thumb{display:block}
.minicart ul.mc__list.cart_list li.mc__item .mc__title a{display:inline}
.minicart ul.mc__list.cart_list li.mc__item a.mc__remove{display:flex;font-weight:inherit}
@media (max-width:560px){.minicart ul.mc__list.cart_list{padding:2px 18px}}
.minicart ul.mc__list.cart_list li.mc__item::before,.minicart ul.mc__list.cart_list li.mc__item::after{content:none;display:none}

/* ---------- drawer footer: note / shipping / coupon ---------- */
.mc__foot{max-height:78dvh;overflow-y:auto;overscroll-behavior:contain;transition:opacity .15s ease}
.mc__foot.is-busy{opacity:.6;pointer-events:none}
.btn--sm{height:40px;padding:0 18px;font-size:12px}

.mc-tabs{display:flex;margin:-4px 0 14px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.mc-tab{
  position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:11px 6px 10px;font-weight:700;font-size:12px;color:var(--muted);
  border-left:1px solid var(--line);transition:background .15s ease,color .15s ease;
}
.mc-tab:first-child{border-left:0}
.mc-tab .ic{width:20px;height:20px}
.mc-tab:hover{color:var(--ink);background:var(--bg-soft)}
.mc-tab.is-active{background:#EAF3FF;color:var(--blue)}
.mc-tab.has-value::after{content:"";position:absolute;top:9px;right:calc(50% - 20px);width:7px;height:7px;border-radius:50%;background:var(--blue)}

.mc-panel{display:none;margin:0 0 14px}
.mc__foot[data-tab="note"] [data-mc-panel="note"],
.mc__foot[data-tab="ship"] [data-mc-panel="ship"],
.mc__foot[data-tab="coupon"] [data-mc-panel="coupon"]{display:block}
.mc-panel textarea,.mc-coupon input{
  width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 14px;
  font:inherit;font-weight:600;font-size:13px;color:var(--ink);outline:0;
}
.mc-panel textarea{display:block;margin-bottom:10px;resize:vertical;min-height:76px}
.mc-panel textarea:focus,.mc-coupon input:focus{border-color:var(--blue)}
.mc-coupon{display:flex;gap:8px}
.mc-coupon input{height:40px;padding:0 14px;min-width:0}
.mc-coupon .btn{flex:none}
.mc-msg{min-height:0;margin:8px 2px 0;font-weight:600;font-size:12px;color:var(--red)}
.mc-msg:empty{display:none}
.mc-msg.is-ok{color:#0a8a4a}
.mc-hint{margin:8px 2px 0;font-weight:600;font-size:12px;color:var(--muted)}

.mc-coupons{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:0;list-style:none}
.mc-coupons li{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 12px;border-radius:999px;background:#EAF3FF;color:var(--blue);font-weight:800;font-size:12px;letter-spacing:.03em}
.mc-coupons li span{display:inline-flex;align-items:center;gap:6px}
.mc-coupons .ic{width:14px;height:14px}
.mc-coupons button{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--blue)}
.mc-coupons button:hover{background:#fff}

.mc-rates{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.mc-rate{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font-weight:700;font-size:13px;line-height:1.4;transition:border-color .15s ease,background .15s ease}
.mc-rate:hover{border-color:#b9c4d4}
.mc-rate.is-chosen{border-color:var(--blue);background:#F3F8FF}
.mc-rate input{flex:none;margin:2px 0 0;width:16px;height:16px;accent-color:var(--blue)}
.mc-rate__txt{min-width:0}
.mc-rate__txt img{display:block;height:22px;width:auto;margin-top:6px;border-radius:5px}

.mc-totals{margin:0 0 4px}
.mc-totals__row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:3px 0;font-weight:600;font-size:13px;color:var(--muted)}
.mc-totals__row dt,.mc-totals__row dd{margin:0}
.mc-totals__row dd{font-weight:800;color:var(--ink)}
.mc-totals__row--disc dd{color:#0a8a4a}
.mc-totals__row--total{margin-top:6px;padding-top:12px;border-top:1px solid var(--line);font-size:15px;color:var(--ink)}
.mc-totals__row--total dt{font-weight:800}
.mc-totals__row--total dd{font-size:22px}
.mc__foot .mc__note{margin:6px 0 14px}
.mc-totals + .mc__btns{margin-top:14px}

.screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* third-party floating buttons (cookie settings etc.) must not sit on top of the open cart drawer */
html.is-locked .cky-btn-revisit-wrapper{display:none!important}
html.is-locked .cky-btn-revisit-wrapper,html.is-locked #cw-bubble-holder,html.is-locked .woot-widget-bubble{display:none!important}
