/* ==========================================================================
   ZABATAHA AUTO SPARE - CSS DESIGN SYSTEM (AUTO SPARE MATCHING THEME)
   ========================================================================== */

:root {
  --brand-red: #db3030;
  --brand-red-hover: #b92b2b;
  --brand-navy: #0e2f44;
  --brand-navy-hover: #081d2b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --font-cairo: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-outfit: 'Outfit', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

body {
  font-family: var(--font-cairo);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.app-view {
  display: none;
}
.app-view.active {
  display: block;
}

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

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.font-outfit {
  font-family: var(--font-outfit);
}

.text-red { color: var(--brand-red); }
.text-navy { color: var(--brand-navy); }
.text-success { color: #16a34a; }
.text-gold { color: #d97706; }
.text-white { color: #ffffff; }

/* ===== TOAST NOTIFICATION STACK ===== */
#app-toast-stack {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-right: 4px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.app-toast.success { border-right-color: #16a34a; }
.app-toast.error { border-right-color: #dc2626; }
.app-toast.info { border-right-color: var(--brand-navy); }

.app-toast-icon {
  font-size: 18px;
  color: var(--brand-red);
}
.app-toast.success .app-toast-icon { color: #16a34a; }
.app-toast.error .app-toast-icon { color: #dc2626; }

.app-toast-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== ANNOUNCEMENT BAR ===== */
.top-announcement-bar {
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.divider { opacity: 0.4; }

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-db {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.btn-text-link {
  color: #fbbf24;
  font-weight: 700;
  font-size: 12px;
  transition: opacity 0.2s;
}
.btn-text-link:hover { opacity: 0.85; }

/* ===== MAIN HEADER ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(219, 48, 48, 0.3);
}

.brand-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-outfit);
  color: var(--brand-red);
  font-size: 16px;
  font-weight: 800;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-search-wrapper {
  flex: 1;
  max-width: 540px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 50px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #f1f5f9;
  font-size: 13.5px;
  transition: all 0.2s;
}

.search-input-group input:focus {
  background: #ffffff;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(219, 48, 48, 0.15);
}

.search-btn {
  position: absolute;
  left: 6px;
  width: 36px;
  height: 34px;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--brand-red-hover); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-navy);
  background: #f1f5f9;
  transition: all 0.2s;
}
.nav-btn:hover { background: #e2e8f0; }

.cart-btn {
  position: relative;
  background: var(--brand-red);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(219, 48, 48, 0.3);
  transition: all 0.2s;
}
.cart-btn:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

.cart-count-badge {
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
  margin-bottom: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(219, 48, 48, 0.1);
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1.3;
  margin-bottom: 14px;
}

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

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 580px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.btn-primary-red {
  background: var(--brand-red);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(219, 48, 48, 0.3);
  transition: all 0.2s;
}
.btn-primary-red:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
}

.btn-navy-outline {
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-navy-outline:hover {
  background: var(--brand-navy-hover);
  transform: translateY(-2px);
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 280px;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  display: none;
  background: transparent;
}

.overlay-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-red);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.overlay-text {
  font-size: 13px;
  font-weight: 700;
}

/* ===== VEHICLE FILTER BAR ===== */
.filter-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.filter-icon {
  width: 44px;
  height: 44px;
  background: rgba(14, 47, 68, 0.08);
  color: var(--brand-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.filter-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-navy);
}

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

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
}

.filter-controls select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.filter-controls select:focus {
  border-color: var(--brand-navy);
}

.btn-reset {
  height: 44px;
  padding: 0 18px;
  background: #f1f5f9;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-reset:hover { background: #e2e8f0; }

/* ===== SECTION BLOCKS ===== */
.section-block {
  margin-bottom: 40px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-navy);
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.link-btn {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.link-btn:hover { opacity: 0.8; }

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.category-img-box {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ===== PRODUCTS GRID & PRODUCT CARDS (NOON/AUTO SPARE DUAL BUTTON MECHANISM) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  position: relative;
}

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

.product-image-box {
  position: relative;
  height: 190px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.badge-oem-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 47, 68, 0.9);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-outfit);
}

.badge-brand-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.product-info-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.part-number-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-red);
  font-family: var(--font-outfit);
  margin-bottom: 4px;
}

.product-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.product-title:hover { color: var(--brand-red); }

.product-compat {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-price-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.price-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-navy);
}

.stock-status {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 8px;
  border-radius: 50px;
}

.stock-status.out {
  color: #dc2626;
  background: #fef2f2;
}

/* ===== DUAL BUTTON ACTIONS (AUTO SPARE / NOON STYLE) ===== */
.product-actions-group {
  display: flex;
  gap: 8px;
}

.btn-add-cart-std {
  flex: 1;
  height: 40px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-add-cart-std:hover { background: var(--brand-red-hover); }

.noon-qty-control {
  flex: 1;
  height: 40px;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.noon-qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}
.noon-qty-btn:hover { background: rgba(0, 0, 0, 0.15); }

.noon-qty-val {
  font-size: 14px;
  font-weight: 900;
  font-family: var(--font-outfit);
}

.btn-buy-now {
  flex: 1;
  height: 40px;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-buy-now:hover { background: var(--brand-navy-hover); }

/* ===== CATALOG & CHECKOUT VIEWS ===== */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.search-status-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--brand-red);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-tag {
  cursor: pointer;
  color: var(--brand-red);
}

/* Checkout view */
.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-bottom: 40px;
}

.checkout-form-card, .order-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.checkout-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.checkout-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.required { color: var(--brand-red); }

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--brand-red);
}

.payment-method-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-order {
  width: 100%;
  height: 48px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(219, 48, 48, 0.3);
  margin-top: 10px;
  transition: background 0.2s;
}
.btn-submit-order:hover { background: var(--brand-red-hover); }

.summary-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-navy);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.summary-items-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.summary-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
}

.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 2px solid var(--brand-navy);
  font-size: 16px;
  font-weight: 900;
  color: var(--brand-navy);
}

.summary-price { font-size: 22px; color: var(--brand-red); }

.checkout-assurance {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
}

/* ===== CART DRAWER ===== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
}

.cart-drawer-overlay.active { display: block; }

.cart-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

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

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-navy);
}

.cart-close-btn {
  font-size: 20px;
  color: var(--text-muted);
}

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

.cart-item-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 12px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-part {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-red);
  font-family: var(--font-outfit);
}

.cart-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--brand-navy);
  margin-top: 4px;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.btn-remove-item {
  color: #dc2626;
  font-size: 13px;
}

.cart-qty-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 6px;
}

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

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.cart-total-amount { font-size: 20px; color: var(--brand-red); }

.cart-notice {
  font-size: 11.5px;
  color: #16a34a;
  margin-bottom: 14px;
}

.btn-checkout {
  width: 100%;
  height: 44px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay.active { display: flex; }

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.admin-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 20px;
  color: var(--text-muted);
}

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

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.admin-tab.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: right;
}

th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--brand-navy);
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btn-add-product {
  background: var(--brand-red);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
}

.excel-form-box {
  background: #f8fafc;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--brand-navy);
  color: #ffffff;
  padding-top: 40px;
  margin-top: 60px;
}

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

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 10px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #cbd5e1;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-red); }

.footer-bottom {
  background: #081d2b;
  padding: 16px 0;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-box { display: none; }
  .checkout-wrapper { grid-template-columns: 1fr; }
  .filter-controls { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-container { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .header-search-wrapper { order: 3; min-width: 100%; margin-top: 10px; }
  .hero-title { font-size: 24px; }
}

/* ===== AUTO SPARE TARGET THEME CUSTOM DESIGN SYSTEM ===== */

/* Auto Spare Logo Badge */
.logo-badge-as {
  background: radial-gradient(circle at 30% 30%, #ff5252, #e53935);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  white-space: nowrap;
}
.logo-img-as {
  height: 48px;
  max-height: 52px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
}
.logo-img-as:hover {
  transform: scale(1.05);
}

/* Header Nav Links */
.main-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav-links .nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  padding: 6px 4px;
  transition: color 0.2s;
}

.main-nav-links .nav-link:hover,
.main-nav-links .nav-link.active {
  color: #e53935;
}

.main-nav-links .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #e53935;
  border-radius: 2px;
}

.btn-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-login-pill:hover { background: #e2e8f0; }

.btn-add-car {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.btn-add-car:hover { background: #1e293b; transform: translateY(-1px); }

.cart-icon-badge {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0f172a;
  transition: background 0.2s;
}
.cart-icon-badge:hover { background: #e2e8f0; }

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53935;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auto Spare Hero Banner & Dynamic Slider */
.hero-as-banner {
  position: relative;
  background: #0b2238;
  color: #ffffff;
  min-height: 480px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 1.2s ease-out;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  padding: 60px 0 75px 0;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-as-overlay {
  display: none;
  background: transparent;
}

.hero-as-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 20px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-slider-dot.active {
  width: 32px;
  border-radius: 12px;
  background: #e53935;
  border-color: #e53935;
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.7);
}

.hero-text-side {
  max-width: 600px;
}

.hero-as-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-as-sub {
  font-size: 20px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.hero-as-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-shop-now {
  background: #22c55e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.25s;
}
.btn-shop-now:hover {
  background: #16a34a;
  transform: scale(1.03);
}

.installment-badge {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

/* Vehicle Filter Box ("اختر السيارة والقسم المطلوب") */
.car-filter-wrapper {
  margin-top: -55px;
  position: relative;
  z-index: 10;
}

.filter-box-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.09);
  border: 1px solid #e2e8f0;
}

.filter-box-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  text-align: center;
}

.filter-dropdowns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.filter-select-group select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.2s;
  cursor: pointer;
}
.filter-select-group select:focus {
  border-color: #e53935;
  background-color: #ffffff;
}

.btn-filter-search {
  height: 48px;
  padding: 0 28px;
  background: #e53935;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-filter-search:hover {
  background: #c62828;
  transform: translateY(-1px);
}

/* Trust Features Bar */
.trust-features-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  margin-top: 24px;
  margin-bottom: 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.trust-item {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.trust-item i {
  color: #38bdf8;
  font-size: 16px;
}

/* Sections Styling */
.section-as-header {
  margin-bottom: 24px;
}

.section-as-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f2b48;
}

.section-sub-title {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.link-more-btn {
  font-size: 13.5px;
  font-weight: 800;
  color: #e53935;
  transition: opacity 0.2s;
}
.link-more-btn:hover { opacity: 0.8; }

/* Categories Capsule Grid (Target Site Parity) */
.categories-capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.category-capsule-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-capsule-card:hover {
  border-color: #e53935;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.12);
}

.category-capsule-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #e53935;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.category-capsule-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

/* Product Cards (Auto Spare Target Design - Matches Hand-drawn Sketch) */
.product-card-as {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.product-card-as:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.09);
  border-color: #cbd5e1;
}

.product-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  width: 100%;
  min-width: 0;
}

.top-badge-wrapper {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.badge-tag {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  color: #ffffff;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-tag.new { background: #059669; }
.badge-tag.offer { background: #d97706; }
.badge-tag.discount { background: #dc2626; }
.badge-tag.seller { background: #e11d48; }
.badge-tag.request { background: #0284c7; }
.badge-tag.generic { background: #475569; }

.product-brand-tag-top {
  font-size: 12px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #1e293b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.product-image-container {
  width: 100%;
  height: 155px;
  margin: 6px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.floating-heart {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}
.floating-heart:hover,
.floating-heart.active {
  color: #e53935;
  background: #ffffff;
  border-color: #fecdd3;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.product-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  cursor: pointer;
  word-break: break-word;
  min-width: 0;
}
.product-card-title:hover {
  color: #e53935;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
  flex-wrap: wrap;
}

.price-box del {
  font-size: 12px;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  text-decoration: line-through;
}

.price-current {
  font-size: 17.5px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
}
.price-current span {
  font-size: 12.5px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #475569;
}

.product-card-supplier {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-card-supplier i {
  color: #0284c7;
  font-size: 12px;
  flex-shrink: 0;
}
.product-card-supplier a,
.product-card-supplier span {
  color: #0f172a;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

.product-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.btn-add-to-cart-icon {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-add-to-cart-icon:hover {
  background: #e53935;
  border-color: #e53935;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.btn-fast-buy-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ea580c;
  border: 1px solid #ea580c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-fast-buy-icon:hover {
  background: #c2410c;
  border-color: #c2410c;
  transform: scale(1.05);
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.25s ease;
}

.brand-card:hover {
  border-color: #e53935;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.brand-card img {
  max-width: 65px;
  max-height: 45px;
  object-fit: contain;
}

.brand-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

/* Promotional Callout Banner */
.promo-banner-card {
  margin: 40px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 36px 40px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.promo-banner-content h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.promo-banner-content p {
  font-size: 14.5px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.btn-banner-action {
  background: #e53935;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 30px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.btn-banner-action:hover {
  background: #c62828;
  transform: scale(1.02);
}

.social-icon-circle {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s;
}
.social-icon-circle:hover {
  background: #e53935;
}

@media (max-width: 991px) {
  .filter-dropdowns-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-filter-search {
    grid-column: span 2;
    justify-content: center;
  }
  .hero-as-title { font-size: 32px; }
}

@media (max-width: 640px) {
  .filter-dropdowns-grid {
    grid-template-columns: 1fr;
  }
  .btn-filter-search {
    grid-column: span 1;
  }
  .hero-as-title { font-size: 26px; }
  .categories-capsule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Circular Subcategories Grid Styling */
.subcat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px;
}

.subcat-circle-card:hover {
  transform: translateY(-5px);
}

.subcat-circle-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.subcat-circle-card:hover .subcat-circle-img-wrap {
  border-color: #e53935;
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.15);
}

.subcat-circle-img-wrap img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.subcat-circle-img-wrap i {
  font-size: 38px;
  color: #e53935;
}

.subcat-circle-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  text-align: center;
  max-width: 125px;
  transition: color 0.2s ease;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE ENGINE (ALL SCREENS)
   ========================================================================== */

/* Large Laptops & Desktops (1200px and down) */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

/* Tablets & Medium Screens (992px and down) */
@media (max-width: 992px) {
  .top-announcement-bar {
    display: none;
  }

  .header-container {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }

  .brand-logo {
    max-width: 60%;
  }
  .logo-img-as {
    height: 34px !important;
  }

  .logo-badge-as {
    font-size: 13.5px !important;
    padding: 4px 10px !important;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-login-pill {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  /* Make Main Nav Links a sleek horizontal scrollable pill bar on mobile */
  .main-nav-links {
    width: 100%;
    order: 3;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding: 6px 2px 8px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid #f1f5f9;
  }
  .main-nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 12px !important;
    padding: 5px 14px !important;
    background: #f1f5f9;
    border-radius: 20px;
    flex-shrink: 0;
    font-weight: 700;
  }
  .nav-link.active {
    background: var(--brand-red);
    color: #ffffff !important;
  }

  .checkout-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .categories-capsule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Devices & Small Tablets (768px and down) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .car-filter-wrapper {
    margin: 15px auto 20px !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-box-card {
    padding: 16px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }

  .filter-dropdowns-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .btn-filter-search {
    grid-column: span 1 !important;
    width: 100% !important;
  }

  .hero-as-banner {
    border-radius: 12px;
    margin: 10px;
  }

  .hero-slide-item {
    min-height: 220px;
    padding: 18px 14px;
  }

  .hero-as-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .hero-as-desc {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-card-as {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .product-card-top-bar {
    gap: 4px !important;
    margin-bottom: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .top-badge-wrapper {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .badge-tag {
    font-size: 10px !important;
    padding: 2.5px 6px !important;
    border-radius: 4px !important;
    max-width: 85px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .product-brand-tag-top {
    font-size: 10px !important;
    padding: 2.5px 5px !important;
    border-radius: 4px !important;
    max-width: 60px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 0 !important;
  }

  .product-image-container {
    height: 115px !important;
    margin: 4px 0 6px 0 !important;
    padding: 4px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .floating-heart {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
    top: 4px !important;
    left: 4px !important;
  }

  .product-card-body {
    gap: 3px !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .product-card-title {
    font-size: 12px !important;
    height: 33px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    word-break: break-word !important;
    min-width: 0 !important;
  }

  .price-box {
    gap: 4px !important;
    align-items: center !important;
    margin-top: 1px !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }

  .price-box del {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .price-current {
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .price-current span {
    font-size: 10.5px !important;
  }

  .product-card-supplier {
    font-size: 9.5px !important;
    padding: 3px 5px !important;
    border-radius: 6px !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-card-supplier i {
    font-size: 9px !important;
    flex-shrink: 0 !important;
  }

  .product-card-supplier a,
  .product-card-supplier span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
    max-width: 100% !important;
    vertical-align: bottom !important;
  }

  .product-card-footer {
    margin-top: 8px !important;
    padding-top: 8px !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-add-to-cart-icon {
    height: 34px !important;
    font-size: 10.5px !important;
    padding: 0 4px !important;
    border-radius: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    gap: 3px !important;
  }

  .btn-fast-buy-icon {
    width: 32px !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

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

  .cart-drawer-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .checkout-form-card, .order-summary-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .social-icon-circle {
    margin: 0 auto;
  }
}

/* Small Mobile Phones (480px and down) */
@media (max-width: 480px) {
  .hero-as-title {
    font-size: 17px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-image-container {
    height: 110px !important;
    margin: 4px 0 6px 0 !important;
  }

  .subcat-circle-img-wrap {
    width: 75px;
    height: 75px;
    padding: 8px;
  }

  .subcat-circle-card {
    padding-bottom: 14px !important;
  }

  .subcat-circle-title {
    font-size: 11px;
    max-width: 85px;
    line-height: 1.3;
  }

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

/* ===== MAIN CATEGORIES CAPSULES DESIGN SYSTEM ===== */
.categories-capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.category-capsule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.category-capsule-card:hover {
  border-color: #db3030;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(219, 48, 48, 0.12);
}

.category-capsule-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee2e2;
  color: #db3030;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.category-capsule-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0e2f44;
  text-align: right;
  flex: 1;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subcat-circle-card:hover .subcat-circle-title {
  color: #e53935;
}

/* ==========================================================================
   LOVABLE STYLE EXTENSIONS - DARK HERO & VISUAL CATEGORY & MAKES CARDS
   ========================================================================== */

/* Section Pill Badges & Titles */
.section-pill-tag {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.headline-orange-bg {
  position: relative;
  display: inline-block;
}

/* Dark Hero Banner Grid & Embedded Filter Card */
.dark-hero-section {
  background: linear-gradient(135deg, #090d16 0%, #111827 50%, #030712 100%);
  color: #ffffff;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1f2937;
}

.hero-container-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title-main {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.hero-title-main .highlight-text {
  color: #f97316;
  background: -webkit-linear-gradient(45deg, #f97316, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: #9ca3af;
  font-size: 17px;
  margin-top: 10px;
  font-weight: 500;
}

.hero-action-buttons {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(234, 88, 12, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.hero-stats-row {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #f97316;
}

.hero-stat-item span {
  font-size: 12.5px;
  color: #9ca3af;
}

/* Floating Filter Search Card */
.hero-filter-box {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.filter-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f97316;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.filter-card-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.filter-card-header p {
  font-size: 12px;
  color: #9ca3af;
}

.filter-fields-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.filter-input-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.filter-input-group select option {
  background: #111827;
  color: #ffffff;
}

.filter-input-group select:focus {
  border-color: #f97316;
}

.btn-execute-car-search {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px;
  border-radius: 12px;
  margin-top: 6px;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-execute-car-search:hover {
  opacity: 0.92;
}

/* ===== HORIZONTAL CAR SEARCH BAR (Below Hero) ===== */
.car-search-bar-below-hero {
  background: linear-gradient(135deg, #0e1a2e 0%, #111827 100%);
  border-bottom: 2px solid #f97316;
  padding: 20px 0;
}

.car-search-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.car-search-bar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 180px;
}

.car-search-bar-fields {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.car-search-bar-field {
  flex: 1;
  min-width: 140px;
}

.car-search-bar-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 5px;
}

.car-search-bar-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-cairo);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.car-search-bar-field select option {
  background: #111827;
  color: #ffffff;
}

.car-search-bar-field select:focus {
  border-color: #f97316;
  outline: none;
}

.car-search-bar-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-family: var(--font-cairo);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  flex-shrink: 0;
}

.car-search-bar-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .car-search-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .car-search-bar-fields {
    width: 100%;
    flex-direction: column;
  }
  .car-search-bar-field {
    width: 100%;
  }
  .car-search-bar-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== VISUAL CATEGORIES GRID (B1-B8 CARDS MATCHING SCREENSHOT 3) ===== */
.categories-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.visual-category-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.visual-category-card:hover {
  border-color: #f97316;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

.visual-cat-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: #090d16;
  overflow: hidden;
}

.visual-cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-category-card:hover .visual-cat-img-wrapper img {
  transform: scale(1.06);
}

.cat-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-outfit);
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.visual-cat-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.visual-cat-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.visual-cat-subtitle {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
}

.visual-cat-action-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #f97316;
  font-weight: 700;
  font-size: 13px;
  margin-top: 12px;
}

/* ===== CAR MAKES CARDS GRID (MATCHING SCREENSHOT 2) ===== */
.car-makes-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.car-make-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.car-make-card:hover {
  border-color: #f97316;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.make-card-index {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-outfit);
}

.make-card-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.make-card-logo-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.make-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.make-card-models-count {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Orange "ماركة أخرى" Special Card (Index 20 / End) */
.car-make-card.card-other-make {
  background: #fff7ed;
  border: 2px dashed #f97316;
}

.car-make-card.card-other-make:hover {
  background: #ffedd5;
  border-style: solid;
}

.card-other-make .make-card-logo-circle {
  background: #f97316;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  border: none;
}

.card-other-make .make-card-title {
  color: #c2410c;
}

.card-other-make .make-card-models-count {
  color: #ea580c;
}

/* ===== TRUSTED MANUFACTURERS INFINITE TICKER SLIDER ===== */
.brands-ticker-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-top: 20px;
  direction: ltr !important;
}

/* Linear scroll animation */
.brands-ticker-track {
  display: flex;
  width: max-content;
  gap: 15px;
  padding-right: 15px !important; /* Offset gap at the end to prevent jump when resetting */
  animation: brandsTickerScroll 45s linear infinite;
  direction: ltr !important;
}

/* Pause the animation on hover for interactive feel */
.brands-ticker-track:hover {
  animation-play-state: paused;
}

.trusted-brand-box {
  background: #ffffff;
  padding: 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.trusted-brand-box:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.trusted-brand-name {
  font-family: var(--font-outfit);
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.trusted-brand-tag {
  font-size: 10px;
  color: #f97316;
  margin-top: 4px;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

@keyframes brandsTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate exactly 50% of the total track width since we duplicate the list */
    transform: translateX(-50%);
  }
}

/* ===== BRAND CAR MODELS GALLERY PAGE ===== */
.brand-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.brand-hero-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  padding: 6px;
  border: 1px solid #e2e8f0;
}

.car-models-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.car-model-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.car-model-card:hover {
  border-color: #f97316;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.car-model-img-wrapper {
  height: 140px;
  width: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.car-model-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-model-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.car-model-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.car-model-years {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.car-model-btn {
  margin-top: 12px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s ease;
}

.car-model-card:hover .car-model-btn {
  background: #f97316;
  color: #ffffff;
}

/* ===== CUSTOM REQUEST MODAL ("طلب قطعة غيار - أخرى") ===== */
.custom-req-modal-card {
  max-width: 650px !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  border-radius: 20px !important;
  padding: 30px !important;
  margin: auto;
}

@media (max-width: 640px) {
  .custom-req-modal-card {
    padding: 20px 16px !important;
    max-height: calc(100vh - 20px) !important;
  }
  .form-row-2col,
  .form-row-3col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.custom-req-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.req-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff7ed;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.custom-req-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.custom-req-header p {
  font-size: 13px;
  color: #64748b;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.file-upload-dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-upload-dropzone:hover {
  border-color: #f97316;
  background: #fff7ed;
}

.file-upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#upload-preview-container i {
  font-size: 28px;
  color: #f97316;
  display: block;
  margin-bottom: 6px;
}

#upload-preview-container span {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.btn-submit-custom-req {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}

@media (max-width: 900px) {
  .hero-container-grid {
    grid-template-columns: 1fr;
  }
  .hero-title-main {
    font-size: 32px;
  }
  .form-row-2col, .form-row-3col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .categories-visual-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .visual-category-card {
    border-radius: 12px !important;
  }
  .visual-cat-img-wrapper {
    height: 110px !important;
  }
  .visual-cat-content {
    padding: 10px !important;
  }
  .visual-cat-title {
    font-size: 14px !important;
  }
  .visual-cat-subtitle {
    font-size: 11px !important;
    height: 32px !important;
    line-height: 1.3 !important;
  }
  .visual-cat-action-link {
    font-size: 11px !important;
    margin-top: 6px !important;
  }

  /* Responsive Car Makes Cards Grid - 2 columns on mobile */
  .car-makes-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .car-make-card {
    padding: 12px 8px !important;
    border-radius: 12px !important;
  }
  .make-card-logo-circle {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 6px !important;
  }
  .make-card-logo-circle img {
    max-width: 24px !important;
    max-height: 24px !important;
  }
  .make-card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
  }
  .make-card-models-count {
    font-size: 10px !important;
  }
  .make-card-index {
    font-size: 9px !important;
    top: 6px !important;
    right: 8px !important;
  }
}

/* ================================================================
   MOBILE HERO BANNER – Premium Redesign (≤768px)
   ================================================================ */
@media (max-width: 768px) {

  /* ── Section & Slider: responsive mobile height, edge-to-edge, no radius ── */
  #sec-hero,
  .hero-as-banner {
    min-height: 210px !important;
    height: 210px !important;
    max-height: 210px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-slider {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── Each slide: fill the slider ── */
  .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background-position: center center !important;
    background-size: cover !important;
    overflow: hidden !important;
    border-radius: 0 !important;
  }

  /* ── Overlay: bottom-heavy gradient so image shows at top ── */
  .hero-as-overlay {
    display: none !important;
    background: transparent !important;
  }

  /* ── Content: sits at the bottom of the slide ── */
  .hero-as-content {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    padding: 0 16px 40px 16px !important;
    text-align: center !important;
    display: block !important;
  }

  /* ── Text block ── */
  .hero-text-side {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* ── Title: bold, readable, drop-shadow for contrast ── */
  .hero-as-title {
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.38 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55) !important;
  }

  /* ── Subtitle ── */
  .hero-as-sub {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
    color: #b8cfe0 !important;
    white-space: normal !important;
  }

  /* ── CTA row: button + badge stacked ── */
  .hero-as-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
  }

  /* ── Shop Now: full-width pill button ── */
  .btn-shop-now {
    width: 100% !important;
    max-width: 260px !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 11px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45) !important;
    display: flex !important;
  }

  /* ── Badge ── */
  .installment-badge {
    font-size: 10.5px !important;
    color: rgba(255,255,255,0.55) !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* ── Dots: centered at bottom ── */
  .hero-slider-dots {
    position: absolute !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 6 !important;
  }

  /* ── Dots size tweak for small screens ── */
  .hero-slider-dot {
    width: 8px !important;
    height: 8px !important;
  }
  .hero-slider-dot.active {
    width: 22px !important;
  }
}

@media (max-width: 480px) {
  #sec-hero,
  .hero-as-banner,
  .hero-slider {
    min-height: 180px !important;
    height: 180px !important;
    max-height: 180px !important;
  }
}

/* ==========================================================================
   USER AUTHENTICATION & PROFILE SYSTEM STYLES
   ========================================================================== */
.user-auth-box {
  display: inline-flex;
  align-items: center;
}

.btn-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-user-pill:hover {
  border-color: var(--brand-red);
  background: #fff5f5;
}
.btn-user-pill .caret-icon {
  font-size: 10px;
  margin-right: 2px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-light);
  padding: 8px 0;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.user-dropdown-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
}
.user-dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}
.user-dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.user-dropdown-item:hover {
  background: #f1f5f9;
  color: var(--brand-red);
}
.user-dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Modal Overlay & Card */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.auth-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.94);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.auth-modal-overlay.active .auth-modal-card {
  transform: scale(1);
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.auth-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}
.auth-tabs-header {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.auth-tab-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: #ffffff;
  color: var(--brand-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-form-title {
  margin-bottom: 20px;
  text-align: center;
}
.auth-form-title h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.auth-form-title p {
  font-size: 12.5px;
  color: #64748b;
}
.auth-alert-box {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.auth-alert-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}
.auth-input-group {
  margin-bottom: 14px;
}
.auth-input-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.auth-input-group label i {
  color: var(--brand-red);
}
.auth-input-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}
.auth-input-group input:focus {
  border-color: var(--brand-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(219, 48, 48, 0.12);
}

/* Password Input Wrapper & Eye Toggle Button */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrap input {
  width: 100%;
  padding-left: 42px !important;
}
.btn-toggle-eye {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 5;
}
.btn-toggle-eye:hover {
  color: var(--brand-red);
}
.auth-submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 20px;
}
.auth-submit-btn:hover {
  background: var(--brand-red-hover);
}
.auth-submit-btn.secondary-btn {
  background: #64748b;
}
.auth-submit-btn.secondary-btn:hover {
  background: #475569;
}
.auth-switch-prompt {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
}
.auth-switch-prompt a {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: underline;
}

/* User Profile Modal */
.profile-card {
  text-align: center;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fef2f2;
  color: var(--brand-red);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 2px solid #fca5a5;
}
.profile-badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.profile-details-list {
  margin-top: 22px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prof-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}
.prof-detail-item i {
  color: var(--brand-red);
  font-size: 17px;
}
.prof-detail-item .lbl {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}
.prof-detail-item strong {
  font-size: 14px;
  color: #0f172a;
}

/* User Orders Modal */
.orders-modal-card {
  max-width: 520px;
}
.user-order-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.order-card-top {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 8px;
}
.order-date-tag {
  font-size: 11.5px;
  color: #94a3b8;
  margin-right: 6px;
}
.status-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.status-pending { background: #fef3c7; color: #d97706; }
.status-processing { background: #dbeafe; color: #2563eb; }
.status-completed { background: #dcfce7; color: #16a34a; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

/* ============================================================
   NEW TARGET MATCHING MAIN FOOTER STYLES (ZABATAHA)
   ============================================================ */
.main-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  padding-top: 48px;
  padding-bottom: 0;
  border-top: 3px solid #db3030;
  font-family: 'Cairo', sans-serif;
  margin-top: 50px;
}

.footer-grid-4col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
}

@media (max-width: 991px) {
  .footer-grid-4col {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .footer-grid-4col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: #94a3b8;
  margin-top: 12px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 3px;
  background: #e53935;
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-links-list li a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.03);
}

.footer-social-btn:hover {
  border-color: #e53935;
  background: #e53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  direction: ltr;
}

.footer-contact-row a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-row a:hover {
  color: #ffffff;
}

.footer-contact-icon {
  font-size: 16px;
  color: #e53935;
  width: 22px;
  text-align: center;
}

.footer-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.pay-badge-img {
  height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pay-badge-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Official Meeza (ميزة) */
.pay-badge-img.meeza {
  background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 100%);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
}
.pay-badge-img.meeza::before {
  content: '💳';
  margin-left: 5px;
  font-size: 11px;
}

/* Official Fawry (فوري) */
.pay-badge-img.fawry {
  background: #facc15;
  color: #0f172a;
  border-color: #eab308;
  font-family: 'Cairo', sans-serif;
}
.pay-badge-img.fawry::before {
  content: '⚡';
  margin-left: 4px;
  font-size: 11px;
}

/* Official Aman (أمان) */
.pay-badge-img.aman {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

/* Official WE Pay */
.pay-badge-img.wepay {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

/* Official Visa */
.pay-badge-img.visa {
  background: #1e3a8a;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
}
.pay-badge-img.visa::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 50%;
  margin-right: 4px;
}

/* Official Mastercard */
.pay-badge-img.mastercard {
  background: #111827;
  color: #ffffff;
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}
.pay-badge-img.mastercard::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  margin-left: 3px;
  opacity: 0.95;
}
.pay-badge-img.mastercard::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  margin-right: 3px;
  opacity: 0.95;
}

/* Cash on Delivery (كاش عند الاستلام) */
.pay-badge-img.cash {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 12.5px;
  color: #64748b;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-bar a:hover {
  color: #ffffff;
}

/* Footer Logo Direct Rendering (No Box/Button Container) */
.main-footer .logo-img-as,
footer .logo-img-as {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  height: 46px !important;
  display: block !important;
  margin-bottom: 12px !important;
  filter: brightness(0) invert(1) !important;
  object-fit: contain !important;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
  animation: waPulse 2s infinite;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.12);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== RETURN POLICY CONFIRMATION MODAL ===== */
.policy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.policy-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.policy-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  direction: rtl;
}

.policy-modal-overlay.active .policy-modal-box {
  transform: translateY(0) scale(1);
}

.policy-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.policy-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(219, 48, 48, 0.2);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.policy-modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.policy-modal-subtitle {
  font-size: 12.5px;
  color: #94a3b8;
}

.policy-modal-close {
  position: absolute;
  top: 16px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.policy-modal-close:hover { background: rgba(239, 68, 68, 0.8); }

.policy-modal-body {
  padding: 24px;
  max-height: 65vh;
  overflow-y: auto;
}

.policy-alert-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-right: 4px solid #db3030;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.policy-alert-card h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-points-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-points-list li {
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  position: relative;
  padding-right: 16px;
}
.policy-points-list li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: #db3030;
  font-weight: bold;
}

.policy-link-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s;
}
.policy-link-full:hover { text-decoration: underline; color: #0369a1; }

.policy-checkbox-container {
  background: #fff1f2;
  border: 1.5px dashed #fecdd3;
  border-radius: 10px;
  padding: 14px 16px;
  transition: background 0.2s, border-color 0.2s;
}

.policy-checkbox-container:has(input:checked) {
  background: #f0fdf4;
  border-color: #86efac;
  border-style: solid;
}

.policy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  user-select: none;
}

.policy-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #db3030;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.policy-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-confirm-final-order {
  flex: 1;
  background: #db3030;
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}
.btn-confirm-final-order:hover:not(:disabled) {
  background: #b92b2b;
  transform: translateY(-1px);
}
.btn-confirm-final-order:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-back-edit {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back-edit:hover {
  background: #f1f5f9;
  color: #0f172a;
}


