/* ============================================
   root 
   ============================================ */

:root {
  --primary: #FF5722;
  --primary-dark: #E64A19;
  --primary-light: #FF8A65;
  --primary-bg: rgba(255, 87, 34, 0.06);
  --accent: #FF5722;
  --accent-hover: #E64A19;
  --bg: #ffffff;
  --bg-light: #f8f8f8;
  --bg-section: #fafafa;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #999;
  --border: #eaeaea;
  --white: #fff;
  --danger: #e74c3c;
  --success: #27ae60;
  --gold: #f39c12;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 50px;
  --transition: 0.3s ease;
  --container: 1300px;
  --nav-height: 64px;
}

[data-theme="dark"] {
  --bg: #111;
  --bg-light: #1a1a1a;
  --bg-section: #151515;
  --text: #eee;
  --text-light: #aaa;
  --text-muted: #666;
  --border: #2a2a2a;
  --white: #1e1e1e;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

ul {
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
  الشريط
   ============================================ */
.announcement-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.announcement-bar i {
  margin: 0 4px;
}

/* ============================================
   navbar top
   ============================================ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  gap: 16px;
  overflow: hidden;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
}

.navbar-logo i {
  color: var(--primary);
  font-size: 24px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar-search {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.navbar-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text);
  font-size: 13px;
  transition: all var(--transition);
}

[dir="rtl"] .navbar-search input {
  padding: 8px 36px 8px 14px;
}

.navbar-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  outline: none;
}

.navbar-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

[dir="rtl"] .navbar-search .search-icon {
  left: auto;
  right: 12px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-action-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  position: relative;
  transition: all var(--transition);
  color: var(--text);
}

.nav-action-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-action-btn .badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--transition);
  color: var(--text-light);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hamburger {
  display: none;
  font-size: 22px;
}

/* ============================================
   navbar الهاتف
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 200;
}

.mobile-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 4px 8px;
}

.mobile-nav-item i {
  font-size: 18px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item .badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   ال slider  تمرير
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  color: #fff;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.slide>* {
  position: relative;
  z-index: 1;
}

.slide h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 600px;
}

.slide p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 500px;
}

.slide .slide-btn {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}

.slide .slide-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

[dir="rtl"] .slider-arrow.prev {
  left: auto;
  right: 16px;
}

[dir="rtl"] .slider-arrow.next {
  right: auto;
  left: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.slider-dots .dot.active {
  background: var(--primary);
  width: 26px;
  border-radius: 5px;
}

/* ============================================
     العدد التنازلي بنر
   ============================================ */
.countdown-section {
  padding: 0;
}

.countdown-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.countdown-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
}

.countdown-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.countdown-info h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.countdown-info p {
  font-size: 14px;
  opacity: 0.7;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  direction: ltr;
}

.countdown-unit {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 70px;
}

.countdown-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-light);
}

.countdown-txt {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.countdown-sep {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  opacity: 0.6;
}

.countdown-btn {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ============================================
   القسم
   ============================================ */
.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 i {
  color: var(--primary);
}

.section-header .view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--transition);
}

.section-header .view-all:hover {
  opacity: 0.7;
}

/* ============================================
   
   عرض الاقسام
   7 صف
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.category-card {
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card.active .category-card-img {
  border-color: var(--primary);
}

.category-card-img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  background: var(--bg-light);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.category-card-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ============================================
   عرض المنتجات
   5 صف
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

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

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-img-primary {
  opacity: 0;
}

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

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

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

[dir="rtl"] .product-badge {
  left: auto;
  right: 8px;
}

.product-badge.new {
  background: var(--primary);
  color: #fff;
}

.product-badge.sale {
  background: var(--danger);
  color: #fff;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.product-fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-fav-btn:hover,
.product-fav-btn.active {
  color: var(--danger);
  background: #ffeaea;
}

.product-card-body {
  padding: 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.product-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--gold);
}

.product-rating .rating-num {
  color: var(--text-muted);
  font-size: 11px;
}

.product-add-btn {
  flex: 1;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.product-add-btn:hover {
  background: var(--primary-dark);
}

/* ============================================
   تخطيط
   ============================================ */
.products-page-layout {
  display: flex;
  gap: 24px;
}

.filter-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-sidebar-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-sidebar-header h3 i {
  color: var(--primary);
}

.filter-close-btn {
  display: none;
  font-size: 18px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
}

.filter-group label:hover {
  color: var(--primary);
}

.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--text);
  font-size: 13px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-price-inputs input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--text);
  font-size: 13px;
  width: 80px;
  transition: all var(--transition);
}

.filter-price-inputs input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.filter-price-inputs input::placeholder {
  color: var(--text-muted);
}

.filter-price-inputs span {
  color: var(--text-muted);
  font-weight: 600;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 149;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.products-area {
  flex: 1;
  min-width: 0;
}

.products-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-toggle-btn {
  display: none;
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex: 1;
}

.categories-scroll::-webkit-scrollbar {
  height: 0;
}

.cat-chip {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text-light);
}

.cat-chip:hover,
.cat-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* ============================================
     تفاصيل المنتج
   ============================================ */
.product-detail-page {
  padding: 30px 0;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pd-breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.pd-breadcrumb a:hover {
  color: var(--primary);
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.pd-grid>* {
  min-width: 0;
}

[dir="rtl"] .pd-grid-rtl {
  direction: rtl;
}

.pd-images {
  position: relative;
}

.pd-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 520px;
  min-height: 260px;
}

.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s;
  background: var(--bg-light);
}

.pd-thumbs {
  display: flex;
  gap: 8px;
}

.pd-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--bg-light);
  flex-shrink: 0;
}

.pd-thumb.active,
.pd-thumb:hover {
  border-color: var(--primary);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pd-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.pd-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.pd-old-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pd-discount-badge {
  padding: 4px 12px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gold);
}

.pd-rating .num {
  color: var(--text-light);
  font-size: 13px;
}

.pd-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.pd-meta strong {
  color: var(--text);
}

.pd-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.pd-qty button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.pd-qty button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.pd-qty button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[dir="rtl"] .pd-qty button:first-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[dir="rtl"] .pd-qty button:last-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.pd-qty button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pd-qty input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.pd-actions {
  display: flex;
  gap: 10px;
}

/* تفاصيل المنتج */
.pd-tabs {
  margin-top: 30px;
}

.pd-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pd-tabs-nav::-webkit-scrollbar {
  display: none;
}

.pd-tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.pd-tab-btn:hover {
  color: var(--text);
}

.pd-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.pd-tab-content {
  display: none;
}

.pd-tab-content.active {
  display: block;
}

/* المواصفات   */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

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

.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--text);
  width: 40%;
  background: var(--bg-light);
}

.specs-table td:last-child {
  color: var(--text-light);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-light);
  transition: all var(--transition);
  text-align: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  transition: transform var(--transition);
  font-size: 12px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 14px 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
}

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

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ============================================
   سلة 
   ============================================ */
.cart-page {
  padding: 30px 0;
}

.cart-page-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-page-title i {
  color: var(--primary);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

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

.cart-page-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-page-item-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
}

.cart-page-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-page-item-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-page-item-sku {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-page-item-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.cart-page-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-page-item-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--bg-light);
  transition: all var(--transition);
}

.cart-page-item-qty button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-page-item-qty span {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-page-item-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.cart-page-item-remove:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
}

.cart-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  border: 1px solid var(--border);
}

.cart-summary h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-light);
}

.cart-summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.cart-summary-row.total .val {
  color: var(--primary);
}

.cart-summary .btn {
  margin-top: 16px;
}

.cart-summary-input {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cart-summary-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
}

.cart-summary-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.cart-empty-page {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.cart-empty-page i {
  font-size: 60px;
  margin-bottom: 16px;
  color: var(--border);
}

.cart-empty-page h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.cart-empty-page .btn {
  margin-top: 20px;
}

/* ============================================
  التسوق حسب الاستخدام
   ============================================ */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usage-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1.3;
  transition: all var(--transition);
}

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

.usage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.usage-card:hover img {
  transform: scale(1.08);
}

.usage-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
}

.usage-card-overlay h4 {
  font-size: 16px;
  font-weight: 700;
}

.usage-card-overlay p {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* ============================================
  
   ============================================ */
.video-reels-section {
  background: #000;
  padding: 40px 0;
}

.video-reels-section .section-header h2 {
  color: #fff;
}

.video-reels-section .section-header .view-all {
  color: #FF0000;
}

.reels-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  flex: 1;
  min-width: 0;
}

.reels-container::-webkit-scrollbar {
  height: 4px;
}

.reels-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.reel-card {
  min-width: 240px;
  max-width: 240px;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: #111;
  flex-shrink: 0;
  cursor: pointer;
}

.reel-card iframe,
.reel-card .reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.reel-thumb {
  background-size: cover;
  background-position: center;
  position: relative;
}

.reel-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  z-index: 2;
  transition: all var(--transition);
}

.reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.reel-actions {
  position: absolute;
  bottom: 16px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3;
}

[dir="rtl"] .reel-actions {
  right: auto;
  left: 12px;
}

.reel-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: all var(--transition);
}

.reel-action-btn:hover {
  background: var(--primary);
}

.reel-action-btn.fav-active {
  color: var(--danger);
}

.reel-info {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 60px;
  z-index: 3;
  color: #fff;
}

[dir="rtl"] .reel-info {
  left: 60px;
  right: 12px;
}

.reel-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-info .reel-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-light);
}

/* تنسيق الفيديو كامل الصفحة */
body[data-page="videos"] .announcement-bar {
  display: none;
}

body[data-page="videos"] .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  backdrop-filter: blur(10px);
}

body[data-page="videos"] .navbar * {
  color: #fff;
}

body[data-page="videos"] .navbar-logo i {
  color: var(--primary);
}

body[data-page="videos"] .footer {
  display: none;
}

body[data-page="videos"] .video-reels-page {
  padding: 0;
}

body[data-page="videos"] .video-reels-page .container {
  padding: 0;
  max-width: 100%;
}

body[data-page="videos"] .video-reels-page .section-header {
  display: none;
}

.reels-fullpage {
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  background: #000;
}

.reels-fullpage .reel-card {
  min-width: unset;
  max-width: 100%;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  max-height: calc(100vh - var(--nav-height));
  height: calc(100vh - var(--nav-height));
  scroll-snap-align: start;
  border-radius: 0;
  flex-shrink: 0;
}

.reels-fullpage .reel-card .reel-thumb {
  border-radius: 0;
}

.reels-fullpage .reel-card iframe {
  border-radius: 0;
}

.reels-fullpage .reel-info h4 {
  font-size: 15px;
  white-space: normal;
}

.reels-fullpage .reel-info .reel-price {
  font-size: 18px;
}

.reels-fullpage .reel-actions {
  bottom: 100px;
}

.reels-fullpage .reel-action-btn {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.reels-fullpage .reel-info {
  bottom: 30px;
}

/* الفديوهات */
@media (max-width: 768px) {
  body[data-page="videos"] {
    padding-bottom: 58px;
  }

  .reels-fullpage {
    height: calc(100vh - 52px - 58px);
    margin-top: 52px;
  }

  .reels-fullpage .reel-card {
    min-height: calc(100vh - 52px - 58px);
    max-height: calc(100vh - 52px - 58px);
    height: calc(100vh - 52px - 58px);
  }

  .reels-fullpage .reel-info h4 {
    font-size: 14px;
  }

  .reels-fullpage .reel-info .reel-price {
    font-size: 17px;
  }

  .reels-fullpage .reel-actions {
    bottom: 80px;
  }

  .reels-fullpage .reel-action-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .reels-fullpage .reel-info {
    bottom: 24px;
  }
}

/* ============================================
   brands
   ============================================ */
.brands-track {
  overflow: visible;
  position: relative;
  padding: 10px 0;
}

.brand-item {
  width: 130px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 16px;
  transition: all var(--transition);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: all var(--transition);
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.brand-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* ============================================
   تقيم
   ============================================ */
.reviews-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  flex: 1;
  min-width: 0;
}

.reviews-grid::-webkit-scrollbar {
  height: 4px;
}

.reviews-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.reviews-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.review-card:hover {
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.review-name {
  font-weight: 700;
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-stars {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   إحصائيات المتجر
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 50px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: nowrap;
}

.stat-card {
  text-align: center;
  padding: 20px;
  flex: 1;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

[dir="rtl"] .stat-card::after {
  right: auto;
  left: 0;
}

.stat-card:last-child::after {
  display: none;
}

.stat-card i {
  font-size: 32px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.stat-card .stat-num {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ============================================
   footer
   ============================================ */
.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  padding: 0;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  padding: 0 !important;
}

.footer-social-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   
   ============================================ */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

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

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

.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-header h3 i {
  color: var(--primary);
}

.cart-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.cart-drawer-close:hover {
  background: var(--bg-light);
  color: var(--danger);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--border);
}

.cd-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cd-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
}

.cd-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cd-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.cd-item-qty {
  display: flex;
  align-items: center;
}

.cd-item-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--bg-light);
  transition: all var(--transition);
}

.cd-item-qty button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cd-item-qty span {
  width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cd-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 12px;
  transition: all var(--transition);
  flex-shrink: 0;
}

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

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 800;
}

.cart-drawer-total .val {
  color: var(--primary);
  font-size: 18px;
}

.cart-drawer-footer .btn {
  margin-top: 4px;
}

/* ============================================
  قائمة الهاتف
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--white);
  z-index: 151;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .mobile-menu {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-header .logo {
  font-size: 18px;
  font-weight: 800;
}

.mobile-menu-header .logo i {
  color: var(--primary);
}

.mobile-menu-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mobile-menu-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.mobile-menu-nav a,
.mobile-menu-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}

[dir="rtl"] .mobile-menu-nav a,
[dir="rtl"] .mobile-menu-nav button {
  text-align: right;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav button:hover,
.mobile-menu-nav a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.mobile-menu-nav i {
  width: 20px;
  text-align: center;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ============================================

   ============================================ */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 20px;
}

.toast {
  padding: 12px 20px;
  background: #333;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}


.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.no-results i {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--border);
}

.no-results h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

/* ============================================
   حركات
   ============================================ */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card.animated {
  animation: countUp 0.6s ease forwards;
}

/* ============================================
   التوافق
   ============================================ */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .countdown-banner {
    flex-wrap: wrap;
  }
}

@media (max-width: 1024px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar-search {
    width: 180px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .usage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 58px;
    width: 300px;
    max-width: 85vw;
    z-index: 150;
    border-radius: 0;
    border: none;
    max-height: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-bottom: 20px;
  }

  [dir="rtl"] .filter-sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  .filter-sidebar.active {
    transform: translateX(0);
  }

  .filter-close-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }

  body {
    padding-bottom: 58px;
  }

  .container {
    padding: 0 12px;
  }

  .announcement-bar {
    font-size: 11px;
    padding: 6px 12px;
  }

  .slide {
    height: 240px;
    padding: 24px;
  }

  .slide h2 {
    font-size: 22px;
  }

  .slide p {
    font-size: 13px;
  }

  .slide .slide-btn {
    padding: 10px 22px;
    font-size: 13px;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .category-card-name {
    font-size: 11px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .product-card-body {
    padding: 6px;
  }

  .product-name {
    font-size: 11px;
    min-height: 30px;
    margin-bottom: 3px;
  }

  .product-price {
    font-size: 12px;
  }

  .product-old-price {
    font-size: 10px;
  }

  .product-rating {
    display: none;
  }

  .product-card-actions {
    gap: 4px;
    margin-top: 4px;
  }

  .product-add-btn {
    padding: 6px;
    font-size: 14px;
  }

  .product-fav-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .section {
    padding: 20px 0;
  }

  .section-header h2 {
    font-size: 17px;
  }

  .countdown-banner {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .countdown-info h2 {
    font-size: 18px;
  }

  .countdown-unit {
    min-width: 50px;
    padding: 8px 10px;
  }

  .countdown-num {
    font-size: 22px;
  }

  .usage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .brand-item {
    width: 90px;
    height: 45px;
    font-size: 11px;
  }

  .cart-drawer {
    width: 100vw;
    bottom: 58px;
    top: 0;
  }

  .cart-drawer-overlay {
    bottom: 58px;
  }

  .navbar-search {
    display: none;
  }

  .navbar-inner {
    gap: 8px;
    height: 52px;
  }

  .navbar-logo {
    font-size: 18px;
    gap: 6px;
  }

  .navbar-logo i {
    font-size: 20px;
  }

  .navbar-actions [data-action="open-cart"] {
    display: none;
  }

  .nav-action-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .lang-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hamburger {
    font-size: 20px;
  }

  .carousel-wrapper {
    overflow: hidden;
  }

  .reels-container {
    padding-bottom: 8px;
  }

  .reel-card {
    min-width: 160px;
    max-width: 160px;
    height: 280px;
  }

  .reel-play-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .reel-action-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .reel-info h4 {
    font-size: 11px;
  }

  .reel-info .reel-price {
    font-size: 13px;
  }

  .toast-container {
    bottom: 68px;
    right: 12px;
    left: 12px;
  }

  [dir="rtl"] .toast-container {
    right: 12px;
    left: 12px;
  }

  .pd-grid {
    gap: 20px;
  }

  .pd-title {
    font-size: 20px;
  }

  .pd-price {
    font-size: 22px;
  }

  .cart-page-item-img {
    width: 70px;
    height: 70px;
  }

  .pd-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pd-tab-btn {
    padding: 10px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .footer-follow {
    grid-column: 1 / -1;
  }

  .footer-follow .footer-social-row {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-col a {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .slide {
    height: 180px;
  }

  .slide h2 {
    font-size: 18px;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .product-card-body {
    padding: 5px;
  }

  .product-name {
    font-size: 10px;
    min-height: 26px;
  }

  .product-price {
    font-size: 11px;
  }

  .product-fav-btn {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .product-badge {
    font-size: 8px;
    padding: 2px 6px;
  }

  .stat-card {
    padding: 16px 6px;
  }

  .stat-card .stat-num {
    font-size: 22px;
  }

  .stat-card i {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .stat-card .stat-label {
    font-size: 10px;
  }

  .countdown-timer {
    gap: 4px;
  }

  .countdown-unit {
    min-width: 48px;
    padding: 8px;
  }

  .countdown-num {
    font-size: 20px;
  }

  .countdown-sep {
    font-size: 20px;
  }

  .navbar-logo span {
    font-size: 16px;
  }

  .navbar-actions {
    gap: 4px;
  }

  .nav-action-btn,
  .lang-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* ============================================
   الاسهم
   ============================================ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.video-reels-section .carousel-arrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.video-reels-section .carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ============================================
    الفروع الجديدة
   ============================================ */
.new-branch-section {
  padding: 40px 0;
}

.branch-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.branch-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.branch-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.branch-info {
  flex: 1;
}

.branch-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.branch-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.branch-info p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 12px;
}

.branch-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.9;
}

.branch-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .branch-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .branch-details {
    justify-content: center;
  }

  .branch-info h3 {
    font-size: 18px;
  }
}

/* ============================================
 تفاصيل المنتج  الصورة الاضافية
   ============================================ */
.pd-images-right {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.pd-thumbs-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pd-thumbs-side .pd-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}

.pd-thumbs-side .pd-thumb.active {
  border-color: var(--primary);
}

.pd-thumbs-side .pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-images-right .pd-main-img {
  flex: 1;
  margin-bottom: 0;
}

/* ============================================
   hori scrol
   ============================================ */
.pd-accessories {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 0;
  margin-inline: 0;
  min-width: 0;
}

.accessories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 8px;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.accessories-scroll::-webkit-scrollbar {
  height: 3px;
}

.accessories-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.accessory-mini {
  min-width: 110px;
  max-width: 110px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  scroll-snap-align: start;
}

.accessory-mini:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.accessory-mini-img {
  width: 70px;
  height: 70px;
  margin: 0 auto 6px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-light);
}

.accessory-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accessory-mini-name {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  color: var(--text);
}

.accessory-mini-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .accessory-mini {
    min-width: 95px;
    max-width: 95px;
    padding: 6px;
  }

  .accessory-mini-img {
    width: 58px;
    height: 58px;
  }

  .accessory-mini-name {
    font-size: 9px;
  }

  .accessory-mini-price {
    font-size: 11px;
  }
}

/* ============================================
   نظام ال grif
   ============================================ */
.categories-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 20px !important;
}

.categories-grid-large .category-card {
  min-height: 180px;
}

.categories-grid-large .category-card-img {
  height: 140px;
}

@media (max-width: 768px) {
  .categories-grid-large {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .categories-grid-large .category-card {
    min-height: 120px;
  }

  .categories-grid-large .category-card-img {
    height: 90px;
  }
}

/* ============================================
   تحريك العلامة
   ============================================ */
.marquee-track {
  overflow: hidden;
  position: relative;
}

.marquee-inner {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-inner.marquee-slow {
  animation-duration: 35s;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

[dir="rtl"] .marquee-inner {
  animation-name: marqueeScrollRTL;
}

@keyframes marqueeScrollRTL {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

/* ============================================
   العلامات التجارية
   ============================================ */
.brand-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.brand-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.brand-modal {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.brand-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 14px;
  transition: all var(--transition);
}

[dir="rtl"] .brand-modal-close {
  right: auto;
  left: 12px;
}

.brand-modal-close:hover {
  background: var(--danger);
}

.brand-modal-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-modal-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.brand-modal-logo {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-modal-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-modal-body {
  padding: 24px;
}

.brand-modal-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.brand-modal-body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .brand-modal-cover {
    height: 150px;
  }

  .brand-modal-body {
    padding: 16px;
  }

  .brand-modal-body h2 {
    font-size: 18px;
  }
}

/* ============================================
   الفروع
   ============================================ */
.branches-section {
  padding: 40px 0;
}

.branch-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  min-width: 220px;
  flex-shrink: 0;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.branch-card-mini:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.branch-card-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-bg);
}

.branch-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.branch-card-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.branch-card-loc i {
  color: var(--primary);
  font-size: 11px;
}

/* ============================================
   headers
   ============================================ */
.stats-header {
  text-align: center;
  margin-bottom: 30px;
}

.stats-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.stats-header h2 i {
  margin-left: 8px;
}

[dir="rtl"] .stats-header h2 i {
  margin-left: 0;
  margin-right: 8px;
}

.stats-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}


.floating-contact {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all var(--transition);
  text-decoration: none;
}

[dir="rtl"] .floating-contact {
  left: auto;
  right: 20px;
}

.floating-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 72px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}



.datasheet-content,
.guide-content {
  padding: 8px 0;
}

.datasheet-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.datasheet-item>i {
  font-size: 36px;
  color: var(--danger);
  flex-shrink: 0;
}

.datasheet-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.datasheet-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.datasheet-item .btn {
  flex-shrink: 0;
  margin-right: auto;
}

[dir="rtl"] .datasheet-item .btn {
  margin-right: 0;
  margin-left: auto;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.guide-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.guide-step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ============================================
عرض ف شكل موديل 
   ============================================ */
.quick-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.quick-preview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quick-preview-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: qpSlideUp 0.3s ease;
}

@keyframes qpSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.quick-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  transition: all var(--transition);
}

[dir="rtl"] .quick-preview-close {
  right: auto;
  left: 12px;
}

.quick-preview-close:hover {
  background: var(--danger);
  color: #fff;
}

.qp-body {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.qp-img {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
}

.qp-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.qp-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.qp-rating {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
}

.qp-rating span {
  color: var(--text-muted);
  font-size: 12px;
}

.qp-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.qp-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.qp-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.qp-discount {
  font-size: 12px;
  background: var(--danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.qp-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qp-actions .btn {
  font-size: 13px;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  .qp-body {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .qp-img {
    width: 100%;
    max-height: 200px;
  }

  .qp-img img {
    max-height: 200px;
    object-fit: contain;
  }

  .qp-title {
    font-size: 16px;
  }

  .qp-price {
    font-size: 18px;
  }

  .qp-actions .btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .quick-preview-overlay {
    padding: 12px;
  }
}

/* ============================================
   تنسيقات الهاتف ا
   ============================================ */
@media (max-width: 768px) {

  .pd-images-right {
    flex-direction: row !important;
    gap: 8px;
    align-items: flex-start;
  }

  .pd-main-img {
    max-height: 70vh;
    min-height: 220px;
  }

  .pd-thumbs-side {
    flex-direction: column !important;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 280px;
    width: 54px;
    flex-shrink: 0;
  }

  .pd-thumbs-side .pd-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .pd-images-right .pd-main-img {
    flex: 1;
    margin-bottom: 0;
  }

  .pd-main-img img {
    border-radius: var(--radius-sm);
  }

  .pd-actions {
    flex-direction: column;
    gap: 8px;
  }

  .pd-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pd-tabs-nav {
    gap: 0;
  }

  .datasheet-item {
    flex-direction: column;
    text-align: center;
  }

  .datasheet-item .btn {
    margin: 8px auto 0;
  }

  .guide-step {
    gap: 12px;
  }

  .guide-step-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .stats-header h2 {
    font-size: 20px;
  }

  .stats-header p {
    font-size: 12px;
  }


  .branch-card-mini {
    padding: 10px 14px;
    min-width: 190px;
  }

  .marquee-inner {
    gap: 16px;
  }

  .floating-contact {
    left: auto;
    right: 12px;
    bottom: 70px;
  }
}

@media (max-width: 480px) {
  .pd-main-img {
    max-height: 65vh;
    min-height: 200px;
  }

  .pd-thumbs-side {
    max-height: 220px;
    width: 46px;
  }

  .pd-thumbs-side .pd-thumb {
    width: 42px;
    height: 42px;
  }

  .branch-card-mini {
    min-width: 170px;
    padding: 8px 12px;
  }

  .branch-card-img {
    width: 40px;
    height: 40px;
  }

  .floating-contact {
    bottom: 66px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}


.branches-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.branches-scroll::-webkit-scrollbar {
  height: 3px;
}

.branches-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.branches-scroll .branch-card-mini {
  scroll-snap-align: start;
  cursor: pointer;
}


.branch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.branch-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.branch-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: qpSlideUp 0.3s ease;
}

.branch-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  transition: all var(--transition);
}

[dir="rtl"] .branch-modal-close {
  right: auto;
  left: 12px;
}

.branch-modal-close:hover {
  background: var(--danger);
}

.branch-modal-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

.branch-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-modal-body {
  padding: 20px;
}

.branch-modal-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.branch-modal-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.branch-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.branch-detail-row i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.branch-detail-row strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .branch-modal {
    max-width: 95vw;
  }

  .branch-modal-img {
    height: 160px;
  }

  .branch-modal-body {
    padding: 16px;
  }

  .branch-modal-body h3 {
    font-size: 18px;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


.price-slider-track {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 20px 0 12px;
}

.price-slider-range {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  z-index: 1;
}

.price-slider-input {
  position: absolute;
  top: -8px;
  width: 100%;
  height: 22px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  margin: 0;
}

.price-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s ease;
}

.price-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.price-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}

.price-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.filter-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}

.filter-cat-label:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.filter-cat-label.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
}

.filter-cat-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filter-cat-name {
  flex: 1;
}

.filter-cat-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
}

.filter-cat-label.active .filter-cat-count {
  background: var(--primary);
  color: #fff;
}


.product-preview-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-preview-btn:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.product-add-btn .add-btn-text {
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .product-preview-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .product-add-btn .add-btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-preview-btn {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
}


@media (max-width: 768px) {
  .pd-actions {
    margin-bottom: 16px;
  }

  .product-detail-page {
    padding-bottom: 20px;
  }
}


.dragging {
  cursor: grabbing !important;
  user-select: none;
}

.dragging * {
  pointer-events: none;
}

/* ============================================
   PRODUCTS PAGE - CATEGORY BAR (top chips)
   ============================================ */
.products-cats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}
.cats-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cats-bar-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.cats-bar-scroll::-webkit-scrollbar { height: 0; }
.cats-bar-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--transition);
}
.cats-bar-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-bar-chip {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text-light);
}
.cat-bar-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-bar-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   SUBCATEGORIES GRID (image cards)
   ============================================ */
.subcats-section { padding: 16px 0 0; }
.subcats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.subcat-card {
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--bg-light);
  border: 2px solid transparent;
}
.subcat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.subcat-card.active { border-color: var(--primary); background: var(--primary-bg); }
.subcat-card-img {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 6px;
}
.subcat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.subcat-card:hover .subcat-card-img img { transform: scale(1.06); }
.subcat-card-name { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
@media (max-width: 768px) {
  .subcats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .subcat-card { padding: 6px; }
  .subcat-card-name { font-size: 11px; }
}
@media (max-width: 480px) {
  .subcats-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .subcat-card { padding: 4px; }
  .subcat-card-name { font-size: 10px; }
}

/* ============================================
   PRODUCTS SECTION (no top padding)
   ============================================ */
.products-section { padding-top: 16px; }

/* ============================================
   MOBILE FILTER HANDLE (small floating icon)
   ============================================ */
.mobile-filter-handle {
  display: none;
  position: fixed;
  bottom: 72px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,87,34,0.35);
  z-index: 99;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
[dir="rtl"] .mobile-filter-handle { left: auto; right: 16px; }
.mobile-filter-handle:hover { transform: scale(1.1); }
@media (max-width: 1024px) {
  .mobile-filter-handle { display: flex; }
}

/* Hide old filter toggle btn */
.filter-toggle-btn { display: none !important; }

/* ============================================
   BRANDS - STATIC SCROLL (no marquee)
   ============================================ */
.brands-scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scrollbar-width: none;
  cursor: grab;
}
.brands-scroll-row::-webkit-scrollbar { height: 0; }
.brands-scroll-row .brand-item {
  opacity: 1 !important;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .products-cats-bar { top: 52px; }
}

/* ============================================
   BRAND MODAL - PRODUCTS GRID
   ============================================ */
.brand-modal-products { margin-top: 20px; }
.brand-modal-products h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.brand-modal-products h3 i { color: var(--primary); }
.brand-modal-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .brand-modal-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
.load-more-wrap {
  text-align: center;
  padding: 24px 0;
}
.load-more-btn {
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  gap: 6px;
  display: inline-flex;
  align-items: center;
}
.load-more-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}