/* ==========================================================================
   STEEL & HEAT | عطية صنز — نظام التصميم الفاخر الحديث (White & Crimson Modern Storefront)
   تصميم متجر ومعدات عالمي فائق الاحترافية، مصمم للشراء المباشر والتحويل الفوري (E-Commerce First)
   ========================================================================== */

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

:root {
  /* ألوان الخلفية النقية */
  --bg-canvas: #FFFFFF;
  --bg-surface-subtle: #F8FAFC;
  --bg-surface-warm: #FAF9F6;
  --bg-surface-card: #FFFFFF;
  --bg-glass-nav: rgba(255, 255, 255, 0.95);

  /* ألوان البراند الرسمية (الشعلة والأحمر القرمزي لـ Steel & Heat) */
  --brand-crimson: #991B1B;
  --brand-crimson-dark: #7F1D1D;
  --brand-crimson-deep: #8B1E1E;
  --brand-crimson-light: #B91C1C;
  --brand-crimson-subtle: rgba(153, 27, 27, 0.05);
  --brand-crimson-border: rgba(153, 27, 27, 0.18);

  /* ألوان التحويل والشراء الفوري */
  --whatsapp-green: #15803D; /* Deep commercial green */
  --whatsapp-green-bright: #25D366;
  --whatsapp-green-subtle: rgba(37, 211, 102, 0.1);
  --gold-accent: #D97706;

  /* النصوص والظلال الرمادية */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* الحدود والفواصل */
  --border-steel: #E2E8F0;
  --border-steel-hover: #CBD5E1;

  /* الخطوط */
  --font-display: 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Plus Jakarta Sans', monospace;

  /* الحواف والزوايا */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* الظلال الحديثة (Soft Multi-Layer Shadows) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03), 0 0 0 1px #E2E8F0;
  --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(153, 27, 27, 0.3);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.15);
  --shadow-floating: 0 12px 36px -4px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.8);

  --ease-agency: cubic-bezier(0.16, 1, 0.3, 1);
}

/* التصفير والقواعد العامة */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

::selection {
  background: var(--brand-crimson);
  color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-crimson);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.28;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--ease-agency);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s var(--ease-agency);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   الهيدر الرئيسي المدمج (Compact Sticky Header - 60px)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-steel);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-agency);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1.25rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--brand-crimson);
}

.brand-slogan {
  font-size: 0.56rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search-bar input {
  width: 100%;
  padding: 0.7rem 2.8rem 0.7rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease-agency);
}

.header-search-bar input:focus {
  background: #FFFFFF;
  border-color: var(--brand-crimson);
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}

.header-search-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.btn-header-call:hover {
  border-color: var(--brand-crimson);
  color: var(--brand-crimson);
}

.btn-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(153, 27, 27, 0.1);
  color: var(--brand-crimson);
  border: 1px solid rgba(153, 27, 27, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: none;
  transition: all 0.2s var(--ease-agency);
}

.btn-cart-trigger:hover {
  background: rgba(153, 27, 27, 0.16);
  border-color: var(--brand-crimson);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.2);
}

.cart-count-badge {
  background: var(--brand-crimson);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   قسم الـ Hero السينمائي الفاخر (Awwwards-Tier Hospitality Hero)
   مبني وفق معايير Taste Skill: Double-Bezel Architecture & Button-in-Button
   ========================================================================== */
.hero-compact-section {
  position: relative;
  padding: 4rem 0 3.5rem 0;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #070A10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(1.08) contrast(1.14) saturate(1.22);
  transform: scale(1.02);
  transition: filter 0.5s ease;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Scrim مركزي بيضاوي يحافظ على إشراق الفيديو في المنتصف ويغمق الحواف بلطف */
    radial-gradient(
      ellipse 92% 75% at 50% 45%,
      rgba(7, 10, 16, 0.12) 0%,
      rgba(7, 10, 16, 0.38) 65%,
      rgba(7, 10, 16, 0.78) 100%
    ),
    /* تدرج رأسي ناعم للدمج مع الهيدر وشريط الثقة */
    linear-gradient(
      180deg,
      rgba(7, 10, 16, 0.45) 0%,
      rgba(7, 10, 16, 0.10) 35%,
      rgba(7, 10, 16, 0.22) 70%,
      rgba(7, 10, 16, 0.82) 100%
    );
}

.hero-content-relative {
  position: relative;
  z-index: 2;
}

.hero-compact-content {
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

/* شارة الحالة الحية المنحوتة (Hardware Status Pill) */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 1.15rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 0.85rem;
}

.pulse-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin-left: 0.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #EF4444;
  animation: pulse-ring-glow 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulse-ring-glow {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-status-pill .pill-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #E2E8F0;
}

/* العنوان التيبوغرافي الأنيق الخفيف (Slim & Balanced Display Headline) */
.hero-main-heading {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.3;
  margin: 0 auto 0.75rem auto;
  max-width: 920px;
  letter-spacing: -0.015em;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hero-title-light {
  font-weight: 700;
  color: #FFFFFF;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 18px rgba(0, 0, 0, 0.85),
    0 8px 32px rgba(0, 0, 0, 0.75);
}

.hero-highlight-brand {
  font-weight: 800;
  color: #F87171;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 18px rgba(0, 0, 0, 0.85),
    0 8px 28px rgba(220, 38, 38, 0.45);
}

.hero-sub-text {
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  color: #E2E8F0;
  font-weight: 500;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 1.65rem auto;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 3px 14px rgba(0, 0, 0, 0.85);
}

/* مجموعة أزرار الإجراء (High-End Dual CTA Group) */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.85rem;
}

/* زر Button-in-Button الفاخر */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.42rem 0.55rem 0.42rem 1.45rem;
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(185, 28, 28, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
}

.btn-hero-primary:active {
  transform: scale(0.98);
}

.btn-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}

.btn-hero-primary:hover .btn-icon-bubble {
  transform: translateX(-3px);
  background: #FFFFFF;
  color: #991B1B;
}

/* زر المقايسة الزجاجي الثانوي */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.45rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25D366;
  color: #86EFAC;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-icon {
  color: #25D366;
}

/* التوافق مع تفضيلات تقليل الحركة (Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
  .hero-video-container {
    background: url('assets/hero_video_poster.webp') center/cover no-repeat;
  }
  .pulse-ring {
    display: none;
  }
}

/* ==========================================================================
   المتجر ومعرض المعدات الحقيقي (Equipment Storefront)
   ========================================================================== */
.storefront-section {
  padding: 2.5rem 0 7.5rem 0;
  background: #FFFFFF;
  scroll-margin-top: 75px;
}

/* شريط الثقة والتجهيزات المعتمدة في المتجر (Awwwards-Tier Machined Slate & Crimson Telemetry Strip) */
.storefront-telemetry-shell {
  max-width: 100%;
  margin: 0 auto 1.75rem auto;
  background: linear-gradient(145deg, #0F172A 0%, #070A10 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 0.65rem;
  box-shadow: 
    0 12px 32px -4px rgba(15, 23, 42, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

/* شعاع إضاءة داخلي خفيف (Ambient Top Highlight) */
.storefront-telemetry-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(248, 113, 113, 0.5) 50%, transparent 100%);
  pointer-events: none;
}

.storefront-telemetry-core {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

.storefront-telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  text-align: right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

.storefront-telemetry-item:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 
    0 10px 24px -4px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(239, 68, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.storefront-telemetry-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.storefront-telemetry-item:hover .storefront-telemetry-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}

.storefront-telemetry-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.storefront-telemetry-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.storefront-telemetry-desc {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.35;
}

/* شريط الفئات الأفقي السريع مع دعم السحب بالماوس (Compact & Drag-to-Scroll) */
.category-pills-wrap {
  position: relative;
  margin-bottom: 0.75rem;
  transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
}

.category-pills-wrap.has-overflow.mask-left {
  mask-image: linear-gradient(to right, transparent 0, black 32px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px);
}

.category-pills-wrap.has-overflow.mask-right {
  mask-image: linear-gradient(to left, transparent 0, black 32px);
  -webkit-mask-image: linear-gradient(to left, transparent 0, black 32px);
}

.category-pills-wrap.has-overflow.mask-both {
  mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}

.category-pills-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.25rem 0.85rem 0.25rem;
  margin-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  outline: none;
}

.category-pills-wrap.has-overflow .category-pills-scroll {
  cursor: grab;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.category-pills-scroll.is-dragging {
  cursor: grabbing !important;
  user-select: none;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.cat-pill-btn {
  white-space: nowrap;
  padding: 0.45rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s var(--ease-agency);
  cursor: pointer;
  flex-shrink: 0;
}

.cat-pill-btn:focus-visible {
  outline: 2px solid var(--brand-crimson);
  outline-offset: 2px;
}

.cat-pill-btn .pill-count {
  background: #E2E8F0;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.cat-pill-btn:hover {
  border-color: var(--brand-crimson);
  color: var(--brand-crimson);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.cat-pill-btn.active {
  background: var(--brand-crimson);
  border-color: var(--brand-crimson);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.28);
}

.cat-pill-btn.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  .category-pills-scroll {
    scroll-behavior: auto;
  }
}

/* صف أدوات التصفية والبحث المدمج والفرز */
.filter-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-stats-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.filter-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* حقل البحث المدمج السريع داخل شريط الفلترة */
.compact-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-steel);
  border-radius: var(--radius-full);
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 270px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.compact-search-box:hover {
  border-color: var(--border-steel-hover);
}

.compact-search-box:focus-within {
  border-color: var(--brand-crimson);
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(153, 27, 27, 0.12), 0 2px 8px rgba(153, 27, 27, 0.08);
}

.compact-search-icon {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-search-box:focus-within .compact-search-icon {
  color: var(--brand-crimson);
  transform: translateY(-50%) scale(1.08);
}

.compact-search-box input {
  width: 100%;
  height: 38px;
  border: none !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  background: transparent;
  padding: 0.45rem 2.65rem 0.45rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-full);
  -webkit-appearance: none;
  appearance: none;
}

.compact-search-box input:focus,
.compact-search-box input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.compact-search-box input::-webkit-search-decoration,
.compact-search-box input::-webkit-search-cancel-button,
.compact-search-box input::-webkit-search-results-button,
.compact-search-box input::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none;
}

.compact-search-box input::placeholder {
  color: #94A3B8;
  font-size: 0.84rem;
  font-weight: 500;
}

.btn-clear-search-compact {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.btn-clear-search-compact:hover {
  background: #E2E8F0;
  color: var(--brand-crimson);
  transform: translateY(-50%) scale(1.1);
}

.filter-sort-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.filter-sort-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-sort-select {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-steel);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-sort-select:focus {
  border-color: var(--brand-crimson);
}

.filter-sort-select {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-steel);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-sort-select:focus {
  border-color: var(--brand-crimson);
}

/* ==========================================================================
   كارت المعدة التجاري الحديث (Modern Commercial Product Card)
   معالجة التباعد ومنع الالتصاق عبر CSS Grid و Flexbox
   ========================================================================== */
.products-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.85rem);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.modern-product-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--border-steel);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(153, 27, 27, 0.4);
  box-shadow: 0 16px 32px -8px rgba(153, 27, 27, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.card-img-container {
  width: 100%;
  height: 220px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.4s var(--ease-agency);
}

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

.card-badge-top {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--brand-crimson);
  color: var(--brand-crimson);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.card-stock-status {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
  min-height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* شريط السعر البارز للتحويل */
.card-price-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-steel);
}

.card-price-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-crimson);
}

.card-price-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* المواصفات السريعة المدمجة */
.card-mini-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
  min-height: 64px;
}

.card-mini-spec-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-mini-spec-item .s-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.card-mini-spec-item .s-val {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* أزرار الشراء الفوري بالكارت (الناس تشتري على طول) */
.card-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-buy-instant {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-crimson-light) 0%, var(--brand-crimson) 100%);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-buy-instant:hover {
  background: linear-gradient(135deg, #DC2626 0%, var(--brand-crimson-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(153, 27, 27, 0.45);
  color: #FFFFFF;
}

.card-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(153, 27, 27, 0.07);
  border: 1px solid rgba(153, 27, 27, 0.25);
  color: var(--brand-crimson);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s var(--ease-agency);
}

.btn-add-cart:hover {
  background: rgba(153, 27, 27, 0.14);
  border-color: var(--brand-crimson);
  color: var(--brand-crimson-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(153, 27, 27, 0.15);
}

.btn-quick-spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #FFFFFF;
  border: 1px solid var(--border-steel);
  color: var(--text-secondary);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-quick-spec:hover {
  background: var(--bg-surface-subtle);
  color: var(--brand-crimson);
}

/* زر تحميل المزيد */
.load-more-section {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-load-more-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.5rem;
  background: #FFFFFF;
  border: 2px solid var(--brand-crimson);
  color: var(--brand-crimson);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-load-more-modern:hover {
  background: var(--brand-crimson);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(153, 27, 27, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   شريط سلة الطلب العائم بأسفل الشاشة (Floating Bottom Quick Order Bar)
   ========================================================================== */
.floating-order-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 999;
  width: 92%;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.5rem;
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.4s var(--ease-agency);
}

.floating-order-bar.active {
  transform: translateX(-50%) translateY(0);
}

.floating-bar-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #FFFFFF;
}

.floating-bar-badge {
  background: var(--brand-crimson);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.floating-bar-total {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  color: #FCA5A5;
}

.floating-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-submit-order-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-crimson-light) 0%, var(--brand-crimson) 100%);
  color: #FFFFFF;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(153, 27, 27, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-order-whatsapp:hover {
  background: linear-gradient(135deg, #DC2626 0%, var(--brand-crimson-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.55);
  color: #FFFFFF;
}

.btn-open-cart-drawer {
  background: rgba(153, 27, 27, 0.18);
  color: #FECACA;
  border: 1px solid rgba(153, 27, 27, 0.35);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s var(--ease-agency);
}

.btn-open-cart-drawer:hover {
  background: rgba(153, 27, 27, 0.30);
  border-color: rgba(239, 68, 68, 0.6);
  color: #FFFFFF;
}

/* ==========================================================================
   درج سلة الطلبات المنزلق (Slide-Over Cart Drawer)
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-agency), visibility 0.35s ease;
}

.cart-drawer-backdrop.active .cart-drawer-panel {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-steel);
  background: var(--bg-surface-subtle);
}

.drawer-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.drawer-header-title svg {
  color: var(--brand-crimson);
}

.drawer-header-title h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-clear-cart {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-steel);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s var(--ease-agency);
}

.btn-clear-cart:hover {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.btn-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-agency);
}

.btn-drawer-close:hover {
  color: var(--brand-crimson);
  border-color: var(--brand-crimson);
  transform: rotate(90deg);
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.drawer-empty-state svg {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.drawer-item-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  align-items: center;
  transition: all 0.2s var(--ease-agency);
}

.drawer-item-card:hover {
  border-color: var(--border-steel-hover);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.drawer-item-thumb {
  width: 68px;
  height: 68px;
  background: #FFFFFF;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-steel);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.drawer-item-info {
  flex: 1;
  min-width: 0;
}

.drawer-item-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-crimson);
}

.drawer-item-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.drawer-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: #FFFFFF;
  border: 1px solid var(--border-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s var(--ease-agency);
}

.drawer-qty-btn:hover {
  border-color: var(--brand-crimson);
  color: var(--brand-crimson);
  background: var(--brand-crimson-subtle);
}

.drawer-qty-btn:active {
  transform: scale(0.92);
}

.drawer-qty-val {
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
  color: var(--text-primary);
}

.drawer-item-remove {
  color: #EF4444;
  font-size: 0.78rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: auto;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: all 0.15s var(--ease-agency);
}

.drawer-item-remove:hover {
  background: #FEF2F2;
  text-decoration: underline;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-steel);
  background: #FFFFFF;
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.drawer-total-row span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.drawer-total-row strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--brand-crimson);
}

.drawer-notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.drawer-notice svg {
  flex-shrink: 0;
}

/* قسم بيانات العميل ومكان التوريد داخل السلة */
.drawer-customer-section {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.95rem;
}

.drawer-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--border-steel);
}

.drawer-section-title svg {
  color: var(--brand-crimson);
}

.customer-inputs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.customer-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.customer-input-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.customer-input-group .req-star,
.checkout-field-item .req-star {
  color: #EF4444;
  font-weight: 900;
}

.customer-input-group input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.customer-input-group input:focus {
  border-color: var(--brand-crimson);
  box-shadow: 0 0 0 2.5px rgba(153, 27, 27, 0.12);
}

.drawer-checkout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--brand-crimson-light) 0%, var(--brand-crimson) 100%);
  color: #FFFFFF;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 16px rgba(153, 27, 27, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-checkout-btn:hover {
  background: linear-gradient(135deg, #DC2626 0%, var(--brand-crimson-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.55);
}

.drawer-checkout-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   قسم طلب التسعير الفوري للمشاريع الكاملة (Fast Project RFQ)
   ========================================================================== */
.fast-rfq-section {
  padding: 4rem 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-steel);
  border-bottom: 1px solid var(--border-steel);
}

.fast-rfq-card {
  background: #FFFFFF;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.fast-rfq-info h3 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.fast-rfq-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.fast-rfq-points {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.fast-rfq-points li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.fast-rfq-points li span {
  color: var(--brand-crimson);
  font-weight: bold;
}

.fast-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.fast-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fast-form-group.full-width {
  grid-column: 1 / -1;
}

.fast-form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.fast-form-group input,
.fast-form-group select,
.fast-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease-agency);
}

.fast-form-group input:focus,
.fast-form-group select:focus,
.fast-form-group textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand-crimson);
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}

.btn-fast-rfq-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--brand-crimson);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.25);
}

.btn-fast-rfq-submit:hover {
  background: var(--brand-crimson-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   المودال الهندسي التفصيلي (Technical Specs Modal)
   ========================================================================== */
.spec-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.spec-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   مودال الشراء السريع المباشر (Quick Checkout Modal)
   ========================================================================== */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.checkout-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.checkout-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border-steel);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-backdrop.active .checkout-modal-card {
  transform: scale(1);
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-steel);
  background: var(--bg-surface-subtle);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.checkout-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
}

.checkout-header-title svg {
  color: var(--brand-crimson);
}

.checkout-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.checkout-modal-body {
  padding: 1.5rem;
}

/* ملخص المعدة أو الطلب */
.checkout-summary-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: 12px;
  padding: 0.95rem;
  margin-bottom: 1.25rem;
}

.summary-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.summary-item-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-steel);
  object-fit: contain;
  padding: 0.25rem;
  flex-shrink: 0;
}

.summary-item-details {
  flex: 1;
  min-width: 0;
}

.summary-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.summary-item-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  color: var(--brand-crimson);
}

.checkout-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.checkout-field-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.checkout-field-item label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-input-wrap svg {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.field-input-wrap:focus-within svg {
  color: var(--brand-crimson);
}

.field-input-wrap input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-steel);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.field-input-wrap input:focus {
  border-color: var(--brand-crimson);
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}

.checkout-guarantee-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.25);
  border-radius: 10px;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.checkout-guarantee-pill svg {
  flex-shrink: 0;
  color: #15803D;
}

.checkout-modal-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-confirm-order-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--brand-crimson-light) 0%, var(--brand-crimson) 100%);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 16px rgba(153, 27, 27, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-confirm-order-whatsapp:hover {
  background: linear-gradient(135deg, #DC2626 0%, var(--brand-crimson-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.55);
}

.btn-cancel-modal {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-modal:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

.spec-modal-container {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-steel);
  box-shadow: var(--shadow-floating);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-agency);
}

.spec-modal-backdrop.active .spec-modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s var(--ease-agency);
}

.modal-close-btn:hover {
  color: var(--brand-crimson);
  border-color: var(--brand-crimson);
  background: #FFFFFF;
  transform: rotate(90deg);
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border-steel);
}

.modal-specs-table tr:last-child {
  border-bottom: none;
}

.modal-specs-table td {
  padding: 0.75rem 1rem;
}

.modal-specs-table .spec-title {
  background: var(--bg-surface-subtle);
  font-weight: 700;
  color: var(--text-primary);
  width: 32%;
}

.modal-specs-table .spec-value {
  color: var(--text-secondary);
}

.modal-actions-sticky {
  position: sticky;
  bottom: -2.25rem;
  margin: 1.5rem -2.25rem -2.25rem -2.25rem;
  padding: 1rem 2.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-steel);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 15;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   خطوات الشراء بدون حشو (Buying Steps Section)
   ========================================================================== */
.buying-steps-section {
  padding: 3.5rem 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-steel);
}

.steps-heading-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.steps-heading-wrap h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.steps-heading-wrap p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: #FFFFFF;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-steel);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-agency);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-crimson-border);
  box-shadow: var(--shadow-card);
}

.step-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-crimson-subtle);
  border: 1px solid var(--brand-crimson-border);
  color: var(--brand-crimson);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   أزرار ونماذج المقايسة والفوتر المحدثة (RFQ & Footer Accents)
   ========================================================================== */
.rfq-badge {
  color: var(--brand-crimson);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.rfq-call-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-rfq-call {
  width: auto !important;
  padding: 0.65rem 1.5rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.footer-slogan {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-crimson);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-call-link {
  font-weight: 800;
  color: var(--brand-crimson);
}

.back-to-top-link {
  color: var(--brand-crimson);
  font-weight: 700;
}

.back-to-top-link:hover {
  text-decoration: underline;
}

/* التفاعل اللمسي والأيقونات والفئات المساندة */
.top-bar-icon {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-flame-icon {
  color: var(--brand-crimson);
}

.text-crimson {
  color: var(--brand-crimson);
}

.text-green {
  color: var(--whatsapp-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-crimson);
  outline-offset: 2px;
}

.btn-buy-instant:active,
.btn-add-cart:active,
.btn-quick-spec:active,
.btn-cart-trigger:active,
.btn-header-call:active,
.btn-load-more-modern:active,
.btn-fast-rfq-submit:active,
.btn-submit-order-whatsapp:active,
.drawer-checkout-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   الفوتر النظيف المباشر (Clean Direct Footer)
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-steel);
  padding: 3.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-right: 3px solid var(--brand-crimson);
  padding-right: 0.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--brand-crimson);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-steel);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   التوافق مع الشاشات والهواتف (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
  .storefront-telemetry-core {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fast-rfq-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .header-search-bar {
    display: none; /* Accessible in storefront toolbar */
  }
  .header-inner {
    height: 64px;
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 42px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-slogan {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }
  .btn-header-call span:last-child {
    display: none;
  }
  .btn-header-call {
    padding: 0.5rem 0.65rem;
  }
  .btn-cart-trigger {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .hero-compact-section {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding: 3rem 0 2.5rem 0;
  }
  .hero-status-pill {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .pill-text {
    font-size: 0.76rem;
  }
  .hero-main-heading {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-sub-text {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .storefront-telemetry-shell {
    padding: 0.35rem;
    border-radius: 14px;
  }
  .storefront-telemetry-core {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .storefront-telemetry-item {
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
  }
  .filter-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .filter-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }
  .compact-search-box {
    width: 100%;
    min-width: 100%;
  }
  .filter-sort-group {
    width: 100%;
    justify-content: space-between;
  }
  .filter-sort-select {
    flex: 1;
  }
  .products-modern-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .floating-order-bar {
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    bottom: 0.75rem;
    width: 92%;
    left: 4%;
    right: 4%;
    transform: none;
  }
  .floating-bar-info {
    justify-content: space-between;
  }
  .floating-bar-actions {
    flex-direction: column;
    gap: 0.4rem;
  }
  .btn-submit-order-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .cart-drawer-panel {
    max-width: 100%;
  }
  .fast-rfq-card {
    padding: 1.5rem;
  }
  .fast-form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
