/* ===================================================================
   CABA ark — Premium Automotive Spare Parts
   Global Stylesheet (main.css)
   Brand identity: deep midnight black (#0B111E) with champagne gold
   accents (#D4B26F) matching the circular corporate logo.
   Fully bilingual (EN / AR + RTL).
   =================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand navy — from the logo lettering */
  --navy-900: #050b1c;
  --navy-800: #0F1828;   /* nav bar — slightly lighter than midnight bg */
  --navy-700: #162035;
  --navy-600: #1c3566;

  /* Midnight dark surfaces — matching the logo backdrop */
  --bg: #0B111E;         /* page background — deep midnight black */
  --surface: #141D2E;    /* cards — elevated dark surface */
  --surface-2: #0E1624;  /* subtle insets / inputs */

  /* Text on dark */
  --text: #D4C9B0;       /* warm light body text */
  --heading: #F0EAD8;    /* warm cream headings */
  --muted: rgba(200, 190, 170, 0.6); /* muted text */

  /* Borders */
  --line: rgba(255, 255, 255, 0.09);          /* on dark surfaces */
  --line-dark: rgba(255, 255, 255, 0.12);     /* on navy */

  /* Champagne gold accent system — from logo circle rings & diamonds */
  --ice: #D4B26F;              /* champagne gold — active tabs / highlights */
  --ice-bright: #E8D4A4;       /* lighter champagne gold */
  --ice-soft: rgba(212, 178, 111, 0.15);   /* gold chip bg on dark */

  --accent: #D4B26F;           /* champagne gold accent */
  --accent-strong: #B8943D;    /* deeper warm gold */
  --accent-soft: rgba(212, 178, 111, 0.15);  /* gold chip / icon bg */

  --slate: #64748b;            /* neutral cool slate */
  --slate-soft: rgba(100, 116, 139, 0.14);

  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(5, 11, 28, 0.5);
  --shadow: 0 18px 44px rgba(5, 11, 28, 0.7);
  --shadow-navy: 0 12px 28px rgba(5, 11, 28, 0.7);
  --shadow-ice: 0 12px 28px rgba(212, 178, 111, 0.3);

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', 'Tahoma', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic / RTL typography */
[dir='rtl'] body,
html[lang='ar'] body {
  font-family: var(--font-ar);
}

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

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

ul {
  list-style: none;
}

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

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 80px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 10px;
  line-height: 1.15;
  color: var(--heading);
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  will-change: transform;
}

/* Primary CTA — champagne gold */
.btn-primary {
  background: var(--accent);
  color: var(--navy-900);
  box-shadow: var(--shadow-ice);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(212, 178, 111, 0.36);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Accent — champagne gold gradient (on dark surfaces) */
.btn-accent {
  background: linear-gradient(135deg, var(--ice-bright), var(--ice));
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(212, 178, 111, 0.28);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(212, 178, 111, 0.42);
}

.btn-accent:active {
  transform: translateY(-1px) scale(0.98);
}

/* Ghost — translucent (for navy backgrounds) */
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--ice);
  transform: translateY(-3px);
}

/* Outline — gold border (on dark backgrounds) */
.btn-outline {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--ice);
}

.btn-outline:hover {
  background: var(--ice);
  color: var(--navy-900);
  transform: translateY(-3px);
  box-shadow: var(--shadow-ice);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: var(--shadow-navy);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* Logo image — official circular badge, fixed clean height.
   width:auto + object-fit:contain keep native aspect ratio so it
   never stretches or gets cropped inside the navbar. */
.brand img.logo-img {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* legacy logo mark (still used in footer brand) */
.brand .logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-bright), var(--accent));
  color: var(--navy-900);
  font-weight: 900;
}

.brand span.accent {
  color: var(--ice);
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--ice);
  background: rgba(212, 178, 111, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-btn:hover {
  background: var(--ice);
  color: var(--navy-900);
  border-color: var(--ice);
  transform: translateY(-2px);
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.2rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cart-btn:hover {
  background: var(--ice);
  color: var(--navy-900);
  border-color: var(--ice);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

[dir='rtl'] .cart-count {
  right: auto;
  left: -6px;
}

.cart-count.show {
  transform: scale(1);
}

.cart-count.bump {
  animation: bump 0.4s var(--ease);
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 90px 70px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(212, 178, 111, 0.1), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(11, 17, 30, 0.8), transparent 55%),
    var(--navy-800);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ice-soft);
  border: 1px solid rgba(212, 178, 111, 0.4);
  color: var(--ice);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--white);
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--ice-bright), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 22px 0 30px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--white);
}

.hero-stats .stat span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-dark);
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.hero-visual .float-card {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  color: var(--text);
  animation: floaty 4s ease-in-out infinite;
}

[dir='rtl'] .hero-visual .float-card {
  left: auto;
  right: -24px;
}

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

.float-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.float-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--heading);
}

.float-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- YMME Search Finder ---------- */
.finder {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.finder-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--heading);
}

.finder-title .dot {
  color: var(--accent);
}

.finder-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field select,
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field {
  position: relative;
}

.field.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: var(--muted);
  pointer-events: none;
}

[dir='rtl'] .field.select-wrap::after {
  right: auto;
  left: 14px;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

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

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

[dir='rtl'] .badge {
  left: auto;
  right: 12px;
}

/* gold status badges */
.badge.in-stock {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(212, 178, 111, 0.45);
}

.badge.low-stock {
  background: var(--slate-soft);
  color: #455468;
  border: 1px solid rgba(100, 116, 139, 0.45);
}

.badge.out-stock {
  background: rgba(100, 116, 139, 0.1);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* make badge — champagne gold chip naming the fitment make(s) */
.badge.make {
  background: var(--accent);
  color: var(--navy-900);
  border: 1px solid rgba(212, 178, 111, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body .cat {
  font-size: 0.74rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.product-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

.product-body h3 a:hover {
  color: var(--accent-strong);
}

.product-body .rating {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* fitment line on product cards */
.product-body .fits {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

/* premium, high-visibility "Inquire for Availability" button — champagne gold */
.inquire-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--accent);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.inquire-btn:hover {
  background: var(--accent-strong);
  color: var(--white);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-ice);
}

.inquire-btn:active {
  transform: translateY(0) scale(0.99);
}

.price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading);
}

.price .was {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 6px;
}

[dir='rtl'] .price .was {
  margin-left: 0;
  margin-right: 6px;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}

.add-btn:hover {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-ice);
}

.add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* product-detail fitment line + availability value */
.pd-fits {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 4px 0 16px;
}

.spec-list .row .avail {
  color: var(--accent-strong);
  font-weight: 700;
}

/* inquiry-list (drawer) item fitment + note */
.cart-item .ci-info .ci-fits {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.cart-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---------- Feature Strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feature .ico {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--heading);
}

.feature p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Catalog ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
  align-items: start;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 104px;
  box-shadow: var(--shadow-sm);
}

.sidebar h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
}

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

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

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

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

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.catalog-toolbar .count {
  color: var(--muted);
  font-size: 0.9rem;
}

.sort-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  appearance: none;
  font-family: inherit;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.vehicle-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(212, 178, 111, 0.4);
  color: var(--accent-strong);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* ---------- Product Detail ---------- */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pd-gallery .main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.pd-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pd-thumbs img:hover,
.pd-thumbs img.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pd-info .cat {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
}

.pd-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 8px 0 12px;
  line-height: 1.1;
  color: var(--heading);
}

.pd-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 18px 0;
  color: var(--heading);
}

.pd-price .was {
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 500;
}

[dir='rtl'] .pd-price .was {
  margin-left: 0;
  margin-right: 10px;
}

.pd-desc {
  color: var(--muted);
  margin-bottom: 24px;
}

.spec-list {
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.spec-list .row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.spec-list .row span:first-child {
  color: var(--muted);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty button {
  width: 44px;
  height: 48px;
  color: var(--text);
  font-size: 1.2rem;
  background: var(--surface-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.qty button:hover {
  background: var(--accent);
  color: var(--navy-900);
}

.qty input {
  width: 56px;
  height: 48px;
  text-align: center;
  background: var(--surface);
  border: none;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

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

/* ---------- Cart Drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 28, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 200;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 90vw;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(10, 26, 63, 0.25);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 201;
  display: flex;
  flex-direction: column;
}

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

/* RTL: drawer slides in from the left */
[dir='rtl'] .cart-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 60px rgba(10, 26, 63, 0.25);
  transform: translateX(-100%);
}

[dir='rtl'] .cart-drawer.open {
  transform: translateX(0);
}

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

.cart-head h3 {
  font-size: 1.2rem;
  color: var(--heading);
}

.cart-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.2rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    color 0.2s var(--ease);
}

.cart-close:hover {
  background: var(--accent);
  color: var(--navy-900);
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  animation: slideIn 0.3s var(--ease);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.cart-item .ci-info h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--heading);
}

.cart-item .ci-info .ci-price {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.ci-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ci-qty button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.ci-qty button:hover {
  background: var(--accent);
  color: var(--navy-900);
}

.ci-qty span {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.ci-remove {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.2s var(--ease);
  align-self: flex-start;
}

.ci-remove:hover {
  color: var(--accent-strong);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}

.cart-empty .big {
  font-size: 3rem;
  opacity: 0.4;
}

.cart-foot {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.cart-totals .line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-totals .line.grand {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-totals .line.grand span:last-child {
  color: var(--accent-strong);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--navy-800);
  border: 1px solid rgba(212, 178, 111, 0.35);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  transition: transform 0.4s var(--ease);
  font-weight: 600;
  font-size: 0.92rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast .check {
  color: var(--ice-bright);
  font-size: 1.2rem;
}

/* ---------- Page banner ---------- */
.page-banner {
  background:
    radial-gradient(800px 300px at 70% 0%, rgba(212, 178, 111, 0.1), transparent 60%),
    var(--navy-800);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 56px;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
}

.page-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 10px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 14px;
}

.breadcrumb a:hover {
  color: var(--ice-bright);
}

/* breadcrumb on light (product page) */
.breadcrumb.on-light {
  color: var(--muted);
}

.breadcrumb.on-light a:hover {
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-info .info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-info .info-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

[dir='rtl'] .contact-info .info-card:hover {
  transform: translateX(-6px);
}

.info-card .ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.info-card h4 {
  margin-bottom: 4px;
  color: var(--heading);
}

.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

a.info-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.info-card--link:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}

a.info-card--link h4,
a.info-card--link p {
  color: inherit;
}

.map-embed {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 220px;
  background:
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(212, 178, 111, 0.12), transparent 60%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 14px auto 26px;
  max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--line-dark);
  padding-top: 64px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h5 {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--white);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s var(--ease), padding-inline-start 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--ice-bright);
  padding-inline-start: 5px;
}

.footer-brand-ar {
  color: var(--ice-bright);
  font-family: var(--font-ar);
  font-size: 0.9rem;
  margin-top: 10px;
  line-height: 1.7;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    color 0.2s var(--ease);
}

.footer-social a:hover {
  background: var(--ice);
  color: var(--navy-900);
  transform: translateY(-3px);
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--white);
  font-family: inherit;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--ice);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .reg {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-bottom .reg strong {
  color: var(--ice-bright);
  font-weight: 700;
}

.footer-bottom .pay {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .finder-form {
    grid-template-columns: 1fr 1fr;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .pd-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    background: var(--navy-800);
    border-bottom: 1px solid var(--line-dark);
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px 16px;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .lang-btn {
    padding: 0 12px;
  }
  .finder-form {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
    flex-wrap: wrap;
  }
  .section {
    padding-block: 56px;
  }
  .cta-band {
    padding: 36px 24px;
  }
}

/* ---------- Admin Corner Link ---------- */
.admin-corner-link {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 9999;
  font-size: 11px;
  font-family: var(--font);
  color: rgba(212, 178, 111, 0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 0;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-underline-offset: 2px;
}

.admin-corner-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 178, 111, 0.5);
}

[dir='rtl'] .admin-corner-link {
  left: auto;
  right: 12px;
}

@media (max-width: 480px) {
  .admin-corner-link {
    font-size: 10px;
    bottom: 8px;
    left: 8px;
  }
  [dir='rtl'] .admin-corner-link {
    left: auto;
    right: 8px;
  }
}
