/* ═══════════════════════════════════════════════════════════
   GLOBAL HEADER (PREMIUM DARK & NEON THEME)
   ═══════════════════════════════════════════════════════════ */

body {
  margin-top: 0; /* Reset if Astra adds margin */
}

.t16-global-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Inter', -apple-system, sans-serif;
}

.t16-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.t16-header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.t16-header-logo img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

.t16-header-logo h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* DESKTOP NAV */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.t16-header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.t16-header-nav > ul > li {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.t16-header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.t16-header-nav a:hover {
  color: #b5ff00;
}

/* DROPDOWN */
.t16-header-nav li.has-dropdown > a::after {
  content: ' ▼';
  font-size: 10px;
  opacity: 0.6;
}

.t16-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  border: 1px solid #222;
  border-top: 3px solid #b5ff00;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.t16-mega-menu-2 .t16-dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 440px;
}

.t16-mega-menu-3 .t16-dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 660px;
}

.t16-header-nav li.has-dropdown:hover .t16-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.t16-dropdown li {
  height: auto !important;
}

.t16-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
}

.t16-dropdown a:hover {
  background: #1a1a1a;
  color: #b5ff00;
  padding-left: 25px;
}

/* TOOLS */
.t16-header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.t16-header-tools button,
.t16-header-tools a {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  padding: 0;
  text-decoration: none;
  position: relative;
}

.t16-header-tools button:hover,
.t16-header-tools a:hover {
  color: #b5ff00;
}

.t16-cart-toggle {
  position: relative;
}

.t16-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #b5ff00;
  color: #000;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* SEARCH OVERLAY */
.t16-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: auto;
  background: #111 !important;
  border-top: 1px solid #222;
  border-bottom: 2px solid #b5ff00;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  padding: 20px 0;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.t16-search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.t16-search-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}

.t16-search-close {
  position: absolute;
  top: 10px;
  right: 0px;
  background: transparent !important;
  border: none !important;
  color: #888 !important;
  font-size: 30px !important;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

.t16-search-close:hover {
  color: #b5ff00 !important;
  transform: scale(1.1);
}

.t16-search-form {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.t16-search-form input[type="text"] {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid #333 !important;
  color: #fff !important;
  font-size: 32px !important;
  font-weight: 300 !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif !important;
}

.t16-search-form input[type="text"]:focus {
  border-bottom-color: #b5ff00 !important;
  box-shadow: none !important;
}

.t16-search-form input[type="text"]::placeholder {
  color: #666 !important;
  opacity: 1;
}

.t16-search-results {
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b5ff00 #222;
}

/* Custom Scrollbar for results */
.t16-search-results::-webkit-scrollbar {
  width: 6px;
}
.t16-search-results::-webkit-scrollbar-track {
  background: #111;
}
.t16-search-results::-webkit-scrollbar-thumb {
  background: #b5ff00;
  border-radius: 3px;
}

.t16-search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #1f1f1f;
  text-decoration: none;
  transition: background 0.2s ease;
}

.t16-search-result-item:hover {
  background: #111;
}

.t16-search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.t16-search-result-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.t16-search-result-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.t16-search-result-item:hover .t16-search-result-title {
  color: #b5ff00;
}

.t16-search-result-price {
  color: #b5ff00;
  font-size: 14px;
  font-weight: 700;
}

.t16-search-loading {
  color: #888;
  margin-top: 20px;
  font-size: 14px;
}

.t16-search-view-all {
  display: inline-block;
  margin-top: 20px;
  color: #000;
  background: #b5ff00;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* MOBILE NAV OVERLAY */
.t16-mobile-nav-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.t16-mobile-nav-bg.active {
  opacity: 1;
  visibility: visible;
}

.t16-mobile-nav-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid #222;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.t16-mobile-nav-sidebar.active {
  right: 0;
}

.t16-mobile-nav-header {
  padding: 20px 30px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
}

.t16-mobile-nav-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.t16-mobile-nav-close {
  background: transparent !important;
  border: none !important;
  color: #888 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
}

.t16-mobile-nav-close:hover {
  color: #b5ff00 !important;
}

.t16-mobile-nav-inner {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 30px;
}

.t16-mobile-menu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.t16-mobile-menu-container > ul > li {
  border-bottom: 1px solid #1f1f1f;
}

.t16-mobile-menu-container a {
  display: block;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.t16-mobile-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t16-mobile-submenu-toggle {
  background: none;
  border: none;
  color: #b5ff00;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.t16-mobile-submenu {
  display: none;
  padding-left: 15px !important;
  margin-bottom: 15px !important;
}

.t16-mobile-submenu.active {
  display: block;
}

.t16-mobile-submenu a {
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  padding: 10px 0;
  color: #ccc;
  border-bottom: none;
}

/* ============================================================================
   SIDEBAR CART
   ========================================================================= */

.t16-sidebar-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.t16-sidebar-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.t16-sidebar-cart {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid #222;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.t16-sidebar-cart.active {
  right: 0;
}

.t16-sidebar-cart-header {
  padding: 20px 30px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
}

.t16-sidebar-cart-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.t16-sidebar-cart-close {
  background: transparent !important;
  border: none !important;
  color: #888 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
}

.t16-sidebar-cart-close:hover {
  color: #b5ff00 !important;
  background: transparent !important;
}

.t16-sidebar-cart-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 30px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #333 #111;
}

.t16-cart-loading {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.7);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t16-cart-loading::after {
  content: "";
  width: 40px; height: 40px;
  border: 3px solid #333;
  border-top-color: #b5ff00;
  border-radius: 50%;
  animation: t16-spin 1s linear infinite;
}

@keyframes t16-spin {
  to { transform: rotate(360deg); }
}

.t16-empty-cart {
  text-align: center;
  padding: 40px 0;
  color: #888;
}

.t16-empty-cart svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  stroke: #444;
}

.t16-empty-cart .t16-btn-shop {
  margin-top: 20px;
  display: inline-block;
}

.t16-cart-items-list {
  list-style: none;
  margin: 0; padding: 0;
}

.t16-cart-item {
  display: flex;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #222;
  position: relative;
}

.t16-cart-item-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 15px;
}

.t16-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t16-cart-item-details {
  flex-grow: 1;
  padding-right: 35px !important;
}

.t16-cart-item-title {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.3;
}

.t16-cart-item-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.t16-cart-item-title a:hover {
  color: #b5ff00;
}

.t16-cart-item-price {
  color: #b5ff00;
  font-weight: 500;
  margin-bottom: 10px;
}

.t16-cart-item-qty {
  display: inline-flex !important;
  align-items: center;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 30px !important;
}

.t16-qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.t16-qty-btn:hover {
  background: #222;
}

.t16-qty-input {
  width: 40px !important;
  max-width: 40px !important;
  min-width: 40px !important;
  height: 30px !important;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -moz-appearance: textfield;
}
.t16-qty-input::-webkit-outer-spin-button,
.t16-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.t16-cart-item-remove {
  position: absolute;
  top: 5px !important;
  right: 5px !important;
  background: transparent !important;
  border: none !important;
  color: #888 !important;
  font-size: 20px !important;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
}

.t16-cart-item-remove:hover {
  color: #ff3b30;
}

.t16-sidebar-cart-footer {
  padding: 20px 30px;
  background: #111;
  border-top: 1px solid #222;
}

.t16-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

.t16-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t16-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.t16-btn-cart {
  background: transparent;
  border: 1px solid #444;
  color: #fff;
}
.t16-btn-cart:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}

.t16-btn-checkout, .t16-btn-shop {
  background: #b5ff00;
  color: #000;
  border: 1px solid #b5ff00;
}
.t16-btn-checkout:hover, .t16-btn-shop:hover {
  background: #9add00;
  border-color: #9add00;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .t16-header-nav { display: none; }
}
