/* ============ TOP UTILITY BAR ============ */
.util-bar {
  background: var(--util-bar); color: var(--muted); font-size: 11px;
  border-bottom: 1px solid var(--line);
}

/* ============ MAIN HEADER ============ */
.header-main {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header);
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px; font-weight: 600;
}
.theme-toggle:hover { background: var(--hover-bg); border-color: var(--accent); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline; }
html[data-theme="light"] .theme-toggle .sun { display: inline; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

/* Logo */
.logo-wrap {
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: linear-gradient(135deg, #e60000 0%, #8b0000 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: white; font-size: 24px;
  box-shadow: 0 4px 18px rgba(230, 0, 0, 0.4);
  font-family: 'Prompt', sans-serif;
  letter-spacing: 0.05em;
}
.logo-text {
  font-family: 'Prompt', sans-serif;
  font-weight: 900; font-size: 20px; letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.logo-text .red { color: #e60000; }
.site-logo { display:block; height:80px; width:auto; max-height:80px; }
.logo-sub { font-size: 10px; color: #888; font-weight: 500; letter-spacing: 0.1em; }

/* Search */
.search-bar {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 0.2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,59,47,0.15);
}
.search-input {
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 500;
  font-size: 14px;
  margin: 4px;
  transition: all 0.2s;
}
.search-btn:hover {
  background: #e6271c;
  transform: scale(1.02);
}

/* Header icons */
.header-icon {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
  font-size: 11px;
}
.header-icon:hover { color: var(--accent); }
.header-icon .fa { font-size: 19px; margin-bottom: 1px; color: var(--text); transition: color 0.2s; }
.header-icon:hover .fa { color: var(--accent); }
.cart-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* Category nav (TAB BAR) */
.cat-nav {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
}
.cat-nav-inner {
  display: flex; align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
}
.cat-link {
  padding: 8px 18px;
  color: #d0d0d0;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-link:hover { color: white; background: #1a1a1a; }
.cat-link.active { color: white; background: #1a1a1a; }
.platinum-btn {
  margin-left: auto;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 18px rgba(230,0,0,0.14);
  transition: all 0.2s;
  white-space: nowrap;
}
.platinum-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(230,0,0,0.32); }
