/* ===================================================
   EgyFil Marketplace — Amazon Style Typography
   =================================================== */

body { font-family: 'Almarai', "Amazon Ember", Arial, sans-serif; }

:root {
  /* ─ Core Palette (Egypt Filters Brand) ─ */
  --primary:        #2E82BC; /* أزرق ملكي */
  --primary-dark:   #22618F; /* darker royal blue */
  --primary-light:  #C2E4F8; /* أزرق سماوي فاتح */
  
  --accent:         #2B4356; /* أزرق كحلي ناعم */
  --accent-dark:    #1C2E3C;
  --accent-light:   #EAF2F8;
  
  --gold:           #c9a14a; /* keeping as utility if needed */
  --gold-light:     #fdf6e3;
  --orange:         #FF7A00; /* New Orange Accent */

  /* ─ Text ─ */
  --text-primary:   #2B4356; /* أزرق كحلي ناعم لكلمة Egypt Filters.eg */
  --text-secondary: #758998; /* رمادي فاتح لكلمة مصر */
  --text-muted:     #9CAAB5;

  /* ─ Backgrounds ─ */
  --bg-white:       #FFFFFF; /* أبيض نقي */
  --bg-light:       #FAFCFE;
  --bg-gray:        #F4F8FB;
  --bg-warm:        #F0F6FA;

  /* ─ Borders & Shadows ─ */
  --border:         #e8e8e8;
  --shadow-xs:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm:      0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.13);
  --shadow-card:    0 4px 20px rgba(46,130,188,0.10);

  /* ─ Shape ─ */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --radius-pill:50px;

  /* ─ Transitions ─ */
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur:   0.25s;
  --transition: all var(--dur) var(--ease);
}

body { font-family: 'Almarai', "Amazon Ember", Arial, sans-serif; }

/* ══════════════════════════════════════════════════ */
/*  RESET & BASE                                       */
/* ══════════════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { direction:rtl; scroll-behavior:smooth; font-size:15px; }
body {
  font-family: 'Almarai', "Amazon Ember", Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius:10px; }

img { max-width:100%; display:block; }
a { transition: var(--transition); }

/* ══════════════════════════════════════════════════ */
/*  NAVBAR                                             */
/* ══════════════════════════════════════════════════ */
.navbar {
  background: white !important;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .container {
  max-width: 1440px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand img {
  max-height: 48px;
  transition: transform 0.3s ease;
}

/* ─ Address Selector ─ */
.address-btn-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  text-decoration: none;
  min-width: 150px;
}
.address-btn-nav:hover { background: var(--bg-gray); }
.address-btn-nav i { color: var(--primary); font-size: 1.2rem; }
.address-label { font-size: 0.75rem; color: var(--text-muted); display: block; line-height: 1; margin-bottom: 2px; }
.address-current { font-size: 0.88rem; font-weight: 800; color: var(--text-primary); }

/* ─ Large Search Bar ─ */
.search-bar-noon {
  flex: 1;
  max-width: 700px;
  display: flex;
  justify-content: center;
}
.search-box-elevated {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill); /* Curved edges */
  display: flex;
  align-items: center;
  padding: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}
.search-box-elevated:focus-within {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}
.search-input-noon {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.95rem;
  padding: 0.6rem 1rem !important;
}

/* ─ Navbar Action Group & Links ─ */
.nav-actions-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-action-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--radius-sm);
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: var(--transition);
    min-width: 75px;
    height: 100%;
    position: relative;
    border: 1px solid transparent;
}

.nav-action-link:hover {
    background: var(--bg-gray);
    color: var(--primary);
    border-color: var(--border);
}

.nav-action-link i {
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 2px;
}

.nav-action-link span {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ─ Action Badge (Counters) ─ */
.action-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(100%);
    background: var(--primary);
    color: white !important;
    font-size: 0.68rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid white;
    z-index: 5;
}

/* ─ Live Search Dropdown ─ */
.live-search-results-container {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  z-index: 1050;
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border);
  animation: slideDownFade 0.3s ease;
}

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

.live-search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f8f9fa;
  transition: background 0.2s;
}
.live-search-item:last-child { border-bottom: none; }
.live-search-item:hover { background: #f8fafc; }

.search-item-img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee;
}
.search-item-img img { width: 100%; height: 100%; object-fit: cover; }

.search-item-info { flex: 1; min-width: 0; }
.search-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.search-highlight { background: #fef08a; padding: 0 2px; border-radius: 2px; }

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.search-item-price { font-size: 0.85rem; font-weight: 800; color: var(--primary); }
.search-item-price .old-price { font-size: 0.75rem; color: #94a3b8; text-decoration: line-through; margin-right: 4px; }
.search-item-price .sale-price { color: #dc2626; }

.search-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.search-badge.low-stock { background: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; }
.search-badge.sold-out { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

.search-see-all {
  display: block;
  padding: 0.8rem;
  text-align: center;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.search-see-all:hover { text-decoration: underline; background: #f1f5f9; }

@media (max-width: 991px) {
  .navbar { padding: 0.5rem 0; }
  .navbar-brand img { max-height: 38px; }
}


/* ─── PROFESSIONAL BREADCRUMBS ─── */
.breadcrumb-nav {
  display: inline-flex;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.breadcrumb {
  margin-bottom: 0 !important;
  background: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
}

.breadcrumb-item {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item a i {
  font-size: 1rem;
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 800;
}

/* RTL Separator */
.breadcrumb-item + .breadcrumb-item::before {
  content: "\f284" !important; /* bootstrap bi-chevron-left */
  font-family: "bootstrap-icons" !important;
  font-size: 0.65rem;
  color: #bdc3c7;
  padding-left: 0.8rem !important;
  padding-right: 0.8rem !important;
  float: right; /* Ensure it stays in the flow for RTL */
}

/* ══════════════════════════════════════════════════ */
/*  BUTTONS                                            */
/* ══════════════════════════════════════════════════ */
.btn {
  font-family: 'Almarai', "Amazon Ember", Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 12px rgba(46,130,188,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,130,188,0.35);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 3px 12px rgba(43,67,86,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43,67,86,0.4);
}

.btn-outline-primary {
  border: 1.8px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 1.8px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}
.btn-outline-secondary:hover { background: var(--bg-gray); color: var(--text-primary); }

.btn-danger { background:#e53935; color:white; }
.btn-danger:hover { background:#c62828; color:white; transform:translateY(-1px); }

/* ══════════════════════════════════════════════════ */
/*  CARDS                                              */
/* ══════════════════════════════════════════════════ */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════════════════ */
/*  PRODUCT CARD  (Floward-style)                      */
/* ══════════════════════════════════════════════════ */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0; /* Polygonal Design */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-8px);
}

.product-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: var(--bg-warm);
  border-radius: 0;
}
.product-card-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card-img-wrapper img { transform: scale(1.07); }

.product-ribbon {
  position: absolute;
  top: 18px;
  right: -38px;
  width: 140px;
  padding: 4px 0;
  color: white;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  pointer-events: none;
}

.ribbon-featured { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); color: #1d1d1f; }
.ribbon-sold-out { background: #e74c3c; }
.ribbon-low-stock { background: #e67e22; }
.ribbon-new { background: #2ecc71; }

.product-card-body { 
  padding: 1.1rem 1.2rem 1.3rem; 
  position: relative;
  overflow: hidden; /* Hide the sliding button */
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.3s ease;
}

.product-seller {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.product-price span { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }

/* ─── 5 COLUMN GRID UTILITY ─── */
.grid-5-columns {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1400px) {
  .grid-5-columns { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
  .grid-5-columns { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
  .grid-5-columns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-5-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-5-columns { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* ─── NAVBAR BUTTON COLORS ─── */
.btn-nav-search {
  background-color: var(--orange) !important;
  border-color: var(--orange) !important;
  color: white !important;
  border-radius: var(--radius-pill) !important;
  margin: 1px !important;
  position: relative !important;
  left: 2px !important; /* Fine-tuning: shifted 1px to the left from previous state */
}
.btn-nav-search:hover {
  background-color: #E66E00 !important;
  border-color: #E66E00 !important;
}

.btn-nav-register {
  background-color: #2E82BC !important; /* Royal Blue */
  border-color: #2E82BC !important;
  color: white !important;
}
.btn-nav-register:hover {
  background-color: #22618F !important;
}

.btn-nav-login {
  background-color: #00D2D3 !important; /* Sky Green / Cyan */
  border-color: #00D2D3 !important;
  color: #1d1d1f !important;
  font-weight: 800 !important;
}
.btn-nav-login:hover {
  background-color: #01b8b9 !important;
  color: white !important;
}
.product-cart-btn-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1.2rem;
  background: white;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  justify-content: center;
}

.product-card:hover .product-cart-btn-wrapper {
  transform: translateY(0);
}

.btn-add-cart {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.65rem;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

.btn-add-cart:hover {
  background: #E66E00;
  color: white;
}

.btn-add-cart .btn-text {
  transition: all 0.3s ease;
}

.btn-add-cart .btn-icon {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.btn-add-cart:hover .btn-text {
  opacity: 0;
  transform: translateY(-20px);
}

.btn-add-cart:hover .btn-icon {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════ */
/*  HERO  (Floward-style — full-width, elegant)        */
/* ══════════════════════════════════════════════════ */
.hero-section {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #F4F8FB 0%, #FAFCFE 60%, #EAF2F8 100%);
  padding: 4.5rem 3.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: -80px; left: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(46,130,188,0.07), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(43,67,86,0.08), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
}
.hero-title .highlight { color: var(--primary); }
.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); margin: 1rem 0 2rem; }

/* ─ Advanced Banner Captions ─ */
.banner-wrapper { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 2rem; }
.banner-slide { position: relative; width: 100%; display: block; }
.hero-slide { height: 500px !important; }
.secondary-slide { height: 250px !important; }

.banner-img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 80%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem; z-index: 2;
}
.banner-caption-v2 { 
  max-width: 650px; 
  transition: var(--transition); 
  /* Dynamic sizing via variables injected in template */
  --title-size: 2rem;
  --title-size-mobile: 1.5rem;
  --subtitle-size: 1rem;
  --subtitle-size-mobile: 0.9rem;
}
.banner-title { 
  font-weight: 900; 
  line-height: 1.1; 
  margin-bottom: 0.8rem; 
  font-size: var(--title-size);
}

.banner-subtitle { 
  opacity: 0.9; 
  margin-bottom: 1.2rem; 
  font-weight: 500; 
  font-size: var(--subtitle-size);
}

@media (max-width: 768px) {
  .banner-title { font-size: var(--title-size-mobile); }
  .banner-subtitle { font-size: var(--subtitle-size-mobile); }
}

.banner-actions { display: flex; gap: 1rem; align-items: center; }

/* Alignments */
/* Alignments - Native RTL */
.align-start { align-items: flex-start; text-align: right; }
.align-center { align-items: center; text-align: center; }
.align-end { align-items: flex-end; text-align: left; }

@media (max-width: 768px) {
  .hero-slide { height: 300px !important; }
  .secondary-slide { height: 140px !important; }
  .hero-slide .banner-title { font-size: 1.6rem; }
  .secondary-slide .banner-title { font-size: 1.1rem; }
  .banner-subtitle { font-size: 0.8rem; margin-bottom: 0.8rem; }
  .banner-overlay { padding: 1.2rem; }
}

/* Category pill tags (Floward style navigation) */
.category-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.category-pill {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: white;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.category-pill:hover, .category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ══════════════════════════════════════════════════ */
/*  SECTION TITLES                                     */
/* ══════════════════════════════════════════════════ */
.section-title {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute; 
  bottom: 0; 
  left: 50%;
  transform: translateX(-50%);
  width: 40px; 
  height: 3px;
  background: var(--accent);
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════ */
/*  CATEGORY CARDS                                     */
/* ══════════════════════════════════════════════════ */
.category-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 130px;
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card img { width:100%; height:100%; object-fit:cover; }
.category-card-overlay {
  position: absolute; bottom:0; left:0; right:0;
  background: linear-gradient(to top, rgba(28,46,60,0.85), transparent);
  padding: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════ */
/*  FORMS                                              */
/* ══════════════════════════════════════════════════ */
.form-control, .form-select {
  font-family: 'Almarai', "Amazon Ember", Arial, sans-serif;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  background: #F8FAFC;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02) inset;
}
.form-control::placeholder, .form-select::placeholder {
  color: #94A3B8;
  font-weight: 400;
}
.form-control:hover, .form-select:hover {
  border-color: #CBD5E1;
  background: white;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,130,188,0.15);
  background: white; 
  outline: none;
}
.form-label { 
  font-weight: 700; 
  color: var(--text-primary); 
  font-size: 0.85rem; 
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

/* ─ Auth Card ─ */
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.8rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Split Auth Layout ─── */
.split-auth-container {
  display: flex;
  min-height: calc(100vh - 72px); /* Adjusting for standard navbar height */
  background: white;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.split-auth-image-side {
  flex: 1;
  background-size: cover;
  background-position: top center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  color: white;
}

.split-auth-image-side::before {
  display: none !important;
}

.split-auth-image-side * { position: relative; z-index: 1; }

.split-auth-form-side {
  flex: 1;
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 992px) {
  .split-auth-container { flex-direction: column; }
  .split-auth-image-side { height: 250px; padding: 1.5rem; }
  .split-auth-form-side { padding: 2.5rem 1.5rem; }
}
.auth-header { text-align:center; margin-bottom:2rem; }
.auth-header .logo { font-size:2rem; font-weight:900; color:var(--primary); }
.auth-header .logo span { color:var(--accent); }

/* ─ Role cards ─ */
.role-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--bg-light);
}
.role-option:hover { border-color: var(--primary); background: var(--primary-light); }
.role-option.selected { border-color: var(--primary); background: var(--primary-light); }
.role-option input[type="radio"] { display: none; }
.role-icon { font-size: 2.2rem; margin-bottom: 0.4rem; }
.role-label { font-weight: 800; font-size: 0.98rem; color: var(--text-primary); }
.role-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════ */
/*  DASHBOARD                                          */
/* ══════════════════════════════════════════════════ */
.dashboard-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: sticky; top: 80px;
}

/* Standalone App Layout CSS */
.app-layout { display: flex; min-height: 100vh; background: var(--bg-gray); overflow-x: hidden; }
.app-sidebar {
  width: 280px; background: white; border-left: 1px solid var(--border);
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 1100;
  display: flex; flex-direction: column;
  box-shadow: 2px 0 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}
.app-content {
  flex: 1; margin-right: 280px; padding: 2rem 2.5rem;
  min-height: 100vh; display: flex; flex-direction: column;
  transition: margin 0.3s ease;
}
.app-sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.8rem; }
.app-sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0.8rem; }
.app-sidebar-footer { padding: 1.2rem; border-top: 1px solid var(--border); background: var(--bg-light); }
.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.app-page-title { font-size: 1.8rem; font-weight: 900; color: var(--text-primary); letter-spacing: -0.5px; margin: 0; }
.app-greeting { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; margin-top: 0.2rem; }

.app-sidebar .sidebar-link {
  font-size: 0.95rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 0.25rem; font-weight: 700; color: var(--text-secondary);
}
.app-sidebar .sidebar-link:hover, .app-sidebar .sidebar-link.active {
  background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(46,130,188,0.25);
  transform: translateX(-4px);
}
.app-sidebar .sidebar-title { padding: 0 0.8rem; margin: 1.2rem 0 0.6rem; color: var(--text-muted); }

@media (max-width: 992px) {
  .app-sidebar { transform: translateX(100%); }
  .app-content { margin-right: 0; padding: 1.5rem; }
  .app-layout.sidebar-open .app-sidebar { transform: translateX(0); }
}
.sidebar-title {
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 0.9rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); margin-bottom: 0.15rem;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.sidebar-link i { width: 20px; text-align: center; }

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.blue  { background:#e8f5e9; color:var(--primary); }
.stat-icon.yellow{ background:#fff8e1; color:#e65100; }
.stat-icon.green { background:#e0f2f1; color:#00695c; }
.stat-icon.red   { background:#ffebee; color:#c62828; }

.stat-value { font-size: 1.65rem; font-weight: 900; color: var(--text-primary); line-height:1.1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top:.1rem; }

/* ══════════════════════════════════════════════════ */
/*  TABLES                                             */
/* ══════════════════════════════════════════════════ */
.custom-table { border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-xs); border:1px solid var(--border); }
.custom-table thead { background: var(--bg-warm); }
.custom-table th { font-weight:700; color:var(--text-secondary); font-size:0.82rem; border:none; padding:.9rem 1rem; }
.custom-table td { padding:.82rem 1rem; border-color:var(--border); vertical-align:middle; font-size:0.88rem; }
.custom-table tbody tr:hover { background:var(--primary-light); }

/* ══════════════════════════════════════════════════ */
/*  STATUS BADGES                                      */
/* ══════════════════════════════════════════════════ */
.status-badge {
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 700;
  display: inline-block;
}
.status-pending    { background:#fff3e0; color:#e65100; }
.status-processing { background:#e3f2fd; color:#0277bd; }
.status-shipped    { background:#ede7f6; color:#5e35b1; }
.status-delivered  { background:#e8f5e9; color:#2e7d32; }
.status-cancelled  { background:#ffebee; color:#c62828; }

/* ══════════════════════════════════════════════════ */
/*  STARS                                              */
/* ══════════════════════════════════════════════════ */
.stars { color: #f9a825; }

/* ══════════════════════════════════════════════════ */
/*  ALERTS                                             */
/* ══════════════════════════════════════════════════ */
.alert { border-radius:var(--radius-sm); border:none; font-weight:500; font-family: 'Almarai', "Amazon Ember", Arial, sans-serif; }
.alert-success { background:#e8f5e9; color:#2e7d32; }
.alert-danger   { background:#ffebee; color:#c62828; }
.alert-warning  { background:#fff8e1; color:#e65100; }
.alert-info     { background:#e3f2fd; color:#0277bd; }

/* ══════════════════════════════════════════════════ */
/*  CART                                               */
/* ══════════════════════════════════════════════════ */
.cart-item-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.cart-item-card:hover { box-shadow: var(--shadow-sm); }
.cart-item-img { width:78px; height:78px; object-fit:cover; border-radius:var(--radius-sm); flex-shrink:0; }
.qty-btn {
  width:30px; height:30px;
  border: 1.5px solid var(--border);
  border-radius: 50%; background: white; cursor: pointer;
  display: flex; align-items:center; justify-content:center;
  font-weight:700; color:var(--text-secondary);
  transition: var(--transition);
}
.qty-btn:hover { border-color:var(--primary); color:var(--primary); }

/* ══════════════════════════════════════════════════ */
/*  PRODUCT DETAIL                                     */
/* ══════════════════════════════════════════════════ */
.product-image-main {
  border-radius: var(--radius-lg);
  width: 100%; max-height: 430px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.product-detail-price { font-size:2rem; font-weight:900; color:var(--primary); }

/* ══════════════════════════════════════════════════ */
/*  EMPTY STATE                                        */
/* ══════════════════════════════════════════════════ */
.empty-state { text-align:center; padding:4rem 2rem; color:var(--text-muted); }
.empty-state-icon { font-size:4rem; margin-bottom:1rem; opacity:0.28; }

/* ══════════════════════════════════════════════════ */
/*  FOOTER                                             */
/* ══════════════════════════════════════════════════ */
.footer { background:var(--primary-dark); color:rgba(255,255,255,0.65); padding:3.5rem 0 1.5rem; margin-top:5rem; }
.footer-brand { font-size:1.6rem; font-weight:900; color:white; }
.footer-brand span { color:var(--accent); }
.footer-link { color:rgba(255,255,255,0.55); text-decoration:none; display:block; padding:.22rem 0; font-size:.88rem; transition:var(--transition); }
.footer-link:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:1.2rem; margin-top:2rem; text-align:center; font-size:.82rem; }

/* ══════════════════════════════════════════════════ */
/*  BREADCRUMB                                         */
/* ══════════════════════════════════════════════════ */
.breadcrumb { background:none; padding:0; font-size:.83rem; }
.breadcrumb-item + .breadcrumb-item::before { content:'‹'; color:var(--text-muted); padding:0 .6rem; }

/* ══════════════════════════════════════════════════ */
/*  DROPDOWN                                           */
/* ══════════════════════════════════════════════════ */
.dropdown-menu {
  font-family: 'Almarai', "Amazon Ember", Arial, sans-serif;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
}
.dropdown-item {
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  transition: var(--transition);
  color: var(--text-secondary);
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); transform: translateX(-4px); }

/* Hover dropdown for desktop */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
}

/* ══════════════════════════════════════════════════ */
/*  ANIMATIONS                                         */
/* ══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.45s var(--ease) both; }
.fade-in-up:nth-child(1) { animation-delay:.05s }
.fade-in-up:nth-child(2) { animation-delay:.10s }
.fade-in-up:nth-child(3) { animation-delay:.15s }
.fade-in-up:nth-child(4) { animation-delay:.20s }
.fade-in-up:nth-child(5) { animation-delay:.25s }
.fade-in-up:nth-child(6) { animation-delay:.30s }
.fade-in-up:nth-child(7) { animation-delay:.35s }
.fade-in-up:nth-child(8) { animation-delay:.40s }

/* ══════════════════════════════════════════════════ */
/*  RESPONSIVE                                         */
/* ══════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .hero-title { font-size: 2.2rem; }
  .hero-section { padding: 3rem 2rem; }
}
@media (max-width: 768px) {
  .container { padding-left: 15px !important; padding-right: 15px !important; }
  .hero-title { font-size: 1.75rem; }
  .hero-section { padding: 2.2rem 1.5rem; }
  .stat-value { font-size: 1.3rem; }
  .product-card-img-wrapper { height: 175px; }
  .nav-search-input { min-width: 140px; }
  .auth-card { padding: 2rem 1.5rem; }
}

/* ──── Welcome Modal - Liquid Glass iOS 26 ──── */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 20px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-overlay.fade-out {
    animation: fadeOut 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Moving Liquid Background Blobs */
.liquid-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move-blobs 20s infinite alternate;
}

.blob-1 { width: 400px; height: 400px; background: #00f2fe; top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: #667eea; bottom: -100px; right: -100px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #764ba2; top: 50%; left: 50%; animation-delay: -10s; }

@keyframes move-blobs {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

/* Glass Card */
.welcome-card {
    position: relative;
    max-width: 480px;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 45px;
    text-align: center;
    color: #1d1d1f;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.ios-logo {
    max-height: 150px;
    width: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #000;
}

.welcome-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Glass Button */
.ios-btn {
    background: #000;
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.ios-btn:hover {
    transform: scale(1.05);
    background: #222;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes cardEntrance {
    from { opacity: 0; transform: scale(0.85) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ──── Slick Slider Original Minimal Styling ──── */
.slick-prev:before, .slick-next:before { 
    color: #fff; 
    font-size: 20px; 
    opacity: 1;
}

.slick-prev, .slick-next {
    width: 36px;
    height: 36px;
    background: var(--primary) !important;
    border: none;
    border-radius: 50%;
    z-index: 100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.slick-prev:hover, .slick-next:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.1);
}

/* Desktop Positioning */
.slick-prev { left: -45px; }
.slick-next { right: -45px; }

/* Tablet & Mobile Positioning (Move Inside) */
@media (max-width: 1024px) {
    .slick-prev { left: 10px; }
    .slick-next { right: 10px; }
}

/* ══════════════════════════════════════════════════ */
/*  PREMIUM FOOTER (Image Match)                       */
/* ══════════════════════════════════════════════════ */
.footer-premium {
    width: 100%;
    font-family: 'Almarai', sans-serif;
    color: #fff;
    margin-top: 4rem;
}

/* Tier 1: Dark Top */
.footer-top-tier {
    background: #232f3e;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo-large {
    max-height: 100px;
    width: auto;
}

.footer-company-info p {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Newsletter */
.newsletter-title {
    font-weight: 800;
    font-size: 1.1rem;
}

.newsletter-input-group {
    display: flex;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.newsletter-input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-right: 15px !important;
    font-size: 0.9rem !important;
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: plaintext;
}

.newsletter-input-group .form-control::placeholder {
    text-align: right !important;
}

.btn-newsletter {
    background: #2e82bc;
    color: white;
    font-weight: 800;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-newsletter:hover { background: #22618f; color: white; }

/* App Buttons */
.app-btn {
    background: #000;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    min-width: 155px;
    transition: var(--transition);
}
.app-btn:hover { background: #111; border-color: #888; }
.app-btn i { font-size: 1.8rem; }
.app-btn div {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.1;
}
.app-btn div span { font-size: 0.65rem; opacity: 0.7; }
.app-btn div { font-size: 0.85rem; font-weight: 700; }

/* Payment Icons */
.payment-icon {
    font-size: 0.8rem;
    font-weight: 900;
    padding: 3px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}
.payment-icon.visa { border-color: #fff; color: #fff; }
.payment-icon.fawry { background: #fff; color: #000; border-color: #fff; }

.social-icons-list a {
    color: white;
    font-size: 1.3rem;
    opacity: 0.8;
    transition: var(--transition);
}
.social-icons-list a:hover { opacity: 1; transform: translateY(-3px); }

/* Tier 2: Grey Links */
.footer-middle-tier {
    background: #3a4149;
    padding: 4rem 0;
}

.footer-title {
    font-weight: 900;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: right;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
    display: block;
    text-align: right;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.contact-links li {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.contact-links i { color: #fff; }

/* Tier 3: Bottom */
.footer-bottom-tier {
    background: #232f3e;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links span { color: rgba(255,255,255,0.2); }

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #f1f5f9;
}

@media (max-width: 991px) {
    .app-btn { width: 100%; }
    .footer-title { margin-top: 1rem; }
}

/* Fix for Category Slider specifically */
.category-slider .slick-prev, .category-slider .slick-next {
    top: 40%;
}

/* ──── Large Screen Layout Optimization ──── */
@media (min-width: 1400px) {
  .container {
    max-width: 1600px !important;
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 1750px !important;
  }
}

/* Ensure sliders stretch beautifully in wide mode */
.banner-slider, .category-slider, .product-carousel, .brand-slider {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* ──── Circle Category Design Fix ──── */
.category-circle-card {
    display: block;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    padding: 10px;
    width: 100%;
}

.category-circle-card:hover {
    transform: translateY(-5px);
}

.category-circle-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    background: white;
}

.category-circle-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhancing Mobile Margins */
@media (max-width: 768px) {
    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    .secondary-banner {
        height: 350px;
    }
    
    .category-circle-img {
        width: 90px;
        height: 90px;
    }
    
    .category-circle-name {
        font-size: 0.85rem;
    }
}


/* ──── UI: Mobile Drawer (Refactored) ──── */
.mobile-offcanvas {
    width: 310px !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 1060 !important; /* Above fixed navbar */
}

/* Header & Close Button */
.mobile-offcanvas .offcanvas-header {
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-offcanvas .btn-close {
    background-color: var(--bg-gray);
    border-radius: 50%;
    padding: 0.65rem;
    font-size: 0.72rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-offcanvas .btn-close:hover {
    transform: rotate(90deg);
    background-color: #eee;
}

/* Search Box (Premium Pill Design) */
.drawer-search-wrapper {
    padding: 1.5rem;
    background: linear-gradient(to bottom, white, transparent);
}

.drawer-search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
    transition: all 0.3s ease;
}

.drawer-search-box:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(46,130,188,0.12);
}

.drawer-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    flex: 1;
}

.drawer-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Navigation List (Premium Vertical Links) */
.drawer-nav-list {
    padding: 0.5rem 1.25rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-nav-item i {
    font-size: 1.4rem;
    color: var(--primary);
    width: 25px;
    text-align: center;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
    background: rgba(46,130,188,0.08);
    color: var(--primary);
    transform: translateX(-5px); /* Premium RTL slide effect */
}

/* Auth Section at Bottom */
.drawer-footer {
    padding: 1.5rem;
    margin-top: auto;
}

/* Layout Stability */
@media (min-width: 992px) {
    .mobile-offcanvas, .navbar-toggler { display: none !important; }
}

body.offcanvas-open {
    overflow: hidden !important;
}

.offcanvas-backdrop.show {
    opacity: 0.3;
    backdrop-filter: blur(4px);
}
/* ══════════════════════════════════════════════════ */
/*  PROFESSIONAL AMAZON-STYLE SLIDER ARROWS (Global)   */
/* ══════════════════════════════════════════════════ */
/* Forced Selectors to Override Slick-Theme */
html body .slick-prev, 
html body .slick-next, 
html body .btn-icon-small {
    width: 45px !important; 
    height: 45px !important; 
    border-radius: 50% !important; 
    background: #fff !important; 
    border: 1px solid #d5d9d9 !important;
    box-shadow: 0 2px 5px 0 rgba(213,217,217,.5) !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    color: #0F1111 !important; 
    z-index: 100 !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ──── Glassy Gallery Buttons (Product Card) ──── */
html body .gallery-nav-btn {
    width: 32px !important; 
    height: 32px !important; 
    border-radius: 50% !important; 
    background: rgba(255, 255, 255, 0.7) !important; 
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    color: #1d1d1f !important; 
    z-index: 100 !important;
    transition: all 0.2s ease-in-out !important;
}

/* Kill default Slick characters from ::before */
html body .slick-prev:before, 
html body .slick-next:before {
    content: none !important;
    display: none !important;
}

/* drawer search */
.drawer-search-wrapper {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.drawer-search-box {
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 2px;
}
.drawer-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem !important;
}

/* Hover States */
html body .slick-prev:hover, 
html body .slick-next:hover, 
html body .gallery-nav-btn:hover, 
html body .btn-icon-small:hover {
    background: #f7fafa !important;
    border-color: #d5d9d9 !important;
    box-shadow: 0 4px 10px 0 rgba(213,217,217,.5) !important;
}
html body .gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Icons Inside */
html body .slick-prev i, 
html body .slick-next i,
html body .gallery-nav-btn i {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Mobile Header Optimizations */
.mobile-nav-layout {
    padding-left: 10px;
    padding-right: 10px;
}
.mobile-nav-logo img {
    max-height: 42px;
    width: auto;
}
.mobile-search-row {
    padding: 0 10px 10px 10px;
}
.mobile-search-row .search-box-elevated {
    background: #f1f5f9;
    border-radius: 50px; /* Fully rounded pill shape */
    border: 1px solid #e2e8f0;
}

@media (max-width: 991px) {
    .container-navbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
    .mobile-nav-layout {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .mobile-search-row {
        width: 100% !important;
        padding: 0 0 8px 0 !important; 
        margin: 0 !important;
    }
    .mobile-search-row form {
        width: 100%;
        margin: 0;
    }
    .mobile-search-row .search-box-elevated {
        border-radius: 50px;
        margin: 0 !important; /* Touch the edges */
        border-left: none;
        border-right: none;
    }
    .mobile-search-row .search-input-noon {
        padding: 0.6rem 1rem !important; /* Revert to standard height */
    }
    .main-navbar {
        height: auto !important;
        padding: 5px 0 0 0 !important;
    }
}

/* ══════════════════════════════════════════════════ */
/*  EXPRESS BADGE (GLOBAL)                             */
/* ══════════════════════════════════════════════════ */
.express-badge-mini {
  display: inline-flex;
  height: 18px; 
  margin-top: 6px;
  direction: rtl;
  transform: skewX(15deg); 
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 0 3px 3px 8px; 
}

.express-main {
  background: #0ea5e9;
  color: #fff;
  padding: 0 8px 0 10px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.express-main > *, .express-sub > * {
  transform: skewX(-15deg); 
  display: inline-block;
}

.express-sub {
  background: #1a3a5f; /* Professional Navy Blue */
  color: #fff;
  padding: 0 10px 0 6px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  margin-right: -4px; 
  z-index: 1;
  white-space: nowrap;
}

.express-main::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: expressShine 3s infinite;
  animation-delay: var(--shine-delay, 0s);
  z-index: 3;
}

@keyframes expressShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* ══════════════════════════════════════════════════ */
/*  PREMIUM CART & CHECKOUT UI                         */
/* ══════════════════════════════════════════════════ */
.cart-page-wrapper {
    background-color: #f7f8f8;
    min-height: 80vh;
}

/* Stepper Component */
.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}
.checkout-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}
.checkout-stepper .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.checkout-stepper .step.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(46, 130, 188, 0.25);
}
.checkout-stepper .step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
}
.checkout-stepper .step.active .step-label {
    color: var(--text-primary);
}
.checkout-stepper .step-line {
    flex-grow: 1;
    height: 2px;
    background: #ddd;
    margin-top: -24px;
    margin-left: 10px;
    margin-right: 10px;
}

/* Cart Item Cards */
.cart-premium-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cart-premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.cart-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}
.cart-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.item-title-link { text-decoration: none !important; }

.remove-item-btn {
    color: #999;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.remove-item-btn:hover { color: #dc3545; }

/* Qty Stepper */
.qty-stepper-premium {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
}
.qty-stepper-premium .step-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.qty-stepper-premium .step-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}
.qty-stepper-premium .qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Subtotal Section */
.item-subtotal-tier .unit-price {
    font-size: 0.8rem;
    color: #999;
}
.item-subtotal-tier .total-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-primary);
}

/* Summary Sidebar */
.sticky-top-summary {
    position: sticky;
    top: 100px;
}
.summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.summary-title {
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.promo-input {
    border-radius: 8px 0 0 8px !important;
    border-color: #e2e8f0;
    font-size: 0.9rem;
}
.btn-apply-promo {
    background: #f1f5f9;
    color: var(--text-primary);
    font-weight: 700;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 1.25rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: #64748b;
}
.breakdown-row.total {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
    color: var(--text-primary);
}
.breakdown-row.total span:first-child { font-weight: 800; }
.breakdown-row.total small { display: block; font-weight: 400; font-size: 0.7rem; color: #94a3b8; }
.final-price { font-size: 1.5rem; font-weight: 900; color: var(--primary); }

.shipping-info-banner {
    background: #ecfdf5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.shipping-info-banner i { font-size: 1.25rem; }

.btn-checkout-premium {
    background: var(--primary);
    color: #fff;
    height: 54px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
}
.btn-checkout-premium:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 130, 188, 0.25);
    color: #fff;
}

.btn-continue-shopping {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    height: 48px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-support-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.support-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Empty State */
.cart-empty-state {
    background: #fff;
    border-radius: 20px;
    padding: 5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.empty-icon-wrapper {
    width: 120px;
    height: 120px;
    background: #f1f5f9;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .checkout-stepper { display: none !important; }
    .cart-premium-card { padding: 1rem; }
    .item-title { font-size: 0.85rem; }
    .final-price { font-size: 1.25rem; }
    .btn-checkout-premium { font-size: 0.95rem; }
}

/* ══════════════════════════════════════════════════ */
/*  PREMIUM WISHLIST UI                                */
/* ══════════════════════════════════════════════════ */
.wishlist-page-wrapper {
    background: #f8fafc;
    min-height: 80vh;
}

.wishlist-header {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.wishlist-main-title {
    font-weight: 900;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.wishlist-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.count-highlight {
    color: var(--primary);
    font-weight: 800;
}

/* Remove Overlay Button */
.wishlist-remove-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #eee;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wishlist-remove-overlay:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: scale(1.1) rotate(90deg);
}

/* Empty State */
.wishlist-empty-state {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 5rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.empty-icon-ring {
    width: 100px;
    height: 100px;
    background: #fef2f2;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #f87171;
    position: relative;
    animation: heartPulse 2s infinite ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(248, 113, 113, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.empty-title {
    font-weight: 800;
    color: #1e293b;
}

.empty-text {
    max-width: 450px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .wishlist-header { padding: 1.5rem; }
    .wishlist-main-title { font-size: 1.4rem; }
    .wishlist-remove-overlay { opacity: 1; pointer-events: auto; } /* Always visible on mobile */
}

@media (min-width: 992px) {
    .wishlist-item-frame .wishlist-remove-overlay {
        opacity: 0;
        transform: scale(0.8);
    }
    .wishlist-item-frame:hover .wishlist-remove-overlay {
        opacity: 1;
        transform: scale(1);
    }
}
