/* ============================================================
   SHIPITALL  -  HEADER CSS
   Topbar, Main Header, Search, Navigation, Mega Menu
   Compatible: WordPress 6.9 / WooCommerce 10.7
   ============================================================ */

/* Fonts are enqueued as 'sia-fonts' via wp_enqueue_style in
   functions.php (parallel load). The @import that used to live
   here was removed in v1.0.65 because it caused a render-blocking
   sequential CSS fetch on top of the proper enqueue. */

/* ── TOPBAR ── */
.sia-topbar {
  background: var(--sia-dark);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sia-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.sia-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sia-flag { font-size: 14px; }
.sia-topbar-slogan { color: rgba(255,255,255,0.5); }
.sia-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sia-topbar-right a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 12px;
}
.sia-topbar-right a:hover { color: var(--sia-accent); }
.sia-topbar-register {
  background: var(--sia-primary);
  color: white !important;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.sia-topbar-register:hover { background: var(--sia-primary-dark); }

/* ── MAIN HEADER ── */
.sia-header {
  background: var(--sia-white);
  border-bottom: 1px solid var(--sia-border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ── HIDE WOOCOMMERCE INJECTED FLOATING ELEMENTS ── */
/* WooCommerce 10.x injects account/cart icons via blocks outside our header */
/* These selectors target those injected elements specifically */
.wp-block-woocommerce-customer-account,
.wp-block-woocommerce-cart-link,
.wp-block-woocommerce-mini-cart,
.wc-block-cart-link,
.wc-block-customer-account,
body > .wp-block-navigation,
body > nav.wc-block-navigation,
body > .woocommerce-page-title {
  display: none !important;
}

/* Hide any standalone account/cart/wishlist injected after body */
body > a.sia-icon-btn,
body > div.sia-icon-btn {
  display: none !important;
}

.sia-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
}

/* ── LOGO ── */
.sia-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
}
.sia-logo-text {
  font-family: var(--sia-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--sia-dark);
  letter-spacing: -0.5px;
  line-height: 1;
}
.sia-logo-text em {
  color: var(--sia-primary);
  font-style: normal;
}
.sia-logo-tld {
  font-family: var(--sia-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--sia-text-muted);
}
.sia-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ── SEARCH BAR ── */
.sia-search-home {
  /* v1.0.46: wrapper around the search form on desktop. Inherits the flex
     grow behavior previously on .sia-search-form directly, because the form
     itself is now portable (moved into #sia-mobile-search-slot on mobile). */
  flex: 1;
  max-width: 640px;
  display: flex;
}
.sia-search-form {
  flex: 1;
  max-width: 640px;
}
.sia-search-inner {
  display: flex;
  border: 2.5px solid var(--sia-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  align-items: stretch;
  height: 46px;
}
.sia-search-inner:focus-within {
  border-color: var(--sia-primary);
  box-shadow: 0 0 0 3px rgba(232,56,13,0.1);
}
.sia-search-cat {
  background: var(--sia-dark);
  color: white;
  border: none;
  padding: 0 14px;
  font-family: var(--sia-font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  min-width: 130px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}
.sia-search-input-wrap {
  flex: 1;
  position: relative;
}
.sia-search-input {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: none;
  font-family: var(--sia-font-body);
  font-size: 14px;
  color: var(--sia-text);
  outline: none;
  background: transparent;
  min-height: 42px;
  line-height: normal;
}
.sia-search-input::placeholder { color: var(--sia-text-muted); }
.sia-search-btn {
  background: var(--sia-primary);
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sia-search-btn:hover { background: var(--sia-primary-dark); }

/* ── LIVE SEARCH DROPDOWN ── */
.sia-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -144px; /* offset for category select width */
  right: 0;
  width: calc(100% + 144px + 60px); /* full search bar width */
  background: white;
  border: 1px solid var(--sia-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.sia-search-dropdown.active { display: block; }
.sia-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--sia-text);
  border-bottom: 1px solid var(--sia-border);
}
.sia-search-result-item:last-child { border-bottom: none; }
.sia-search-result-item:hover { background: var(--sia-surface); }
.sia-search-result-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--sia-surface);
  flex-shrink: 0;
}
.sia-search-result-info { flex: 1; min-width: 0; }
.sia-search-result-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.sia-search-result-cat {
  font-size: 11px;
  color: var(--sia-text-muted);
}
.sia-search-result-price {
  font-family: var(--sia-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--sia-primary);
  flex-shrink: 0;
}
.sia-search-no-results {
  padding: 20px 16px;
  text-align: center;
  color: var(--sia-text-muted);
  font-size: 13px;
}
.sia-search-view-all {
  display: block;
  padding: 12px 16px;
  text-align: center;
  background: var(--sia-surface);
  color: var(--sia-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--sia-border);
}
.sia-search-view-all:hover { background: rgba(232,56,13,0.05); }

/* v1.0.46: Sectioned search dropdown */
.sia-search-dropdown {
  max-height: 72vh;
  overflow-y: auto;
}
.sia-search-section-label {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sia-text-muted);
  background: var(--sia-surface);
  border-bottom: 1px solid var(--sia-border);
}
.sia-search-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--sia-text);
  border-bottom: 1px solid var(--sia-border);
  font-size: 13px;
  transition: background 0.15s;
}
.sia-search-cat-item:hover { background: var(--sia-surface); }
.sia-search-cat-item svg { color: var(--sia-primary); flex-shrink: 0; }
.sia-search-cat-name { flex: 1; font-weight: 500; }
.sia-search-cat-count {
  font-size: 11px;
  color: var(--sia-text-muted);
  flex-shrink: 0;
}
.sia-search-suggest {
  display: block;
  padding: 10px 16px;
  background: #fff8e6;
  color: var(--sia-text);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--sia-border);
}
.sia-search-suggest:hover { background: #fff0cc; }
.sia-search-suggest strong { color: var(--sia-primary); }

/* v1.0.46: Mobile-menu search slot + in-menu form styling.
   When the JS moves #sia-search-form into #sia-mobile-search-slot it also
   adds the .sia-search-in-menu class. These rules restyle the form for
   inline rendering inside the scrollable mobile menu panel (no absolute
   dropdown, no cramped -144px offset).                                 */
.sia-mobile-search-slot {
  padding: 14px 16px;
  background: var(--sia-surface);
  border-bottom: 1px solid var(--sia-border);
}
.sia-mobile-search-slot:empty {
  padding: 0;
  border-bottom: 0;
}
.sia-search-form.sia-search-in-menu {
  max-width: none;
  width: 100%;
  position: relative;
}
.sia-search-form.sia-search-in-menu .sia-search-inner {
  height: 44px;
  border-width: 2px;
  /* Crucial: the desktop rule sets overflow:hidden on this element, which
     would clip the dropdown even if the dropdown itself is absolute, because
     overflow:hidden on an ancestor still clips. Lift it for in-menu mode. */
  overflow: visible;
}
.sia-search-form.sia-search-in-menu .sia-search-input-wrap {
  /* Strip the relative positioning so the dropdown anchors to the form
     (which is .sia-search-form above) instead of the input-wrap. Lets us
     span the full form width without the -144/+60 offset math. */
  position: static;
}
.sia-search-form.sia-search-in-menu .sia-search-cat {
  display: none;
}
.sia-search-form.sia-search-in-menu .sia-search-input {
  font-size: 14px;
}
.sia-search-form.sia-search-in-menu .sia-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ── HEADER ACTIONS ── */
.sia-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.sia-sell-btn {
  white-space: nowrap;
  font-size: 13px !important;
}
.sia-header-icon-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Force any WooCommerce-injected elements back inside header */
.sia-header .widget_shopping_cart,
.sia-header .woocommerce-mini-cart-item {
  display: none !important;
}

/* Fix WooCommerce injecting account/cart links outside our layout */
body > .woocommerce-account-icon,
body > .woocommerce-cart-icon {
  display: none !important;
}
.sia-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--sia-text);
  position: relative;
  border: none;
  background: none;
  font-family: var(--sia-font-body);
  min-width: 52px;
}
.sia-icon-btn:hover { background: var(--sia-surface); color: var(--sia-text); }
.sia-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.sia-icon-btn span {
  font-size: 11px;
  color: var(--sia-text-muted);
  line-height: 1;
}
.sia-icon-btn:hover span { color: var(--sia-primary); }
.sia-icon-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--sia-primary);
  color: white;
  border-radius: 20px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
  font-family: var(--sia-font-display);
}

/* ── MOBILE TOGGLE ── */
.sia-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}
.sia-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sia-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.sia-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sia-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.sia-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MINI CART DRAWER ── */
.sia-mini-cart {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 9999;
  box-shadow: -4px 0 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--sia-border);
}
.sia-mini-cart.open { right: 0; }
.sia-mini-cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--sia-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sia-dark);
  color: white;
}
.sia-mini-cart-header h4 {
  font-family: var(--sia-font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0;
}
.sia-mini-cart-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sia-mini-cart-close:hover { background: rgba(255,255,255,0.2); }
.sia-mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.sia-mini-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sia-border);
}
.sia-mini-cart-item:last-child { border-bottom: none; }
.sia-mini-cart-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sia-surface);
}
.sia-mini-cart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sia-mini-cart-info { flex: 1; min-width: 0; }
.sia-mini-cart-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sia-mini-cart-price {
  font-family: var(--sia-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--sia-primary);
}
.sia-mini-cart-qty {
  font-size: 12px;
  color: var(--sia-text-muted);
}
.sia-mini-cart-remove {
  background: none;
  border: none;
  color: var(--sia-text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.sia-mini-cart-remove:hover { color: var(--sia-primary); background: rgba(232,56,13,0.06); }
.sia-mini-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--sia-text-muted);
  padding: 40px;
  text-align: center;
}
.sia-mini-cart-empty span { font-size: 48px; }
.sia-mini-cart-empty p { font-size: 14px; }
.sia-mini-cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--sia-border);
  background: var(--sia-surface);
}
.sia-mini-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}
.sia-mini-cart-total strong {
  font-family: var(--sia-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--sia-primary);
}

/* ── OVERLAY ── */
.sia-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.sia-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── MAIN NAV ── */
.sia-nav {
  background: var(--sia-dark);
  position: relative;
  z-index: 800;
}
.sia-nav-inner {
  display: flex;
  align-items: center;
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.sia-nav-inner::-webkit-scrollbar { display: none; }

.sia-nav-all-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 100%;
  background: var(--sia-primary);
  font-family: var(--sia-font-display);
  font-weight: 700;
  font-size: 13px;
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-right: 4px;
  letter-spacing: 0.2px;
}
.sia-nav-all-cats:hover { background: var(--sia-primary-dark); }
.sia-nav-all-cats svg { flex-shrink: 0; }

.sia-nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.sia-nav-links::-webkit-scrollbar { display: none; }

.sia-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.sia-nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.07);
  border-bottom-color: var(--sia-primary);
}
.sia-nav-hot { color: var(--sia-accent) !important; font-weight: 600; }
.sia-nav-sa { color: rgba(255,255,255,0.9) !important; }
.sia-nav-new-tag {
  background: var(--sia-green);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ── MEGA MENU  -  OPTION C ── */
.sia-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 3px solid var(--sia-primary);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  /* v1.0.50: lifted above .sia-overlay (z-index 800) so the backdrop
     blur never paints on top of the menu content. .sia-nav (the
     stacking-context parent) is 800, so any value > 0 here keeps the
     menu visually above siblings; we use 810 to signal clear intent. */
  z-index: 810;
  display: none;
  max-height: 80vh;
  overflow: hidden;
}
.sia-mega-menu.open { display: block; }

/* Three-column Option C layout */
.sia-mega-inner-c {
  display: flex;
  height: 480px;
  max-height: 80vh;
}

/* LEFT: parent sidebar */
.sia-mega-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #f9f9f6;
  border-right: 1px solid var(--sia-border);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sia-primary) transparent;
}
.sia-mega-sidebar::-webkit-scrollbar { width: 4px; }
.sia-mega-sidebar::-webkit-scrollbar-track { background: transparent; }
.sia-mega-sidebar::-webkit-scrollbar-thumb { background: var(--sia-primary); border-radius: 4px; }
.sia-mega-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 14px 6px;
  position: sticky;
  top: 0;
  background: #f9f9f6;
  z-index: 1;
}
.sia-mega-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--sia-text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  user-select: none;
}
.sia-mega-sidebar-item:hover,
.sia-mega-sidebar-item.active {
  background: white;
  color: var(--sia-primary);
  border-left-color: var(--sia-primary);
  font-weight: 600;
}
.sia-mega-sidebar-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }

/* MIDDLE: subcategory panels */
.sia-mega-content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sia-border) transparent;
  position: relative;
}
.sia-mega-panel {
  display: none;
  padding: 16px 20px;
  animation: siaFadeIn 0.15s ease;
}
.sia-mega-panel.active { display: block; }

/* CSS-only fallback: if JS hover doesn't fire, clicking sidebar still shows panel */
.sia-mega-sidebar-item:hover ~ .sia-mega-content .sia-mega-panel { display: none; }

@keyframes siaFadeIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sia-mega-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sia-border);
}
.sia-mega-panel-icon { font-size: 20px; }
.sia-mega-panel-title {
  font-family: var(--sia-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--sia-dark);
  text-decoration: none;
  flex: 1;
}
.sia-mega-panel-title:hover { color: var(--sia-primary); }
.sia-mega-see-all-header {
  font-size: 11px;
  color: var(--sia-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.sia-mega-see-all-header:hover { text-decoration: underline; }

.sia-mega-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}
.sia-mega-sub-col { display: flex; flex-direction: column; }
.sia-mega-sub-link {
  font-size: 12px;
  color: var(--sia-text-muted);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s, padding-left 0.15s;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
}
.sia-mega-sub-link:hover {
  color: var(--sia-primary);
  padding-left: 5px;
}

/* RIGHT: promo strip */
.sia-mega-strip {
  width: 180px;
  flex-shrink: 0;
  border-left: 1px solid var(--sia-border);
  display: flex;
  flex-direction: column;
}
.sia-mega-promo {
  flex: 1;
  background: linear-gradient(160deg, #0f0f1e, #1a1a2e);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
}
.sia-mega-promo-tag {
  background: var(--sia-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.sia-mega-promo-title {
  font-family: var(--sia-font-display);
  font-size: 15px;
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 8px;
}
.sia-mega-promo-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-bottom: 14px;
}
.sia-mega-promo-cta {
  background: var(--sia-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.sia-mega-promo-cta:hover { opacity: 0.85; }
.sia-mega-brands {
  padding: 12px 14px;
  border-top: 1px solid var(--sia-border);
  background: white;
}
.sia-mega-brands-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 8px;
}
.sia-mega-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sia-mega-brand-pill {
  font-size: 10px;
  background: var(--sia-surface);
  color: var(--sia-text);
  padding: 3px 8px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--sia-border);
  transition: background 0.15s, color 0.15s;
}
.sia-mega-brand-pill:hover {
  background: var(--sia-primary);
  color: white;
  border-color: var(--sia-primary);
}


/* ── COOKIE BANNER ── */
.sia-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sia-dark2);
  color: white;
  z-index: 9998;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.sia-cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sia-cookie-text {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.sia-cookie-text a { color: var(--sia-accent); }
.sia-cookie-text strong { color: white; }
.sia-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── MOBILE MENU ── */
.sia-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 9999;
  box-shadow: 4px 0 32px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  will-change: transform;
}
.sia-mobile-menu.open { transform: translateX(0); }
.sia-mobile-menu-header {
  padding: 20px 20px 16px;
  background: var(--sia-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sia-mobile-menu-header .sia-logo-text { color: white; font-size: 20px; }
.sia-mobile-menu-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sia-mobile-menu-body { padding: 20px; flex: 1; }
.sia-mobile-auth { margin-bottom: 20px; }
.sia-mobile-nav { list-style: none; padding: 0; margin: 0; }
.sia-mobile-nav li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--sia-border);
  color: var(--sia-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}
.sia-mobile-nav li a:hover {
  color: var(--sia-primary);
  padding-left: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .sia-sell-btn { display: none !important; }
}
@media (max-width: 900px) {
  .sia-search-cat { display: none; }
  .sia-nav-links .sia-nav-link:nth-child(n+7) { display: none; }
}
@media (max-width: 768px) {
  .sia-topbar-right a:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .sia-header-inner { height: 60px; gap: 10px; padding: 0 14px; }
  .sia-logo-text { font-size: 20px; }
  .sia-logo-tld { display: none; }
  .sia-search-form { max-width: none; }
  /* Hide account/wishlist on mobile, keep cart */
  .sia-header-icon-group .sia-icon-btn:not(.sia-cart-btn) { display: none; }
  /* Show hamburger */
  .sia-mobile-toggle { display: flex; }
  .sia-nav-all-cats { display: none; }
  .sia-icon-btn span { display: none; }
  .sia-icon-badge { top: 0; right: 0; }
  /* Mega menu disabled on mobile */
  .sia-mega-menu { display: none !important; }
  /* Hamburger goes LEFT  -  swap order */
  .sia-header-inner { flex-direction: row; }
  .sia-mobile-toggle { order: -1; }
  .sia-logo { order: 0; }
  .sia-search-form { order: 1; }
  .sia-header-actions { order: 2; }
  /* Hide sell button on mobile */
  .sia-sell-btn { display: none; }
  /* v1.0.46: hide the desktop search slot on mobile; the form itself is
     relocated into the hamburger menu by SIA_MobileSearch JS. */
  .sia-search-home { display: none; }
}
@media (max-width: 480px) {
  .sia-search-btn { padding: 0 14px; }
  .sia-search-input { font-size: 13px; }
  .sia-mini-cart { width: 100%; right: -100%; }
}

/* ── NEW MOBILE MENU  -  slide from left ── */
.sia-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: white;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  box-shadow: 4px 0 32px rgba(0,0,0,0.18);
  will-change: transform;
}
.sia-mobile-menu.open { transform: translateX(0); }

/* Header bar */
.sia-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: var(--sia-dark);
  flex-shrink: 0;
}
.sia-mobile-menu-logo {
  font-family: var(--sia-font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
}
.sia-mobile-menu-logo em { color: var(--sia-primary); font-style: normal; }
.sia-mobile-menu-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: 4px;
}
.sia-mobile-menu-close:hover { color: white; }

/* Scrollable body */
.sia-mobile-menu-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Panel system  -  main panel and category panel slide left/right */
.sia-mob-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: white;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  -webkit-overflow-scrolling: touch;
}
.sia-mob-panel-main  { transform: translateX(0); }
.sia-mob-panel-cat   { transform: translateX(100%); opacity: 0; }
.sia-mob-panel-cat.active { transform: translateX(0); opacity: 1; }
.sia-mob-panel-main.hidden { transform: translateX(-30%); opacity: 0; pointer-events: none; }

/* Auth block at top of main panel */
.sia-mob-auth {
  padding: 14px 16px;
  background: var(--sia-surface);
  border-bottom: 1px solid var(--sia-border);
  display: flex;
  gap: 10px;
}
.sia-mob-auth-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.sia-mob-auth-btn.primary { background: var(--sia-primary); color: white; }
.sia-mob-auth-btn.ghost   { background: white; color: var(--sia-dark); border: 1.5px solid var(--sia-border); }

/* Nav items */
.sia-mob-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--sia-text);
  text-decoration: none;
  border-bottom: 1px solid var(--sia-border);
  cursor: pointer;
  gap: 10px;
  transition: background 0.15s;
}
.sia-mob-nav-item:hover { background: var(--sia-surface); }
.sia-mob-nav-item.bold { font-weight: 700; color: var(--sia-dark); }
.sia-mob-nav-item.highlight { color: var(--sia-primary); font-weight: 700; }
.sia-mob-nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.sia-mob-nav-label { flex: 1; }
.sia-mob-nav-arrow { color: var(--sia-text-muted); font-size: 14px; flex-shrink: 0; }
.sia-mob-nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  padding: 12px 18px 4px;
  background: var(--sia-surface);
}

/* Category panel back button */
.sia-mob-cat-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sia-primary);
  cursor: pointer;
  border-bottom: 2px solid var(--sia-border);
  background: var(--sia-surface);
}
.sia-mob-cat-title {
  font-family: var(--sia-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--sia-dark);
  padding: 12px 18px 8px;
  border-bottom: 1px solid var(--sia-border);
}

/* Footer: cart + account */
.sia-mobile-menu-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--sia-border);
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
}
.sia-mob-footer-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  font-size: 11px;
  color: var(--sia-text-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  border-right: 1px solid var(--sia-border);
  transition: color 0.15s;
}
.sia-mob-footer-btn:last-child { border-right: none; }
.sia-mob-footer-btn:hover { color: var(--sia-primary); }
.sia-mob-footer-btn svg { width: 22px; height: 22px; }
.sia-mob-footer-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 18px);
  background: var(--sia-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

}
