/* ==========================================================================
   KAIZEN GOODS WHOLESALERS L.L.C - DUBAI, UAE
   Clean, Modern Commodity Wholesale & Import-Export Web Platform
   Inspired by Agro-Factory.com & Agrimount.ae
   Palette: Luminous Ivory, Royal Gold, Fresh Herbal Emerald (Minimal Black)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Warm Corporate Agro Palette (Strictly Minimal Black) */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F4EFE6;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-gold: rgba(253, 250, 242, 0.95);
  
  /* Rich Metals & Accents */
  --gold-primary: #C59A27;
  --gold-secondary: #DFB748;
  --gold-light: #FBF4DC;
  --gold-dark: #987216;
  --gold-gradient: linear-gradient(135deg, #DFB748 0%, #C59A27 50%, #987216 100%);
  --gold-shimmer: linear-gradient(90deg, #C59A27 0%, #FFF2B2 50%, #C59A27 100%);
  
  /* Natural Emerald & Herbal Accents (Agrimount / Agro-Factory Style) */
  --emerald-primary: #1C653B;
  --emerald-light: #EBF7EE;
  --emerald-dark: #124326;
  --emerald-gradient: linear-gradient(135deg, #227947 0%, #175431 100%);
  
  /* Warm Spice Terracotta */
  --spice-amber: #D97706;
  --spice-light: #FEF3C7;
  
  /* Clean Typography Colors (Warm Slate / Charcoal - NO HARSH PITCH BLACK) */
  --text-main: #242D38;
  --text-secondary: #576574;
  --text-muted: #8395A7;
  --text-gold: #9E7412;
  --text-on-dark: #FFFFFF;
  
  /* Borders & Shadows */
  --border-light: rgba(197, 154, 39, 0.22);
  --border-subtle: #EBE5DC;
  --shadow-sm: 0 4px 14px rgba(160, 130, 80, 0.08);
  --shadow-md: 0 10px 30px rgba(160, 130, 80, 0.12);
  --shadow-lg: 0 20px 45px rgba(160, 130, 80, 0.15);
  
  /* Font Families */
  --font-heading: 'Cinzel', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F4EFE6;
}
::-webkit-scrollbar-thumb {
  background: #C59A27;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #987216;
}

/* Typography Helpers */
.font-cinzel { font-family: var(--font-heading); }
.font-playfair { font-family: var(--font-serif); }
.font-outfit { font-family: var(--font-body); }

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-emerald-gradient {
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Luxury Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(197, 154, 39, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197, 154, 39, 0.42);
}
.btn-gold:hover::before {
  left: 100%;
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #FFFFFF;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(28, 101, 59, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(28, 101, 59, 0.42);
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-gold);
  border: 1.5px solid var(--gold-primary);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-gold:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

/* Card Clean Class */
.card-clean {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-clean:hover {
  transform: translateY(-5px);
}

/* Badges */
.badge-gold {
  background: #FFF8E6;
  color: #987216;
  border: 1px solid rgba(197, 154, 39, 0.35);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-emerald {
  background: #E8F7ED;
  color: #124326;
  border: 1px solid rgba(28, 101, 59, 0.3);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

/* Infinite Marquee Ticker */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
}
.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2.5rem;
  animation: scrollMarquee 42s linear infinite;
}
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Navigation Link Styling - Zero Word-Wrapping across All Views */
.nav-link {
  white-space: nowrap !important;
  transition: all 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.3;
  font-size: 16px !important;
  font-weight: 600;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   SIMPLE, CLEAN CORPORATE HORIZONTAL NAVIGATION (Guaranteed Single Row)
   ========================================================================== */
.nav-desktop-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 1.85rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-link,
.nav-desktop-links > a,
.nav-dropdown-wrapper > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  color: #1F2937 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 6px 0 !important;
  position: relative !important;
  transition: color 0.2s ease !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  background: transparent !important;
  border: none !important;
}

.nav-link:hover,
.nav-desktop-links > a:hover,
.nav-dropdown-wrapper:hover > a {
  color: #C59A27 !important;
}

.nav-link::after,
.nav-dropdown-wrapper > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-dropdown-wrapper:hover > a::after {
  width: 100%;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-desktop-links {
    gap: 1.25rem !important;
  }
  .nav-link,
  .nav-desktop-links > a,
  .nav-dropdown-wrapper > a {
    font-size: 15.5px !important;
  }
  .nav-brand-title {
    font-size: 1.15rem !important;
  }
}

@media (min-width: 1280px) {
  .nav-desktop-links {
    gap: 1.85rem !important;
  }
  .nav-link,
  .nav-desktop-links > a,
  .nav-dropdown-wrapper > a {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   Top Corporate Announcement & Contact Bar (Zero-Wrapping & Sizing)
   ========================================================================== */
.top-header-bar {
  font-family: var(--font-body);
}

.top-header-bar a,
.top-header-bar span,
.top-header-bar strong {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.top-contact-link:hover {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .top-header-bar {
    font-size: 11.5px !important;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .top-header-bar {
    font-size: 12px !important;
  }
}

@media (min-width: 1024px) {
  .top-header-bar {
    font-size: 12.5px !important;
  }
}

@media (min-width: 1280px) {
  .top-header-bar {
    font-size: 13px !important;
  }
}

/* ==========================================================================
   Spot Prices Board Table & Scrollbar Styling
   ========================================================================== */
.price-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

@media (max-width: 1023px) {
  .price-table {
    table-layout: auto;
  }
}

.price-table th,
.price-table td {
  vertical-align: middle !important;
}

.price-table th {
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
}

.price-table tbody tr {
  transition: all 0.2s ease;
}

.price-table tbody tr:hover {
  background-color: #FEF9EE !important;
}

.price-tab-btn {
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.price-tab-btn.active {
  background: var(--gold-gradient) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(197, 154, 39, 0.25) !important;
}

/* Custom Horizontal Scrollbar for Mobile Table */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #F4EFE6;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #C59A27;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #987216;
}

/* Modal Backdrops & Styles */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Product Categories Luxury Dropdown Menu */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.nav-dropdown-wrapper:hover .fa-chevron-down {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  transform: translateY(6px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease !important;
  z-index: 9999 !important;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Category Filter Tabs */
.filter-tab {
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.filter-tab:hover {
  border-color: var(--gold-secondary);
  color: var(--gold-dark);
  background: var(--gold-light);
}
.filter-tab.active {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(197, 154, 39, 0.3);
}

/* Container Progress Bar */
.container-progress-fill {
  background: linear-gradient(90deg, #1C653B, #38A169);
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Pulse animation */
@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}
.pulse-green {
  animation: pulseGold 2.2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}
