/* Juicy Joes — Neon Kong shell: topbar, header, mega menu, mobile drawer, search suggestions, cart drawer, footer */

/* ---- Topbar ticker ---- */
.topbar { position: relative; z-index: 8; background: var(--glass); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; white-space: nowrap; color: var(--cream-2); }
.topbar-track { display: inline-flex; gap: 3.2rem; padding: .55rem 0 .55rem 1rem; animation: ticker 30s linear infinite; }
.topbar-track span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); margin-right: 1.1rem; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }
.topbar:hover .topbar-track { animation-play-state: paused; }

/* ---- Header ---- */
header.site { position: sticky; top: 0; z-index: var(--z-header); background: rgba(7,5,6,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
/* 0.5.32 (Shane, 3 Oct: "When not at the top of the page, the header is being cut off by the top section"). Signed-in
   staff get the WordPress toolbar, fixed at the top: 32px, 46px at 782px and below, and at 600px and below it scrolls
   away with the page. The header stuck at top: 0 underneath it. Visitors never get the toolbar, so this only applies
   with its body class. --header-h (unset elsewhere, 120px fallback) also moves the other sticky panels below it. */
.admin-bar header.site { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar { --header-h: calc(120px + var(--wp-admin--admin-bar--height, 32px)); }
@media screen and (max-width: 600px) {
  .admin-bar header.site { top: 0; }
  .admin-bar { --header-h: 120px; }
}
.head-main { display: grid; grid-template-columns: auto auto 1fr auto; gap: clamp(10px, 2.5vw, 36px); align-items: center; padding: 12px var(--gutter); max-width: var(--container); margin: 0 auto; }
.menu-btn { display: none; }
.brand img { height: 48px; width: auto; transition: height var(--t); }
header.site.is-compact .brand img { height: 36px; }
header.site.is-compact .head-main { padding-top: 8px; padding-bottom: 8px; }

/* search with suggestions */
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--brass-2); border-radius: var(--r); padding: 0 6px 0 14px; height: var(--control-h); max-width: 640px; width: 100%; justify-self: center; transition: box-shadow var(--t), border-color var(--t); }
.search:focus-within { border-color: var(--brass); box-shadow: var(--glow-brass); }
.search > svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; color: var(--muted); }
.search input { flex: 1; background: none; border: 0; color: var(--cream); font-size: .95rem; min-width: 0; outline: none; height: 100%; }
.search input::placeholder { color: var(--muted); }
.search .go { background: var(--brass); color: var(--night); border-radius: var(--r-sm); height: 34px; padding: 0 16px; font-weight: 600; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.search .clear { display: none; width: 30px; height: 30px; place-items: center; color: var(--muted); border-radius: 50%; }
.search .clear:hover { background: var(--glass-2); color: var(--cream); }
.search.has-text .clear { display: grid; }
.search .clear svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.suggest { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); background: var(--wall); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: 0 30px 60px rgba(0,0,0,.7); z-index: var(--z-mega); padding: 8px; display: none; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest.is-open { display: block; }
.suggest h4 { font: 600 var(--fs-xs)/1 var(--body); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--brass); padding: 10px 10px 6px; }
.suggest ul { list-style: none; }
.suggest .s-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r); min-height: var(--tap); }
.suggest .s-item:hover, .suggest .s-item:focus, .suggest .s-item.is-active { background: var(--glass); outline: none; }
.suggest .s-item .th { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.suggest .s-item .th img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.suggest .s-item .th.dark { background: #0B0708; border: 1px solid var(--line); }
.suggest .s-item .th.dark img { mix-blend-mode: screen; }
.suggest .s-item .nm { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.suggest .s-item .nm small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.suggest .s-item .pr { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--cream); white-space: nowrap; text-align: right; }
.suggest .s-link { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: var(--r); font-size: var(--fs-sm); color: var(--cream-2); min-height: var(--tap); }
.suggest .s-link:hover, .suggest .s-link.is-active { background: var(--glass); color: var(--cream); }
.suggest .s-link b { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.suggest .s-empty { padding: 18px 12px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.suggest .s-empty b { display: block; color: var(--cream); margin-bottom: 4px; }
.suggest .s-foot { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px; }
.suggest .s-hint { padding: 12px; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.suggest mark { background: none; color: var(--core); text-shadow: 0 0 8px var(--neon); font-weight: 600; }

.head-actions { display: flex; align-items: center; gap: 4px; }
.age { border-color: var(--line-2); font-family: var(--sign); font-size: .95rem; color: var(--core); text-shadow: 0 0 8px var(--neon); }

/* department nav + mega menu */
.head-nav { border-top: 1px solid var(--line); position: relative; }
.head-nav > ul { list-style: none; display: flex; gap: 0; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.head-nav > ul > li { position: static; }
.head-nav .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--cream-2); position: relative; min-height: var(--tap); }
.head-nav .nav-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform var(--t); }
.head-nav .nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; background: var(--neon); box-shadow: 0 0 8px var(--neon); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.head-nav .nav-link:hover::after, .head-nav .nav-link[aria-current]::after, .head-nav .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.head-nav .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.head-nav li.sep { flex: 1; }
.head-nav li.sec .nav-link { color: var(--brass); }
header.site.is-compact .head-nav .nav-link { padding-top: 8px; padding-bottom: 8px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--wall); border-bottom: 1px solid var(--line-2); box-shadow: 0 40px 60px rgba(0,0,0,.6); z-index: var(--z-mega); display: none; }
.mega.is-open { display: block; }
.mega-inner { max-width: var(--container); margin: 0 auto; padding: var(--s5) var(--gutter) var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr; gap: var(--s6); }
.mega h4 { font: 600 var(--fs-xs)/1 var(--body); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.mega ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega ul a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; margin-left: -10px; border-radius: var(--r); font-size: var(--fs-sm); color: var(--cream-2); min-height: 40px; }
.mega ul a:hover { background: var(--glass); color: var(--cream); }
.mega ul a small { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.mega ul a.all { color: var(--brass); font-weight: 600; margin-top: 6px; }
.mega .feature { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.mega .feature .th { width: 96px; height: 110px; border-radius: var(--r-md); background: #0B0708; border: 1px solid var(--line); display: grid; place-items: end center; overflow: hidden; }
.mega .feature .th img { width: 86%; height: 92%; object-fit: contain; object-position: bottom; mix-blend-mode: screen; }
.mega .feature .th.light { background: var(--paper); place-items: center; }
.mega .feature .th.light img { mix-blend-mode: multiply; object-position: center; }
.mega .feature b { display: block; font-size: var(--fs-sm); font-weight: 600; margin: 4px 0; }
.mega .feature .price { font-size: 1.3rem; }

/* ---- Mobile nav drawer ---- */
.nav-drawer .drawer-body { padding: 0; }
.nav-drawer .search { margin: var(--s4); width: auto; max-width: none; }
.nav-drawer .nav-group { border-top: 1px solid var(--line); }
.nav-drawer .nav-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--s4); font-weight: 600; font-size: var(--fs-md); cursor: pointer; min-height: var(--tap); }
.nav-drawer .nav-group summary::-webkit-details-marker { display: none; }
.nav-drawer .nav-group summary svg { width: 16px; height: 16px; stroke: var(--brass); fill: none; stroke-width: 2.2; transition: transform var(--t); }
.nav-drawer .nav-group[open] summary svg { transform: rotate(180deg); }
.nav-drawer .nav-group ul { list-style: none; padding: 0 var(--s4) 10px; }
.nav-drawer .nav-group ul a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--r); color: var(--cream-2); font-size: var(--fs-sm); min-height: var(--tap); align-items: center; }
.nav-drawer .nav-group ul a:hover { background: var(--glass); color: var(--cream); }
.nav-drawer .nav-group ul a small { color: var(--muted); font-size: var(--fs-xs); }
.nav-drawer .nav-group ul a.all { color: var(--brass); font-weight: 600; }
.nav-drawer .nav-plain { list-style: none; border-top: 1px solid var(--line); padding: 8px 0; }
.nav-drawer .nav-plain a { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--s4); font-weight: 600; font-size: var(--fs-sm); color: var(--brass); min-height: var(--tap); }
.nav-drawer .nav-plain a.plain { color: var(--cream-2); font-weight: 500; }
.nav-drawer .drawer-foot { flex-direction: row; justify-content: space-between; align-items: center; }

/* ---- Cart drawer ---- */
.cart-drawer .drawer-body { padding-top: 4px; }
.cart-drawer .cart-line:first-child { padding-top: 6px; }
.cart-drawer .drawer-foot .summary-line { border: 0; padding: 4px 0; }
.cart-drawer .free-bar { height: 6px; background: var(--glass-3); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.cart-drawer .free-bar i { display: block; height: 100%; width: var(--p, 40%); background: linear-gradient(90deg, var(--brass-2), var(--brass)); }

/* ---- Footer ---- */
footer.site-foot { position: relative; z-index: 3; background: #040303; border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) 0 30px; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s8); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { margin: 0 0 12px; font: 600 var(--fs-xs)/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:hover { color: var(--cream); }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: var(--fs-xs); }
.warn18 { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; color: var(--cream-2); margin-top: 14px; }
.warn18 b { font-family: var(--sign); font-size: 1.2rem; color: var(--core); text-shadow: 0 0 10px var(--neon); }
.yebo { display: inline-flex; align-items: center; gap: 8px; color: var(--cream-2); }
.yebo { text-decoration: none; } /* 0.5.26: the YeboDesk logo replaces the three dots and links to yebodesk.com */
.yebo img { display: block; height: 24px; width: auto; opacity: .9; transition: opacity .2s, transform .2s; }
.yebo:hover img, .yebo:focus-visible img { opacity: 1; transform: translateY(-1px); }

/* ---- Age notice bar (utility) ---- */
.age-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modal); background: rgba(16,10,11,.96); border-top: 1px solid var(--neon); box-shadow: 0 -20px 60px rgba(0,0,0,.6); padding: var(--s4) var(--gutter); display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; transform: translateY(100%); transition: transform var(--t-slow) var(--ease-out); }
.age-bar.is-open { transform: none; }
.age-bar .sign { font-size: 2rem; }
.age-bar p { flex: 1; min-width: 240px; margin: 0; color: var(--cream-2); font-size: var(--fs-sm); }

/* ---- Responsive shell ---- */
@media (max-width: 1240px) { .head-nav li.sec { display: none; } .head-nav .nav-link { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 1100px) { .mega-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega .feature { display: none; } }
@media (max-width: 900px) {
  .head-main { grid-template-columns: auto auto 1fr auto; }
  .menu-btn { display: inline-flex; }
  .head-nav { display: none; }
  .icon-btn .lbl { display: none; }
  .brand img { height: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .head-main { grid-template-columns: auto auto auto; grid-template-areas: "menu brand actions" "search search search"; gap: 8px 10px; padding: 10px var(--gutter); }
  .menu-btn { grid-area: menu; }
  .brand { grid-area: brand; justify-self: start; }
  .head-actions { grid-area: actions; justify-self: end; }
  .search { grid-area: search; max-width: none; height: 42px; }
  .search .go { display: none; }
  .brand img { height: 36px; }
  .foot-grid { grid-template-columns: 1fr; }
  .suggest { max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { .topbar-track { animation: none; } }

/* WordPress menu output. */
.head-nav .menu-item-has-children { position: relative; }
.head-nav .sub-menu { list-style: none; position: absolute; z-index: var(--z-mega); top: 100%; left: 0; min-width: 250px; margin: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 0 0 var(--r-md) var(--r-md); background: rgba(16,10,11,.98); box-shadow: 0 24px 50px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t), transform var(--t), visibility var(--t); }
.head-nav .menu-item-has-children:hover > .sub-menu,
.head-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.head-nav .sub-menu a { display: block; min-height: var(--tap); padding: 11px 12px; color: var(--cream-2); border-radius: var(--r); }
.head-nav .sub-menu a:hover, .head-nav .sub-menu a:focus-visible { color: var(--cream); background: var(--glass-2); }
.head-nav .menu-brands > .sub-menu { left: auto; right: 0; width: min(520px, 86vw); max-height: min(70vh, 620px); overflow-y: auto; columns: 2; column-gap: 8px; }
.head-nav .menu-brands > .sub-menu li { break-inside: avoid; }
.nav-drawer .menu { list-style: none; margin: 0; padding: 8px 0; }
.nav-drawer .menu > li { border-bottom: 1px solid var(--line); }
.nav-drawer .menu a { display: block; padding: 14px 18px; color: var(--cream); font-weight: 650; }
.nav-drawer .sub-menu { display: none; list-style: none; margin: 0; padding: 0 0 8px 14px; }
.nav-drawer .submenu-open > .sub-menu { display: block; }
.nav-drawer .sub-menu a { color: var(--cream-2); font-weight: 450; }
.nav-drawer .menu-brands > .sub-menu { columns: 1; }
.has-open-layer { overflow: hidden; }
.skip-link { position: fixed; z-index: calc(var(--z-toast) + 2); top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; background: var(--cream); color: var(--night); }
.skip-link:focus { transform: none; }

/* Phone toolbars change viewport height while scrolling. Keep the header paint cheap and its height stable. */
@media (max-width: 900px) {
  header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7,5,6,.96); }
}
