/* ==========================================================================
   ALI GARMENTS — ULTRA-MODERN B2B WHOLESALE MARKETPLACE (HEADER & LAYOUT)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --color-primary: #09090b;
  --color-secondary: #121215;
  --color-brand-red: #dc2626;
  --color-brand-gold: #fbbf24;
  --color-accent-amber: #f59e0b;
  --color-bg-dark: #09090b;
  --color-surface-dark: #121215;
  --color-border-dark: #27272a;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-serif-luxury {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Container Widescreen Layout --- */
.max-w-marketplace {
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Luxury Glass Header & Nav Pill Links --- */
.nav-link-luxe {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.nav-link-luxe:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-link-luxe.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

/* --- Hero Carousel --- */
.hero-slider-luxe {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #09090b;
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.hero-slide-luxe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide-luxe.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Circle Nav Arrows */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: rgba(18, 18, 21, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-nav-arrow:hover {
  background: #fbbf24;
  color: #09090b;
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.hero-nav-arrow.left { left: 1.25rem; }
.hero-nav-arrow.right { right: 1.25rem; }

/* Carousel Dots */
.hero-dots-luxe {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dots-luxe .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-dots-luxe .dot.active {
  width: 24px;
  background: #fbbf24;
  border-radius: 6px;
}

/* --- Compact Marketplace Product Cards --- */
.product-card-compact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.product-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.product-card-compact .img-container {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f8fafc;
  overflow: hidden;
}

.product-card-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-compact:hover img {
  transform: scale(1.06);
}

.badge-wholesaler {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
}

.badge-moq-compact {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 0.375rem;
}

/* Category Filter Tabs */
.cat-tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cat-tab-btn:hover, .cat-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Category Tiles Grid */
.category-tile-compact {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 3 / 4;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px -6px rgba(15, 23, 42, 0.15);
}

.category-tile-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.category-tile-compact:hover img {
  transform: scale(1.08);
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Skeleton Shimmer Loaders */
.skeleton-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.skeleton-box {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Quick WhatsApp Overlay on Product Hover */
.quick-wa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-compact:hover .quick-wa-overlay {
  opacity: 1;
}

/* Search Dropdown Items */
.search-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  transition: background 0.2s ease;
  text-decoration: none;
}

.search-item-row:hover {
  background: rgba(251, 191, 36, 0.1);
}

