/* Tablets share the desktop navigation; phones keep the complete menu. */
.desktop-navigation { display:flex; align-items:center; gap:clamp(14px,2vw,28px); font:600 14px/1.3 system-ui,sans-serif; }
#top .top-actions { gap:clamp(10px,1.6vw,22px); }
#top .top-account, .desktop-navigation > a, .top-products > summary { min-height:44px; display:inline-flex; align-items:center; color:var(--white,#eee); font:inherit; white-space:nowrap; text-decoration:none; }
.top-products { position:relative; }
.top-products > summary { cursor:pointer; list-style:none; gap:7px; }
.top-products > summary::-webkit-details-marker { display:none; }
.top-products > summary::after { content:""; width:6px; height:6px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg) translateY(-2px); }
.top-products[open] > summary::after { transform:rotate(225deg); }
.top-products-panel { position:absolute; right:-72px; top:calc(100% + 10px); width:min(620px,calc(100vw - 40px)); max-height:calc(100svh - 100px); overflow:auto; display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:12px; background:var(--theme-surface,#101410); border:1px solid var(--line,#354038); border-radius:14px; box-shadow:0 15px 50px #0004; }
.top-products-panel a { display:flex; flex-direction:column; justify-content:center; gap:5px; padding:14px; border-radius:8px; text-decoration:none; color:var(--white,#eee); font:400 13px/1.4 system-ui,sans-serif; }
.top-products-panel strong { font-weight:650; }
.top-products-panel span { color:var(--muted,#a5afa8); font-size:12px; }
.top-products-panel a:hover { background:var(--theme-hover,#213026); }
.top-search { display:inline-flex; align-items:center; justify-content:center; width:44px; min-height:44px; flex:none; color:inherit; text-decoration:none; border-radius:50%; }
.top-search:hover { color:var(--green,#9ef6bb); background:var(--theme-soft-green,#9ef6bb14); }
:is(.desktop-navigation a,.top-products summary,.top-search):focus-visible { outline:2px solid var(--green,#9ef6bb); outline-offset:4px; }
.chat-top-controls { display:flex; align-items:center; gap:10px; }
.chat-menu-button { display:none; }
@media (min-width:768px) and (max-width:1100px) { html.mini #top #mini { width:0; margin-left:0; opacity:0; } }
@media (max-width:767px) {
  .desktop-navigation { display:none; }
  #top { padding-inline:14px; }
  html.mini #top #mini { width:0; margin-left:0; opacity:0; }
  .chat-menu-button { display:flex; width:44px; height:44px; flex-direction:column; align-items:center; justify-content:center; gap:6px; background:none; border:0; color:inherit; }
  .chat-menu-button span { display:block; width:22px; height:1.5px; background:currentColor; }
  .topbar { position:relative; flex-wrap:nowrap; }
  .topbar .brand-mark, .topbar .brand-live-mark { display:none; }
  .topbar .header-actions { display:none; position:absolute; top:100%; left:14px; right:14px; z-index:20; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--panel,#303030); flex-wrap:wrap; }
  .topbar.chat-menu-open .header-actions { display:flex; }
}
@media (min-width:768px) { .topbar .header-actions { flex-wrap:wrap; justify-content:flex-end; } }

/* Compact header search, shared by phone, tablet, and desktop. */
button.top-search { padding:0; border:0; background:transparent; cursor:pointer; font:inherit; }
button.top-search[aria-expanded="true"] { color:var(--green,#9ef6bb); background:var(--theme-soft-green,#9ef6bb14); }
.mini-search-panel { position:fixed; z-index:1000; width:430px; max-width:calc(100vw - 28px); margin:0; padding:16px; border:1px solid var(--line,#354038); border-radius:14px; background:var(--theme-surface,#101410); color:var(--theme-text,var(--white,#eee)); box-shadow:0 14px 45px #0005; box-sizing:border-box; font:400 14px/1.4 system-ui,sans-serif; }
.mini-search-panel[hidden] { display:none; }
.mini-search-panel label { display:block; margin-bottom:10px; font-size:12px; font-weight:600; color:var(--muted,#b9b9b9); }
.mini-search-field { display:flex; gap:8px; }
.mini-search-panel input[type="search"] { width:100%; min-width:0; min-height:44px; padding:10px; border:1px solid var(--line,#354038); border-radius:7px; background:var(--theme-surface,#080d09); color:inherit; font:400 16px/1.4 system-ui,sans-serif; box-sizing:border-box; }
.mini-search-panel input::placeholder { color:var(--muted,#a5afa8); opacity:1; }
.mini-search-panel button { min-height:44px; flex:none; padding:10px 14px; border:1px solid var(--green,#9ef6bb); border-radius:7px; background:var(--green,#9ef6bb); color:var(--bg,#000); font:650 13px/1.4 system-ui,sans-serif; cursor:pointer; box-shadow:0 0 15px var(--theme-soft-green,#9ef6bb35); }
.mini-search-panel button:disabled { opacity:.35; cursor:default; box-shadow:none; }
.mini-search-panel :focus-visible { outline:2px solid var(--green,#9ef6bb); outline-offset:3px; }
@media(max-width:400px) { .mini-search-panel { padding:12px; } .mini-search-panel button { padding-inline:10px; } }
