/**
 * Noor Al-Iraq B2B Platform - High-Performance Production Core Stylesheet
 * Version: 2.0.0 (Gold Standard)
 * Replaces heavy client-side Tailwind runtime with pre-compiled, instant-loading styles.
 */

:root {
  --color-primary-navy: #0F2942;
  --color-primary-dark: #0A1929;
  --color-primary-blue: #2563EB;
  --color-accent-gold: #F59E0B;
  --color-accent-amber: #D97706;
  --color-brand-orange: #ea580c;
  --color-success: #16A34A;
  --color-danger: #DC2626;
  --color-surface-bg: #F8FAFC;
  --color-border: #E2E8F0;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Fast Rendering & Font Smoothing */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-surface-bg);
  color: #1E293B;
  font-family: var(--font-arabic);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Hide Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Mobile Sticky Header Constraint (56px) */
@media (max-width: 767px) {
  header.sticky {
    max-height: 60px;
  }
  body {
    padding-bottom: 72px; /* Space for bottom navigation */
  }
}

/* Predictive Live Search Autocomplete Floating Panel */
#predictive-search-results,
.predictive-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 35px -5px rgba(15, 41, 66, 0.18), 0 8px 16px -6px rgba(15, 41, 66, 0.12);
  border: 1px solid #CBD5E1;
  z-index: 10000;
  max-height: 480px;
  overflow-y: auto;
  margin-top: 6px;
  display: none;
}

.search-item-hover:hover {
  background-color: #F1F5F9;
  transition: background-color 0.15s ease-in-out;
}

/* Tiered Pricing Highlight Active State */
.tier-box-active {
  border-color: var(--color-brand-orange) !important;
  background-color: #FFF7ED !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25) !important;
  transform: translateY(-2px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Swipeable Gallery Improvements */
.gallery-touch-container {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-drag: none;
}

/* High-contrast Brand & Status Pills */
.badge-gold {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1px solid #F59E0B;
}

.badge-navy {
  background: var(--color-primary-navy);
  color: #FFFFFF;
}

.badge-verified {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

/* Micro-interaction scale on click */
.btn-press:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}
