@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/**
 * KeyProTech 2026 Modern Design System & UI Overhaul
 * Tailored for High-Conversion Digital Software & License Store
 * RTL First, fully responsive, hardware-accelerated micro-animations
 */

:root {
  --kpt-primary: #2563eb;
  --kpt-primary-hover: #1d4ed8;
  --kpt-primary-light: #eff6ff;
  --kpt-accent: #38bdf8;
  --kpt-emerald: #10b981;
  --kpt-emerald-light: #ecfdf5;
  --kpt-dark: #0f172a;
  --kpt-slate: #1e293b;
  --kpt-muted: #64748b;
  --kpt-border: #e2e8f0;
  --kpt-card-bg: #ffffff;
  --kpt-radius-sm: 8px;
  --kpt-radius-md: 12px;
  --kpt-radius-lg: 16px;
  --kpt-radius-xl: 22px;
  --kpt-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --kpt-shadow-md: 0 4px 20px -2px rgba(0,0,0,0.07);
  --kpt-shadow-lg: 0 12px 32px -4px rgba(15,23,42,0.12);
  --kpt-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
}

/* Base smoothing */
body {
  font-family: var(--kpt-font) !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====================================================
   1. 2026 COMPLETE HEADER & NAVIGATION OVERHAUL
   ==================================================== */

/* Master Header Container */
.desktop-header-active .header-classic,
.header.header-classic {
  background: #ffffff !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: relative !important;
  z-index: 1000 !important;
}

/* 1.1 TOP BAR (الشريط العلوي المظلم الفاخر والموحد) */
.desktop-header-active .header-classic .top-bar,
.header-classic .top-bar {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  flex-wrap: nowrap !important;
}

.header-classic .top-bar a {
  color: #cbd5e1 !important;
  transition: all 0.2s ease !important;
}
.header-classic .top-bar a:hover {
  color: #ffffff !important;
}

.header-classic .top-bar .kpt-topbar-start,
.header-classic .top-bar .kpt-topbar-end {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.header-classic .top-bar .kpt-topbar-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #f8fafc !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 1 auto !important;
  padding: 0 12px !important;
}

.header-classic .top-bar .kpt-ticker-text {
  white-space: nowrap !important;
}

.header-classic .top-bar .kpt-live-pulse {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7) !important;
  animation: kptPulseLive 2s infinite !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

@keyframes kptPulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* WhatsApp Direct CTA in Top Bar */
.header-classic .top-menu-item-4 a,
.header-classic a[href*="whatsapp"] {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #4ade80 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 3px 12px !important;
  height: 28px !important;
  line-height: 20px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.header-classic .top-menu-item-4 a:hover,
.header-classic a[href*="whatsapp"]:hover {
  background: rgba(34, 197, 94, 0.28) !important;
  color: #86efac !important;
}

/* Language, Currency & User Account Pills */
.header-classic .language-currency,
.header-classic .secondary-menu {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.header-classic .language-currency .dropdown-toggle,
.header-classic .secondary-menu .dropdown-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  color: #f1f5f9 !important;
  padding: 3px 10px !important;
  height: 28px !important;
  line-height: 20px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}
.header-classic .language-currency .dropdown-toggle:hover,
.header-classic .secondary-menu .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.header-classic .language-currency .dropdown-menu,
.header-classic .secondary-menu .dropdown-menu {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
  padding: 8px !important;
}
.header-classic .language-currency .dropdown-menu a,
.header-classic .secondary-menu .dropdown-menu a {
  color: #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}
.header-classic .language-currency .dropdown-menu a:hover,
.header-classic .secondary-menu .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Social icons in Top Bar */
.header-classic .top-menu-2 .menu-item:not(.top-menu-item-4) a {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  transition: all 0.2s ease !important;
}
.header-classic .top-menu-2 .menu-item:not(.top-menu-item-4) a:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* 1.2 MID BAR (تنسيق احترافي موحد: الشعار، البحث، وسلة الشراء) */
.desktop-header-active .header-classic .mid-bar,
.header-classic .mid-bar {
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Logo */
.header-classic #logo img {
  max-height: 46px !important;
  width: auto !important;
  object-fit: contain !important;
  transition: transform 0.2s ease !important;
}
.header-classic #logo:hover img {
  transform: scale(1.02) !important;
}

/* 2026 Single Unified Floating Search Capsule (أبعاد منضبطة وبدون أي حدود مزدوجة) */
.desktop-header-active .header-classic .desktop-search-wrapper,
.header-classic .desktop-search-wrapper {
  flex: 1 1 540px !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.desktop-header-active .header-classic #search,
.header-classic #search {
  height: 46px !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.desktop-header-active .header-classic #search > .dropdown-menu,
.header-classic #search > .dropdown-menu {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 46px !important;
}

/* The Single Beautiful Capsule Container */
.desktop-header-active .header-classic .header-search,
.header-classic .header-search {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  height: 46px !important;
  width: 100% !important;
  padding: 3px 5px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  box-sizing: border-box !important;
}

.header-classic .header-search:hover {
  border-color: #94a3b8 !important;
}

.header-classic .header-search:focus-within {
  border-color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* Category Dropdown Pill Inside Search */
.header-classic .search-categories {
  border: none !important;
  margin: 0 3px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.header-classic .search-categories-button {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 12px !important;
  height: 34px !important;
  line-height: 34px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
}
.header-classic .search-categories-button:hover {
  background: #cbd5e1 !important;
  color: #000000 !important;
}

/* Search Input - 100% Transparent, No White Box Inner Glitch */
.header-classic .header-search > span,
.header-classic .header-search .tt-hint,
.header-classic .header-search .tt-input,
.header-classic .header-search input,
.header-classic .search-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  padding: 0 12px !important;
  height: 100% !important;
  line-height: 38px !important;
  flex: 1 1 auto !important;
  outline: none !important;
}
.header-classic .search-input::placeholder {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

/* Search Button - Unified with Dark Theme */
.desktop-header-active .header-classic .search-button,
.header-classic .search-button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  margin: 0 2px !important;
  padding: 0 !important;
}
.header-classic .search-button:hover {
  background: #1e293b !important;
  transform: scale(1.05) !important;
}
.header-classic .search-button::before {
  content: '\e407' !important;
  font-family: icomoon !important;
  font-size: 14px !important;
  color: #ffffff !important;
}

/* 1.3 2026 FLOATING CAPSULE CART (السلة الكبسولية الموحدة مع البحث) */
.desktop-header-active .header-classic .classic-cart-wrapper,
.header-classic .classic-cart-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.desktop-header-active .header-classic #cart,
.header-classic #cart {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 46px !important;
  width: auto !important;
  flex: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

.desktop-header-active .header-classic #cart > a.cart-heading,
.header-classic #cart > a.cart-heading {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 46px !important;
  padding: 0 16px 0 12px !important;
  border-radius: 9999px !important;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.desktop-header-active .header-classic #cart > a.cart-heading:hover,
.header-classic #cart > a.cart-heading:hover {
  background: #1e293b !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

/* Shopping Cart Icon Inside Capsule */
.desktop-header-active .header-classic #cart > a > i,
.header-classic #cart > a > i {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Count Badge on Icon */
.desktop-header-active .header-classic #cart #cart-items.count-badge,
.header-classic #cart #cart-items.count-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  left: auto !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #0f172a !important;
  padding: 0 4px !important;
}

html:not([dir="rtl"]) .desktop-header-active .header-classic #cart #cart-items.count-badge,
html:not([dir="rtl"]) .header-classic #cart #cart-items.count-badge {
  right: auto !important;
  left: -5px !important;
}

/* Total Price inside Capsule */
.desktop-header-active .header-classic #cart #cart-total,
.header-classic #cart #cart-total {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-family: 'Cairo', sans-serif !important;
  letter-spacing: -0.2px !important;
}

/* 1.4 MAIN NAVIGATION MENU (شريط التصنيفات التفاعلي المتقن) */
.desktop-header-active .header-classic .desktop-main-menu-wrapper,
.header-classic .desktop-main-menu-wrapper {
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 6px 16px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.header-classic .main-menu > .j-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

/* Modern Nav Item Pills */
.desktop-header-active .header-classic .main-menu-item > a,
.header-classic .main-menu-item > a {
  border-radius: 8px !important;
  padding: 7px 15px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
}

.desktop-header-active .header-classic .main-menu-item > a:hover,
.header-classic .main-menu-item > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* Special Discount Pill (خصومات تصل الى 40%) */
.desktop-header-active .header-classic .main-menu-item:first-child > a,
.desktop-header-active .header-classic .main-menu-item-1 > a,
.header-classic .main-menu-item:first-child > a,
.header-classic .main-menu-item-1 > a {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 7px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3) !important;
  animation: kptPulseRed 2.5s infinite !important;
  margin-left: 6px !important;
}

.desktop-header-active .header-classic .main-menu-item:first-child > a:hover,
.desktop-header-active .header-classic .main-menu-item-1 > a:hover,
.header-classic .main-menu-item:first-child > a:hover,
.header-classic .main-menu-item-1 > a:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45) !important;
}

@keyframes kptPulseRed {
  0%, 100% { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 3px 16px rgba(239, 68, 68, 0.6); }
}

/* Submenu Dropdowns */
.header-classic .dropdown-menu.j-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  padding: 8px !important;
  margin-top: 6px !important;
}

.header-classic .dropdown-menu.j-dropdown .menu-item a {
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  transition: all 0.15s ease !important;
}

.header-classic .dropdown-menu.j-dropdown .menu-item a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[dir="rtl"] .header-classic .dropdown-menu.j-dropdown .menu-item a:hover {
  padding-right: 20px !important;
}
html:not([dir="rtl"]) .header-classic .dropdown-menu.j-dropdown .menu-item a:hover {
  padding-left: 20px !important;
}

/* 1.5 MOBILE HEADER 2026 UX */
.mobile-header-active .mobile-header.mobile-1 {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
.mobile-header-active .mobile-1 .mobile-top-bar {
  background: #0f172a !important;
  color: #cbd5e1 !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
}
.mobile-header-active .mobile-1 .mobile-bar {
  height: 60px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.mobile-header-active .mobile-1 #logo img {
  max-height: 38px !important;
  width: auto !important;
}
.mobile-header-active .mobile-1 #cart > a {
  border-radius: 9999px !important;
  background: #0f172a !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2) !important;
}
.mobile-header-active .mobile-1 #cart > a > i {
  color: #ffffff !important;
  font-size: 16px !important;
}

/* ====================================================
   2. UNIVERSAL 2026 PRODUCT CARDS (ALL GRIDS & MODULES)
   ==================================================== */
.product-grid .product-thumb,
.product-layout .product-thumb,
.module-products .product-thumb,
.module-products-257 .product-thumb,
.main-products .product-thumb {
  background: #ffffff !important;
  border: 1px solid var(--kpt-border) !important;
  border-radius: var(--kpt-radius-lg) !important;
  padding: 16px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: var(--kpt-shadow-sm) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.product-grid .product-thumb:hover,
.product-layout .product-thumb:hover,
.module-products .product-thumb:hover,
.module-products-257 .product-thumb:hover,
.main-products .product-thumb:hover {
  transform: translateY(-6px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: var(--kpt-shadow-lg) !important;
}

/* Product Card Image Container */
.product-thumb .image {
  position: relative !important;
  border-radius: var(--kpt-radius-md) !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  margin-bottom: 12px !important;
  text-align: center !important;
  min-height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
}
.product-thumb .image img {
  border-radius: var(--kpt-radius-sm) !important;
  transition: transform 0.4s ease !important;
  max-width: 100% !important;
  max-height: 160px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}
.product-thumb:hover .image img {
  transform: scale(1.05) !important;
}

/* Single Unique Instant Delivery Badge (Pill) */
/* Reset all sizing so it NEVER expands or covers the image */
.product-thumb .image::before {
  content: '⚡ تسليم فوري' !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: max-content !important;
  max-height: max-content !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  background: rgba(16, 185, 129, 0.95) !important;
  backdrop-filter: blur(4px) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  z-index: 10 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
  pointer-events: none !important;
  display: inline-block !important;
}
html:not([dir="rtl"]) .product-thumb .image::before {
  right: auto !important;
  left: 8px !important;
  content: '⚡ Instant' !important;
}

/* Explicitly disable any ::after pseudo-element to prevent double badge */
.product-thumb .image::after {
  content: none !important;
  display: none !important;
}

/* Move Journal 3 Discount/Special Labels to Opposite Corner so they don't overlap */
.product-thumb .product-labels {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 9 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
html:not([dir="rtl"]) .product-thumb .product-labels {
  left: auto !important;
  right: 8px !important;
}
.product-thumb .product-label {
  border-radius: 9999px !important;
  padding: 3px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* Hide empty / cluttered star ratings on product cards for clean 2026 aesthetics */
.product-thumb .rating {
  display: none !important;
}

/* Product Title in Card */
.product-thumb .name a,
.product-thumb .caption .name a,
.main-products.product-grid .product-thumb .name a,
.module-products-257 .product-grid .product-thumb .name a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
  transition: color 0.2s ease !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 40px !important;
  text-decoration: none !important;
  text-align: center !important;
}
.product-thumb:hover .name a,
.main-products.product-grid .product-thumb:hover .name a,
.module-products-257 .product-grid .product-thumb:hover .name a {
  color: var(--kpt-primary) !important;
}

/* Product Price in Card */
.product-thumb .price {
  margin: 6px 0 10px !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.product-thumb .price-new,
.product-thumb .price-normal,
.product-thumb .price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #059669 !important;
  letter-spacing: -0.2px !important;
}
.product-thumb .price-old {
  font-size: 13px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

/* Overriding legacy Journal 3 card button backgrounds */
.product-thumb .button-group,
.main-products.product-grid.product-grid .product-thumb .button-group,
.module-products .product-thumb .button-group,
.module-products-257 .product-grid.product-grid .product-thumb .button-group {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9 !important;
  width: 100% !important;
}

.product-thumb .cart-group {
  flex: 1 1 auto !important;
  display: flex !important;
}

/* Modern Add to Cart Button in Card */
.product-thumb .btn-cart,
.product-thumb .button-group .btn-cart,
.main-products.product-grid .product-thumb .btn-cart.btn,
.main-products.product-grid.product-grid .product-thumb .btn-cart,
.module-products-257 .product-grid .product-thumb .btn-cart {
  width: 100% !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  height: 38px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.product-thumb .btn-cart:hover,
.product-thumb .button-group .btn-cart:hover,
.main-products.product-grid .product-thumb .btn-cart.btn:hover,
.module-products-257 .product-grid .product-thumb .btn-cart:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
}

/* Wishlist Icon in Card */
.product-thumb .btn-wishlist,
.main-products.product-grid .product-thumb .btn-wishlist.btn,
.module-products-257 .product-grid .product-thumb .btn-wishlist {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}
.product-thumb .btn-wishlist:hover,
.main-products.product-grid .product-thumb .btn-wishlist.btn:hover,
.module-products-257 .product-grid .product-thumb .btn-wishlist:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}

/* Hide Stepper inside cards */
.product-thumb .stepper {
  display: none !important;
}

/* ====================================================
   3. PRODUCT DETAILS PAGE (صفحة المنتج 2026)
   ==================================================== */
.route-product-product #content {
  padding-top: 20px !important;
}

/* Product Left (Gallery) */
.route-product-product .product-left .product-image {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--kpt-radius-xl) !important;
  padding: 16px !important;
  box-shadow: var(--kpt-shadow-sm) !important;
  overflow: hidden !important;
}
.route-product-product .product-image .main-image img {
  border-radius: var(--kpt-radius-lg) !important;
  width: 100% !important;
  object-fit: contain !important;
}

/* Product Right (Details) */
.route-product-product .product-right .product-details {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--kpt-radius-xl) !important;
  padding: 24px !important;
  box-shadow: var(--kpt-shadow-sm) !important;
}

.route-product-product .page-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-bottom: 16px !important;
}

/* Price Box */
.route-product-product .product-price-group {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--kpt-radius-md) !important;
  padding: 16px 20px !important;
  margin: 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
}
.route-product-product .product-price,
.route-product-product .product-price-new {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #059669 !important;
  letter-spacing: -0.5px !important;
}
.route-product-product .product-price-old {
  font-size: 18px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  margin-right: 12px !important;
}

/* Quantity and Cart Buttons in Product Page */
.route-product-product .button-group-page .btn-cart {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: var(--kpt-radius-md) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  height: 48px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.route-product-product .button-group-page .btn-cart:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

/* ====================================================
   4. PRODUCT TRUST & ACTIVATION WIDGET (2026 UX)
   ==================================================== */
.kpt-product-trust-box {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--kpt-radius-lg);
  padding: 18px;
  direction: rtl;
  text-align: right;
}

.kpt-trust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.kpt-trust-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: #059669;
}
.kpt-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: kpt-pulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes kpt-pulse {
  to {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}
.kpt-trust-ssl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.kpt-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kpt-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--kpt-radius-md);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kpt-trust-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.kpt-trust-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-gold { background: #fffbeb; color: #d97706; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }

.kpt-trust-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}
.kpt-trust-info p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

/* Activation Guide Steps */
.kpt-activation-guide {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--kpt-radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
.kpt-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.kpt-guide-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpt-guide-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.kpt-guide-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpt-guide-step .step-text strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
}
.kpt-guide-step .step-text small {
  display: block;
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.25;
}
.kpt-guide-sep {
  color: #cbd5e1;
  font-size: 16px;
  font-weight: bold;
}

/* WhatsApp support strip */
.kpt-wa-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--kpt-radius-md);
  padding: 10px 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.kpt-wa-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
}
.kpt-wa-btn {
  background: #16a34a !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  display: inline-block !important;
}
.kpt-wa-btn:hover {
  background: #15803d !important;
  color: #ffffff !important;
}

/* ====================================================
   5. MOBILE STICKY FLOATING BUY BAR
   ==================================================== */
.kpt-sticky-bar-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 10px 16px;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  direction: rtl;
}
@media (max-width: 768px) {
  .kpt-sticky-bar-wrapper {
    display: block;
  }
}
.kpt-sticky-bar-wrapper.active {
  transform: translateY(0);
}
.kpt-sticky-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.kpt-sticky-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.kpt-sticky-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.kpt-sticky-meta {
  overflow: hidden;
}
.kpt-sticky-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpt-sticky-price {
  margin-top: 2px;
}
.kpt-sticky-price-new,
.kpt-sticky-price-current {
  font-size: 16px;
  font-weight: 900;
  color: #059669;
}
.kpt-sticky-price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 6px;
}
.kpt-sticky-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ====================================================
   6. CATEGORY & LISTING PAGES (صفحة التصنيفات)
   ==================================================== */
.route-product-category .category-description {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-radius: var(--kpt-radius-xl) !important;
  padding: 28px !important;
  color: #ffffff !important;
  margin-bottom: 24px !important;
  box-shadow: var(--kpt-shadow-md) !important;
  position: relative !important;
  overflow: hidden !important;
}
.route-product-category .category-description::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.route-product-category .category-description .category-text {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Subcategories refine chips */
.refine-categories .refine-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  margin: 4px !important;
  transition: all 0.2s ease !important;
  box-shadow: var(--kpt-shadow-sm) !important;
}
.refine-categories .refine-item:hover {
  border-color: var(--kpt-primary) !important;
  background: var(--kpt-primary-light) !important;
  transform: translateY(-2px) !important;
}
.refine-categories .refine-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

/* Sort and Limit Pills */
.custom-select {
  border-radius: var(--kpt-radius-md) !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  font-size: 13.5px !important;
  padding: 6px 12px !important;
  color: #334155 !important;
}

/* ====================================================
   7. CHECKOUT PAGE 2026 UX
   ==================================================== */
.quick-checkout-wrapper {
  background: #f8fafc !important;
  padding: 24px !important;
  border-radius: var(--kpt-radius-xl) !important;
  border: 1px solid #e2e8f0 !important;
}
.quick-checkout-wrapper .panel,
.quick-checkout-wrapper .quick-checkout-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--kpt-radius-lg) !important;
  box-shadow: var(--kpt-shadow-sm) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
}
.quick-checkout-wrapper .panel-heading,
.quick-checkout-wrapper .section-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #eff6ff !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
}
.quick-checkout-wrapper input.form-control,
.quick-checkout-wrapper select.form-control {
  border-radius: var(--kpt-radius-md) !important;
  border: 1.5px solid #cbd5e1 !important;
  height: 44px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}
.quick-checkout-wrapper input.form-control:focus,
.quick-checkout-wrapper select.form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  background: #ffffff !important;
}

/* Confirm Order Button in Checkout */
#quick-checkout-button-confirm {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--kpt-radius-md) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  height: 52px !important;
  width: 100% !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}
#quick-checkout-button-confirm:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}

/* ====================================================
   8. FOOTER POLISH (تذييل الصفحة)
   ==================================================== */
footer {
  background: #0b0f19 !important;
  color: #94a3b8 !important;
  border-top: 1px solid #1e293b !important;
  padding-top: 40px !important;
}
footer a {
  color: #cbd5e1 !important;
  transition: color 0.2s ease !important;
}
footer a:hover {
  color: #38bdf8 !important;
}
footer .module-title {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .kpt-trust-grid {
    grid-template-columns: 1fr;
  }
  .kpt-guide-steps {
    flex-direction: column;
    align-items: flex-start;
  }
  .kpt-guide-sep {
    display: none;
  }
}

/* ====================================================
   2026 REFINED SEARCH BAR & CATEGORIES (UNIFIED PALETTE)
   ==================================================== */

/* Search Container Dimensions & Alignment */
.header-classic .desktop-search-wrapper,
.desktop-header-active .header-classic .desktop-search-wrapper {
  flex: 1 1 540px !important;
  max-width: 680px !important;
  margin: 0 16px !important;
}

.header-classic .header-search,
.desktop-header-active .header-classic .header-search {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 4px 6px 4px 6px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
}

.header-classic .header-search:focus-within,
.desktop-header-active .header-classic .header-search:focus-within {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

/* Category Filter Button & Container */
.desktop-header-active .header-classic .search-categories,
.header-classic .search-categories {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 4px !important;
  position: relative !important;
}

.desktop-header-active .header-classic .search-categories-button,
.header-classic .search-categories-button {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: 9999px !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.desktop-header-active .header-classic .search-categories-button:hover,
.header-classic .search-categories-button:hover {
  background: #e2e8f0 !important;
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Caret Icon inside Categories Button */
.header-classic .search-categories-button::after {
  font-size: 10px !important;
  color: #64748b !important;
  margin-right: 4px !important;
  margin-left: 0 !important;
  transition: transform 0.2s ease !important;
}
html[dir="rtl"] .header-classic .search-categories-button::after {
  margin-right: 6px !important;
  margin-left: 0 !important;
}

/* Modern 2026 Floating Card for Category Dropdown Menu */
.header-classic .search-categories .dropdown-menu.j-dropdown,
.desktop-header-active .header-classic .search-categories .dropdown-menu.j-dropdown,
div.search-categories .dropdown-menu.j-dropdown,
.search-categories .dropdown-menu.j-dropdown {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px -4px rgba(15, 23, 42, 0.14), 0 8px 16px -2px rgba(15, 23, 42, 0.06) !important;
  padding: 8px !important;
  margin-top: 10px !important;
  min-width: 230px !important;
  z-index: 1100 !important;
}

/* Remove ugly arrow triangle */
.header-classic .search-categories .j-dropdown::before,
.header-classic .search-categories .j-dropdown::after {
  display: none !important;
}

/* Category List inside Dropdown */
.header-classic .search-categories .j-dropdown ul,
.header-classic .search-categories .j-dropdown ul.j-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  padding: 4px !important;
  margin: 0 !important;
  list-style: none !important;
  border: none !important;
}

/* Ultra-clean Modern Thin Scrollbar */
.header-classic .search-categories .j-dropdown ul::-webkit-scrollbar {
  width: 5px !important;
}
.header-classic .search-categories .j-dropdown ul::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 10px !important;
}
.header-classic .search-categories .j-dropdown ul::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 10px !important;
}
.header-classic .search-categories .j-dropdown ul::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* Category List Items */
.header-classic .search-categories .j-dropdown ul > li {
  background: transparent !important;
  background-color: transparent !important;
  margin: 3px 0 !important;
  padding: 0 !important;
  border: none !important;
}

.header-classic .search-categories .j-dropdown ul > li a {
  background: transparent !important;
  background-color: transparent !important;
  color: #334155 !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.header-classic .search-categories .j-dropdown ul > li:hover > a,
.header-classic .search-categories .j-dropdown ul > li a:hover {
  background: #eff6ff !important;
  background-color: #eff6ff !important;
  color: #2563eb !important;
}
html[dir="rtl"] .header-classic .search-categories .j-dropdown ul > li:hover > a {
  padding-right: 18px !important;
}
html:not([dir="rtl"]) .header-classic .search-categories .j-dropdown ul > li:hover > a {
  padding-left: 18px !important;
}

/* Search Input Field */
.header-classic .search-input,
.desktop-header-active .header-classic .search-input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  padding: 0 14px !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

.header-classic .search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.header-classic .search-input::placeholder {
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Search Button Capsule */
.header-classic .search-button,
.desktop-header-active .header-classic .search-button {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
  padding: 0 !important;
}

.header-classic .search-button:hover,
.desktop-header-active .header-classic .search-button:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  transform: scale(1.06) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.header-classic .search-button::before {
  color: #ffffff !important;
  font-size: 14px !important;
}

/* Live Search Suggestions Dropdown (#search > .dropdown-menu.j-dropdown) */
#search > .dropdown-menu.j-dropdown {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px -4px rgba(15, 23, 42, 0.14) !important;
  margin-top: 10px !important;
  padding: 8px !important;
}

/* Cart Capsule Alignment */
.header-classic .classic-cart-wrapper #cart,
.desktop-header-active .header-classic .classic-cart-wrapper #cart {
  height: 48px !important;
  min-height: 48px !important;
}

/* ====================================================
   2026 REFINED MINI CART DROPDOWN (PREMIUM SLATE & BLUE)
   ==================================================== */

/* Floating Card Container */
#cart .dropdown-menu.cart-content,
#cart-content.dropdown-menu.j-dropdown,
.desktop-header-active #cart .dropdown-menu.cart-content {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.08) !important;
  padding: 16px 18px !important;
  min-width: 360px !important;
  max-width: 420px !important;
  margin-top: 10px !important;
  z-index: 1100 !important;
}

/* Remove awkward pointer arrow */
#cart .cart-content::before,
#cart .cart-content::after,
#cart-content::before,
#cart-content::after {
  display: none !important;
}

/* Products List Table */
#cart .cart-products {
  padding: 0 !important;
  margin: 0 !important;
}

#cart .cart-products table.table {
  border: none !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

#cart .cart-products table.table tr {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: transparent !important;
  gap: 12px !important;
}

#cart .cart-products table.table tr:last-child {
  border-bottom: none !important;
}

#cart .cart-products table.table td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

/* Product Thumbnail */
#cart .cart-products .td-image {
  flex-shrink: 0 !important;
  width: 52px !important;
  height: 52px !important;
}

#cart .cart-products .td-image img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  padding: 4px !important;
  transition: transform 0.2s ease !important;
}

#cart .cart-products .td-image:hover img {
  transform: scale(1.05) !important;
}

/* Product Name & Details */
#cart .cart-products .td-name {
  flex: 1 1 auto !important;
  line-height: 1.4 !important;
  padding: 0 4px !important;
}

#cart .cart-products .td-name a {
  color: #0f172a !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

#cart .cart-products .td-name a:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

/* Product Quantity */
#cart .cart-products .td-qty {
  flex-shrink: 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

/* Product Total */
#cart .cart-products .td-total {
  flex-shrink: 0 !important;
  color: #0f172a !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Product Remove Button */
#cart .cart-products .td-remove {
  flex-shrink: 0 !important;
}

#cart .cart-products .cart-remove {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
}

#cart .cart-products .cart-remove:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

#cart .cart-products .cart-remove i {
  font-size: 13px !important;
  color: inherit !important;
}

/* Cart Totals Section */
#cart .cart-totals {
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 6px !important;
}

#cart .cart-totals table.table,
#cart .cart-totals table.table-bordered {
  border: none !important;
  margin-bottom: 8px !important;
  background: transparent !important;
  width: 100% !important;
}

#cart .cart-totals table tr {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 6px 2px !important;
}

#cart .cart-totals table tr td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Subtotal Row */
#cart .cart-totals .td-total-title {
  color: #64748b !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#cart .cart-totals .td-total-text {
  color: #1e293b !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

/* Grand Total (Final Row) */
#cart .cart-totals table tr:last-child {
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 10px !important;
  margin-top: 6px !important;
}

#cart .cart-totals table tr:last-child .td-total-title {
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#cart .cart-totals table tr:last-child .td-total-text {
  color: #2563eb !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* Modern Cart Action Buttons */
#cart .cart-buttons {
  display: flex !important;
  gap: 10px !important;
  margin-top: 14px !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Secondary Button: معاينة السلة */
#cart .cart-buttons .btn-cart {
  flex: 1 !important;
  height: 44px !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 12px !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

#cart .cart-buttons .btn-cart:hover {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

#cart .cart-buttons .btn-cart i {
  color: #64748b !important;
  font-size: 13px !important;
}

/* Primary Button: اتمام الطلب */
#cart .cart-buttons .btn-checkout {
  flex: 1 !important;
  height: 44px !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  padding: 0 12px !important;
}

#cart .cart-buttons .btn-checkout:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
}

#cart .cart-buttons .btn-checkout i {
  color: #ffffff !important;
  font-size: 13px !important;
}

/* ====================================================
   2026 GLOBAL CAIRO TYPOGRAPHY & SMOOTHING
   ==================================================== */
:root {
  --kpt-font: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html, body, h1, h2, h3, h4, h5, h6, p, a, span, button, input, select, textarea,
.notification, .notification-title, .notification-text, .notification-buttons a,
#cart, #cart *, .header-classic, .header-classic *, .product-thumb, .product-thumb * {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ====================================================
   2026 FLOATING NOTIFICATION MODAL (ADD TO CART)
   ==================================================== */

/* Overlay Dim Backdrop */
.notification-wrapper.notification-wrapper-center,
div.notification-wrapper-center {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 16px !important;
}

/* Floating Notification Card */
.notification,
.notification-wrapper .notification,
.notification-wrapper-center .notification {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  padding: 22px 24px !important;
  width: 100% !important;
  max-width: 440px !important;
  position: relative !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  overflow: hidden !important;
  animation: kptModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes kptModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Subtle Success Bar at Top of Card */
.notification::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #10b981) !important;
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
}

/* Close Button (×) */
.notification-close,
.notification .notification-close {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  z-index: 10 !important;
  box-shadow: none !important;
}

.notification-close:hover,
.notification .notification-close:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  transform: scale(1.08) !important;
}

.notification-close::before,
.notification-close::after {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Content Container */
.notification-content {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 6px !important;
}

/* Product Thumbnail */
.notification-content img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  padding: 6px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* Product Details */
.notification-content > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Product Title */
.notification-title {
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin-bottom: 6px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Product Text / Message */
.notification-text {
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
}

/* Eliminate Ugly Underline on Links */
.notification-text a {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
}

.notification-text a:hover {
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

/* Action Buttons Container */
.notification-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 20px !important;
  width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

/* Common button baseline */
.notification-buttons a {
  flex: 1 !important;
  height: 46px !important;
  border-radius: 12px !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  padding: 0 14px !important;
}

/* Secondary Button: معاينة السلة (.btn-cart) */
.notification-buttons a.btn-cart,
.notification-buttons a[href*="cart"] {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: none !important;
}

.notification-buttons a.btn-cart:hover,
.notification-buttons a[href*="cart"]:hover {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* Primary Button: اتمام الطلب (.btn-checkout) */
.notification-buttons a.btn-checkout,
.notification-buttons a[href*="checkout"] {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

.notification-buttons a.btn-checkout:hover,
.notification-buttons a[href*="checkout"]:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
}

/* ====================================================
   2026 EXPANDED LUXURY MINI CART DROPDOWN & PRODUCT CARDS
   ==================================================== */

/* Master Dropdown Floating Card */
#cart .dropdown-menu.cart-content,
#cart-content.dropdown-menu.j-dropdown,
.desktop-header-active #cart .dropdown-menu.cart-content {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  padding: 22px 24px !important;
  width: 440px !important;
  min-width: 440px !important;
  max-width: 480px !important;
  margin-top: 12px !important;
  z-index: 1200 !important;
  direction: rtl !important;
  text-align: right !important;
}

/* Remove awkward arrow triangle */
#cart .cart-content::before,
#cart .cart-content::after,
#cart-content::before,
#cart-content::after {
  display: none !important;
}

/* Products Container with Smooth Scrollbar */
#cart .cart-products {
  padding: 2px !important;
  margin: 0 !important;
  max-height: 320px !important;
  overflow-y: auto !important;
}

#cart .cart-products::-webkit-scrollbar {
  width: 5px !important;
}
#cart .cart-products::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 10px !important;
}
#cart .cart-products::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 10px !important;
}

#cart .cart-products table.table {
  border: none !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

/* Each Product as an Individual Spacious Rounded Card */
#cart .cart-products table.table tr {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  gap: 14px !important;
  transition: all 0.2s ease !important;
}

#cart .cart-products table.table tr:hover {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-1px) !important;
}

#cart .cart-products table.table td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

/* Product Thumbnail */
#cart .cart-products .td-image {
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 64px !important;
}

#cart .cart-products .td-image img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 6px !important;
  transition: transform 0.2s ease !important;
}

#cart .cart-products .td-image:hover img {
  transform: scale(1.06) !important;
}

/* Product Title & All Options Without Clipping */
#cart .cart-products .td-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  line-height: 1.45 !important;
  padding: 0 4px !important;
}

#cart .cart-products .td-name a {
  color: #0f172a !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
  display: block !important;
  word-break: break-word !important;
  white-space: normal !important; /* Never cut off or clip! */
}

#cart .cart-products .td-name a:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

#cart .cart-products .td-name span,
#cart .cart-products .td-name small {
  display: inline-block !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 3px !important;
  white-space: normal !important;
}

/* Product Quantity Pill */
#cart .cart-products .td-qty {
  flex-shrink: 0 !important;
  color: #475569 !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}

/* Product Total Price */
#cart .cart-products .td-total {
  flex-shrink: 0 !important;
  color: #2563eb !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Product Remove Button */
#cart .cart-products .td-remove {
  flex-shrink: 0 !important;
}

#cart .cart-products .cart-remove {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
}

#cart .cart-products .cart-remove:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

#cart .cart-products .cart-remove i {
  font-size: 14px !important;
  color: inherit !important;
}

/* Cart Totals Section */
#cart .cart-totals {
  padding-top: 14px !important;
  border-top: 1.5px dashed #e2e8f0 !important;
  margin-top: 8px !important;
}

#cart .cart-totals table.table,
#cart .cart-totals table.table-bordered {
  border: none !important;
  margin-bottom: 8px !important;
  background: transparent !important;
  width: 100% !important;
}

#cart .cart-totals table tr {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 6px 4px !important;
}

#cart .cart-totals table tr td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Subtotal Rows */
#cart .cart-totals .td-total-title {
  color: #64748b !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

#cart .cart-totals .td-total-text {
  color: #0f172a !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

/* Grand Total (Final Row) */
#cart .cart-totals table tr:last-child {
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 12px !important;
  margin-top: 8px !important;
}

#cart .cart-totals table tr:last-child .td-total-title {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

#cart .cart-totals table tr:last-child .td-total-text {
  color: #2563eb !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

/* Action Buttons Container */
#cart .cart-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 18px !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Secondary Button: معاينة السلة */
#cart .cart-buttons .btn-cart {
  flex: 1 !important;
  height: 48px !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 14px !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

#cart .cart-buttons .btn-cart:hover {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

#cart .cart-buttons .btn-cart i {
  color: #64748b !important;
  font-size: 14px !important;
}

/* Primary Button: اتمام الطلب */
#cart .cart-buttons .btn-checkout {
  flex: 1 !important;
  height: 48px !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  padding: 0 14px !important;
}

#cart .cart-buttons .btn-checkout:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
}

#cart .cart-buttons .btn-checkout i {
  color: #ffffff !important;
  font-size: 14px !important;
}

/* ====================================================
   2026 SPACIOUS ROUNDED MINI CART PRODUCT CARDS
   ==================================================== */

/* Master Cart Container */
#cart .dropdown-menu.cart-content,
#cart-content.dropdown-menu.j-dropdown,
.desktop-header-active #cart .dropdown-menu.cart-content {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  padding: 22px 24px !important;
  width: 460px !important;
  min-width: 440px !important;
  max-width: 480px !important;
  margin-top: 12px !important;
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
}

/* Remove arrow */
#cart .cart-content::before,
#cart .cart-content::after,
#cart-content::before,
#cart-content::after {
  display: none !important;
}

/* Products Table as Block */
#cart .cart-products {
  padding: 2px !important;
  margin: 0 !important;
  max-height: 340px !important;
  overflow-y: auto !important;
}

#cart .cart-products::-webkit-scrollbar {
  width: 5px !important;
}
#cart .cart-products::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 10px !important;
}
#cart .cart-products::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 10px !important;
}

#cart .cart-products table.table {
  display: block !important;
  border: none !important;
  width: 100% !important;
  background: transparent !important;
  border-collapse: separate !important;
  margin-bottom: 0 !important;
}

#cart .cart-products table.table tbody {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  border: none !important;
}

/* Each Product is an Individual Spacious White/Slate Card with Rounded Corners */
#cart .cart-products table.table tr,
#cart .cart-products table.table tr.cart-product-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 14px 16px !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#cart .cart-products table.table tr:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-1px) !important;
}

#cart .cart-products table.table td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

/* Product Thumbnail */
#cart .cart-products .td-image {
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 64px !important;
}

#cart .cart-products .td-image img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 6px !important;
  transition: transform 0.2s ease !important;
}

#cart .cart-products tr:hover .td-image img {
  transform: scale(1.05) !important;
}

/* Product Info (Center) */
#cart .cart-products .td-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
  line-height: 1.45 !important;
}

#cart .cart-products .td-name .product-title-wrap {
  margin-bottom: 4px !important;
}

#cart .cart-products .td-name a {
  color: #0f172a !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  display: block !important;
  word-break: break-word !important;
  white-space: normal !important; /* Zero text clipping! */
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
}

#cart .cart-products .td-name a:hover {
  color: #2563eb !important;
}

/* Options / Recurring */
#cart .cart-products .product-options span,
#cart .cart-products .product-recurring small {
  display: block !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 2px !important;
  white-space: normal !important;
}

/* Product Meta: Quantity & Price */
#cart .cart-products .product-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 6px !important;
}

#cart .cart-products .td-qty {
  color: #475569 !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  white-space: nowrap !important;
}

#cart .cart-products .td-total {
  color: #2563eb !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Remove Button */
#cart .cart-products .td-remove {
  flex-shrink: 0 !important;
}

#cart .cart-products .cart-remove {
  background: #fee2e2 !important;
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#cart .cart-products .cart-remove:hover {
  background: #ef4444 !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

#cart .cart-products .cart-remove i {
  font-size: 14px !important;
  color: inherit !important;
}

/* Cart Totals */
#cart .cart-totals {
  padding-top: 14px !important;
  border-top: 1.5px dashed #e2e8f0 !important;
  margin-top: 8px !important;
}

#cart .cart-totals table.table-bordered {
  border: none !important;
  margin-bottom: 8px !important;
  background: transparent !important;
  width: 100% !important;
}

#cart .cart-totals table tr {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 6px 4px !important;
}

#cart .cart-totals table tr td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

#cart .cart-totals .td-total-title {
  color: #64748b !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

#cart .cart-totals .td-total-text {
  color: #0f172a !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

#cart .cart-totals table tr:last-child {
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 12px !important;
  margin-top: 8px !important;
}

#cart .cart-totals table tr:last-child .td-total-title {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

#cart .cart-totals table tr:last-child .td-total-text {
  color: #2563eb !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

/* Action Buttons */
#cart .cart-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 18px !important;
  padding: 0 !important;
  background: transparent !important;
}

#cart .cart-buttons .btn-cart {
  flex: 1 !important;
  height: 48px !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 14px !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  padding: 0 14px !important;
}

#cart .cart-buttons .btn-cart:hover {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

#cart .cart-buttons .btn-checkout {
  flex: 1 !important;
  height: 48px !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  padding: 0 14px !important;
}

#cart .cart-buttons .btn-checkout:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
}