/* Sports Header Variant */
:root {
  --spt-dark: #111111;
  --spt-mid:  #1e1e1e;
  --spt-gray: #888888;
  --spt-bg:   #f4f4f4;
}

/* ── Topbar ── */
.spt-topbar {
  background: var(--spt-dark);
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  padding: 7px 0;
}
.spt-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.spt-topbar-msg   { display: flex; align-items: center; gap: 6px; }
.spt-topbar-msg i { color: var(--molla-accent); }
.spt-topbar-right { display: flex; align-items: center; gap: 10px; }
.spt-topbar-right a { color: rgba(255,255,255,.65); text-decoration: none; }
.spt-topbar-right a:hover { color: #fff; }
.spt-topbar-sep { opacity: .3; }

.spt-td-wrap { position: relative; }
.spt-td-toggle {
  background: none; border: none; color: rgba(255,255,255,.65);
  font-size: 12.5px; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.spt-td-toggle:hover { color: #fff; }
.spt-td-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #eee; border-radius: 4px;
  min-width: 110px; box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 9999;
}
.spt-td-wrap:hover .spt-td-menu { display: block; }
.spt-td-menu a { display: block; padding: 8px 14px; color: var(--spt-dark) !important; font-size: 13px; text-decoration: none; }
.spt-td-menu a:hover { background: var(--spt-bg); color: var(--molla-accent) !important; }

/* ── Main Header ── */
.spt-header {
  background: #fff;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.spt-main-row { padding: 12px 0; border-bottom: 1px solid #eee; }
.spt-main-inner { display: flex; align-items: center; gap: 20px; }

/* Logo */
.spt-logo { flex: 0 0 auto; text-decoration: none; }
.spt-logo-text {
  font-size: 22px; font-weight: 900; color: var(--spt-dark);
  text-transform: uppercase; letter-spacing: 2px;
}

/* Search */
.spt-search-wrap { flex: 1; }
.spt-search-box {
  display: flex; align-items: center;
  border: 2px solid #e0e0e0; border-radius: 4px; overflow: hidden;
  transition: border-color .2s;
}
.spt-search-box:focus-within { border-color: var(--molla-accent); }
.spt-search-input {
  flex: 1; padding: 10px 16px;
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--spt-dark);
}
.spt-search-input::placeholder { color: #aaa; }
.spt-search-btn {
  padding: 10px 18px;
  background: var(--molla-accent); color: #fff;
  border: none; font-size: 16px; cursor: pointer;
  transition: opacity .15s;
}
.spt-search-btn:hover { opacity: .85; }

/* Icons */
.spt-header-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.spt-icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 4px;
  color: var(--spt-dark); font-size: 20px;
  text-decoration: none; border: none; background: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.spt-icon-btn:hover { background: var(--spt-bg); color: var(--molla-accent); }
.spt-badge {
  position: absolute; top: 3px; right: 3px;
  background: var(--molla-accent); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.spt-mobile-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: none;
  color: var(--spt-dark); font-size: 24px; cursor: pointer; border-radius: 4px;
}
.spt-mobile-toggle:hover { background: var(--spt-bg); color: var(--molla-accent); }
.spt-cart-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--molla-accent); color: #fff;
  padding: 9px 16px; border-radius: 4px;
  text-decoration: none; margin-left: 4px;
  transition: opacity .15s; font-weight: 700;
}
.spt-cart-btn:hover { color: #fff; opacity: .9; }
.spt-cart-btn > i { font-size: 18px; }
.spt-cart-info { display: flex; flex-direction: column; line-height: 1.2; }
.spt-cart-label { font-size: 11px; opacity: .85; font-weight: 400; }
.spt-cart-count { font-size: 13px; font-weight: 700; }

/* ── Category Navbar ── */
.spt-catbar { background: var(--spt-dark); }
.spt-catbar-inner {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.spt-catbar-inner::-webkit-scrollbar { display: none; }
.spt-catbar-spacer { flex: 1; }
.spt-catbar-item { position: relative; flex-shrink: 0; }
.spt-catbar-link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  color: rgba(255,255,255,.75); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap; height: 100%;
}
.spt-catbar-link:hover,
.spt-catbar-link.active { color: #fff; border-bottom-color: var(--molla-accent); }

/* Dropdown */
.spt-cat-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; background: #fff;
  border-top: 2px solid var(--molla-accent);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  list-style: none; padding: 6px 0; margin: 0; z-index: 1001;
}
.spt-catbar-item.has-sub:hover > .spt-cat-dropdown { display: block; }
.spt-cat-dropdown li a {
  display: block; padding: 9px 18px;
  font-size: 13px; color: var(--spt-dark); text-decoration: none;
  text-transform: none; font-weight: 400; letter-spacing: 0;
  transition: background .12s;
}
.spt-cat-dropdown li a:hover { background: var(--spt-bg); color: var(--molla-accent); }

/* Hotline */
.spt-catbar-hotline {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px; font-size: 13px; font-weight: 700;
  color: var(--molla-accent); white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,.1);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .spt-catbar { display: none; }
  .spt-mobile-toggle { display: flex; }
  .spt-cart-info { display: none; }
  .spt-cart-btn { padding: 9px 12px; }
}
@media (max-width: 768px) {
  .spt-topbar-msg { display: none; }
  .spt-topbar-inner { justify-content: flex-end; }
  .spt-main-row { padding: 8px 0; }
  .spt-search-btn span { display: none; }
  .spt-cart-btn { display: none; }
  .spt-logo-text { font-size: 18px; }
}
@media (max-width: 480px) {
  .spt-search-wrap { display: none; }
  .spt-icon-btn { width: 36px; height: 36px; font-size: 18px; }
  .spt-main-inner { gap: 10px; }
  .spt-header-icons { margin-left: auto; }
}
