/* Shared site header (logo + menu + WhatsApp) and mobile ☰ drawer.
   Used on the landing, product, collection and purchase pages — not on admin. */
:root{
  --hdr-bg:#FFFDF9; --hdr-line:#EADFCB; --hdr-text:#3B2B26; --hdr-hover:#B23A5E; --hdr-gold:#C9A65A;
  --hdr-wa:#1FA855; --hdr-wa-dark:#178a45;
  --hdr-height:60px;
}
@media (min-width:1024px){ :root{ --hdr-height:72px; } }

/* overflow-x:hidden on html/body turns them into scroll containers, which breaks position:sticky.
   clip stops sideways scrolling without that side effect. */
@supports (overflow:clip){ html,body{ overflow-x:clip; } }

/* Anchored sections stop below the sticky header instead of under it */
#checkout,#order,#sizeCalculator,#moreProductsSection,#itemCheckout{ scroll-margin-top:calc(var(--hdr-height) + 12px); }

.site-header{
  position:sticky; top:0; z-index:60;
  background:var(--hdr-bg); border-bottom:1px solid var(--hdr-line);
  transition:box-shadow .25s ease;
}
.site-header.is-stuck{ box-shadow:0 6px 18px rgba(59,43,38,.10); }
.site-header *{ box-sizing:border-box; }
.site-header__inner{
  display:flex; align-items:center; gap:16px;
  max-width:1200px; height:var(--hdr-height); margin:0 auto; padding:0 16px;
}
@media (min-width:1024px){ .site-header__inner{ padding:0 24px; } }

.site-header__logo{ display:flex; align-items:center; flex:0 0 auto; min-width:44px; min-height:44px; }
.site-header__logo img{ display:block; height:46px; width:auto; }
@media (min-width:1024px){ .site-header__logo img{ height:58px; } }

/* ----- Desktop menu ----- */
.site-nav{ display:none; flex:1; justify-content:center; }
.site-nav__list{ display:flex; align-items:center; gap:30px; margin:0; padding:0; list-style:none; }
.site-nav__list > li{ position:relative; display:flex; align-items:center; }
.site-nav__link{
  position:relative; display:inline-flex; align-items:center; min-height:44px; padding:0 2px;
  color:var(--hdr-text); font:600 15px 'Hind Siliguri',sans-serif; text-decoration:none; white-space:nowrap;
  transition:color .2s ease;
}
.site-nav__link:hover,.site-nav__link:focus-visible{ color:var(--hdr-hover); }
.site-nav__link::after{
  content:""; position:absolute; left:0; right:0; bottom:8px; height:2px; border-radius:2px;
  background:var(--hdr-gold); transform:scaleX(0); transition:transform .2s ease;
}
.site-nav__link[aria-current="page"]::after{ transform:scaleX(1); }
.site-nav__toggle{
  display:inline-grid; place-items:center; width:28px; height:44px; margin-left:2px; padding:0;
  border:0; background:none; color:var(--hdr-text); font-size:13px; cursor:pointer;
  transition:color .2s ease, transform .2s ease;
}
.site-nav__toggle:hover{ color:var(--hdr-hover); }
.has-sub.is-open .site-nav__toggle{ transform:rotate(180deg); color:var(--hdr-hover); }
.site-nav__sub{
  position:absolute; top:100%; left:-14px; z-index:5; min-width:190px; margin:0; padding:8px;
  list-style:none; background:#fff; border:1px solid var(--hdr-line); border-radius:12px;
  box-shadow:0 14px 30px rgba(59,43,38,.14);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .site-nav__sub,.has-sub:focus-within .site-nav__sub,.has-sub.is-open .site-nav__sub{
  opacity:1; visibility:visible; transform:translateY(0);
}
.has-sub.is-closed .site-nav__sub{ opacity:0; visibility:hidden; transform:translateY(6px); }
.site-nav__sub:empty{ display:none; }
.site-nav__toggle[hidden],.site-drawer__toggle[hidden]{ display:none; }
.site-nav__sub a{
  display:flex; align-items:center; min-height:44px; padding:0 12px; border-radius:8px;
  color:var(--hdr-text); font:600 15px 'Hind Siliguri',sans-serif; text-decoration:none;
}
.site-nav__sub a:hover,.site-nav__sub a:focus-visible{ background:#FBF3EC; color:var(--hdr-hover); }
.site-nav__sub a[aria-current="page"]{ color:var(--hdr-hover); box-shadow:inset 3px 0 0 var(--hdr-gold); }

/* ----- WhatsApp button ----- */
.site-header__wa{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:0 0 auto;
  min-width:44px; min-height:44px; padding:0 16px; border-radius:999px;
  background:var(--hdr-wa); color:#fff; font:700 15px 'Hind Siliguri',sans-serif; text-decoration:none;
  box-shadow:0 6px 14px rgba(31,168,85,.25); transition:background .2s ease, transform .2s ease;
}
.site-header__wa:hover{ background:var(--hdr-wa-dark); transform:translateY(-1px); }
.site-header__wa svg,.site-drawer__wa svg{ width:22px; height:22px; flex:0 0 auto; fill:currentColor; }

/* ----- Burger (mobile only) ----- */
.site-header__burger{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  width:44px; height:44px; flex:0 0 44px; padding:0; border:0; border-radius:10px; background:transparent; cursor:pointer;
}
.site-header__burger span{ display:block; width:22px; height:2px; border-radius:2px; background:var(--hdr-text); }
.site-header__burger:hover{ background:#FBF3EC; }

/* Mobile layout: ☰ left · logo centre · WhatsApp icon right */
@media (max-width:1023.98px){
  .site-header__inner{ justify-content:space-between; gap:8px; }
  .site-header__logo{ position:absolute; left:50%; transform:translateX(-50%); }
  .site-header__inner{ position:relative; }
  .site-header__wa{ width:44px; height:44px; padding:0; }
  .site-header__wa span{ display:none; }
}
@media (min-width:1024px){
  .site-header__burger{ display:none; }
  .site-nav{ display:flex; }
}

/* ----- Mobile drawer ----- */
.site-drawer[hidden]{ display:none; }
.site-drawer{ position:fixed; inset:0; z-index:1000; }
.site-drawer__backdrop{ position:absolute; inset:0; background:rgba(20,12,10,.45); opacity:0; transition:opacity .25s ease; }
.site-drawer__panel{
  position:absolute; top:0; bottom:0; left:0; display:flex; flex-direction:column;
  width:80%; max-width:320px; padding:12px 16px calc(16px + env(safe-area-inset-bottom));
  background:var(--hdr-bg); box-shadow:12px 0 30px rgba(20,12,10,.2); overflow-y:auto;
  transform:translateX(-100%); transition:transform .28s cubic-bezier(.2,.7,.2,1); outline:none;
}
.site-drawer.is-open .site-drawer__backdrop{ opacity:1; }
.site-drawer.is-open .site-drawer__panel{ transform:translateX(0); }
.site-drawer__head{ display:flex; align-items:center; justify-content:space-between; padding-bottom:10px; border-bottom:1px solid var(--hdr-line); }
.site-drawer__head img{ display:block; height:46px; width:auto; }
.site-drawer__close{
  width:44px; height:44px; border:0; border-radius:10px; background:transparent;
  color:var(--hdr-text); font-size:22px; cursor:pointer;
}
.site-drawer__close:hover{ background:#FBF3EC; }
.site-drawer__list{ flex:1; margin:8px 0 0; padding:0; list-style:none; }
.site-drawer__list > li{ border-bottom:1px solid #F2E9DC; }
.site-drawer__list a{
  display:flex; align-items:center; min-height:48px; color:var(--hdr-text);
  font:600 16px 'Hind Siliguri',sans-serif; text-decoration:none;
}
.site-drawer__list a:hover,.site-drawer__list a[aria-current="page"]{ color:var(--hdr-hover); }
.site-drawer__list a[aria-current="page"]{ box-shadow:inset 0 -2px 0 var(--hdr-gold); }
.site-drawer__row{ display:flex; align-items:center; justify-content:space-between; }
.site-drawer__row a{ flex:1; }
.site-drawer__toggle{
  width:44px; height:44px; border:0; border-radius:10px; background:transparent;
  color:var(--hdr-text); font-size:15px; cursor:pointer; transition:transform .2s ease;
}
.site-drawer__toggle[aria-expanded="true"]{ transform:rotate(180deg); color:var(--hdr-hover); }
.site-drawer__sub{ margin:0 0 8px; padding:0 0 0 14px; list-style:none; border-left:2px solid var(--hdr-gold); }
.site-drawer__sub a{ min-height:44px; font-size:15px; font-weight:500; }
.site-drawer__wa{
  display:flex; align-items:center; justify-content:center; gap:10px; min-height:52px; margin-top:18px;
  border-radius:14px; background:var(--hdr-wa); color:#fff; font:700 17px 'Hind Siliguri',sans-serif; text-decoration:none;
  box-shadow:0 10px 20px rgba(31,168,85,.28);
}
.site-drawer__wa:hover{ background:var(--hdr-wa-dark); }
html.site-menu-open,html.site-menu-open body{ overflow:hidden; }

.site-header a:focus-visible,.site-header button:focus-visible,.site-drawer a:focus-visible,.site-drawer button:focus-visible{
  outline:3px solid rgba(178,58,94,.45); outline-offset:2px;
}
@media (prefers-reduced-motion:reduce){
  .site-drawer__panel,.site-drawer__backdrop,.site-nav__sub{ transition:none; }
}
/* Sub-categories (admin: মূল ক্যাটাগরি) sit indented under their main category */
.site-nav__sub li.is-sub a{ padding-left:30px; font-size:14px; }
.site-nav__sub li.is-sub a::before,.site-drawer__sub li.is-sub a::before{ content:"– "; color:var(--hdr-gold); }
.site-drawer__sub li.is-sub a{ padding-left:14px; font-size:14px; }
