/* ========================================
       FUSION HEADER SYSTEM
       Premium Glassmorphism Design
       ======================================== */

:root {
  --header-height: 80px;
}

.modern-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 247, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(243, 147, 33, 0.1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 20px rgba(243, 147, 33, 0.08);
  transition: all 0.3s ease;
}

/* Premium glow line at bottom */
.modern-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(243, 147, 33, 0.4) 20%,
    rgba(243, 147, 33, 0.8) 50%,
    rgba(243, 147, 33, 0.4) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

/* Glassmorphism for Dark Mode */
[data-theme="dark"] .modern-header {
  background: linear-gradient(180deg, rgba(26, 29, 35, 0.95) 0%, rgba(11, 17, 32, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(243, 147, 33, 0.15);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(243, 147, 33, 0.05);
}

[data-theme="dark"] .modern-header::after {
  opacity: 0.8;
}

/* Logo Text - Fusion Gradient */
.header-logo-text {
  background: linear-gradient(
    135deg,
    var(--fusion-heading) 0%,
    var(--fusion-accent-primary) 50%,
    var(--fusion-heading) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.025em;
  animation: logoGradientShift 6s ease-in-out infinite;
}

@keyframes logoGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-link {
  color: var(--fusion-text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

/* Desktop nav fit: keep top links on a single line and reduce spacing density */
.header-main-row {
  min-width: 0;
  gap: 1.35rem !important;
}

.header-desktop-nav {
  gap: 0.62rem !important;
  flex-wrap: nowrap;
  min-width: 0;
}

.header-actions {
  flex-shrink: 0;
  gap: 0.55rem !important;
}

.header-desktop-nav .header-link {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.84rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding: 0.34rem 0.46rem;
}

.header-desktop-nav .header-link i {
  margin-right: 0.25rem !important;
}

.header-desktop-nav #categories-menu-btn {
  white-space: nowrap !important;
}

/* Uniform header mode: match sales homepage header across all pages */
body.home-header-uniform .mega-menu-container,
body.home-header-uniform .lj-mega-menu,
body.home-header-uniform .menu-item.has-mega,
body.home-header-uniform .mobile-bottom-nav,
body.home-header-uniform #mobile-bottom-nav {
  display: none !important;
}

body.home-header-uniform.has-bottom-nav {
  padding-bottom: 0 !important;
}

.header-user-trigger {
  max-width: 190px;
}

.header-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 118px;
}

.header-user-avatar-text {
  letter-spacing: 0.03em;
}

.header-link:hover {
  color: var(--fusion-accent-primary);
  background: var(--fusion-surface);
  box-shadow: var(--fusion-shadow-out);
}

@media (min-width: 992px) and (max-width: 1399px) {
  .header-main-row {
    gap: 1rem !important;
  }

  .header-desktop-nav {
    gap: 0.42rem !important;
  }

  .header-desktop-nav .header-link {
    font-size: 0.78rem;
    padding: 0.28rem 0.38rem;
  }

  .header-user-trigger {
    max-width: 150px;
  }

  .header-user-name {
    max-width: 88px;
  }
}

[data-theme="dark"] .header-link:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
}

.header-btn {
  background: var(--fusion-accent-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--fusion-accent-glow);
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--fusion-accent-glow);
  color: white;
}

/* Fusion Search Input */
#header-search-input {
  background: var(--fusion-surface);
  border: 1px solid var(--fusion-border);
  color: var(--fusion-text);
  box-shadow: var(--fusion-shadow-in);
  border-radius: 12px;
  padding-left: 3rem;
  padding-right: 1rem;
  height: 48px;
}

[data-theme="dark"] #header-search-input {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#header-search-input:focus {
  border-color: var(--fusion-accent-primary);
  box-shadow: 0 0 0 3px var(--fusion-accent-glow);
}

/* ========================================
       CRITICAL VISIBILITY RULES (Fixes Open Menus)
       ======================================== */
.mega-menu-dropdown,
#categories-mega-dropdown,
.mega-menu-container,
.user-dropdown,
.cart-dropdown {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Hover States - Show Menus */
.mega-menu-group:hover .mega-menu-dropdown,
.mega-menu-group:hover > #categories-mega-dropdown,
#categories-mega-menu:hover #categories-mega-dropdown,
.menu-item.has-mega:hover .mega-menu-container,
.menu-item.has-mega:hover > .mega-menu-container,
.user-group:hover .user-dropdown,
.cart-group:hover .cart-dropdown {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Desktop user menu hover bridge: prevents dropdown from closing while moving cursor */
@media (min-width: 992px) {
  .user-group {
    position: relative;
  }

  .user-group .user-dropdown {
    top: 100% !important;
  }

  .user-group::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 192px;
    min-width: 100%;
    height: 12px;
    background: transparent;
  }

  .user-group:focus-within .user-dropdown,
  .user-group.active .user-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }
}

/* Sibling Mega Menu - desktop-nav hover triggers sibling container */
.desktop-nav:has(.menu-item.has-mega:hover) + .mega-menu-container,
.mega-menu-container:hover {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Mega Menu Container - Full width centering */
#categories-mega-dropdown .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Search Helper */
#header-search-results {
  display: none !important;
}
#header-search-results.show {
  display: block !important;
}

/* ========================================
       PREMIUM MEGA MENU - FUSION DESIGN SYSTEM
       ======================================== */
#categories-mega-dropdown {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(243, 147, 33, 0.2);
  border-bottom: 1px solid rgba(243, 147, 33, 0.1);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  top: calc(80px + var(--demo-banner-height, 0px));
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  padding: 0;
  transform-origin: top center;
  animation: megaMenuSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Turuncu Glow Çizgisi - Üst */
#categories-mega-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(243, 147, 33, 0.3) 20%,
    rgba(243, 147, 33, 0.8) 50%,
    rgba(243, 147, 33, 0.3) 80%,
    transparent 100%
  );
  z-index: 1;
}

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

[data-theme="dark"] #categories-mega-dropdown {
  background: linear-gradient(135deg, rgba(26, 29, 35, 0.98) 0%, rgba(11, 17, 32, 0.95) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow:
    0 25px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(243, 147, 33, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #categories-mega-dropdown::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(243, 147, 33, 0.4) 20%,
    rgba(243, 147, 33, 1) 50%,
    rgba(243, 147, 33, 0.4) 80%,
    transparent 100%
  );
}

/* Mega Menu İç Container */
.mega-menu-inner {
  padding: 2rem 0;
  position: relative;
}

/* Kategori Kartları - Temiz Görünüm */
.mega-menu-category-card {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.mega-menu-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mega-menu-category-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px -15px rgba(243, 147, 33, 0.2),
    0 0 0 1px rgba(243, 147, 33, 0.2);
  border-color: rgba(243, 147, 33, 0.3);
}

.mega-menu-category-card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .mega-menu-category-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mega-menu-category-card:hover {
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.1) 0%, rgba(243, 147, 33, 0.05) 100%);
  border-color: rgba(243, 147, 33, 0.4);
  box-shadow:
    0 20px 50px -15px rgba(243, 147, 33, 0.3),
    0 0 30px rgba(243, 147, 33, 0.1);
}

/* Kategori Başlık Alanı */
.mega-menu-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(243, 147, 33, 0.15);
}

.mega-menu-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(243, 147, 33, 0.5);
  transition: all 0.3s ease;
}

.mega-menu-category-card:hover .mega-menu-category-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 30px -8px rgba(243, 147, 33, 0.6);
}

.mega-menu-category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fusion-heading);
  margin: 0;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .mega-menu-category-title {
  color: #fff;
}

/* Kategori Linkleri */
.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  margin: 0 -0.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fusion-text);
  transition: all 0.25s ease;
  position: relative;
}

.mega-menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg, #f39321, #e67e22);
  border-radius: 0 3px 3px 0;
  transition: transform 0.25s ease;
}

.mega-menu-link:hover {
  background: linear-gradient(90deg, rgba(243, 147, 33, 0.1) 0%, transparent 100%);
  color: #f39321;
  padding-left: 1.25rem;
}

.mega-menu-link:hover::before {
  transform: translateY(-50%) scaleX(1);
}

[data-theme="dark"] .mega-menu-link {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .mega-menu-link:hover {
  background: linear-gradient(90deg, rgba(243, 147, 33, 0.15) 0%, transparent 100%);
  color: #f39321;
}

.mega-menu-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 147, 33, 0.1);
  color: #f39321;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mega-menu-link:hover .mega-menu-link-icon {
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  transform: scale(1.1);
}

.mega-menu-link-text {
  flex: 1;
}

.mega-menu-link-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  line-height: 1.3;
}

.mega-menu-link-count {
  font-size: 0.75rem;
  color: var(--fusion-text-muted);
  display: block;
  margin-top: 2px;
}

[data-theme="dark"] .mega-menu-link-count {
  color: rgba(255, 255, 255, 0.5);
}

/* Mega Menu Footer */
.mega-menu-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 147, 33, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mega-menu-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -8px rgba(243, 147, 33, 0.5);
}

.mega-menu-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(243, 147, 33, 0.6);
  color: white;
}

.mega-menu-view-all i {
  transition: transform 0.3s ease;
}

.mega-menu-view-all:hover i {
  transform: translateX(4px);
}

.mega-menu-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mega-menu-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(243, 147, 33, 0.08);
  border: 1px solid rgba(243, 147, 33, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fusion-text);
}

.mega-menu-badge i {
  color: #f39321;
}

[data-theme="dark"] .mega-menu-badge {
  background: rgba(243, 147, 33, 0.1);
  border-color: rgba(243, 147, 33, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* Promosyon Banner */
.mega-menu-promo {
  background: transparent;
  border: 1px dashed rgba(243, 147, 33, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
}

.mega-menu-promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.mega-menu-promo-text {
  font-size: 0.85rem;
  color: var(--fusion-text);
  line-height: 1.4;
}

.mega-menu-promo-text strong {
  color: #f39321;
}

[data-theme="dark"] .mega-menu-promo {
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.15) 0%, rgba(243, 147, 33, 0.05) 100%);
  border-color: rgba(243, 147, 33, 0.4);
}

[data-theme="dark"] .mega-menu-promo-text {
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
       MEGA MENU - ADVANCED FEATURES
       ======================================== */

/* Shimmer Animation for Cards */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.mega-menu-category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(243, 147, 33, 0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-menu-category-card:hover::after {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

/* Category Badges - YENİ, POPÜLER */
.mega-menu-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.mega-menu-category-badge.new {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.5);
}

.mega-menu-category-badge.popular {
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(243, 147, 33, 0.5);
}

.mega-menu-category-badge.hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(239, 68, 68, 0.5);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.mega-menu-featured {
  background: transparent;
  border: 1px solid rgba(243, 147, 33, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.mega-menu-featured::before {
  content: "ÖNE ÇIKAN";
  position: absolute;
  top: 12px;
  right: -28px;
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.mega-menu-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -15px rgba(243, 147, 33, 0.3);
  border-color: rgba(243, 147, 33, 0.4);
}

[data-theme="dark"] .mega-menu-featured {
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.12) 0%, rgba(243, 147, 33, 0.04) 100%);
  border-color: rgba(243, 147, 33, 0.2);
}

.mega-menu-featured-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 249, 247, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
}

.mega-menu-featured-image img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.mega-menu-featured-image i {
  font-size: 2rem;
  color: #f39321;
}

[data-theme="dark"] .mega-menu-featured-image {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.mega-menu-featured-content {
  flex: 1;
}

.mega-menu-featured-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fusion-heading);
  margin: 0 0 4px 0;
}

[data-theme="dark"] .mega-menu-featured-title {
  color: #fff;
}

.mega-menu-featured-desc {
  font-size: 0.8rem;
  color: var(--fusion-text-muted);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

[data-theme="dark"] .mega-menu-featured-desc {
  color: rgba(255, 255, 255, 0.6);
}

.mega-menu-featured-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-featured-price-current {
  font-size: 1.125rem;
  font-weight: 800;
  color: #f39321;
}

.mega-menu-featured-price-old {
  font-size: 0.875rem;
  color: var(--fusion-text-muted);
  text-decoration: line-through;
}

/* Mega Menu Search */
.mega-menu-search {
  background: transparent;
  border: 1px solid rgba(243, 147, 33, 0.15);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.mega-menu-search:focus-within {
  border-color: rgba(243, 147, 33, 0.5);
  box-shadow: 0 0 0 4px rgba(243, 147, 33, 0.1);
}

[data-theme="dark"] .mega-menu-search {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mega-menu-search:focus-within {
  border-color: rgba(243, 147, 33, 0.5);
  box-shadow: 0 0 0 4px rgba(243, 147, 33, 0.15);
}

.mega-menu-search-icon {
  color: #f39321;
  font-size: 1rem;
}

.mega-menu-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--fusion-text);
  outline: none;
}

.mega-menu-search-input::placeholder {
  color: var(--fusion-text-muted);
}

[data-theme="dark"] .mega-menu-search-input {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .mega-menu-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mega-menu-search-shortcut {
  padding: 4px 8px;
  background: rgba(243, 147, 33, 0.1);
  border-radius: 6px;
  font-size: 0.7rem;
  color: #f39321;
  font-weight: 600;
}

/* Quick Stats */
.mega-menu-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.mega-menu-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(243, 147, 33, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
}

.mega-menu-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

.mega-menu-stat-value {
  font-weight: 700;
  color: var(--fusion-heading);
}

.mega-menu-stat-label {
  color: var(--fusion-text-muted);
  font-size: 0.75rem;
}

[data-theme="dark"] .mega-menu-stat {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mega-menu-stat-value {
  color: #fff;
}

/* Arrow animation for links */
.mega-menu-link-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.25s ease;
  color: #f39321;
  font-size: 0.75rem;
}

.mega-menu-link:hover .mega-menu-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Hover glow effect for category icon */
.mega-menu-category-icon {
  position: relative;
}

.mega-menu-category-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.4), transparent);
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.mega-menu-category-card:hover .mega-menu-category-icon::after {
  opacity: 1;
}

/* Subtle background pattern */
.mega-menu-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(243, 147, 33, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(243, 147, 33, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(243, 147, 33, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ========================================
       MEGA MENU RESPONSIVE STYLES
       Scroll yok - içerik tam sığacak
       ======================================== */

/* Mega menu - scroll yok, kompakt tasarım */
#categories-mega-dropdown {
  overflow: visible;
}

/* Kompakt mega menu inner */
.mega-menu-inner {
  padding: 1rem 0 !important;
}

/* Kompakt kategori kartları */
.mega-menu-category-card {
  padding: 1rem !important;
}

.mega-menu-category-header {
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.6rem !important;
  gap: 10px !important;
}

.mega-menu-category-icon {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.95rem !important;
}

.mega-menu-category-title {
  font-size: 0.9rem !important;
}

/* Kompakt linkler */
.mega-menu-link {
  padding: 0.4rem 0.6rem !important;
}

.mega-menu-link-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.7rem !important;
}

.mega-menu-link-name {
  font-size: 0.8rem !important;
}

.mega-menu-link-count {
  font-size: 0.65rem !important;
}

/* Promo ve stats her zaman gizli - alan kazanmak için */
.mega-menu-promo,
.mega-menu-stats {
  display: none !important;
}

/* Kompakt footer */
.mega-menu-footer {
  padding: 0.5rem 0 !important;
  margin-top: 0.5rem !important;
}

.mega-menu-view-all {
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
}

.mega-menu-badges {
  gap: 0.4rem !important;
  row-gap: 0.3rem !important;
}

.mega-menu-badge {
  padding: 0.3rem 0.5rem !important;
  font-size: 0.65rem !important;
}

/* Kompakt arama */
.mega-menu-search {
  padding: 0.5rem 1rem !important;
  margin-bottom: 0.75rem !important;
}

.mega-menu-search-input {
  font-size: 0.85rem !important;
}

/* Row gap azalt */
#categories-mega-dropdown .row.g-4 {
  --bs-gutter-y: 0.75rem;
  --bs-gutter-x: 0.75rem;
}

/* 1400px altı - Daha dar */
@media (max-width: 1399px) {
  .mega-menu-inner {
    max-width: 1100px !important;
  }
}

/* 1200px altı - 2 kolon */
@media (max-width: 1199px) {
  .mega-menu-inner {
    max-width: 100% !important;
  }

  #categories-mega-dropdown .row > .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Öne çıkan ürün gizle */
  .mega-menu-featured {
    display: none;
  }

  .mega-menu-footer {
    flex-wrap: wrap;
  }
}

/* 992px altı - Mega menü gizle, mobil menü kullan */
@media (max-width: 991px) {
  #categories-mega-dropdown,
  .mega-menu-dropdown {
    display: none !important;
  }

  #categories-mega-menu {
    display: none;
  }
}

/* "+X daha" linki için özel stil */
.mega-menu-more-link {
  margin-top: 0.4rem;
  border-top: 1px dashed rgba(243, 147, 33, 0.2);
  padding-top: 0.75rem !important;
}

.mega-menu-more-link:hover {
  background: rgba(243, 147, 33, 0.08) !important;
}

[data-theme="dark"] .mega-menu-more-link {
  border-top-color: rgba(243, 147, 33, 0.3);
}

/* ========================================
       PREMIUM SEARCH MODAL - SPOTLIGHT STYLE
       ======================================== */

/* Modal Backdrop */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

[data-theme="dark"] .search-modal-backdrop {
  background: rgba(0, 0, 0, 0.75);
}

/* Modal Container */
.search-modal {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 90%;
  max-width: 680px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Modal Content */
.search-modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 247, 0.95) 100%);
  border-radius: 20px;
  box-shadow:
    0 25px 80px -20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(243, 147, 33, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .search-modal-content {
  background: linear-gradient(135deg, rgba(26, 29, 35, 0.98) 0%, rgba(11, 17, 32, 0.95) 100%);
  box-shadow:
    0 25px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(243, 147, 33, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Search Input Area */
.search-modal-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(243, 147, 33, 0.15);
  gap: 1rem;
}

.search-modal-icon {
  color: #f39321;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--fusion-heading);
  outline: none;
}

.search-modal-input::placeholder {
  color: var(--fusion-text-muted);
  font-weight: 400;
}

[data-theme="dark"] .search-modal-input {
  color: #fff;
}

[data-theme="dark"] .search-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(243, 147, 33, 0.1);
  color: #f39321;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-modal-close:hover {
  background: rgba(243, 147, 33, 0.2);
  transform: scale(1.05);
}

/* Category Tabs */
.search-modal-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.search-modal-tabs::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] .search-modal-tabs {
  border-color: rgba(255, 255, 255, 0.05);
}

.search-modal-tab {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.03);
  color: var(--fusion-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-modal-tab:hover {
  background: rgba(243, 147, 33, 0.1);
  color: #f39321;
}

.search-modal-tab.active {
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(243, 147, 33, 0.5);
}

.search-modal-tab i {
  font-size: 0.8rem;
}

[data-theme="dark"] .search-modal-tab {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .search-modal-tab:hover {
  background: rgba(243, 147, 33, 0.15);
  color: #f39321;
}

/* Results Area */
.search-modal-results {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 147, 33, 0.3) transparent;
}

.search-modal-results::-webkit-scrollbar {
  width: 6px;
}

.search-modal-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-modal-results::-webkit-scrollbar-thumb {
  background: rgba(243, 147, 33, 0.3);
  border-radius: 3px;
}

/* Result Section */
.search-modal-section {
  padding: 0.75rem 1.5rem;
}

.search-modal-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fusion-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-modal-section-title i {
  color: #f39321;
}

[data-theme="dark"] .search-modal-section-title {
  color: rgba(255, 255, 255, 0.5);
}

/* Result Item */
.search-modal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--fusion-text);
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
  position: relative;
}

.search-modal-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #f39321, #e67e22);
  border-radius: 0 3px 3px 0;
  transition: transform 0.2s ease;
}

.search-modal-item:hover,
.search-modal-item.active {
  background: linear-gradient(90deg, rgba(243, 147, 33, 0.1) 0%, transparent 100%);
  color: var(--fusion-heading);
  padding-left: 1.25rem;
}

.search-modal-item:hover::before,
.search-modal-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

[data-theme="dark"] .search-modal-item {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .search-modal-item:hover,
[data-theme="dark"] .search-modal-item.active {
  background: linear-gradient(90deg, rgba(243, 147, 33, 0.15) 0%, transparent 100%);
  color: #fff;
}

.search-modal-item-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 249, 247, 0.8) 100%);
  border: 1px solid rgba(243, 147, 33, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.search-modal-item-image img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.search-modal-item-image i {
  font-size: 1.25rem;
  color: #f39321;
}

[data-theme="dark"] .search-modal-item-image {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.search-modal-item-content {
  flex: 1;
  min-width: 0;
}

.search-modal-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal-item-subtitle {
  font-size: 0.8rem;
  color: var(--fusion-text-muted);
}

[data-theme="dark"] .search-modal-item-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.search-modal-item-price {
  font-weight: 700;
  color: #f39321;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.search-modal-item-arrow {
  color: #f39321;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.search-modal-item:hover .search-modal-item-arrow,
.search-modal-item.active .search-modal-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Quick Links */
.search-modal-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .search-modal-quick-links {
  border-color: rgba(255, 255, 255, 0.05);
}

.search-modal-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(243, 147, 33, 0.08);
  border: 1px solid rgba(243, 147, 33, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--fusion-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-modal-quick-link:hover {
  background: linear-gradient(135deg, #f39321 0%, #e67e22 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(243, 147, 33, 0.5);
}

.search-modal-quick-link i {
  font-size: 0.75rem;
}

[data-theme="dark"] .search-modal-quick-link {
  background: rgba(243, 147, 33, 0.1);
  border-color: rgba(243, 147, 33, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* Empty State */
.search-modal-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.search-modal-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(243, 147, 33, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.search-modal-empty-icon i {
  font-size: 1.5rem;
  color: #f39321;
}

.search-modal-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fusion-heading);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .search-modal-empty-title {
  color: #fff;
}

.search-modal-empty-desc {
  font-size: 0.875rem;
  color: var(--fusion-text-muted);
}

/* Loading State */
.search-modal-loading {
  padding: 3rem 1.5rem;
  text-align: center;
}

.search-modal-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(243, 147, 33, 0.2);
  border-top-color: #f39321;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

.search-modal-loading-text {
  font-size: 0.9rem;
  color: var(--fusion-text-muted);
}

/* Footer */
.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .search-modal-footer {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.search-modal-shortcuts {
  display: flex;
  gap: 1rem;
}

.search-modal-shortcut {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--fusion-text-muted);
}

.search-modal-shortcut kbd {
  padding: 3px 6px;
  background: rgba(243, 147, 33, 0.1);
  border: 1px solid rgba(243, 147, 33, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #f39321;
  font-family: inherit;
}

[data-theme="dark"] .search-modal-shortcut {
  color: rgba(255, 255, 255, 0.5);
}

.search-modal-powered {
  font-size: 0.75rem;
  color: var(--fusion-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-modal-powered i {
  color: #f39321;
}

/* ========================================
       PREMIUM CART MODAL - RECEIPT STYLE
       ======================================== */

/* Cart Modal Backdrop */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

[data-theme="dark"] .cart-modal-backdrop {
  background: rgba(0, 0, 0, 0.8);
}

/* Cart Modal Container */
.cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Receipt Container - Kasa Fişi Görünümü */
.cart-modal-content {
  background: #fefefe;
  border-radius: 4px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  font-family: "Courier New", Courier, monospace;
  position: relative;
}

/* Torn Edge Effect (üst) */
.cart-modal-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 4px, #fefefe 4px, #fefefe 10px);
  z-index: 1;
}

/* Torn Edge Effect (alt) */
.cart-modal-content::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 4px, #fefefe 4px, #fefefe 10px);
  z-index: 1;
}

[data-theme="dark"] .cart-modal-content {
  background: #1e1e1e;
  color: #e0e0e0;
}

/* Receipt Header */
.cart-receipt-header {
  text-align: center;
  padding: 24px 20px 16px;
  border-bottom: 2px dashed #ccc;
}

[data-theme="dark"] .cart-receipt-header {
  border-bottom-color: #444;
}

.cart-receipt-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f39321;
  margin-bottom: 4px;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
}

.cart-receipt-logo i {
  margin-right: 6px;
}

.cart-receipt-subtitle {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cart-receipt-date {
  font-size: 0.65rem;
  color: #aaa;
  margin-top: 8px;
}

/* Close Button */
.cart-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  z-index: 10;
}

.cart-modal-close:hover {
  background: #f39321;
  color: white;
}

[data-theme="dark"] .cart-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

/* Receipt Items */
.cart-receipt-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  max-height: 300px;
}

.cart-receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 0.8rem;
}

.cart-receipt-item:last-child {
  border-bottom: none;
}

[data-theme="dark"] .cart-receipt-item {
  border-bottom-color: #333;
}

.cart-receipt-item-info {
  flex: 1;
  padding-right: 12px;
}

.cart-receipt-item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  font-size: 0.85rem;
}

[data-theme="dark"] .cart-receipt-item-name {
  color: #e0e0e0;
}

.cart-receipt-item-qty {
  font-size: 0.7rem;
  color: #888;
}

.cart-receipt-item-price {
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  font-size: 0.9rem;
}

[data-theme="dark"] .cart-receipt-item-price {
  color: #f39321;
}

.cart-receipt-item-remove {
  margin-left: 10px;
  background: none;
  border: none;
  color: #cc0000;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 6px;
  opacity: 0.6;
  transition: all 0.2s;
}

.cart-receipt-item-remove:hover {
  opacity: 1;
  background: #fee;
  border-radius: 3px;
}

/* Empty Cart */
.cart-receipt-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.cart-receipt-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.cart-receipt-empty-title {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #666;
}

.cart-receipt-empty-desc {
  font-size: 0.75rem;
}

/* Receipt Footer - Totals */
.cart-receipt-footer {
  padding: 16px 20px;
  border-top: 2px dashed #ccc;
  background: #fafafa;
}

[data-theme="dark"] .cart-receipt-footer {
  border-top-color: #444;
  background: #252525;
}

.cart-receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.8rem;
}

.cart-receipt-line.subtotal {
  color: #666;
}

.cart-receipt-line.tax {
  color: #888;
  font-size: 0.75rem;
}

.cart-receipt-line.total {
  border-top: 2px solid #333;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
  font-weight: 900;
}

.cart-receipt-line.total .cart-receipt-line-value {
  color: #f39321;
  font-size: 1.25rem;
}

[data-theme="dark"] .cart-receipt-line.total {
  border-top-color: #f39321;
}

/* Barcode */
.cart-receipt-barcode {
  text-align: center;
  padding: 16px 20px;
  border-top: 1px dashed #ccc;
}

[data-theme="dark"] .cart-receipt-barcode {
  border-top-color: #444;
}

.cart-receipt-barcode-img {
  height: 40px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #333 0px,
    #333 2px,
    transparent 2px,
    transparent 4px,
    #333 4px,
    #333 5px,
    transparent 5px,
    transparent 8px,
    #333 8px,
    #333 9px,
    transparent 9px,
    transparent 11px,
    #333 11px,
    #333 14px,
    transparent 14px,
    transparent 16px
  );
  opacity: 0.7;
}

[data-theme="dark"] .cart-receipt-barcode-img {
  background: repeating-linear-gradient(
    90deg,
    #888 0px,
    #888 2px,
    transparent 2px,
    transparent 4px,
    #888 4px,
    #888 5px,
    transparent 5px,
    transparent 8px,
    #888 8px,
    #888 9px,
    transparent 9px,
    transparent 11px,
    #888 11px,
    #888 14px,
    transparent 14px,
    transparent 16px
  );
}

.cart-receipt-barcode-text {
  font-size: 0.6rem;
  color: #aaa;
  margin-top: 4px;
  letter-spacing: 3px;
}

/* Action Buttons */
.cart-receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px 20px;
}

.cart-receipt-btn {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-receipt-btn.secondary {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
}

.cart-receipt-btn.secondary:hover {
  background: #e0e0e0;
}

[data-theme="dark"] .cart-receipt-btn.secondary {
  background: #333;
  border-color: #444;
  color: #e0e0e0;
}

.cart-receipt-btn.primary {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(243, 147, 33, 0.3);
}

.cart-receipt-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 147, 33, 0.4);
}

/* Thank You Message */
.cart-receipt-thanks {
  text-align: center;
  padding: 12px 20px 20px;
  font-size: 0.7rem;
  color: #888;
  border-top: 1px dashed #ccc;
}

[data-theme="dark"] .cart-receipt-thanks {
  border-top-color: #444;
}

/* Mobile Compat */
@media (max-width: 991px) {
  .modern-header {
    padding: 0;
  }

  /* Prevent horizontal scroll on mobile from offcanvas/category panels */
  html,
  body {
    overflow-x: hidden !important;
  }

  #cartOffcanvas {
    max-width: 100vw !important;
  }
}

/* Utilities */
.header-logo-icon-container {
  background: var(--fusion-surface);
  box-shadow: var(--fusion-shadow-out);
  color: var(--fusion-accent-primary);
}

[data-theme="dark"] .header-logo-icon-container {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Animations & Others from Original */
.header-logo-icon {
  animation: lightningFlash 6s ease-in-out infinite;
}
@keyframes lightningFlash {
  0%,
  6% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
  7% {
    color: #f39321;
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(243, 147, 33, 0.8));
  }
  8% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
  9% {
    color: #f39321;
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(243, 147, 33, 0.7));
  }
  10% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
  11% {
    color: #f39321;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(243, 147, 33, 0.6));
  }
  12%,
  46% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
  47% {
    color: #f39321;
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(243, 147, 33, 0.8));
  }
  48%,
  89% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
  90% {
    color: #f39321;
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(243, 147, 33, 0.8));
  }
  91% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
  92% {
    color: #f39321;
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(243, 147, 33, 0.7));
  }
  93%,
  100% {
    color: #f39321;
    transform: scale(1);
    filter: none;
  }
}

/* Mobile Menu Overrides */
#mobile-menu {
  background: var(--fusion-bg);
  color: var(--fusion-text);
}
[data-theme="dark"] #mobile-menu {
  background: #1a1d23;
}

.mobile-menu-header {
  background: var(--fusion-surface);
  border-bottom-color: var(--fusion-border);
}
[data-theme="dark"] .mobile-menu-header {
  background: #2f343b;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-category-item {
  color: var(--fusion-text);
}
.mobile-category-item:hover {
  background: var(--fusion-surface);
}
[data-theme="dark"] .mobile-category-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ========================================
       MOBILE CATEGORY VIEW - CRITICAL FIX
       Prevents category panels from overlapping
       ======================================== */
.mobile-menu-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.mobile-category-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fusion-bg, #fff);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .mobile-category-view {
  background: #1a1d23;
}

.mobile-category-view.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-category-view.prev {
  transform: translateX(-30%);
  opacity: 0;
  visibility: hidden;
}

.mobile-category-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fusion-border, rgba(0, 0, 0, 0.1));
  gap: 1rem;
  background: var(--fusion-surface, #f9fafb);
  position: sticky;
  top: 0;
  z-index: 10;
}

[data-theme="dark"] .mobile-category-header {
  background: #2f343b;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-category-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(243, 147, 33, 0.1);
  color: #f39321;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-category-back:hover {
  background: rgba(243, 147, 33, 0.2);
  transform: scale(1.05);
}

.mobile-category-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fusion-heading, #1a1d23);
}

[data-theme="dark"] .mobile-category-title {
  color: #fff;
}

.mobile-category-content {
  padding: 1rem;
}

.mobile-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--fusion-text, #374151);
  background: var(--fusion-surface, #f9fafb);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mobile-category-item:hover,
.mobile-category-item:active {
  background: rgba(243, 147, 33, 0.1);
  border-color: rgba(243, 147, 33, 0.2);
  color: #f39321;
}

[data-theme="dark"] .mobile-category-item {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .mobile-category-item:hover,
[data-theme="dark"] .mobile-category-item:active {
  background: rgba(243, 147, 33, 0.15);
  color: #f39321;
}

.mobile-category-item.has-children::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--fusion-text-muted, #9ca3af);
  transition: transform 0.2s ease;
}

.mobile-category-item.has-children:hover::after {
  transform: translateX(4px);
  color: #f39321;
}

/* Mobile Menu Base Styles */
#mobile-menu {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  max-height: 85vh !important;
  transform: translateY(100%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1055 !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
}

#mobile-menu.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
}

#mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 12px auto;
}

[data-theme="dark"] .mobile-menu-handle {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 1rem;
  border-bottom: 1px solid var(--fusion-border, rgba(0, 0, 0, 0.1));
}

.fusion-sheet-bg {
  background-color: white;
  color: var(--fusion-text);
}

[data-theme="dark"] .fusion-sheet-bg {
  background: #1a1d23;
  color: white;
}

/* ========================================
       MOBILE BOTTOM SHEET CONTAINERS - CRITICAL FIX
       All mobile bottom sheets MUST be hidden by default
       ======================================== */
#mobile-search-container,
#mobile-cart-container,
#mobile-favorites-container,
#mobile-profile-container {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  max-height: 90vh !important;
  background: var(--fusion-bg, #fff) !important;
  transform: translateY(100%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1055 !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
}

[data-theme="dark"] #mobile-search-container,
[data-theme="dark"] #mobile-cart-container,
[data-theme="dark"] #mobile-favorites-container,
[data-theme="dark"] #mobile-profile-container {
  background: #1a1d23 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
}

#mobile-search-container.show,
#mobile-cart-container.show,
#mobile-favorites-container.show,
#mobile-profile-container.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Overlays - also hidden by default */
#mobile-search-overlay,
#mobile-cart-overlay,
#mobile-favorites-overlay,
#mobile-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
}

#mobile-search-overlay.show,
#mobile-cart-overlay.show,
#mobile-favorites-overlay.show,
#mobile-profile-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Bottom sheet handles */
.mobile-search-handle,
.mobile-cart-handle,
.mobile-favorites-handle,
.mobile-profile-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 12px auto;
}

[data-theme="dark"] .mobile-search-handle,
[data-theme="dark"] .mobile-cart-handle,
[data-theme="dark"] .mobile-favorites-handle,
[data-theme="dark"] .mobile-profile-handle {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
       MOBILE BOTTOM NAVIGATION BAR - FIXED
       Native app-like bottom navigation
       ======================================== */
#mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--fusion-bg, #fff);
  border-top: 1px solid var(--fusion-border, rgba(0, 0, 0, 0.1));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1040;
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
}

[data-theme="dark"] #mobile-bottom-nav {
  background: #1a1d23;
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem 0.75rem;
  color: var(--fusion-text-muted, #6b7280);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  min-width: 54px;
  border-radius: 12px;
}

.mobile-bottom-nav-item i {
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:active {
  color: #f39321;
  background: rgba(243, 147, 33, 0.08);
}

.mobile-bottom-nav-item.active {
  color: #f39321;
}

.mobile-bottom-nav-item.active i {
  transform: scale(1.1);
}

[data-theme="dark"] .mobile-bottom-nav-item {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .mobile-bottom-nav-item:hover,
[data-theme="dark"] .mobile-bottom-nav-item:active,
[data-theme="dark"] .mobile-bottom-nav-item.active {
  color: #f39321;
  background: rgba(243, 147, 33, 0.15);
}

/* Bottom nav badges (cart/favorites) */
#mobile-bottom-cart-badge,
#mobile-bottom-favorite-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: #f39321;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}
