/* ==========================================================================
   ATAL - شركة توريد مستلزمات المطاعم والمحلات التجارية
   Main Stylesheet (RTL Arabic First)
   Design System: Luxury Warm Cream & Copper Palette
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --bg-main: #FBF7EE;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3EEE2;
  --bg-muted: #EFE7D5;
  --text-main: #1C1917;
  --text-muted: #78716C;
  --text-light: #A8A29E;

  /* Accent Colors */
  --primary: #B45309;       /* Amber Copper */
  --primary-hover: #92400E;
  --primary-light: rgba(180, 83, 9, 0.1);
  --primary-glow: rgba(180, 83, 9, 0.25);
  --accent: #047857;        /* Emerald Trust */
  --accent-light: rgba(4, 120, 87, 0.1);
  --accent-hover: #065F46;
  --danger: #DC2626;
  --danger-light: rgba(220, 38, 38, 0.1);
  --success: #16A34A;
  --warning: #F59E0B;

  /* Surface & Borders */
  --border-color: #E7DDC8;
  --border-subtle: rgba(231, 221, 200, 0.6);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 36px -10px rgba(28, 25, 23, 0.12);
  --shadow-primary: 0 10px 25px -5px rgba(180, 83, 9, 0.3);

  /* Typography */
  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  direction: rtl;
  text-align: right;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(var(--border-subtle) 1px, transparent 1px),
    radial-gradient(rgba(180, 83, 9, 0.03) 1px, transparent 1px);
  background-size: 32px 32px, 16px 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1rem;
  }
}

/* Section Spacing */
.section {
  padding-block: 5.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-block: 3.5rem;
  }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 221, 200, 0.5);
}

.site-header.scrolled {
  background: rgba(251, 247, 238, 0.98);
  border-bottom-color: var(--border-color);
  box-shadow: 0 4px 20px -8px rgba(28, 25, 23, 0.1);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04) translateY(-1px);
  filter: drop-shadow(0 6px 16px rgba(180, 83, 9, 0.25));
}

.footer-logo-badge {
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.35);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #D97706 100%);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: #FFFBF5;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: var(--shadow-primary);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-top: 3px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--primary);
}

.header-phone span {
  direction: ltr;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFBF5;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(180, 83, 9, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(4, 120, 87, 0.35);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile & Desktop Menu Toggle */
.mobile-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* Tablet & Compact Desktop Header Adjustments */
@media (max-width: 1260px) and (min-width: 1151px) {
  .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.86rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
}

/* Mobile & Tablet Header: Keep Home, Catalog, Wholesale, and About directly visible in the header without opening menu */
@media (max-width: 1150px) {
  .header-phone {
    display: none;
  }
  .nav-menu {
    display: flex;
    gap: 0.15rem;
  }
  /* Hide from 5th link onwards on mobile/tablet so only Home, Catalog, Wholesale, and About show */
  .nav-menu li:nth-child(n+5) {
    display: none;
  }
  .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 60px;
    gap: 0.25rem;
  }
  .brand-logo-img {
    height: 32px;
    max-width: 80px;
  }
  .nav-menu {
    gap: 0.1rem;
  }
  .nav-link {
    padding: 0.25rem 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .header-actions {
    gap: 0.25rem;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .header-cart-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.76rem;
    gap: 0.2rem;
  }
  .header-cart-btn svg {
    width: 14px;
    height: 14px;
  }
  .mobile-toggle {
    padding: 0.35rem;
  }
  .mobile-toggle svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 400px) {
  .brand-logo-img {
    height: 26px;
    max-width: 65px;
  }
  .nav-link {
    padding: 0.2rem 0.24rem;
    font-size: 0.67rem;
  }
  .header-cart-btn span:not(.cart-badge) {
    display: none;
  }
  .header-cart-btn {
    padding: 0.28rem 0.4rem;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: var(--bg-main);
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.drawer-links .nav-link {
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  display: block;
}

/* Section Headings */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag.accent {
  color: var(--accent);
  background: var(--accent-light);
  border-color: rgba(4, 120, 87, 0.2);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #D97706 60%, #92400E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-actions, .trust-chips {
    justify-content: center;
  }
  .hero-desc {
    margin-inline: auto;
  }
}

/* Hero Primary Brand Logo Showcase (Transparent / مفرّغ) */
.hero-centered-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2.25rem;
  text-align: center;
}

.hero-logo-wrapper {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  animation: heroLogoFadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroLogoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-logo-glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.22) 0%, rgba(217, 119, 6, 0.1) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.65;
  pointer-events: none;
  animation: heroGlowPulse 2.8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
  }
}

.hero-logo-wrapper:hover .hero-logo-glow {
  opacity: 0.95;
}

.hero-logo-img {
  position: relative;
  height: 110px;
  width: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  filter: drop-shadow(0 8px 22px rgba(180, 83, 9, 0.18));
  animation: heroLogoPulse 2.8s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
  transition: transform 0.3s ease, filter 0.3s ease;
}

@keyframes heroLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 20px rgba(180, 83, 9, 0.14));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 14px 28px rgba(180, 83, 9, 0.28));
  }
}

.hero-logo-wrapper:hover .hero-logo-img {
  animation-play-state: paused;
  transform: scale(1.08);
  filter: drop-shadow(0 16px 32px rgba(180, 83, 9, 0.32));
}

@media (max-width: 992px) {
  .hero-logo-wrapper {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .hero-logo-img {
    height: 90px;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    height: 76px;
  }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.35rem;
  }
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-chips {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.trust-chip svg {
  color: var(--accent);
}

/* Hero Showcase Visual with Professional Image */
.hero-visual {
  position: relative;
  max-width: 500px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-backdrop {
  position: absolute;
  inset: -12px;
  border-radius: 2.25rem;
  border: 1.5px solid rgba(200, 134, 10, 0.22);
  background: radial-gradient(circle at center, rgba(200, 134, 10, 0.12) 0%, rgba(4, 120, 87, 0.05) 70%, transparent 100%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-image-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.85rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #1e1e24;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image-card:hover .hero-main-img {
  transform: scale(1.04);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.2) 0%,
    transparent 30%,
    rgba(15, 23, 42, 0.4) 60%,
    rgba(15, 23, 42, 0.85) 100%
  );
  pointer-events: none;
}

.hero-img-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-brand-badge {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.hero-badge-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-dark, #111827);
  line-height: 1.2;
}

.hero-badge-sub {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2px;
}

.hero-badge-sub svg {
  color: var(--primary);
}

.hero-img-stats {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-stat-pill {
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFBF5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-stat-pill strong {
  color: #FBBF24;
  font-weight: 900;
}

/* Floating Product Badges */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 224, 213, 0.85);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  box-shadow: 0 10px 22px -5px rgba(0, 0, 0, 0.15);
  animation: floatBadge 5s ease-in-out infinite;
  z-index: 3;
}

.chip-pos-1 { top: -14px; right: -12px; animation-delay: 0s; }
.chip-pos-2 { top: 30%; left: -24px; animation-delay: 1.5s; }
.chip-pos-3 { bottom: 65px; left: -18px; animation-delay: 3s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.floating-chip .chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-chip .chip-title {
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-dark, #111827);
}

.floating-chip .chip-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .hero-visual {
    max-width: 340px;
  }
  .floating-chip {
    display: none;
  }
}

/* ==========================================================================
   Products Catalog & Categories
   ========================================================================== */
.products-section {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border-color);
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  color: #FFFBF5;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Products Grid - Compact & Neat */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 134, 10, 0.45);
  box-shadow: 0 10px 22px -6px rgba(180, 83, 9, 0.14);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.product-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.product-cat-icon svg {
  width: 20px;
  height: 20px;
}

.product-card.emerald .product-cat-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.stock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.stock-in {
  background: var(--accent-light);
  color: var(--accent);
}

.stock-low {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.35;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-items-list {
  list-style: none;
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-items-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.35;
}

.product-items-list li svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.price-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Product Card Media & Multi-Image Gallery - مهيأة تماماً لصور 2080×2080 المربعة */
.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.product-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.product-images-count {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(4px);
  color: #FFFBF5;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-edit-img-trigger {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  color: #FFFBF5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s ease;
  padding: 0;
}

.card-edit-img-trigger:hover {
  background: #D97706;
  border-color: #D97706;
  transform: scale(1.1);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

/* Classic Product Details Gallery */
.modal-gallery {
  margin-bottom: 1.25rem;
}

.gallery-main-view {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fbf9f4;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.gallery-thumbs-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.gallery-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: #fbf9f4;
  opacity: 0.65;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s;
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(200, 134, 10, 0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Admin Images Manager Grid */
.admin-img-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.65rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  min-height: 56px;
  align-items: center;
}

.admin-img-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  background: #ffffff;
}

.admin-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-img-thumb .remove-img-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: transform 0.15s ease;
}

.admin-img-thumb .remove-img-btn:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   Why Us & Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.85rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-card:nth-child(even) .feature-icon-wrapper {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Process (How We Work) - Dark Premium
   ========================================================================== */
.process-section {
  background: var(--text-main);
  color: #FFFBF5;
  position: relative;
  overflow: hidden;
}

.process-section h2, .process-section h3 {
  color: #FFFBF5;
}

.process-section .section-desc {
  color: #D6CFC0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.85rem;
  margin-top: 3.5rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.65rem;
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(217, 119, 6, 0.4);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: #FFFBF5;
}

.step-text {
  font-size: 0.92rem;
  color: #D6CFC0;
  line-height: 1.65;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.85rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: #F59E0B;
  margin-bottom: 1.25rem;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1.85rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.15rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #B45309 40%, #78350F 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: #FFFBF5;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

.cta-banner h2 {
  color: #FFFBF5;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 251, 245, 0.85);
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ==========================================================================
   Contact & Quote Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.85rem;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.info-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.social-channels-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
}

.social-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.social-pill-btn.instagram {
  background: rgba(225, 48, 108, 0.12);
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.28);
}
.social-pill-btn.instagram:hover {
  background: #E1306C;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
}

.social-pill-btn.facebook {
  background: rgba(24, 119, 242, 0.12);
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.28);
}
.social-pill-btn.facebook:hover {
  background: #1877F2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--text-main);
  color: #FFFBF5;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  color: #FFFBF5;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #D6CFC0;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #A8A29E;
}

/* Floating Switcher & WhatsApp Buttons */
.floating-actions {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.float-dashboard {
  background: var(--text-main);
  color: #FFFBF5;
}

.float-dashboard:hover {
  background: #000000;
  transform: translateY(-3px);
}

.float-call {
  background: linear-gradient(135deg, #1C1917, #292524);
  color: #FBBF24;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.35);
}

.float-call svg {
  color: #F59E0B;
  transition: transform 0.25s ease;
}

.float-call:hover {
  background: linear-gradient(135deg, #B45309, #D97706);
  color: #FFFFFF;
  border-color: #F59E0B;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -4px rgba(180, 83, 9, 0.45);
}

.float-call:hover svg {
  color: #FFFFFF;
  transform: rotate(-15deg) scale(1.1);
}

.float-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.float-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.45);
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close:hover {
  background: var(--danger, #DC2626);
  border-color: var(--danger, #DC2626);
  color: #FFFFFF;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-close svg {
  stroke-width: 2.8;
  width: 22px;
  height: 22px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1C1917;
  color: #FFFBF5;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.92rem;
  animation: slideDown 0.3s ease;
}

.toast.success {
  background: #047857;
}

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


/* =====================================================================
   تحسينات التصميم (إصلاح البطاقات، الجوال، الهيرو، الأزرار العائمة)
   ===================================================================== */

/* ---- بطاقات المنتجات ---- */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.4rem; align-items: stretch; }
.product-card { padding: 1rem; gap: 1rem; height: 100%; }
.product-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-card-media { height: auto; aspect-ratio: 1 / 1; margin-bottom: 0.9rem; cursor: pointer; }
.product-card-media .media-stock { position: absolute; top: 8px; right: 8px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.product-card-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  color: var(--primary); background: linear-gradient(135deg, var(--primary-light), var(--bg-subtle));
  font-size: .8rem; font-weight: 700;
}
.product-card.emerald .product-card-placeholder { color: var(--accent); background: linear-gradient(135deg, var(--accent-light), var(--bg-subtle)); }
.product-card-placeholder svg { width: 40px; height: 40px; opacity: .85; }
.product-card-placeholder span { color: var(--text-muted); font-weight: 600; }
.modal-placeholder { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-md); margin-bottom: 1.25rem; }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; min-height: 1.5rem; }
.product-cat-name { font-size: .75rem; font-weight: 700; color: var(--text-muted); }
.product-badge { font-size: .7rem; font-weight: 800; background: var(--primary-light); color: var(--primary); padding: .15rem .55rem; border-radius: 99px; }
.product-title { font-size: 1.02rem; line-height: 1.45; min-height: 2.9em; margin-bottom: .25rem; }
.product-desc { margin-bottom: .75rem; }
.product-items-list { margin-bottom: 1rem; }
.product-footer { flex-direction: column; align-items: stretch; gap: .75rem; padding-top: .9rem; }
.product-footer .product-price { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .5rem; }
.price-val { font-size: 1.35rem; white-space: nowrap; line-height: 1.2; }
.price-val small { font-size: .8rem; font-weight: 700; }
.price-unit { margin-top: 0; font-size: .75rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; }
.product-actions .btn { width: 100%; justify-content: center; white-space: nowrap; }
.stock-out { background: rgba(220, 38, 38, .12); color: #B91C1C; }
.modal-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.modal-actions .btn { justify-content: center; }

/* =====================================================================
   شبكة المنتجات للجوال: عمودان متجاوران متساويان (2-Column Grid on Mobile)
   مع الحفاظ على تناسق الارتفاع، وضوح الصور، الأسعار، والأزرار
   ===================================================================== */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    align-items: stretch !important;
  }

  .product-card {
    padding: 0.65rem 0.55rem !important;
    gap: 0.45rem !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .product-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .product-card-media {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    background: var(--bg-subtle, #f5f0e6) !important;
  }

  .product-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .product-images-count {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
    border-radius: 5px !important;
    bottom: 5px !important;
    right: 5px !important;
  }

  .card-edit-img-trigger {
    width: 24px !important;
    height: 24px !important;
    top: 5px !important;
    left: 5px !important;
    padding: 0 !important;
  }

  .product-card-media .media-stock {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
    border-radius: 5px !important;
    top: 5px !important;
    right: 5px !important;
  }

  .product-card-placeholder {
    font-size: 0.68rem !important;
    gap: 0.25rem !important;
    padding: 0.4rem !important;
  }

  .product-card-placeholder svg {
    width: 26px !important;
    height: 26px !important;
  }

  .product-meta {
    gap: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    min-height: auto !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  .product-cat-name {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--text-muted) !important;
  }

  .product-badge {
    font-size: 0.58rem !important;
    padding: 0.1rem 0.35rem !important;
    white-space: nowrap !important;
  }

  .product-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 0.3rem !important;
    /* تثبيت ارتفاع العنوان لسطرين لضمان محاذاة أفقية متطابقة تماماً لجميع البطاقات */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    word-break: break-word !important;
  }

  .product-card-variants-badge {
    font-size: 0.64rem !important;
    padding: 0.15rem 0.35rem !important;
    gap: 0.2rem !important;
    margin-bottom: 0.3rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 6px !important;
  }

  .product-card-variants-badge svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
  }

  .product-desc {
    font-size: 0.7rem !important;
    margin-bottom: 0.3rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* إخفاء القائمة النقطية في بطاقات الجوال المزدوجة للحفاظ على استواء الارتفاع ونظافة التصميم */
  .product-items-list {
    display: none !important;
  }

  .product-footer {
    margin-top: auto !important;
    padding-top: 0.45rem !important;
    gap: 0.45rem !important;
    border-top: 1px solid var(--border-color) !important;
  }

  .product-footer .product-price {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 0.2rem !important;
    width: 100% !important;
  }

  .price-val {
    font-size: 0.98rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .price-val small {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
  }

  .price-unit {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .product-actions {
    display: grid !important;
    grid-template-columns: 1fr 1.25fr !important;
    gap: 0.25rem !important;
    width: 100% !important;
  }

  .product-actions .btn {
    font-size: 0.67rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 0.2rem !important;
    min-height: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 2px !important;
  }

  .product-actions .btn svg {
    width: 11px !important;
    height: 11px !important;
    margin-left: 1px !important;
    flex-shrink: 0 !important;
  }
}

/* شاشات الجوال الصغيرة جداً (أقل من 370px) */
@media (max-width: 370px) {
  .products-grid {
    gap: 0.45rem !important;
  }
  .product-card {
    padding: 0.5rem 0.38rem !important;
  }
  .product-title {
    font-size: 0.76rem !important;
  }
  .price-val {
    font-size: 0.88rem !important;
  }
  .product-actions .btn {
    font-size: 0.62rem !important;
    padding: 0.3rem 0.15rem !important;
  }
}

/* ---- فلاتر الأقسام والبحث ---- */
.filter-tabs { margin-bottom: 0; }
@media (max-width: 768px) {
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  #product-search { max-width: none; }
}

/* ---- الهيرو والصورة الرئيسية: تنظيم كامل لشاشات الموبايل والتابلت لمنع التداخل والازدحام ---- */
.hero-img-stats { right: auto; left: 1.25rem; }

@media (max-width: 992px) {
  /* إخفاء الشارات العائمة على الموبايل والتابلت لمنع تغطية الصورة أو تشويش النصوص */
  .floating-chip {
    display: none !important;
  }
  .hero-visual {
    max-width: 440px;
    aspect-ratio: 4 / 3;
    margin-top: 1.5rem;
  }
  .hero-image-card {
    border-radius: 1.25rem;
  }
  .hero-img-stats {
    top: 0.75rem;
    left: 0.75rem;
    gap: 0.35rem;
  }
  .hero-stat-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    border-radius: 999px;
  }
  .hero-stat-pill strong {
    font-size: 0.75rem;
  }
  .hero-img-badge {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.85rem;
    gap: 0.5rem;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
  }
  .hero-brand-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
  }
  .hero-brand-logo-img {
    height: 28px;
  }
  .hero-badge-title {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-badge-sub {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    max-width: 100%;
    aspect-ratio: 16 / 11;
  }
  .hero-stat-pill:nth-child(2) {
    display: none; /* إخفاء الشارة الثانية في الشاشات الصغيرة جداً للحفاظ على وضوح الصورة ونظافة العرض */
  }
  .hero-centered-logo-wrapper {
    margin-bottom: 1.5rem;
  }
  .hero-logo-img {
    height: 78px;
  }
}

/* ---- أزرار عائمة: دائرة صغيرة على الجوال حتى لا تغطي المحتوى ---- */
@media (max-width: 768px) {
  .float-btn { padding: .8rem; width: 52px; height: 52px; justify-content: center; font-size: 0; gap: 0; }
  .float-btn svg { width: 24px; height: 24px; }
}

/* ---- صفحة من نحن: تجاوب كامل ---- */
.about-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 2rem; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .about-stats { gap: .5rem; }
  .about-stats > div > div:first-child { font-size: 1.7rem !important; }
}

/* ---- منع التمرير الأفقي على أي صفحة ---- */
img, svg, video { max-width: 100%; }

.product-card-media .media-stock { background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px); }
.product-card-media .media-stock.stock-low { color: #B45309; }

/* ==========================================================================
   Shopping Cart (السلة) & Wholesale System Styles
   ========================================================================== */

/* Cart Header Button & Badges */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.header-cart-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.18);
}

.header-cart-btn svg {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.header-cart-btn:hover svg {
  transform: scale(1.12);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}



/* Cart Toast Notification */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1C1917;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer (Slide-Over) */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.18);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  text-align: right;
}

.cart-drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}

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

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 3rem 1rem;
}

.cart-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem auto;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  transition: var(--transition);
}

.cart-item-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.cart-item-placeholder {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.cart-item-price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price-unit strong {
  color: var(--primary);
  font-weight: 800;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cart-qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-item-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Customer order info fields */
.cart-customer-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.cart-customer-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cart-customer-grid.full {
  grid-template-columns: 1fr;
}

.cart-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.cart-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Cart Drawer Footer */
.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
}

.cart-summary-total strong {
  color: var(--primary);
  font-size: 1.45rem;
}

.btn-whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  background: #25D366;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.btn-whatsapp-order:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.btn-clear-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  transition: var(--transition);
}

.btn-clear-cart:hover {
  color: var(--danger);
}

/* ==========================================================================
   Wholesale Section (قسم الطلب بالجملة)
   ========================================================================== */
.wholesale-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
  overflow: hidden;
}

.wholesale-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.wholesale-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.wholesale-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.wholesale-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.wholesale-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.wholesale-feature-card.emerald .wholesale-feature-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.wholesale-feature-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.wholesale-feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.wholesale-cta-box {
  background: linear-gradient(135deg, #1C1917 0%, #292524 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.wholesale-cta-box::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.wholesale-cta-title {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.wholesale-cta-desc {
  color: #D6D3D1;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.wholesale-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.wholesale-perks-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #E7E5E4;
}

.wholesale-perks-list li svg {
  color: #22C55E;
  flex-shrink: 0;
}

.wholesale-form-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wholesale-form-card input,
.wholesale-form-card textarea,
.wholesale-form-card select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #1C1917;
  outline: none;
}

.wholesale-form-card input:focus,
.wholesale-form-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

@media (max-width: 860px) {
  .wholesale-cta-box {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}

/* ==========================================================================
   Product Variant Selector & Option Chips
   ========================================================================== */
.product-variants-container {
  margin-bottom: 1.25rem;
  padding: 1.1rem;
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.product-variants-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.product-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.variant-chip {
  position: relative;
  border: 1.8px solid var(--border-color);
  background: var(--bg-card, #FFFFFF);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: right;
}

.variant-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.variant-chip.active {
  border-color: var(--primary);
  background: rgba(217, 119, 6, 0.08);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 14px rgba(217, 119, 6, 0.16);
}

.variant-chip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.variant-chip-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.variant-chip.active .variant-chip-name {
  color: var(--primary);
}

.variant-chip-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.variant-chip.active .variant-chip-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.variant-chip.active .variant-chip-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

.variant-chip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.variant-chip-price {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--primary);
}

.variant-chip-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.15);
  color: #B45309;
}

/* Card variants indicator badge */
.product-card-variants-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(217, 119, 6, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  margin: 4px 0 6px 0;
  width: fit-content;
}



/* ==========================================================================
   اختيار الدولة والعملة داخل القائمة الأصلية (.drawer-country-box)
   ========================================================================== */
.drawer-country-box {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0.02) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.drawer-country-box.open {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.12);
}

.drawer-country-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}

.drawer-country-btn-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.drawer-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.drawer-country-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drawer-country-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.drawer-country-curr {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1px;
}

.drawer-country-btn-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.drawer-country-chevron {
  transition: transform 0.22s ease;
}

.drawer-country-box.open .drawer-country-chevron {
  transform: rotate(180deg);
}

.drawer-country-collapse {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(217, 119, 6, 0.16);
}

.drawer-country-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 2px;
}

.drawer-country-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  text-align: right;
}

.drawer-country-opt-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.drawer-country-opt-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFBF5;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

.drawer-country-opt-btn.active .drawer-country-opt-name {
  color: #FFFBF5;
  font-weight: 800;
}

.drawer-country-opt-btn.active .drawer-country-opt-curr {
  color: rgba(255, 251, 245, 0.85);
}

.drawer-country-opt-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.drawer-country-opt-info {
  display: flex;
  flex-direction: column;
}

.drawer-country-opt-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-country-opt-curr {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.drawer-country-opt-check {
  font-size: 0.95rem;
  font-weight: 900;
  color: #FFFBF5;
  margin-inline-start: 0.5rem;
}

/* ==========================================================================
   Hero — حركة الصورة الرئيسية على الجوال (كانت تظهر على الحاسوب فقط)
   ========================================================================== */

/* أجهزة اللمس: لا يوجد hover، فنستبدله بحركة تكبير هادئة مستمرة (Ken Burns) */
@media (hover: none) {
  .hero-main-img {
    animation: heroKenBurns 16s ease-in-out infinite alternate;
    will-change: transform;
  }
}
@keyframes heroKenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.5%, -1.5%, 0); }
}

/* الجوال: إظهار البطاقات العائمة بحجم مضغوط داخل حدود الصورة مع حركة طفو */
@media (max-width: 576px) {
  .hero-visual .floating-chip {
    display: flex;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
    max-width: 78%;
    border-radius: 12px;
    z-index: 3;
    opacity: 0;
  }
  .hero-visual .floating-chip .chip-icon { width: 26px; height: 26px; border-radius: 7px; }
  .hero-visual .floating-chip .chip-icon svg { width: 15px; height: 15px; }
  .hero-visual .floating-chip .chip-title { font-size: 0.72rem; }
  .hero-visual .floating-chip .chip-sub { display: none; }

  /* توزيع داخل الصورة بين شارات الأرقام (أعلى) وشارة الشركة (أسفل) */
  .hero-visual .chip-pos-1 { top: 21%; right: 10px; left: auto; bottom: auto; }
  .hero-visual .chip-pos-2 { top: 39%; left: 10px; right: auto; bottom: auto; }
  .hero-visual .chip-pos-3 { top: 57%; right: 10px; left: auto; bottom: auto; }

  /* ظهور متدرج ثم طفو مستمر (الطفو يبدأ بعد انتهاء الظهور) */
  .hero-visual .chip-pos-1 { animation: heroChipIn .7s .9s cubic-bezier(.22,1,.36,1) forwards, floatBadge 5s 1.6s ease-in-out infinite; }
  .hero-visual .chip-pos-2 { animation: heroChipIn .7s 1.2s cubic-bezier(.22,1,.36,1) forwards, floatBadge 5s 1.9s ease-in-out infinite; }
  .hero-visual .chip-pos-3 { animation: heroChipIn .7s 1.5s cubic-bezier(.22,1,.36,1) forwards, floatBadge 5s 2.2s ease-in-out infinite; }
}
@keyframes heroChipIn {
  from { opacity: 0; transform: translateY(14px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* حركات الهيرو لا تبدأ إلا بعد انتهاء شاشة الشعار حتى لا تضيع خلفها */
html.atal-splash-on .hero-visual .floating-chip,
html.atal-splash-on .hero-main-img { animation-play-state: paused; }
