/* ============================================================
   Header (owner, 2026-10-02): the NerdWare eBay banner's swirls
   at both edges, the brush logo, one solid search box, coins /
   account / basket like a big shop. Soft cyan with faint swirls
   (owner picked "B") — the full #4AD6E7 pulled the eye away from
   the cards. The full-cyan header is kept in the Theme1 theme.
   The menu bar is navy where it shows. The shop open/closed sign
   (.nw-hero-hours) sits on the home carousel.
   Loaded after mobile.css so its phone rules win.
   ============================================================ */

.nw-topbar { display: none; }

.nw-header {
  position: sticky; top: 0; z-index: 50;
  background: #d7f4f8; box-shadow: none;   /* soft business cyan */
  border-bottom: 3px solid #0b2239;          /* solid dark bottom (owner) */
}
.nw-swirls { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.admin-bar .nw-header { top: 32px; }

/* The whole banner behind the header, see-through (owner, 2026-10-02). Its two
   swirl panels are as wide as in the banner — left 27%, right 29% of the
   header — so they stretch out from both edges; the thin header shows their
   middle band. Background images, so phones (where they're hidden) never
   download them. */
.nw-swirl {
  position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%; opacity: .28;   /* faint */
}
.nw-swirl-l { left: 0; width: 26.72%; aspect-ratio: 342 / 290; background-image: url("swirl-left.png"); }
.nw-swirl-r { right: 0; width: 28.98%; aspect-ratio: 371 / 290; background-image: url("swirl-right.png"); }

/* The banner sits BEHIND, see-through (owner); everything lines up with the page. */
.nw-header .nw-wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; min-height: 84px; }

.nw-logo { position: relative; flex-shrink: 0; align-self: stretch; width: calc(92px * 521 / 159); }
.nw-logo img {
  position: absolute; left: 0; top: 6px; display: block; height: 92px; max-height: none; width: auto;
  filter: drop-shadow(0 4px 0 rgba(11, 34, 57, .35)) drop-shadow(0 10px 14px rgba(11, 34, 57, .25));
  transform-origin: 30% 40%; transition: transform .15s;
}
.nw-logo:hover img { transform: rotate(-2deg) scale(1.04); }

/* Search: one white box, a quiet "where" part, a navy button. */
.nw-search {
  flex: 1; max-width: 720px; height: 46px; display: flex; background: #fff;
  border-radius: 12px; overflow: hidden; box-shadow: 0 3px 0 rgba(11, 34, 57, .18);
}
.nw-search select {
  border: 0; border-right: 2px solid #e8eef5; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M0 0l5 6 5-6z" fill="%23596b86"/></svg>') no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; color: #0b2239; font: inherit; font-weight: 800; font-size: .9rem;
  padding: 0 34px 0 18px; max-width: 180px; cursor: pointer;
}
.nw-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 0 18px; font: inherit; font-weight: 700; font-size: 1rem; color: #0b2239; outline: none; }
.nw-search input[type="search"]::placeholder { color: #7d8ea8; }
.nw-search:focus-within { box-shadow: 0 3px 0 rgba(11, 34, 57, .18), 0 0 0 3px #0b2239; }
.nw-search button { border: 0; width: 58px; padding: 0; background: #0b2239; color: #4ad6e7; display: grid; place-items: center; cursor: pointer; }
.nw-search button:hover { background: #0b2239; }
.nw-search button svg { width: 20px; height: 20px; }

/* Coins / account / basket */
.nw-header-icons { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nw-hero-hours {
  position: absolute; top: 18px; right: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: rgba(11, 34, 57, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: .82rem; font-weight: 800; white-space: nowrap;
}
.nw-hd-btn {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px; border-radius: 12px;
  color: #0b2239; text-decoration: none; line-height: 1.1; white-space: nowrap; transition: background .15s;
}
.nw-hd-btn { background: #fff; box-shadow: 0 2px 0 rgba(11, 34, 57, .12); }
.nw-hd-btn:hover { background: #fff; color: #0b2239; text-decoration: none; box-shadow: 0 3px 0 rgba(11, 34, 57, .22); }
.nw-hd-btn > svg, .nw-hd-bub > svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.nw-hd-txt { display: flex; flex-direction: column; }
.nw-hd-txt small { font-size: .7rem; font-weight: 700; opacity: .75; }
.nw-hd-txt b { font-size: .95rem; font-weight: 900; }
.nw-hd-txt b .woocommerce-Price-amount { font-weight: 900; }
.nw-hd-coins { background: #fff; box-shadow: 0 3px 0 rgba(11, 34, 57, .15); }
.nw-hd-coins:hover { background: #fff8dc; }
.nw-hd-ico { font-size: 20px; line-height: 1; }
.nw-hd-coins .nw-hd-txt { flex-direction: column-reverse; }
.nw-hd-coins .nw-hd-txt b { font-size: 1rem; }
.nw-hd-bub { position: relative; margin-right: 4px; }
.nw-header .nw-basket-count {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #0b2239; color: #4ad6e7; font-size: .72rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #d7f4f8;
}
.nw-header .nw-basket-count[hidden] { display: none; }
.nw-menu-toggle { color: #0b2239; }

/* The menu bar (only on pages without the side menu, as before): navy, white links, cyan underline. */
.nw-nav { background: #0b2239; }
.nw-nav > .nw-wrap > ul { flex-wrap: wrap; min-width: 0; margin-left: calc(92px * 521 / 159 + 10px); }
.nw-nav > .nw-wrap > ul > li > a { color: #d2f1f7; font-weight: 800; font-size: .88rem; padding: 11px 9px 8px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nw-nav > .nw-wrap > ul > li > a:hover, .nw-nav > .nw-wrap > ul > li.is-open > a { background: rgba(255, 255, 255, .06); color: #fff; border-bottom-color: #4ad6e7; }
.nw-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.nw-hero-hours.is-open .nw-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }

/* Laptops: a little tighter. */
@media (max-width: 1300px) {
  .nw-logo { width: calc(76px * 521 / 159); }
  .nw-logo img { height: 76px; top: 4px; }
  .nw-nav > .nw-wrap > ul { margin-left: 0; }
}
@media (max-width: 1250px) {
  .nw-header .nw-wrap { gap: 14px; min-height: 76px; }
  .nw-hd-coins .nw-hd-txt small, .nw-hd-btn:not(.nw-hd-basket):not(.nw-hd-coins) .nw-hd-txt small { display: none; }
}
@media (max-width: 1100px) {
  .nw-hd-btn:not(.nw-hd-basket) .nw-hd-txt { display: none; }
}

/* Tablets and phones: logo + icons on one row, search full width below. */
@media (max-width: 900px) {
  .nw-swirl { display: none; }
  .nw-header .nw-wrap { flex-wrap: wrap; min-height: 0; gap: 10px 8px; padding-top: 10px; padding-bottom: 12px; }
  .nw-menu-toggle { display: block; order: 1; padding: 4px; }
  .nw-logo { order: 2; width: auto; align-self: center; }
  .nw-nav > .nw-wrap > ul { margin-left: 0; }
  .nw-logo img { position: static; height: 46px; filter: drop-shadow(0 3px 0 rgba(11, 34, 57, .28)); }
  .nw-header-icons { order: 3; gap: 2px; }
  .nw-search { order: 4; flex-basis: 100%; max-width: none; height: 48px; }
  .nw-search select { display: none; }
  .nw-hd-btn { padding: 6px 8px; }
  .nw-hd-btn .nw-hd-txt { display: none; }
  .nw-hd-coins { display: none; }
  .nw-header .nw-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 700px) {
  .nw-logo img { height: 40px; }
  .nw-hero-hours { top: 12px; right: 12px; padding: 5px 11px; font-size: .74rem; }
  .nw-header .nw-wrap { padding-left: 12px; padding-right: 12px; }
}

/* ============================================================
   BLUE header, red accents (owner, 2026-10-02): "you have the blue
   and red to work with, make it work". Blue = where to look, red =
   buy: blue bar, red line under it, red Basket button. No swirls.
   Overrides the soft-cyan rules above.
   ============================================================ */
.nw-header { background: linear-gradient(180deg, #3d7fc8 0%, #3371b5 100%); border-bottom: 4px solid #000; }   /* solid black bottom (owner) */
.nw-swirls { display: none; }
.nw-search { box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.nw-search:focus-within { box-shadow: 0 3px 0 rgba(0, 0, 0, .15), 0 0 0 3px #0b2239; }
.nw-search button { background: #0b2239; color: #fff; }
.nw-search button:hover { background: #173a5e; }
.nw-hd-btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.nw-hd-btn:hover { background: rgba(255, 255, 255, .28); color: #fff; box-shadow: none; }
.nw-hd-basket { background: var(--buy); color: var(--buy-ink); box-shadow: 0 3px 0 var(--buy-edge); }
.nw-hd-basket:hover { background: var(--buy-dark); color: var(--buy-ink); box-shadow: 0 3px 0 var(--buy-edge); }
.nw-hd-coins { background: #fff; color: #0b2239; }
.nw-hd-coins:hover { background: #fff8dc; color: #0b2239; }
.nw-header .nw-basket-count { background: #fff; color: var(--buy-text); box-shadow: 0 0 0 2px var(--buy); }
.nw-menu-toggle { color: #fff; }
.nw-logo img { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)) drop-shadow(0 10px 14px rgba(0, 0, 0, .2)); }

/* Menu bar (pages without the side menu): navy, so it sits apart from the blue header */
.nw-nav { background: #0b2239; }
.nw-nav > .nw-wrap > ul > li > a { color: #fff; }
.nw-nav > .nw-wrap > ul > li > a:hover, .nw-nav > .nw-wrap > ul > li.is-open > a { background: rgba(255, 255, 255, .08); color: #fff; border-bottom-color: var(--hue); }
