/* ========================================================
   Mr. Lamah E-Commerce Store — Stylesheet
   Identity: Navy (#0B1D3A) & Orange (#FF6A00)
   Typography: Almarai (Headings) & Tajawal (Body)
   Layout: Responsive RTL (Matching doorly.me UX)
   ======================================================== */

@import url('../assets/fonts/fonts.css');

:root {
  --primary: #FF6A00;
  --primary-hover: #E35A00;
  --primary-light: #FFF0E5;
  --primary-glow: rgba(255, 106, 0, 0.25);
  
  --navy: #0B1D3A;
  --navy-dark: #071326;
  --navy-light: #152E56;
  --navy-muted: #8FA2BF;
  
  --amber: #FFB067;
  --green: #10B981;
  --green-light: #ECFDF5;
  --red: #EF4444;
  --red-light: #FEF2F2;
  
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFD;
  --bg-card: #FFFFFF;
  
  --border: #E2E8F0;
  --border-subtle: #EDF2F7;
  
  --text-main: #0B1D3A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(11, 29, 58, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(11, 29, 58, 0.08), 0 8px 10px -6px rgba(11, 29, 58, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(11, 29, 58, 0.12);
  --shadow-glow: 0 14px 30px -10px rgba(227, 90, 0, 0.45);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-main);
  transition: var(--transition);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* ========================================================
   TOP MARQUEE BANNER
   ======================================================== */
.top-banner {
  background: linear-gradient(90deg, #FF6A00 0%, #E35A00 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  height: 42px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 100;
}

.banner-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeRtl 25s linear infinite;
  width: max-content;
}

.banner-track:hover {
  animation-play-state: paused;
}

.banner-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 35px;
}

.banner-item svg {
  width: 16px;
  height: 16px;
  color: #FFE6D2;
}

@keyframes marqueeRtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.banner-close {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  z-index: 2;
}
.banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* ========================================================
   STICKY GLASS HEADER
   ======================================================== */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 4px 20px -2px rgba(11, 29, 58, 0.05);
  transition: var(--transition);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

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

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

.brand-name {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 2px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-header {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--navy);
  position: relative;
}

.btn-icon-header:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-icon-header svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.4);
}

.btn-branch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

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

.btn-branch svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

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

/* ========================================================
   HERO BANNER SECTION
   ======================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0B1D3A 0%, #122B4E 100%);
  color: #fff;
  padding: 60px 0 70px;
  border-radius: var(--radius-xl);
  margin: 20px auto 35px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-overlay-car {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  background-image: url('../assets/images/hero-car.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 106, 0, 0.18);
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(90deg, #FF9E53 0%, #FF6A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--navy-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 35px -8px rgba(227, 90, 0, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-perks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #C8D6EC;
}

.perk-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* ========================================================
   CATEGORY TABS (doorly.me Navigation bar style)
   ======================================================== */
.category-section {
  margin-bottom: 30px;
}

.category-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.cat-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(11, 29, 58, 0.3);
}

.cat-tab.active svg {
  color: var(--primary);
}

.cat-tab svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* ========================================================
   SECTION HEADER
   ======================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-head-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================================
   PRODUCTS GRID & CARDS
   ======================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.85;
  overflow: hidden;
  background: #E2E8F0;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.card-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 29, 58, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-duration svg {
  width: 13px;
  height: 13px;
  color: var(--amber);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-features-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-grow: 1;
}

.card-features-list li {
  font-size: 0.82rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features-list li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

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

.price-box-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-current {
  font-family: 'Almarai', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.price-old {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(255, 106, 0, 0.45);
}

.btn-add-cart svg {
  width: 16px;
  height: 16px;
}

/* ========================================================
   SLIDE-OVER CART DRAWER
   ======================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #fff;
  z-index: 1001;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

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

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

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-drawer-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.cart-drawer-close:hover {
  background: var(--bg-subtle);
  color: var(--navy);
}

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

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cart-empty h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

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

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.cart-item-remove {
  color: var(--text-light);
  padding: 2px;
}
.cart-item-remove:hover {
  color: var(--red);
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin: 4px 0;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1rem;
}
.qty-btn:hover {
  background: #fff;
  color: var(--primary);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 8px;
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-family: 'Almarai', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

/* Coupon Box */
.coupon-box {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.coupon-input-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.coupon-input-group input {
  padding: 10px 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.btn-apply-coupon {
  background: var(--navy);
  color: #fff;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.btn-apply-coupon:hover {
  background: var(--primary);
}

.coupon-applied-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--green-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

/* Cart Drawer Footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.bill-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

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

.bill-row.discount-row {
  color: var(--green);
  font-weight: 700;
}

.bill-row.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.total-amount {
  font-family: 'Almarai', sans-serif;
  font-size: 1.45rem;
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}
.btn-checkout:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========================================================
   MODALS (General, Checkout, Product Detail, Branch)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-dialog {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(11, 29, 58, 0.3);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--navy);
}

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

/* Product Detail Modal */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.vehicle-selector {
  margin: 18px 0;
}

.vehicle-selector-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.vehicle-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vehicle-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-subtle);
  transition: var(--transition);
}

.vehicle-opt:hover {
  border-color: var(--primary);
}

.vehicle-opt.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.vehicle-opt svg {
  width: 44px;
  height: 26px;
  color: var(--navy);
  margin-bottom: 6px;
  transition: var(--transition);
}

.vehicle-opt.selected svg {
  color: var(--primary);
}

.vehicle-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.vehicle-price-diff {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  margin-top: 2px;
}

/* Checkout Form */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

/* Time Slots */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slot-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-subtle);
  transition: var(--transition);
}

.slot-item:hover {
  border-color: var(--primary);
}

.slot-item.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Payment Methods */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-subtle);
  transition: var(--transition);
}

.pay-card:hover {
  border-color: var(--primary);
}

.pay-card.selected {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.pay-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--navy);
  border: 1px solid var(--border-subtle);
}

.pay-card-details {
  display: flex;
  flex-direction: column;
}

.pay-card-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.pay-card-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Success Order State */
.order-success-box {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrap {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.success-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.order-number-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 12px 0 20px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn-whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
}
.btn-whatsapp-order:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
}

/* ========================================================
   REVIEWS & VALUE PROPS SECTION
   ======================================================== */
.reviews-section {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 40px;
}

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

.review-card {
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #F59E0B;
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-comment {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.review-author-name {
  font-weight: 700;
  color: var(--navy);
}

.review-author-city {
  color: var(--text-muted);
}

/* Value Props */
.props-section {
  padding: 60px 0;
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.prop-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.prop-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.prop-icon svg {
  width: 28px;
  height: 28px;
}

.prop-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.prop-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========================================================
   FLOATING WHATSAPP BUTTON
   ======================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-top: 70px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: var(--navy-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 16px 0 24px;
  max-width: 340px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

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

.footer-links a {
  color: var(--navy-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #fff;
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--navy-muted);
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

/* ========================================================
   TOAST NOTIFICATION
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 4px solid var(--primary);
}

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   RESPONSIVE DESIGN (Mobile & Tablets)
   ======================================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .btn-mobile-toggle {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
    margin: 10px auto 25px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .slots-grid, .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .btn-branch span {
    display: none;
  }
}
