/* ===================================
  CSS Variables
  =================================== */
.fs-header-wrapper {
 --fs-primary: #f6623c;
 --fs-secondary: #ffffff;
 --fs-border: #ffffff;
 --fs-hover: #b91c1c;
 --fs-accent: #ffffff;
}

/* Mobile: remove blue tap highlight and smooth press */
html, body,
a, button, [role="button"],
.fs-action-btn, .fs-mobile-menu-btn,
.fs-nav-dropdown-item, .fs-nav-item,
.sorting-button, .mobile-filter-button,
.mobile-nav-item, .category-link {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
}

/* Hide horizontal scrollbar line and prevent sideways scroll on mobile */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; overscroll-behavior-x: none; }
  html, body { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

button, .fs-action-btn,
.sorting-button, .mobile-filter-button,
.fs-nav-item, .fs-nav-dropdown-item,
.mobile-nav-item, .category-link {
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}

button:active, .fs-action-btn:active,
.sorting-button:active, .mobile-filter-button:active,
.fs-nav-item:active, .fs-nav-dropdown-item:active,
.mobile-nav-item:active, .category-link:active {
  transform: scale(0.98);
}

/* ===================================
  Header Wrapper - Main Container
  =================================== */
.fs-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 100000;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* Remove common background */
.fs-header-background {
  display: none;
}

/* ===================================
  Header Structure
  =================================== */
.fs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-top: none;
  z-index: 100000;
  margin: 0;
  padding: 0;
  line-height: 1;
  height: 70px;
  background: #f6623c !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.fs-header-wrapper.scrolled .fs-header {
  transform: translateY(-35px);
}

.fs-header-container {
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Desktop layout with navigation button */
@media (min-width: 769px) {
  .fs-header-container {
    display: grid;
    grid-template-columns: 400px minmax(400px, 1fr) auto;
    grid-template-areas: 
      "left search right";
    gap: 40px;
    align-items: center;
    position: relative;
    padding: 0 30px;
  }
  
  .fs-mobile-menu-btn {
    display: none;
  }
  
  .fs-logo-section {
    grid-area: left;
    justify-self: start;
    position: relative;
    z-index: 2;
  }
  
  .fs-navigation-section {
    grid-area: left;
    justify-self: start;
    margin-left: 180px;
    transform: translateX(180px) !important;
    position: relative !important;
    z-index: 1;
    width: max-content;
  }
  
  .fs-search-section {
    grid-area: search;
    justify-self: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
  }
  
  .fs-actions-section {
    grid-area: right;
    justify-self: end;
    position: relative;
    z-index: 2;
  }
}

/* ===================================
  Logo Section
  =================================== */
 .fs-logo-section {
   margin-left: 0;
 }

.fs-logo {
  display: block;
  height: 100%;
}

.fs-logo img {
  height: 60px;
 width: auto;
  display: block;
}

.fs-logo-text {
 font-size: 24px;
 font-weight: 600;
 letter-spacing: -0.5px;
 color: #ffffff;
}

/* ===================================
  Navigation Section
  =================================== */
.fs-navigation-section {
  position: relative;
  margin: 0 20px;
}

.fs-navigation-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: 'FiraGO-SemiBold', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.fs-navigation-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.fs-navigation-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.fs-nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.fs-nav-text {
  font-size: 14px;
  font-weight: 600;
}

.fs-nav-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.fs-navigation-btn.active .fs-nav-arrow {
  transform: rotate(180deg);
}

/* Navigation Dropdown */
.fs-navigation-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 300px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.fs-navigation-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fs-nav-dropdown-content {
  padding: 20px;
}

.fs-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.fs-nav-dropdown-item:last-child {
  border-bottom: none;
}

.fs-nav-dropdown-item:hover {
  background: #f8f9fa;
  color: #f6623c;
  transform: translateX(8px);
}

/* Ensure the visible name also changes to brand orange on hover */
.fs-nav-dropdown-item:hover .fs-nav-item-name {
  color: #f6623c !important;
}

.fs-nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.fs-nav-item-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(47%) sepia(0%) saturate(2%) hue-rotate(336deg) brightness(95%) contrast(86%);
  transition: all 0.3s ease;
}

.fs-emoji-fallback {
  font-size: 16px;
}

.fs-nav-item-name {
  font-family: 'FiraGO-SemiBold', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-nav-dropdown-item:hover .fs-nav-item-icon {
  background-color: #f6623c;
}

.fs-nav-dropdown-item:hover .fs-nav-item-icon img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* ===================================
  Search Section
  =================================== */
.fs-search-section {
  position: relative;
}

.fs-search-container {
  position: relative;
  width: 100%;
  min-width: 400px;
}

.fs-search-input {
  width: 100%;
  height: 44px;
  padding: 0 45px 0 20px;
  border: none !important;
  outline: none !important;
  border-radius: 22px;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
  font-family: 'FiraGO-Regular', sans-serif;
  transition: all 0.3s ease;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.fs-search-input::placeholder {
  color: #666666;
  opacity: 0.8;
}

.fs-search-input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.fs-search-input:-webkit-autofill,
.fs-search-input:-webkit-autofill:hover,
.fs-search-input:-webkit-autofill:focus {
  border: none !important;
  outline: none !important;
  -webkit-text-fill-color: #333333;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  transition: background-color 5000s ease-in-out 0s;
}

.fs-search-icon {
 position: absolute;
 right: 16px;
 top: 50%;
 transform: translateY(-50%);
 width: 20px;
 height: 20px;
 color: var(--fs-secondary);
 cursor: pointer;
 transition: color 0.2s ease;
 pointer-events: none;
}

.fs-search-input:hover ~ .fs-search-icon,
.fs-search-icon:hover {
 color: var(--fs-primary);
}

/* ===================================
  Search Dropdown
  =================================== */
.fs-search-dropdown {
 position: absolute;
 top: calc(100% + 12px);
 left: 0;
 width: 100%;
 background: white;
 border: 1px solid #ddd;
 z-index: 999;
 display: none;
 padding: 20px;
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
 border-radius: 16px;
 max-height: 400px;
 overflow-y: auto;
}

.fs-search-dropdown.active {
 display: block;
 animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
 from {
   opacity: 0;
   transform: translateY(-8px);
 }
 to {
   opacity: 1;
   transform: translateY(0);
 }
}

.fs-dropdown-title {
 font-weight: bold;
 margin-bottom: 10px;
 color: #333;
 font-size: 14px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.fs-dropdown-section {
 margin-bottom: 20px;
}

.fs-dropdown-section:last-child {
 margin-bottom: 0;
}

/* Categories in dropdown */
.fs-dropdown-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.fs-dropdown-categories li a {
 display: inline-block;
 padding: 8px 16px;
 background: #f5f5f5;
 border-radius: 20px;
 font-size: 14px;
 color: #333;
 text-decoration: none;
 transition: all 0.2s ease;
 border: 1px solid transparent;
}

.fs-dropdown-categories li a:hover {
 background-color: #f6623c;
 color: #fff;
 transform: translateY(-1px);
 box-shadow: 0 2px 8px rgba(225, 82, 64, 0.2);
}

/* Products in dropdown */
.fs-dropdown-products {
 list-style: none;
 padding: 0;
 margin: 0;
}

.fs-dropdown-products li {
  padding: 12px 0;
 border-bottom: 1px solid #f0f0f0;
}

.fs-dropdown-products li:last-child {
 border-bottom: none;
}

.fs-product-link {
 display: flex;
 align-items: center;
  gap: 16px;
 color: #333;
 text-decoration: none;
 transition: all 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.fs-product-link:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.fs-product-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.fs-product-thumb img {
  width: 100%;
  height: 100%;
 object-fit: cover;
  border-radius: 4px;
}

.fs-product-info {
  flex-grow: 1;
}

.fs-product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #333;
}

.fs-product-price {
  font-size: 13px;
  color: #f6623c;
}

.fs-no-results {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* ===================================
  Actions Section
  =================================== */
.fs-actions-section {
 display: flex;
 align-items: center;
 gap: 24px;
}

.fs-action-btn {
 position: relative;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 border-radius: 8px;
 transition: background 0.2s ease;
 color: #ffffff;
}

.fs-action-btn:hover {
 background: var(--fs-hover);
}

.fs-action-icon {
 width: 24px;
 height: 24px;
 display: block;
}

.fs-mobile-only {
 display: none;
}

/* ===================================
  Cart Section
  =================================== */
.fs-cart-wrapper {
 position: relative;
}

.fs-cart-badge {
 position: absolute;
 top: 0;
 right: 0;
 background: #fbbf24;
 color: #1f2937;
 font-size: 11px;
 font-weight: 600;
 padding: 2px 6px;
 border-radius: 10px;
 min-width: 18px;
 text-align: center;
 transform: translate(25%, -25%);
}

/* Cart badge animation for updates */
.fs-cart-badge.cart-badge-updated {
 animation: cartBadgePulse 0.4s ease;
}

@keyframes cartBadgePulse {
 0% { transform: translate(25%, -25%) scale(1); }
 50% { transform: translate(25%, -25%) scale(1.2); background-color: #28a745; }
 100% { transform: translate(25%, -25%) scale(1); }
}

/* ===================================
  Cart Dropdown - FIXED VERSION
  =================================== */
.fs-cart-dropdown {
 display: none;
 position: absolute;
 top: calc(100% + 15px);
 right: -10px;
 width: 360px;
 max-height: 450px;
 overflow-y: auto;
 background: #ffffff;
 border: 1px solid #e0e0e0;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
 z-index: 999998;
 padding: 20px;
 border-radius: 12px;
}

.fs-cart-dropdown.active {
 display: block !important;
 animation: cartDropdownSlideIn 0.3s ease;
}

@keyframes cartDropdownSlideIn {
 from {
   opacity: 0;
   transform: translateY(-10px);
 }
 to {
   opacity: 1;
   transform: translateY(0);
 }
}

/* Mini Cart Base Styles */
.fs-cart-dropdown .woocommerce-mini-cart {
 margin: 0 !important;
 padding: 0 !important;
 list-style: none !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item {
 position: relative !important;
 display: flex !important;
 align-items: center !important;
 gap: 12px !important;
 margin-bottom: 16px !important;
 padding: 12px !important;
 border: 1px solid #f0f0f0 !important;
 border-radius: 8px !important;
 background: #fafafa !important;
 min-height: 80px !important;
 transition: all 0.3s ease !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item:last-child {
 margin-bottom: 16px !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item.lightning-updating {
 opacity: 0.6 !important;
 pointer-events: none !important;
 background: #fff3cd !important;
 border-color: #ffeaa7 !important;
}

/* Product Image */
.fs-cart-dropdown .woocommerce-mini-cart-item img {
 width: 60px !important;
 height: 60px !important;
 object-fit: cover !important;
 border-radius: 6px !important;
 flex-shrink: 0 !important;
 margin: 0 !important;
}

/* Product Info Container - FIXED LAYOUT */
.fs-cart-dropdown .woocommerce-mini-cart-item > a:not(.remove) {
 flex: 1 !important;
 display: flex !important;
 flex-direction: column !important;
 justify-content: center !important;
 text-decoration: none !important;
 color: inherit !important;
 padding-right: 30px !important;
 min-width: 0 !important;
}

/* Product Name */
.fs-cart-dropdown .woocommerce-mini-cart-item a:not(.remove) {
 font-weight: 600 !important;
 color: #333 !important;
 font-size: 14px !important;
 line-height: 1.3 !important;
 display: block !important;
 margin-bottom: 8px !important;
 word-wrap: break-word !important;
 overflow: hidden !important;
 text-overflow: ellipsis !important;
 display: -webkit-box !important;
 -webkit-line-clamp: 2 !important;
 -webkit-box-orient: vertical !important;
}

/* Quantity and Price - FIXED */
.fs-cart-dropdown .woocommerce-mini-cart-item .quantity {
 font-size: 13px !important;
 color: #666 !important;
 margin: 4px 0 0 0 !important;
 display: flex !important;
 align-items: center !important;
 justify-content: space-between !important;
 gap: 8px !important;
 flex-wrap: wrap !important;
}

/* Individual Price Parts */
.fs-cart-dropdown .woocommerce-mini-cart-item .quantity .amount {
 color: #f6623c !important;
 font-weight: 600 !important;
 font-size: 14px !important;
}

/* Remove Button - FIXED */
.fs-cart-dropdown .woocommerce-mini-cart-item .remove {
 position: absolute !important;
 top: 4px !important;
 right: 8px !important;
 width: 24px !important;
 height: 24px !important;
 background: #f6623c !important;
 border-radius: 50% !important;
 color: white !important;
 text-decoration: none !important;
 font-size: 0 !important;
 transition: all 0.2s ease !important;
 z-index: 10 !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 border: none !important;
 cursor: pointer !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item .remove::before {
 content: '×' !important;
 font-size: 16px !important;
 font-weight: bold !important;
 line-height: 1 !important;
 color: white !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item .remove:hover {
 background: #e85732 !important;
 color: white !important;
 transform: scale(1.1) !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item .remove:focus {
 outline: 2px solid #007cba !important;
 outline-offset: 2px !important;
}

/* ===================================
  FIXED: Quantity Controls
  =================================== */
.mini-qty-wrapper {
 display: flex !important;
 align-items: center !important;
 gap: 8px !important;
 margin-top: 8px !important;
 background: white !important;
 border-radius: 6px !important;
 padding: 4px !important;
 border: 1px solid #ddd !important;
 transition: all 0.3s ease !important;
}

.mini-qty-wrapper.lightning-updating {
 opacity: 0.7 !important;
 pointer-events: none !important;
 position: relative !important;
 background: #fff3cd !important;
 border-color: #ffeaa7 !important;
}

.mini-qty-wrapper.lightning-updating::after {
 content: '' !important;
 position: absolute !important;
 top: 50% !important;
 left: 50% !important;
 width: 16px !important;
 height: 16px !important;
 border: 2px solid #f6623c !important;
 border-top: 2px solid transparent !important;
 border-radius: 50% !important;
 animation: lightning-spin 0.8s linear infinite !important;
 transform: translate(-50%, -50%) !important;
 z-index: 10 !important;
}

.mini-qty-wrapper.lightning-success {
 background-color: rgba(40, 167, 69, 0.1) !important;
 border-color: #28a745 !important;
 transition: all 0.3s ease !important;
}

@keyframes lightning-spin {
 0% { transform: translate(-50%, -50%) rotate(0deg); }
 100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.mini-qty-btn {
 width: 28px !important;
 height: 28px !important;
 border: 1px solid #ddd !important;
 background: #f9f9f9 !important;
 border-radius: 4px !important;
 cursor: pointer !important;
 font-size: 16px !important;
 line-height: 1 !important;
 text-align: center !important;
 transition: all 0.2s ease !important;
 padding: 0 !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 font-weight: bold !important;
 color: #666 !important;
}

.mini-qty-btn:hover {
 background: #f6623c !important;
 color: white !important;
 border-color: #f6623c !important;
 transform: scale(1.05) !important;
}

.mini-qty-btn:active {
 transform: scale(0.95) !important;
}

.mini-qty-btn:disabled {
 opacity: 0.5 !important;
 cursor: not-allowed !important;
 transform: none !important;
}

.mini-qty-input {
 width: 40px !important;
 height: 28px !important;
 text-align: center !important;
 border: 1px solid #ddd !important;
 border-radius: 4px !important;
 font-size: 14px !important;
 background: #fff !important;
 padding: 0 !important;
 font-weight: 600 !important;
 color: #333 !important;
}

.mini-qty-input:focus {
 outline: none !important;
 border-color: #f6623c !important;
 box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

/* Cart Total & Buttons */
.fs-cart-dropdown .woocommerce-mini-cart__total {
 margin-top: 16px !important;
 padding-top: 16px !important;
 border-top: 2px solid #e0e0e0 !important;
 font-weight: 600 !important;
 display: flex !important;
 justify-content: space-between !important;
 font-size: 16px !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__total .amount {
 color: #f6623c !important;
 font-size: 18px !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons {
 margin-top: 16px !important;
 display: flex !important;
 flex-direction: column !important;
 gap: 10px !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons a {
 display: block !important;
 text-align: center !important;
 padding: 12px 20px !important;
 border-radius: 8px !important;
 font-weight: 600 !important;
 text-decoration: none !important;
 transition: all 0.2s ease !important;
 font-size: 14px !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons a.button {
  background: #f6623c !important;
  color: #fff !important;
  border: 1px solid #f6623c !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons a.button:hover {
  background: #e85732 !important;
  transform: translateY(-1px) !important;
  border-color: #e85732 !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons a.checkout {
 background: #f6623c !important;
 color: white !important;
 border: 1px solid #f6623c !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons a.checkout:hover {
 background: #e85732 !important;
 border-color: #e85732 !important;
 transform: translateY(-1px) !important;
 box-shadow: 0 4px 12px rgba(246, 98, 60, 0.2) !important;
}

/* Empty Cart Message */
.fs-cart-dropdown .woocommerce-mini-cart__empty-message {
 text-align: center !important;
 padding: 40px 20px !important;
 color: #666 !important;
 font-size: 14px !important;
}

/* ===================================
  Mobile Menu
  =================================== */
.fs-mobile-menu-btn {
 display: none;
 background: none;
 border: none;
 padding: 8px;
 cursor: pointer;
 color: #fff;
}

.fs-hamburger {
 width: 24px;
 height: 24px;
}

/* Mobile Sidebar */
.fs-mobile-sidebar {
 position: fixed;
 top: 0;
 left: -100%;
 width: 320px;
 height: 100vh;
 background: #ffffff;
 box-shadow: 2px 0 25px rgba(0, 0, 0, 0.15);
 transition: left 0.3s ease;
 z-index: 2000;
 overflow-y: auto;
 border-right: 1px solid #f0f0f0;
}

.fs-mobile-sidebar.active {
 left: 0;
}

.fs-sidebar-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 25px 20px;
 border-bottom: 2px solid #f0f0f0;
 background: #f8f9fa;
}

.fs-sidebar-logo {
 font-size: 22px;
 font-weight: 700;
 color: #333333;
 font-family: 'FiraGO-SemiBold', sans-serif;
}

.fs-close-btn {
 background: #f0f0f0;
 border: none;
 cursor: pointer;
 padding: 10px;
 color: #666666;
 border-radius: 8px;
 transition: all 0.2s ease;
}

.fs-close-btn:hover {
 background: #f6623c;
 color: #ffffff;
}

.fs-close-icon {
 width: 20px;
 height: 20px;
}

.fs-sidebar-nav {
 padding: 20px 0;
}

/* DESKTOP DROPDOWN STYLE FOR MOBILE SIDEBAR */
.fs-nav-item {
 display: flex;
 align-items: center;
 gap: 15px;
 padding: 16px 20px;
 margin: 4px 12px;
 border-radius: 12px;
 color: #333333;
 text-decoration: none;
 font-size: 16px;
 font-weight: 500;
 font-family: 'FiraGO-SemiBold', sans-serif;
 transition: all 0.3s ease;
 position: relative;
 border-bottom: 1px solid #f0f0f0;
}

.fs-nav-item:last-child {
 border-bottom: none;
}

.fs-nav-item:hover {
 background: #f8f9fa;
 color: #ff6b3d;
 transform: translateX(8px);
}

/* Mobile Navigation Icons - Same as Desktop Dropdown */
.fs-nav-item::before {
 content: '';
 display: flex;
 align-items: center;
 justify-content: center;
 width: 32px;
 height: 32px;
 background: #f0f0f0;
 border-radius: 8px;
 flex-shrink: 0;
 transition: all 0.3s ease;
 background-size: 20px 20px;
 background-repeat: no-repeat;
 background-position: center;
}

.fs-nav-item:hover::before {
 background-color: #ff6b3d;
}

/* Real Category Icons - Same as Desktop Dropdown */
.fs-nav-item[href*="chair"]::before,
.fs-nav-item[href*="სკამი"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/chair.png');
}

.fs-nav-item[href*="table"]::before,
.fs-nav-item[href*="მაგიდა"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/table.png');
}

.fs-nav-item[href*="table-and-chair"]::before,
.fs-nav-item[href*="მაგიდა-და-სკამები"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/table-chair-icon.png');
}

.fs-nav-item[href*="sofa-mechanism"]::before,
.fs-nav-item[href*="სავარძელი-მექანიზმით"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/sofa-icon.png');
}

.fs-nav-item[href*="furniture"]::before,
.fs-nav-item[href*="რბილი-ავეჯი"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/furniture-icon.png');
}

.fs-nav-item[href*="bed-storage"]::before,
.fs-nav-item[href*="საწოლი-სათავსოთი"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/bed-icon.png');
}

.fs-nav-item[href*="living-room"]::before,
.fs-nav-item[href*="მისაღები-ოთახი"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/living-room-icon.png');
}

.fs-nav-item[href*="bedroom"]::before,
.fs-nav-item[href*="საძინებელი"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/bedroom-icon.png');
}

.fs-nav-item[href*="accessories"]::before,
.fs-nav-item[href*="აქსესუარები"]::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/accessorie-icon.png');
}

/* Default fallback icon for unmatched categories */
.fs-nav-item:not([href*="chair"]):not([href*="სკამი"]):not([href*="table"]):not([href*="მაგიდა"]):not([href*="table-and-chair"]):not([href*="მაგიდა-და-სკამები"]):not([href*="sofa-mechanism"]):not([href*="სავარძელი-მექანიზმით"]):not([href*="furniture"]):not([href*="რბილი-ავეჯი"]):not([href*="bed-storage"]):not([href*="საწოლი-სათავსოთი"]):not([href*="living-room"]):not([href*="მისაღები-ოთახი"]):not([href*="bedroom"]):not([href*="საძინებელი"]):not([href*="accessories"]):not([href*="აქსესუარები"])::before {
 background-image: url('https://test.axaliaveji.local/wp-content/uploads/2025/04/chair.png');
}

/* ===================================
  Mobile Search Overlay
  =================================== */
.fs-mobile-search-overlay {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: white !important;
 background-color: #ffffff !important;
 z-index: 10000;
 padding: 20px;
 display: none;
 overflow-y: auto;
}

.fs-mobile-search-overlay.active {
 display: block;
}

.fs-mobile-search-inner {
 width: 100%;
 max-width: 600px;
 margin: 20px auto 0;
 position: relative;
}

.fs-search-close-btn {
 background: none;
 border: none;
 position: absolute;
 top: -10px;
 right: 0;
 padding: 6px;
 cursor: pointer;
 border-radius: 8px;
}
#fsMobileSearchClose svg { width: 20px; height: 20px; }

#fsMobileSearchInput {
 width: calc(100% - 44px) !important;
 min-width: auto !important;
 max-width: none !important;
 padding: 12px 16px;
 border-radius: 12px;
 border: 1px solid #ddd;
 font-size: 18px;
 margin-bottom: 20px;
 margin-left: 0;
 margin-right: 44px;
 display: block;
}

#fsMobileSearchDropdown {
 background: transparent;
 border: none;
 box-shadow: none;
 padding: 0;
 display: block !important;
 position: relative !important;
 top: auto !important;
 left: auto !important;
 width: 100% !important;
 max-height: none !important;
}

/* Mobile search dropdown title */
.fs-mobile-search-overlay .fs-dropdown-title {
 font-size: 18px;
 font-weight: 600;
 margin-bottom: 15px;
 color: #333;
}

/* Mobile search categories - match desktop exactly */
.fs-mobile-search-overlay .fs-dropdown-categories {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 list-style: none;
 padding: 0;
 margin: 0;
 margin-bottom: 20px;
 justify-content: center;
}

/* Mobile search dropdown section */
.fs-mobile-search-overlay .fs-dropdown-section {
 margin-bottom: 20px;
}

.fs-mobile-search-overlay .fs-dropdown-categories li a {
 display: inline-block;
 padding: 8px 16px;
 background: #f5f5f5;
 border-radius: 20px;
 font-size: 14px;
 color: #333;
 text-decoration: none;
 transition: all 0.2s ease;
 border: 1px solid transparent;
}

.fs-mobile-search-overlay .fs-dropdown-categories li a:hover,
.fs-mobile-search-overlay .fs-dropdown-categories li a:active {
 background-color: #f6623c;
 color: #fff;
 transform: translateY(-1px);
 box-shadow: 0 2px 8px rgba(225, 82, 64, 0.2);
}

/* ===================================
  Overlay
  =================================== */
.fs-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.5);
 opacity: 0;
 visibility: hidden;
 transition: all 0.3s ease;
 z-index: 1500;
}

.fs-overlay.active {
 opacity: 1;
 visibility: visible;
}

/* ===================================
  Animations
  =================================== */
@keyframes fs-slide-in {
 from {
   transform: translateX(-100%);
 }
 to {
   transform: translateX(0);
 }
}

@keyframes fs-fade-in {
 from {
   opacity: 0;
 }
 to {
   opacity: 1;
 }
}

.fs-mobile-sidebar.active {
 animation: fs-slide-in 0.3s ease;
}

.fs-overlay.active {
 animation: fs-fade-in 0.3s ease;
}

/* ===================================
  Media Queries
  =================================== */
/* ===================================
  Mobile Queries - Keep Desktop Layout
  =================================== */
@media (max-width: 768px) {
 /* Keep red background on mobile */
 .fs-header {
   background: #f3f4f6 !important;
   background-color: #f3f4f6 !important;
 }
 
 /* Keep desktop header height and spacing */
 .fs-header-container {
   height: 70px;
   padding: 0 15px;
   gap: 20px;
   background: #f3f4f6 !important;
   justify-content: flex-start;
 }
 
 /* Keep desktop logo sizes */
 .fs-logo img {
   height: 50px;
 }
 
 .fs-logo-text {
   font-size: 20px;
   display: block;
   color: #ffffff;
 }
 
 /* Hide desktop search and navigation */
 .fs-search-section {
   display: none;
 }
 
 .fs-navigation-section {
   display: none;
 }
 
 /* Show mobile elements */
 .fs-mobile-menu-btn {
   display: block;
   order: -1;
   color: #333333;
   background: transparent !important;
   border: none !important;
 }
 .fs-mobile-menu-btn:hover,
 .fs-mobile-menu-btn:active,
 .fs-mobile-menu-btn:focus { background: transparent !important; box-shadow: none !important; transform: none !important; }
 
 .fs-mobile-only {
   display: inline-block;
 }
 
 /* Keep desktop action buttons spacing */
 .fs-actions-section {
   gap: 20px;
   margin-left: auto;
 }
 
 .fs-action-btn {
   padding: 8px;
   color: #333333;
 }
 
 .fs-action-icon {
   width: 24px;
   height: 24px;
   color: #333333;
 }
 
 /* Mobile overrides: search/cart backgrounds and hide account button */
 #fsMobileSearchBtn,
 #fsMobileSearchBtn:hover,
 #fsCartBtn,
 #fsCartBtn:hover { background: transparent !important; border: none !important; box-shadow: none !important; }
 
 .fs-actions-section button[aria-label="Account"] { display: none !important; }
 
 /* Mobile cart dropdown */
 .fs-cart-dropdown {
   position: fixed;
   top: 80px; /* Match header height */
   right: 0;
   left: 0;
   width: 100%;
   max-width: 100%;
   border-radius: 0;
   max-height: calc(100vh - 80px);
   padding: 20px; /* Keep desktop padding */
 }
 
 /* Mobile search results */
 .fs-dropdown-products li {
   padding: 12px 0;
 }
 
 .fs-dropdown-products li a {
   gap: 12px;
 }
 
 .fs-dropdown-products img {
   width: 60px;
   height: 60px;
 }
 
 /* Mobile Cart Items - keep desktop sizing */
 .fs-cart-dropdown .woocommerce-mini-cart-item {
   padding: 12px !important; /* Keep desktop padding */
   gap: 12px !important;
 }
 
 .fs-cart-dropdown .woocommerce-mini-cart-item img {
   width: 60px !important; /* Keep desktop size */
   height: 60px !important;
 }
 
 .fs-cart-dropdown .woocommerce-mini-cart-item .remove {
   top: 4px !important; /* Keep desktop positioning */
   right: 8px !important;
   width: 24px !important; /* Keep desktop size */
   height: 24px !important;
 }
 
 .fs-cart-dropdown .woocommerce-mini-cart-item .remove::before {
   font-size: 16px !important; /* Keep desktop size */
 }
 
 /* Mobile quantity controls - keep desktop sizing */
 .mini-qty-wrapper {
   gap: 8px !important; /* Keep desktop gap */
 }
 
 .mini-qty-btn {
   width: 28px !important; /* Keep desktop size */
   height: 28px !important;
   font-size: 16px !important;
 }
 
 .mini-qty-input {
   width: 40px !important; /* Keep desktop size */
   height: 28px !important;
   font-size: 14px !important;
 }
}

@media (max-width: 480px) {
 /* REMOVE the logo text hiding - keep it visible */
 .fs-logo-text {
   display: block !important; /* Always show text */
   font-size: 24px; /* Keep desktop size */
 }
 
 /* Keep desktop spacing */
 .fs-actions-section {
   gap: 20px; /* Slightly reduced but still generous */
 }
 
 /* Keep cart badge readable */
 .fs-cart-badge {
   font-size: 11px; /* Keep desktop size */
   padding: 2px 6px;
   min-width: 18px;
 }
 
 /* Keep desktop cart dropdown padding */
 .fs-cart-dropdown {
   padding: 20px; /* Keep desktop padding */
 }
 
 /* Keep desktop quantity control sizes */
 .mini-qty-btn {
   width: 28px !important; /* Keep desktop size */
   height: 28px !important;
   font-size: 16px !important;
 }
 
 .mini-qty-input {
   width: 40px !important; /* Keep desktop size */
   height: 28px !important;
   font-size: 14px !important;
 }
}

/* ===================================
  Body Padding - Keep Desktop Height
  =================================== */
body {
  padding-top: 105px;
}

/* Keep mobile padding */
@media (max-width: 768px) {
 .fs-header-wrapper body {
   padding-top: 105px !important; /* Pre-header mobile (35px) + Header (70px) = 105px */
 }
}

/* ===================================
  Utility Classes
  =================================== */
.fs-header-wrapper body {
 padding-top: 120px;
}

@media (max-width: 768px) {
 .fs-header-wrapper body {
   padding-top: 105px;
 }
}

/* Force all carousel/slider arrows below header */
.swiper-button-next,
.swiper-button-prev,
.slick-arrow,
.carousel-arrow,
.slider-arrow,
.bricks-carousel .swiper-button-next,
.bricks-carousel .swiper-button-prev,
.wp-block-gallery .wp-block-gallery__arrow,
div[class*="arrow"],
button[class*="arrow"],
.arrow,
[class*="navigation"] button,
[class*="nav"] button {
 z-index: 999 !important;
}

/* Force header above everything - OVERRIDE ALL OTHER HEADERS */
.fs-header,
.fs-header *,
header.fs-header,
.fs-header-wrapper .fs-header,
.fs-header-wrapper header {
 z-index: 2147483647 !important;
}

/* Force cart dropdown below header but above content */
.fs-cart-dropdown {
 z-index: 2147483646 !important;
}

/* Override any other header z-index rules */
header {
 z-index: 2147483647 !important;
}

/* Override Bricks mini cart if it exists */
.bricks-mini-cart-dropdown {
 z-index: 2147483645 !important;
}

/* Nuclear option - ensure header is always on top */
body .fs-header,
html .fs-header,
* .fs-header {
 z-index: 2147483647 !important;
 position: fixed !important;
}

/* ===================================
  Enhanced Visual Feedback
  =================================== */

/* Cart item fade out animation for removal */
.fs-cart-dropdown .woocommerce-mini-cart-item.removing {
 animation: fadeOutSlide 0.3s ease forwards;
}

@keyframes fadeOutSlide {
 0% {
   opacity: 1;
   transform: translateX(0);
 }
 100% {
   opacity: 0;
   transform: translateX(-100%);
   height: 0;
   padding: 0;
   margin: 0;
 }
}

/* Success flash animation for quantity updates */
.mini-qty-wrapper.success-flash {
 animation: successFlash 0.5s ease;
}

@keyframes successFlash {
  0% { background-color: rgba(40, 167, 69, 0.1); }
  50% { background-color: rgba(40, 167, 69, 0.3); transform: scale(1.02); }
  100% { background-color: rgba(40, 167, 69, 0.1); transform: scale(1); }
}

/* Loading state for cart items */
.fs-cart-dropdown .woocommerce-mini-cart-item.loading {
  position: relative;
  pointer-events: none;
}

.fs-cart-dropdown .woocommerce-mini-cart-item.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart dropdown scroll styling */
.fs-cart-dropdown::-webkit-scrollbar {
  width: 6px;
}

.fs-cart-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.fs-cart-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.fs-cart-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ===================================
   Accessibility Improvements
   =================================== */

/* Focus states for better accessibility */
.fs-action-btn:focus,
.mini-qty-btn:focus,
.fs-cart-dropdown .remove:focus {
  outline: none;
}

/* Show custom focus ring only for keyboard navigation */
.fs-action-btn:focus-visible,
.mini-qty-btn:focus-visible,
.fs-cart-dropdown .remove:focus-visible {
  outline: 2px solid #f6623c;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.35);
}

.fs-search-input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .fs-cart-dropdown {
    border: 2px solid #000;
  }
  
  .mini-qty-btn {
    border: 2px solid #000;
  }
  
  .fs-cart-dropdown .remove {
    background: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fs-cart-dropdown.active {
    animation: none;
  }
  
  .mini-qty-wrapper.lightning-updating::after {
    animation: none;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .fs-header,
  .fs-cart-dropdown,
  .fs-mobile-sidebar,
  .fs-overlay,
  .fs-mobile-search-overlay {
    display: none !important;
  }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */
@media (prefers-color-scheme: dark) {
  .fs-header-wrapper {
    --fs-primary: #ffffff;
    --fs-secondary: #cccccc;
    --fs-border: #333333;
    --fs-hover: #2a2a2a;
  }
  
  .fs-header {
    background: #1a1a1a;
    border-bottom-color: #333;
  }
  
  .fs-cart-dropdown {
    background: #1a1a1a;
    border-color: #333;
    color: #ffffff;
  }
  
  .fs-cart-dropdown .woocommerce-mini-cart-item {
    background: #2a2a2a !important;
    border-color: #333 !important;
    color: #ffffff !important;
  }
  
  .mini-qty-wrapper {
    background: #2a2a2a !important;
    border-color: #333 !important;
  }
  
  .mini-qty-btn {
    background: #333 !important;
    border-color: #444 !important;
    color: #ffffff !important;
  }
  
  .mini-qty-input {
    background: #2a2a2a !important;
    border-color: #333 !important;
    color: #ffffff !important;
  }
  
  .fs-search-input {
    background: #2a2a2a;
    border-color: #333;
    color: #ffffff;
  }
  
  .fs-search-dropdown {
    background: #1a1a1a;
    border-color: #333;
    color: #ffffff;
  }
}

/* ===================================
   Performance Optimizations
   =================================== */

/* GPU acceleration for animations */
.fs-cart-dropdown,
.mini-qty-wrapper,
.fs-cart-badge,
.fs-mobile-sidebar,
.fs-overlay {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Prevent layout shift */
.fs-cart-badge {
  contain: layout style paint;
}

.mini-qty-wrapper {
  contain: layout style;
}

/* ===================================
   Browser Specific Fixes
   =================================== */

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
  .mini-qty-input {
    -webkit-appearance: none;
  }
  
  .fs-search-input {
    -webkit-appearance: none;
  }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
  .mini-qty-input {
    -moz-appearance: textfield;
  }
  
  .mini-qty-input::-moz-number-spinner {
    display: none;
  }
}

/* Edge/IE specific fixes */
@supports (-ms-ime-align: auto) {
  .fs-cart-dropdown {
    max-height: 400px;
  }
}

/* ===================================
   Error States
   =================================== */
.mini-qty-wrapper.error {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.mini-qty-wrapper.error .mini-qty-btn {
  border-color: #dc3545 !important;
}

.fs-cart-dropdown .woocommerce-mini-cart-item.error {
  background-color: rgba(220, 53, 69, 0.1) !important;
  border-color: #dc3545 !important;
}

/* ===================================
   Debugging Styles (Remove in Production)
   =================================== */
.debug-mode .fs-cart-dropdown {
  border: 3px dashed #00ff00 !important;
}

.debug-mode .mini-qty-wrapper {
  border: 2px dashed #ff0000 !important;
}

.debug-mode .fs-cart-dropdown .woocommerce-mini-cart-item {
  border: 1px dashed #0000ff !important;
}

/* ===================================
   Custom Scrollbar for Cart Dropdown
   =================================== */
.fs-cart-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* ===================================
   Hover Effects Enhancement
   =================================== */
.fs-cart-dropdown .woocommerce-mini-cart-item:hover {
  background-color: #f9f9f9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.mini-qty-btn:hover:not(:disabled) {
  box-shadow: 0 2px 4px rgba(225, 82, 64, 0.2) !important;
}

/* ===================================
   RTL Support
   =================================== */
[dir="rtl"] .fs-cart-dropdown {
  right: auto;
  left: -10px;
}

[dir="rtl"] .fs-cart-dropdown .remove {
  right: auto;
  left: 8px;
}

[dir="rtl"] .mini-qty-wrapper {
  flex-direction: row-reverse;
}

/* ===================================
   Final Cleanup & Overrides
   =================================== */

/* Ensure no conflicting styles */
.fs-cart-dropdown * {
  box-sizing: border-box;
}

/* Last resort z-index enforcement */
.fs-header {
  z-index: 2147483647 !important;
}

.fs-cart-dropdown {
  z-index: 2147483646 !important;
}

/* Mobile Search */
@media (max-width: 768px) {
  .fs-search-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    align-items: flex-start;
    padding: 20px;
  }

  .fs-search-wrapper.active {
    display: flex;
  }

  .fs-search-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .fs-search-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: white;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fs-search-dropdown.active {
    display: block;
  }

  .fs-product-link {
    padding: 12px 16px;
  }

  .fs-product-thumb {
    width: 70px;
    height: 70px;
  }

  .fs-product-title {
    font-size: 15px;
  }

  .fs-product-price {
    font-size: 14px;
  }

  .fs-mobile-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .fs-mobile-search-close svg {
    width: 20px;
    height: 20px;
    color: #333;
  }
}

/* End of header.css */

/* Force mini cart color scheme: white background, red accents */
.fs-cart-dropdown,
.fs-cart-dropdown .woocommerce-mini-cart-item {
  background: #ffffff !important;
  color: #333333 !important;
}

.fs-cart-dropdown .woocommerce-mini-cart__buttons a.checkout {
  background: #f6623c !important;
  color: #ffffff !important;
  border-color: #f6623c !important;
}

/* Remove unintended black backgrounds on any modes */
@media (prefers-contrast: high) {
  .fs-cart-dropdown .remove {
    background: #f6623c !important;
  }
}

@media (prefers-color-scheme: dark) {
  .fs-cart-dropdown {
    background: #ffffff !important;
    color: #333333 !important;
    border-color: #e0e0e0 !important;
  }
  .fs-cart-dropdown .woocommerce-mini-cart-item {
    background: #fafafa !important;
    color: #333333 !important;
    border-color: #f0f0f0 !important;
  }
  .mini-qty-wrapper {
    background: #ffffff !important;
    border-color: #dddddd !important;
  }
  .mini-qty-btn {
    background: #f9f9f9 !important;
    border-color: #dddddd !important;
    color: #666666 !important;
  }
  .mini-qty-input {
    background: #ffffff !important;
    border-color: #dddddd !important;
    color: #333333 !important;
  }
}

/* Sale nav button (desktop only) */
.fs-sale-nav-btn {
  display: none;
}

@media (min-width: 992px) {
  .fs-navigation-section {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .fs-sale-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    transition: background .2s ease, transform .2s ease;
  }
  .fs-sale-nav-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
  .fs-sale-icon { width: 20px; height: 20px; display: block; }
}

/* Terms page layout */
.ax-terms {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 16px 60px; /* top padding to clear fixed header */
}
.ax-terms h1 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 14px;
}
.ax-terms h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 22px 0 10px;
}
.ax-terms p {
  font-size: 14px;
  line-height: 1.8;
  color: #222;
  margin: 8px 0;
}
.ax-terms a { color: #f6623c; text-decoration: underline; }

@media (max-width: 768px) {
  .ax-terms { padding: 100px 14px 50px; }
  .ax-terms h1 { font-size: 20px; }
  .ax-terms h2 { font-size: 16px; }
  .ax-terms p { font-size: 13px; line-height: 1.75; }
}

/* Mobile sidebar label size override to fit long titles */
.fs-sidebar-nav .fs-nav-item-name {
  font-size: 12px;
}

/* Mini-cart remove (x) link color */
.fs-cart-dropdown .woocommerce-mini-cart .remove.remove_from_cart_button {
  color: #f6623c !important;
}
.fs-cart-dropdown .woocommerce-mini-cart .remove.remove_from_cart_button:hover {
  color: #e85732 !important;
}

/* Quantity input focus accent to orange */
.mini-qty-input:focus {
 outline: none !important;
 border-color: #f6623c !important;
 box-shadow: 0 0 0 2px rgba(246, 98, 60, 0.12) !important;
}

/* Disable red spinner arc in mini-cart qty updating */
.mini-qty-wrapper.lightning-updating::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  animation: none !important;
}

/* ===================================
   Hard Brand Color Enforcement (All devices)
   =================================== */
.fs-search-dropdown,
.fs-search-dropdown *,
.ls-panel,
.ls-panel * {
  color: inherit;
}

/* Force white background and black titles regardless of dark mode or OS settings */
.fs-search-dropdown { background: #ffffff !important; color: #111111 !important; }
.fs-search-dropdown .ls-item { background: #f6f6f6 !important; }
.fs-search-dropdown .ls-name { color: #111111 !important; }

/* Keep brand orange for current price */
.fs-search-dropdown .ls-price-current,
.fs-search-dropdown .ls-price-current .woocommerce-Price-amount,
.fs-search-dropdown .ls-price-current .woocommerce-Price-amount bdi,
.fs-search-dropdown .ls-price-current .woocommerce-Price-amount .woocommerce-Price-currencySymbol { color: #ff6b3d !important; }

/* Old price stays gray */
.fs-search-dropdown .ls-price-old,
.fs-search-dropdown .ls-price-old .woocommerce-Price-amount,
.fs-search-dropdown .ls-price-old .woocommerce-Price-amount bdi,
.fs-search-dropdown .ls-price-old .woocommerce-Price-amount .woocommerce-Price-currencySymbol { color: #666666 !important; }

/* Disable device dark-mode for this panel */
@media (prefers-color-scheme: dark) {
  .fs-search-dropdown { background: #ffffff !important; color: #111111 !important; }
  .fs-search-dropdown .ls-item { background: #f6f6f6 !important; }
  .fs-search-dropdown .ls-name { color: #111111 !important; }
}

/* ===================================
   FINAL ENFORCEMENT: No Dark Mode, Standard Colors Only
   =================================== */
:root { color-scheme: light; }

/* Cart dropdown must always be light */
.fs-cart-dropdown,
.fs-cart-dropdown.active {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #e5e5e5 !important;
}

/* Buttons/qty area remain light */
.mini-qty-wrapper { background: #ffffff !important; border-color: #e5e5e5 !important; }
.mini-qty-btn { background: #ffffff !important; color: #111111 !important; border-color: #e5e5e5 !important; }
.mini-qty-input { background: #ffffff !important; color: #111111 !important; border-color: #e5e5e5 !important; }

/* Sitewide core surfaces: keep light */
.fs-header-wrapper,
.fs-header,
.fs-mobile-sidebar,
.fs-overlay {
  background: #ffffff !important;
  color: #111111 !important;
}

/* Even if OS requests dark, keep these light */
@media (prefers-color-scheme: dark) {
  .fs-cart-dropdown,
  .fs-cart-dropdown.active { background: #ffffff !important; color: #111111 !important; border-color: #e5e5e5 !important; }
  .mini-qty-wrapper { background: #ffffff !important; border-color: #e5e5e5 !important; }
  .mini-qty-btn { background: #ffffff !important; color: #111111 !important; border-color: #e5e5e5 !important; }
  .mini-qty-input { background: #ffffff !important; color: #111111 !important; border-color: #e5e5e5 !important; }
  .fs-header-wrapper,
  .fs-header,
  .fs-mobile-sidebar,
  .fs-overlay { background: #ffffff !important; color: #111111 !important; }
}