/* =====================================================
   MOBILE RESPONSIVE FIX - Header & Cart Issues
   ===================================================== */

/* =====================================================
   1. MOBILE HEADER ICON ALIGNMENT FIX
   ===================================================== */

/* Fix for mobile screen header icons alignment */
@media (max-width: 577px) {
  
  /* =====================================================
     HEADER ICONS - PERFECT ALIGNMENT
     Search (Left), Cart (Center), Profile (Right)
     ===================================================== */
  
  /* Search icon - Left side (fixed at bottom) */
  .main-menu .menu-right .icon-nav .mobile-search {
    position: fixed !important;
    right: 78% !important;
    left: unset !important;
    top: unset !important;
    bottom: 20px !important;
    transform: none !important;
    z-index: 1001 !important;
  }
  
  /* Cart icon - Center (fixed at bottom) */
  .main-menu .menu-right .icon-nav .mobile-cart {
    position: fixed !important;
    right: 50% !important;
    left: unset !important;
    top: unset !important;
    bottom: 20px !important;
    transform: translateX(50%) !important;
    z-index: 1001 !important;
  }
  
  /* Profile/Account icon - Right side (fixed at bottom) */
  .top-header .header-dropdown .mobile-account {
    position: fixed !important;
    right: 8% !important;
    left: unset !important;
    top: unset !important;
    bottom: 10px !important;
    transform: none !important;
    z-index: 1001 !important;
    padding: 8px !important;
  }
}

/* =====================================================
   2. ADDITIONAL MOBILE FIXES FOR SPECIFIC SCREEN SIZES
   ===================================================== */

/* For very small screens (320px - 375px) */
@media (max-width: 375px) {
  
  /* Further adjust icon positions for smaller screens */
  .main-menu .menu-right .icon-nav .mobile-search {
    right: 76% !important;
  }
  
  .main-menu .menu-right .icon-nav .mobile-cart {
    right: 50% !important;
  }
  
  .top-header .header-dropdown .mobile-account {
    right: 5% !important;
  }
}

/* For medium mobile screens (376px - 577px) */
@media (min-width: 376px) and (max-width: 577px) {
  
  /* Slightly different positioning for medium screens */
  .main-menu .menu-right .icon-nav .mobile-search {
    right: 80% !important;
  }
  
  .top-header .header-dropdown .mobile-account {
    right: 10% !important;
  }
}

/* =====================================================
   3. HEADER SPACING FIX FOR MOBILE
   ===================================================== */

/* Header styles removed to keep original header appearance unchanged */

/* =====================================================
   4. CART OFFCANVAS ANIMATION FIX
   ===================================================== */

/* Cart offcanvas styles removed to keep original behavior unchanged */

/* =====================================================
   5. PROFILE DROPDOWN FIX FOR MOBILE
   ===================================================== */

@media (max-width: 577px) {
  
  /* Fix profile dropdown to show above (upwards) when hovered */
  .top-header .header-dropdown .mobile-account .onhover-show-div {
    top: unset !important;
    bottom: 60px !important;
    right: 0 !important;
    left: unset !important;
    width: 200px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
  }
  
  /* Profile dropdown links */
  .top-header .header-dropdown .mobile-account .onhover-show-div li a {
    padding: 10px 15px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  
  .top-header .header-dropdown .mobile-account .onhover-show-div li a i {
    font-size: 16px !important;
  }
}

/* =====================================================
   END OF MOBILE RESPONSIVE FIX
   ===================================================== */
   
   
   
 
/* loader css */

.custom-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  animation: pulse 2s infinite ease-in-out;
  z-index: 2;
}

/* .spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #f0f0f0;
  border-top: 6px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
} */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.custom-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .loader-logo {
    width: 100px;
    height: 100px;
  }
}