/* Nibras v2 — desktop header (≥900px). Mobile keeps its own header; nothing here applies below 900px. */
:root{
	--brand:#1456B8;        /* প্রধান নীল: সার্চ বাটন, লিংক, ফোকাস */
	--brand-dark:#0B3A82;   /* গাঢ় নেভি: নেভ বার, বাটন হোভার */
	--brand-darker:#072A5E; /* মেগা মেনু/বিষয় বোতামের গাঢ় অংশ, ছায়া */
	--brand-light:#4F8FE6;  /* নেভ হোভার আন্ডারলাইন, আইকন হাইলাইট */
	--brand-soft:#EAF2FF;   /* হালকা নীল ব্যাকগ্রাউন্ড */
	--ink:#1F2937;          /* প্রধান টেক্সট */
	--muted:#6B7280;        /* গৌণ টেক্সট */
	--topbar-ink:#4B5563;   /* টপ বারের টেক্সট (AA কনট্রাস্ট নিশ্চিত) */
	--line:#E5E9F0;         /* বর্ডার */
	--bg:#FFFFFF;
	--topbar-bg:#F3F6FB;    /* টপ বারের হালকা নীলাভ ধূসর */
	--danger:#D92D20;       /* শুধু কার্ট ব্যাজ ও "হট" ট্যাগ */
	--dh-top-h:36px;
	--dh-main-h:76px;
	--dh-nav-h:52px;
	--dh-font-size:15px;
	--dh-radius:12px;
	--dh-ease:cubic-bezier(.22,.61,.36,1);
}

.nb-dh-visually{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}

/* Show / hide: desktop header at 900px and up; the mobile header is removed from the DOM there (see header.php) */
.nb-dh{display:none}
@media (min-width:900px){
	/* display:contents: the sticky main header below is then relative to the whole page, not to this wrapper */
	.nb-dh{display:contents;font-size:var(--dh-font-size);color:var(--ink)}
	.nb-header--legacy{display:none!important}
}
.nb-dh svg{display:block}
.nb-dh-ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.nb-dh__wrap{max-width:1200px;margin:0 auto;padding:0 20px;box-sizing:border-box}

/* Top bar */
.nb-dh__top{background:var(--topbar-bg);border-bottom:1px solid var(--line);height:var(--dh-top-h);font-size:13px;color:var(--topbar-ink)}
.nb-dh__toprow{display:flex;align-items:center;justify-content:space-between;height:var(--dh-top-h)}
.nb-dh__top-l{display:flex;align-items:center;gap:8px}
.nb-dh__top-l .nb-dh-ic{width:15px;height:15px;color:var(--brand)}
.nb-dh__top-l a{color:var(--ink);font-weight:600;text-decoration:none}
.nb-dh__top-l a:hover{color:var(--brand)}
.nb-dh__sep{width:1px;height:14px;background:#CBD2DC;margin:0 6px}
.nb-dh__top-r{display:flex;align-items:center;gap:22px}
.nb-dh__top-r a{color:var(--topbar-ink);text-decoration:none;transition:color .2s var(--dh-ease)}
.nb-dh__top-r a:hover,.nb-dh__top-r a:focus-visible{color:var(--brand)}

/* Sticky: only the main header (logo, search, account, cart). The navigation bar below it scrolls away. No height change on scroll (no layout shift). */
.nb-dh__sticky{position:sticky;top:0;z-index:60}
body.admin-bar .nb-dh__sticky{top:32px}
@media (min-width:782px){body.admin-bar .nb-dh__sticky{top:32px}}
.nb-dh__main{background:var(--bg);height:var(--dh-main-h);position:relative;transition:box-shadow .3s var(--dh-ease)}
.nb-dh--stuck .nb-dh__main{box-shadow:0 2px 14px rgba(17,24,39,.08)}
.nb-dh__row{display:flex;align-items:center;gap:28px;height:var(--dh-main-h)}

.nb-dh__logo{display:flex;align-items:center;flex:0 0 auto;height:56px;text-decoration:none;color:var(--brand-dark);transform-origin:left center;transition:transform .3s var(--dh-ease)}
.nb-dh--stuck .nb-dh__logo{transform:scale(.78)}
.nb-dh__logo-img{max-height:56px;width:auto;display:block}
.nb-dh__brand{font-size:22px;font-weight:700;letter-spacing:.2px;white-space:nowrap}

/* Search: one bordered field with category, input and button */
.nb-dh .nb-dh-search{position:relative;flex:1 1 auto;max-width:720px;display:flex;align-items:stretch;height:46px;margin:0;background:#fff;border:2px solid var(--brand);border-radius:var(--dh-radius);box-sizing:border-box;transition:box-shadow .2s var(--dh-ease)}
.nb-dh .nb-dh-search:focus-within{box-shadow:0 0 0 4px rgba(20,86,184,.15)}
.nb-dh-search__cat{flex:0 0 auto;max-width:150px;border:0;border-right:1px solid var(--line);background:#F7FAFF;color:var(--ink);font:inherit;font-size:14px;padding:0 30px 0 12px;border-radius:10px 0 0 10px;cursor:pointer;appearance:auto}
.nb-dh-search__cat:focus-visible{outline:2px solid var(--brand-light);outline-offset:-2px}
.nb-dh .nb-dh-search input[type=search]{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;box-shadow:none;padding:0 14px;font:inherit;font-size:15px;color:var(--ink);border-radius:0;height:auto}
.nb-dh .nb-dh-search input[type=search]::placeholder{color:#8A93A3}
.nb-dh .nb-search__btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;border:0;margin:0;padding:0 22px;background:var(--brand);color:#fff;font:inherit;font-size:15px;font-weight:600;border-radius:0 10px 10px 0;cursor:pointer;transition:background .2s var(--dh-ease)}
.nb-dh .nb-search__btn:hover{background:var(--brand-dark)}
.nb-dh .nb-search__btn:focus-visible{outline:2px solid var(--brand-light);outline-offset:-4px}
.nb-dh .nb-search__btn svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round}
.nb-dh .nb-sugg{top:calc(100% + 6px);left:-2px;right:-2px;border-radius:12px;box-shadow:0 16px 36px rgba(7,42,94,.18);border:1px solid var(--line)}

/* Account / wishlist / cart */
.nb-dh__actions{display:flex;align-items:center;gap:4px;flex:0 0 auto;margin-left:auto}
.nb-dh-act{position:relative;display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:600;font-size:15px;white-space:nowrap;transition:background .2s var(--dh-ease),color .2s var(--dh-ease)}
.nb-dh-act svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nb-dh-act:hover{background:var(--brand-soft);color:var(--brand)}
.nb-dh-act:focus-visible{outline:2px solid var(--brand-light);outline-offset:2px}
.nb-dh-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font-size:12px;font-weight:700;line-height:1;box-sizing:border-box}
.nb-dh-badge--soft{background:var(--brand-soft);color:var(--brand-dark)}
.nb-dh-act .nb-dh-badge{position:absolute;top:3px;left:22px;min-width:18px;height:18px;padding:0 5px;font-size:11px;box-shadow:0 0 0 2px #fff}
.nb-dh-cart .nb-cart__count{position:absolute;top:3px;left:22px;min-width:18px;height:18px;padding:0 5px;font-size:11px;box-shadow:0 0 0 2px #fff}
.nb-dh-cart .nb-dh-act__label{margin-left:12px}
.nb-dh-cart__total{font-size:13px;font-weight:600;color:var(--brand-dark);border-left:1px solid var(--line);padding-left:8px;margin-left:2px}
.nb-dh-cart__total:empty{display:none}

/* Navigation bar */
.nb-dh__navwrap{position:relative;z-index:55}
.nb-dh__nav{background:var(--brand-dark);height:var(--dh-nav-h);box-shadow:0 4px 12px rgba(7,42,94,.18);position:relative}
.nb-dh__navrow{display:flex;align-items:stretch;height:var(--dh-nav-h)}
.nb-dh-cats{display:inline-flex;align-items:center;gap:10px;height:var(--dh-nav-h);padding:0 22px 0 40px;margin:0 16px 0 -20px;border:0;background:var(--brand-darker);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s var(--dh-ease)}
.nb-dh-cats .nb-dh-ic{width:20px;height:20px;stroke:#fff}
.nb-dh-cats:hover{background:#05224A}
.nb-dh-cats:focus-visible{outline:2px solid var(--brand-light);outline-offset:-3px}
.nb-dh-chev{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--dh-ease)}
.nb-dh-cats[aria-expanded=true] .nb-dh-chev{transform:rotate(180deg)}
.nb-dh__menu{display:flex;height:var(--dh-nav-h)}
.nb-dh__links{display:flex;align-items:stretch;list-style:none;margin:0;padding:0;height:var(--dh-nav-h)}
.nb-dh__links>li{display:flex}
.nb-dh__links>li>a{position:relative;display:flex;align-items:center;gap:6px;padding:0 16px;color:#fff;opacity:.92;text-decoration:none;font-size:16px;font-weight:500;transition:opacity .2s var(--dh-ease)}
.nb-dh__links>li>a::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--brand-light);transform:scaleX(0);transition:transform .22s var(--dh-ease)}
.nb-dh__links>li>a:hover,.nb-dh__links>li>a:focus-visible,.nb-dh__links>li.current-menu-item>a,.nb-dh__links>li.current_page_item>a{opacity:1;background:rgba(255,255,255,.06)}
.nb-dh__links>li>a:hover::after,.nb-dh__links>li>a:focus-visible::after,.nb-dh__links>li.current-menu-item>a::after,.nb-dh__links>li.current_page_item>a::after{transform:scaleX(1)}
.nb-dh__links>li>a:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.nb-dh-hot>a::before{content:"হট";display:inline-block;background:var(--danger);color:#fff;font-size:11px;font-weight:700;line-height:1;padding:3px 7px;border-radius:999px}
.nb-dh__track{display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:0 4px;color:#fff;text-decoration:none;font-weight:500;opacity:.92;position:relative}
.nb-dh__track .nb-dh-ic{width:19px;height:19px;stroke:#fff}
.nb-dh__track:hover,.nb-dh__track:focus-visible{opacity:1;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:3px;text-decoration-color:var(--brand-light)}
.nb-dh__track:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:4px}

/* Mega panels */
.nb-dh-mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:3px solid var(--brand-light);border-radius:0 0 14px 14px;box-shadow:0 22px 44px rgba(7,42,94,.18);opacity:0;transform:translateY(8px);transition:opacity .2s var(--dh-ease),transform .2s var(--dh-ease);z-index:70}
.nb-dh-mega.is-open{opacity:1;transform:none}
.nb-dh-mega__inner{display:grid;grid-template-columns:280px minmax(0,1fr);padding:0!important}
.nb-dh-mega__cats{list-style:none;margin:0;padding:8px 0;background:var(--brand-soft);border-radius:0 0 0 14px}
.nb-dh-mega__cats a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 18px 0 16px;border-left:3px solid transparent;color:var(--ink);text-decoration:none;font-size:15px;transition:background .15s,color .15s,border-color .15s}
.nb-dh-mega__cats a:hover,.nb-dh-mega__cats a:focus-visible,.nb-dh-mega__cats a.is-active{background:#fff;color:var(--brand-dark);border-left-color:var(--brand)}
.nb-dh-mega__cats a:focus-visible{outline:2px solid var(--brand-light);outline-offset:-2px}
.nb-dh-mega__n{font-size:12.5px;color:var(--muted);white-space:nowrap}
.nb-dh-mega__panel{padding:20px 26px 16px;min-height:300px;display:flex;flex-direction:column}
.nb-dh-mega__pv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;flex:1 1 auto}
.nb-dh-mega__pv.is-loading{opacity:.45}
.nb-dh-pv__empty{grid-column:1/-1;margin:auto;color:var(--muted);font-size:14px}
.nb-dh-pv__item{display:flex;flex-direction:column;gap:3px;text-decoration:none;color:var(--ink);min-width:0;border-radius:10px;padding:6px;margin:-6px;transition:background .2s var(--dh-ease)}
.nb-dh-pv__item:hover,.nb-dh-pv__item:focus-visible{background:var(--brand-soft)}
.nb-dh-pv__item:focus-visible{outline:2px solid var(--brand-light)}
.nb-dh-pv__cover{display:block;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:#F1F4F8;box-shadow:0 2px 8px rgba(17,24,39,.12);margin-bottom:6px}
.nb-dh-pv__cover img{display:block;width:100%;height:100%;object-fit:cover}
.nb-dh-pv__t{font-size:14px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nb-dh-pv__a{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-dh-pv__p{font-size:13.5px;font-weight:700;color:var(--brand-dark)}
.nb-dh-mega__all{align-self:flex-end;margin-top:12px;color:var(--brand);font-weight:600;text-decoration:none;font-size:14.5px}
.nb-dh-mega__all:hover,.nb-dh-mega__all:focus-visible{text-decoration:underline;text-underline-offset:4px}

/* Authors panel */
.nb-dh-mega__inner--authors{display:block;padding:18px 24px 16px!important}
.nb-dh-mega__top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.nb-dh-mega__top strong{font-size:16px;color:var(--ink)}
.nb-dh-mega__top input{width:280px;height:38px;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;font-size:14px;color:var(--ink);outline:0}
.nb-dh-mega__top input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(20,86,184,.15)}
.nb-dh-au-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 10px}
.nb-dh-au{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--ink);min-width:0;transition:background .2s var(--dh-ease)}
.nb-dh-au:hover,.nb-dh-au:focus-visible{background:var(--brand-soft)}
.nb-dh-au:hover strong,.nb-dh-au:focus-visible strong{color:var(--brand)}
.nb-dh-au:focus-visible{outline:2px solid var(--brand-light)}
.nb-dh-au__av{flex:0 0 auto;width:40px;height:40px;border-radius:50%;background:var(--brand-soft);color:var(--brand-dark);display:grid;place-items:center;font-weight:700;font-size:16px;overflow:hidden}
.nb-dh-au__av img{width:100%;height:100%;object-fit:cover;display:block}
.nb-dh-au__body{display:flex;flex-direction:column;min-width:0}
.nb-dh-au__body strong{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-dh-au__body small{font-size:12px;color:var(--muted)}
.nb-dh-au__none{margin:12px 0 0;color:var(--muted);font-size:14px}
.nb-dh-mega__foot{text-align:right;margin-top:10px}

/* Motion preference */
@media (prefers-reduced-motion:reduce){
	.nb-dh *,.nb-dh-mega{transition:none!important}
}

/* ---- Live search suggestions ---- */
.nb-dh .nb-dh-sug{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:60;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 40px rgba(7,42,94,.18);padding:8px;max-height:70vh;overflow:auto;text-align:left}
.nb-dh .nb-dh-sug__head{font-size:12px;font-weight:600;color:var(--muted);padding:8px 10px 4px}
.nb-dh .nb-dh-sug__empty{margin:0;padding:12px 10px;font-size:14px;color:var(--muted)}
.nb-dh .nb-dh-sug__author{display:inline-block;margin:2px 4px 6px 2px;padding:6px 12px;border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);font-size:13px;font-weight:600;text-decoration:none}
.nb-dh .nb-dh-sug__author:hover,.nb-dh .nb-dh-sug__author:focus-visible{background:var(--brand);color:#fff;outline:none}
.nb-dh .nb-dh-sug__item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;color:var(--ink);text-decoration:none}
.nb-dh .nb-dh-sug__item:hover,.nb-dh .nb-dh-sug__item:focus-visible{background:var(--brand-soft);outline:none}
.nb-dh .nb-dh-sug__img{width:36px;height:50px;flex:0 0 auto;object-fit:cover;border-radius:4px;background:#F3F4F6}
.nb-dh .nb-dh-sug__body{display:flex;flex-direction:column;gap:2px;min-width:0}
.nb-dh .nb-dh-sug__t{font-size:14px;font-weight:600;line-height:1.35;color:var(--ink)}
.nb-dh .nb-dh-sug__m{font-size:12px;color:var(--muted)}
.nb-dh .nb-dh-sug__all{display:block;margin-top:6px;padding:10px;text-align:center;color:var(--brand);font-size:14px;font-weight:600;text-decoration:none;border-top:1px solid var(--line)}
.nb-dh .nb-dh-sug__all:hover,.nb-dh .nb-dh-sug__all:focus-visible{text-decoration:underline;outline:none}

/* ---- "আরও" overflow menu ---- */
.nb-dh .nb-dh__links>li.nb-dh-more{position:relative;display:flex}
.nb-dh .nb-dh-more__btn{display:inline-flex;align-items:center;gap:6px;height:var(--dh-nav-h);padding:0 16px;border:0;background:transparent;color:#fff;opacity:.92;font:inherit;font-size:16px;font-weight:500;cursor:pointer;transition:opacity .2s var(--dh-ease),background .2s var(--dh-ease)}
.nb-dh .nb-dh-more__btn:hover,.nb-dh .nb-dh-more__btn[aria-expanded=true]{opacity:1;background:rgba(255,255,255,.06)}
.nb-dh .nb-dh-more__btn:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.nb-dh .nb-dh-more__chev{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s var(--dh-ease)}
.nb-dh .nb-dh-more__btn[aria-expanded=true] .nb-dh-more__chev{transform:rotate(180deg)}
.nb-dh .nb-dh-more__menu{position:absolute;top:100%;right:0;z-index:70;min-width:220px;margin:0;padding:6px;list-style:none;background:var(--brand-dark);border-radius:0 0 12px 12px;box-shadow:0 20px 40px rgba(7,42,94,.28)}
.nb-dh .nb-dh-more__menu li{display:block}
.nb-dh .nb-dh-more__menu a{display:block;padding:11px 14px;border-radius:8px;color:#fff;text-decoration:none;font-size:15px;font-weight:500}
.nb-dh .nb-dh-more__menu a:hover,.nb-dh .nb-dh-more__menu a:focus-visible{background:rgba(255,255,255,.12);outline:none}
.nb-dh .nb-dh-more__menu .current-menu-item>a{background:rgba(255,255,255,.12)}
/* Authors trigger: small chevron (inline SVG as CSS background, no external request) */
.nb-dh__links>li.nb-dh-mega-authors>a::before{content:"";order:2;display:inline-block;width:10px;height:10px;margin-left:2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/10px 10px;transition:transform .2s var(--dh-ease)}
.nb-dh__links>li.nb-dh-mega-authors>a[aria-expanded=true]::before{transform:rotate(180deg)}

/* ---- Mobile header, drawer and bottom tab bar: blue/navy, no orange (below 900px) ----
   Panel colours set --nb-primary / --nb-cart on :root. Here the mobile chrome gets the blue palette instead. */
@media (max-width:899.98px){
  .nb-header,.nb-nav,.nb-tabbar,.nb-drawer-backdrop{--nb-primary:#1456B8;--nb-cart:#1456B8;--nb-menu-bg:#0B3A82;--nb-menu-hover:#4F8FE6;--nb-menu-indicator:#4F8FE6}
  /* Cart badge: small red dot with a white ring, pinned to the icon's top-right corner */
  .nb-header .nb-cart{position:relative;display:inline-flex;align-items:center}
  .nb-header .nb-cart__count{position:absolute;top:-6px;right:-8px;min-width:17px;height:17px;padding:0 4px;font-size:10px;line-height:17px;border-radius:999px;background:var(--danger);color:#fff;box-shadow:0 0 0 2px #fff;text-align:center}
  .nb-tabbar__count{background:var(--danger);color:#fff;box-shadow:0 0 0 2px #fff}
  .nb-header .nb-menu a[aria-current=page],.nb-nav .nb-menu .current-menu-item>a,.nb-nav .nb-menu a:hover{color:#1456B8}
  .nb-nav .nb-btn,.nb-header .nb-btn{background:#1456B8;color:#fff;border-color:#1456B8}
  .nb-nav .nb-btn:hover,.nb-header .nb-btn:hover{background:#0B3A82;border-color:#0B3A82}
  .nb-tabbar__item.is-active{color:#1456B8}
  .nb-header a:not(.nb-btn),.nb-header .nb-icon-btn{color:#1F2937}
}

/* Desktop cart badge: red (spec colour for cart counts), beats the Panel primary colour in main.css */
.nb-dh .nb-cart__count{background:var(--danger);color:#fff}
/* Cart icon refresh: outline trolley instead of a bag; desktop palette stays unchanged. */
.nb-dh-cart svg.nb-cart-svg{width:26px;height:26px;stroke-width:1.8}
