/* ============================================================
   GOLAZO — nav-burger.css · mobile navigation drawer
   Shows <980px (where global.css hides .nav__menu).
   Pairs with nav-burger.js (which builds the button + drawer
   from the existing nav markup — no template changes needed).
   ============================================================ */

/* ---- burger button: first chip in .nav__icons, mobile only ---- */
.gburger{display:none}
@media (max-width:979px){
  /* v2 (Giorgi): search/wishlist/cart move INTO the drawer — navbar keeps burger + account only */
  .nav .nsearch,.nav .nwish,.nav .nav__icons > a[aria-label="კალათა"]{display:none!important}
  .gburger{display:inline-flex;align-items:center;justify-content:center;margin-right:2px;
    width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);
    background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.10));
    color:inherit;cursor:pointer}
  .nav.scrolled .gburger{background:linear-gradient(135deg,rgba(13,98,57,.16),rgba(13,98,57,.09));border-color:rgba(13,98,57,.22)}
  .gburger svg{width:20px;height:20px}
  .gburger .l2{transition:opacity .2s}
  .gburger[aria-expanded="true"] .l2{opacity:0}
}

/* ---- drawer ---- */
.gdrawer{position:fixed;inset:0;z-index:900;display:none}
.gdrawer.on{display:block}
.gdrawer__ov{position:absolute;inset:0;background:rgba(8,14,11,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.gdrawer__panel{position:absolute;top:0;left:0;bottom:0;width:min(340px,88vw);
  display:flex;flex-direction:column;gap:4px;padding:max(20px,env(safe-area-inset-top)) 22px 28px;
  overflow-y:auto;overscroll-behavior:contain;
  background:linear-gradient(160deg,rgba(247,249,246,.97),rgba(237,241,236,.96));
  border-right:1px solid rgba(13,98,57,.14);box-shadow:30px 0 80px rgba(0,0,0,.35);
  transform:translateX(-100%);transition:transform .28s cubic-bezier(.2,.7,.3,1)}
.gdrawer.on .gdrawer__panel{transform:none}
html[data-theme="dark"] .gdrawer__panel{background:linear-gradient(160deg,rgba(24,32,27,.98),rgba(14,19,17,.97));border-color:rgba(52,179,117,.25);color:#F7F9F6}
@media (prefers-reduced-motion:reduce){.gdrawer__panel{transition:none}}

.gdrawer__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.gdrawer__top img{height:24px;width:auto}
.gdrawer__x{width:42px;height:42px;border:none;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:rgba(13,98,57,.08);color:inherit}
html[data-theme="dark"] .gdrawer__x{background:rgba(255,255,255,.08)}
.gdrawer__x svg{width:15px;height:15px}

/* drawer search (the nav search lives here on mobile) */
.gdrawer__search{display:flex;gap:8px;margin:2px 0 14px}
.gdrawer__search input{flex:1;height:46px;border-radius:12px;border:1.5px solid #767676;padding:0 14px;
  font-family:var(--font-ka);font-size:14.5px;background:#fff;color:#141414;min-width:0}
html[data-theme="dark"] .gdrawer__search input{background:#131A16;border-color:#5F6E64;color:#F7F9F6}
.gdrawer__search button{width:46px;height:46px;flex:0 0 auto;border:none;border-radius:12px;cursor:pointer;
  background:linear-gradient(145deg,#0A7A46,#086038);color:#fff;display:grid;place-items:center}
.gdrawer__search button svg{width:18px;height:18px}

.gdrawer__nav{display:flex;flex-direction:column}
.gdrawer__nav a{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 6px;min-height:48px;text-decoration:none;color:#141414;
  font-family:var(--font-ka);font-weight:700;font-size:19px;border-bottom:1px solid rgba(13,98,57,.10)}
html[data-theme="dark"] .gdrawer__nav a{color:#F7F9F6;border-color:#2A332D}
.gdrawer__nav a svg{width:18px;height:18px;color:#086038;flex:0 0 auto}
html[data-theme="dark"] .gdrawer__nav a svg{color:#34B375}
.gdrawer__nav a[aria-current="page"]{color:#086038}
html[data-theme="dark"] .gdrawer__nav a[aria-current="page"]{color:#34B375}

.gdrawer__sec{margin-top:16px;display:flex;flex-direction:column}
.gdrawer__sec a{display:flex;align-items:center;gap:12px;padding:12px 6px;min-height:46px;
  text-decoration:none;color:#3A3A3A;font-family:var(--font-ka);font-weight:600;font-size:15px}
html[data-theme="dark"] .gdrawer__sec a{color:#C5CDC7}
.gdrawer__sec a svg{width:19px;height:19px;color:#086038;flex:0 0 auto}
html[data-theme="dark"] .gdrawer__sec a svg{color:#34B375}
.gdrawer__sec .cnt{margin-left:auto;min-width:22px;height:22px;border-radius:11px;background:#E6B83C;color:#141414;
  font-family:var(--font-body);font-weight:700;font-size:11.5px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px}

.gdrawer__util{margin-top:auto;padding-top:18px;display:flex;gap:12px;border-top:1px solid rgba(13,98,57,.10)}
html[data-theme="dark"] .gdrawer__util{border-color:#2A332D}
.gdrawer__util button,.gdrawer__util a{flex:1;height:46px;border-radius:12px;border:1px solid rgba(13,98,57,.18);
  background:rgba(13,98,57,.05);color:inherit;font-family:var(--font-ka);font-weight:600;font-size:13.5px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none}
html[data-theme="dark"] .gdrawer__util button,html[data-theme="dark"] .gdrawer__util a{border-color:#2A332D;background:rgba(255,255,255,.05)}
.gdrawer__util svg{width:17px;height:17px}

/* body scroll lock while open */
html.gdrawer-lock,html.gdrawer-lock body{overflow:hidden}

/* ============================================================
   POPUP FIT (mobile) — no popup may ever exceed the viewport.
   Applies to the wishlist/request gates and any .gwgate clone.
   ============================================================ */
@media (max-width:600px){
  .gwgate__card{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:32px 22px}
}
.gwgate__card{max-height:calc(100dvh - 24px);overflow-y:auto}
