@import "./tokens.css";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* ─── Base Styles ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ─── Typography & Headings ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
}

.section-head h2 {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

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

/* ─── Structure & Containers ─── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.section {
  padding: var(--space-20) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  padding: var(--space-20) 0;
}

/* ─── Buttons & CTA ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 2px solid transparent;
  gap: var(--space-2);
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-text-inverse);
  transform: translateY(-2px);
}

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

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

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

.btn-md {
  padding: var(--space-3) var(--space-6);
  font-size: 1rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ─── Header & Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-sticky {
  height: var(--nav-h-sticky);
  box-shadow: var(--shadow);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-mark {
  height: 36px;
  width: auto;
  margin-right: var(--space-2);
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(var(--space-5), 2.2vw, var(--space-10));
  height: 100%;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-menu a {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-2) 0;
  white-space: nowrap;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s ease;
}

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

/* ── Equipment nav dropdown ─────────────────────────────────────────────── */
.nav-dd { position: relative; display: flex; align-items: center; height: 100%; }
.nav-dd-toggle {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-2) 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-dd-toggle:hover,
.nav-dd.open > .nav-dd-toggle,
.nav-dd-toggle.is-active { color: var(--color-primary); }
.nav-dd-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}
.nav-dd.open .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
}
.nav-dd-menu::before {            /* invisible bridge so the gap doesn't drop hover */
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu,
.nav-dd.open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-menu li { width: 100%; }
.nav-dd-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text);
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
[dir="rtl"] .nav-dd-menu { left: auto; right: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-lang {
  border: 1px solid var(--color-border);
  background-color: transparent;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-burger span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

/* ─── Hero Section ─── */
.hero {
  margin-top: var(--nav-h);
  padding: var(--space-24) 0 var(--space-20) 0;
  background-color: var(--color-bg-dark);
  background-image:
    linear-gradient(rgba(10, 15, 29, 0.75), rgba(10, 15, 29, 0.95)),
    url('../img/hero-machinery-yard.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 860px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  background-color: rgba(242, 169, 0, 0.15);
  border: 1px solid rgba(242, 169, 0, 0.3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text-inverse);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-10);
  max-width: 720px;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-8);
}

.hero-meta-item strong {
  display: block;
  font-size: 2.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
}

.hero-meta-item span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ─── Category Grid ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.cat-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.cat-card-img {
  height: 160px;
  background-color: var(--color-bg-dark-alt);
  color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.cat-card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.5));
}

.cat-card-img--icon img {
  max-height: 88%;
  max-width: 80%;
  object-fit: contain;
  opacity: 0.85;
}

/* ─── Editorial tier-label header (replaces dark text-only placeholder
   used in listing-page "Lineup / Brand Coverage" intros). Auto-numbered
   via CSS counter so adding a 4th tier card needs no HTML edit. ─── */
.cat-grid {
  counter-reset: tier-counter;
}

.cat-card-img--label {
  counter-increment: tier-counter;
  height: auto;
  min-height: 112px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-6);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  box-shadow: inset 0 3px 0 var(--color-accent);
}

.cat-card-img--label::before {
  content: "Tier " counter(tier-counter, decimal-leading-zero);
  position: static;
  background: none;
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.cat-card-img--label::after {
  display: none;
}

.cat-card-body {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cat-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.cat-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.cat-card-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.cat-card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.cat-card:hover .cat-card-link {
  color: var(--color-accent-hover);
}

.cat-card:hover .cat-card-link::after {
  transform: translateX(4px);
}

/* ─── Why Choose Us Section ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.why-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

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

.why-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  font-weight: 700;
}

.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

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

/* ─── Products & Cards Grid ─── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.prod-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.prod-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.prod-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-dark-alt);
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.prod-card-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 10;
}

.badge-condition {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.badge-country {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.prod-card-body {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.prod-card-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.prod-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.prod-card-spec-item strong {
  color: var(--color-primary);
}

.prod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.prod-card-price {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
}

.prod-card-price span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ─── Trust Brands Logo Wall ─── */
.brand-section {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-8);
  opacity: 0.6;
}

.brand-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  letter-spacing: -0.04em;
}

/* ─── Testimonials Section ─── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.testi-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testi-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  position: relative;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testi-meta h4 {
  font-size: 0.95rem;
  margin: 0;
}

.testi-meta span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ─── Interactive FAQ Accordion ─── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.faq-item summary {
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ─── Bottom Inquiry CTA Banner ─── */
.cta-banner {
  background-color: var(--color-bg-dark);
  background-image:
    linear-gradient(rgba(10, 15, 29, 0.85), rgba(10, 15, 29, 0.95)),
    url('../img/hero-machinery-yard.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-text-inverse);
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto var(--space-8) auto;
  font-size: 1.125rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* ─── Category Filters ─── */
.filter-bar {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.filter-group label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.filter-group select {
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

.filter-group select:focus {
  border-color: var(--color-accent);
}

.filter-clear {
  display: none;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-danger);
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination button,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination button.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ─── Product Details Page (PDP) Layout ─── */
.pdp-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-10);
  align-items: start;
}

/* PDP Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.gallery-main {
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-dark-alt);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-main-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  display: none;
}

.gallery-main-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.gallery-play-overlay {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 29, 0.82);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.gallery-play-overlay:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.gallery-play-icon,
.gallery-video-thumb-icon {
  width: 1.8em;
  height: 1.8em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.72rem;
  line-height: 1;
  padding-left: 0.1em;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.gallery-thumbs button {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--color-bg-dark-alt);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
}

.gallery-thumbs button.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

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

.gallery-video-thumb {
  flex-direction: column;
  gap: var(--space-2);
  background:
    linear-gradient(135deg, rgba(17, 30, 56, 0.95), rgba(10, 15, 29, 0.95));
  color: var(--color-text-inverse);
}

.gallery-video-thumb span:last-child {
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1;
}

.gallery-videos-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.gallery-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.gallery-video {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-xs);
  object-fit: contain;
}

/* PDP Info Side */
.pdp-title-block {
  margin-bottom: var(--space-6);
}

.pdp-title-block h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-2);
}

.pdp-meta-strip {
  display: flex;
  gap: var(--space-4);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pdp-meta-strip span strong {
  color: var(--color-primary);
}

/* Spec Box List */
.pdp-spec-box {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.pdp-spec-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-2);
}

.pdp-spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.pdp-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--color-border);
}

.pdp-spec-row:last-child {
  border: none;
}

.pdp-spec-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.pdp-spec-value {
  color: var(--color-primary);
  font-weight: 700;
}

/* PD Action Box */
.pdp-action-box {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
}

.pdp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.pdp-price-label {
  font-weight: 600;
  color: var(--color-text-muted);
}

.pdp-price-value {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
}

.pdp-cta-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.pdp-watch-video {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pdp-watch-video:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* PDP Trust Strip */
.pdp-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.pdp-trust-icon {
  color: var(--color-success);
  font-size: 1rem;
}

/* PDP Detail Tabs */
.pdp-tabs {
  margin-top: var(--space-12);
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.tab-nav button {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tab-nav button.active {
  color: var(--color-primary);
}

.tab-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.specs-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-detail-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.95rem;
}

.specs-detail-table tr td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 35%;
  background-color: var(--color-bg-alt);
}

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

/* ─── Footer ─── */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0 var(--space-8) 0;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: 1.15rem;
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.footer-logo {
  display: block;
  margin-bottom: var(--space-4);
}

.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

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

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-contact li {
  display: flex;
  gap: var(--space-2);
}

.footer-contact strong {
  color: var(--color-text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-4);
}

/* ─── Mobile Sticky CTA Bar ─── */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  z-index: 998;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.mobile-sticky-bar-inner {
  display: flex;
  gap: var(--space-3);
}
.mobile-sticky-bar-inner > * {
  flex: 1;
}

/* ─── Inquiry Modal popup ─── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 15, 29, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal[aria-hidden="false"] .modal-content {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--color-text-inverse);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-inverse);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: var(--space-1.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: var(--space-2.5) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

.form-required {
  color: var(--color-danger);
  margin-left: 2px;
}

/* ─── Responsive Queries ─── */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .cat-grid,
  .why-grid,
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .section-head h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    margin-top: var(--nav-h);
    padding: var(--space-12) 0 var(--space-12) 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) var(--space-6);
    gap: var(--space-4);
    align-items: flex-start;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-menu.is-open {
    display: flex;
    transform: translateX(0);
  }

  /* Equipment dropdown collapses inline (accordion) inside the mobile drawer */
  .nav-dd { flex-direction: column; align-items: flex-start; width: 100%; height: auto; }
  .nav-dd-toggle { padding: var(--space-2) 0; font-size: 1rem; }
  .nav-dd-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: none;
    min-width: 0;
    padding: var(--space-2) 0 0 var(--space-4);
  }
  .nav-dd.open .nav-dd-menu { display: flex; }
  .nav-dd-menu::before { display: none; }

  .nav-burger {
    display: flex;
    flex-shrink: 0;             /* never collapse to 0-width and overflow off-screen */
  }

  .nav-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-right {
    margin-right: var(--space-4);
    flex-shrink: 0;
  }

  /* The nav "Get a Quote" CTA is redundant on mobile (also in the bottom
     sticky bar); hide it so the logo + language switcher + burger fit. */
  .nav-right .btn {
    display: none;
  }

  /* Product-detail tabs must scroll inside their own strip rather than
     widen the page — page-level horizontal overflow expands the fixed
     navbar's containing block and pushes the burger off-screen. */
  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-nav button {
    flex-shrink: 0;
    white-space: nowrap;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .cat-grid,
  .why-grid,
  .prod-grid {
    grid-template-columns: 1fr;
  }
  
  .testi-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .section {
    padding: var(--space-12) 0;
  }
  
  .section-alt {
    padding: var(--space-12) 0;
  }
}

/* ─── Inner page hero (about / sourcing-process / contact / legal) ─── */
.page-hero {
  background-color: var(--color-bg-dark);
  color: #fff;
  padding: var(--space-12) 0 var(--space-10);
  margin-top: var(--nav-h);
  border-bottom: 2px solid var(--color-accent);
}
.page-hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  margin-top: var(--space-3);
  max-width: 720px;
}
.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  margin-bottom: var(--space-4);
}
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--color-accent); }

/* ─── Article body (about, sourcing process, legal pages) ─── */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-text);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--color-primary);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
  color: var(--color-primary);
}
.article-body p { margin-bottom: var(--space-4); }
.article-body ul, .article-body ol {
  margin: 0 0 var(--space-4) var(--space-6);
}
.article-body li { margin-bottom: var(--space-2); }
.article-body strong { color: var(--color-primary); font-weight: 600; }
.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Step process (sourcing-process page) ─── */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 920px;
  margin: var(--space-8) auto 0;
}
.step-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-5);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.step-body p { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.step-body ul { margin-left: var(--space-5); color: var(--color-text-muted); }
.step-body li { margin-bottom: var(--space-1); }

/* ─── Contact page layout ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-8);
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.contact-info-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-info-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.contact-info-list li {
  list-style: none;
  margin-bottom: var(--space-4);
  padding-left: var(--space-8);
  position: relative;
  color: var(--color-text);
}
.contact-info-list li strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}
.contact-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
}

/* ─── Embedded inquiry form (contact page) ─── */
.inquiry-form-inline {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.inquiry-form-inline h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.inquiry-form-inline .form-intro {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-5);
}

/* ─── Form success / error states ─── */
.form-success,
.form-error {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}
.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.form-success strong, .form-error strong { font-weight: 700; }
[hidden] { display: none !important; }

/* ─── 404 page ─── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-4);
  margin-top: var(--nav-h);
}
.error-page-inner {
  max-width: 540px;
}
.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-4) 0 var(--space-3);
}
.error-page p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ─── Quote-on-Request badge replacement (used loaders / bulldozers) ─── */
.prod-card-price.is-quote {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}
.prod-card-price.is-quote span { display: none; }

/* ─── 'Starting from' price prefix (excavators in hybrid model) ─── */
.prod-card-price-prefix {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

/* ─── Mini map placeholder (contact page) ─── */
/* Contact "Our Office": full-width map with a floating navy address card. */
.office-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
  background: var(--color-bg-alt);
}
.map-embed { position: relative; height: 440px; }
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.office-card {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  max-width: 340px;
  background: rgba(10, 15, 29, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}
.office-card-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2);
}
.office-card-addr { font-size: 0.92rem; line-height: 1.6; color: #fff; margin: 0; }
@media (max-width: 700px) {
  .map-embed { height: 300px; }
  .office-card { position: static; max-width: none; border-left: 0; border-top: 3px solid var(--color-accent); border-radius: 0; }
}


/* ──────────────────────────────────────────────────────────────
   RTL overrides for Arabic (dir="rtl")
   `dir="rtl"` automatically flips text flow + flex/grid axis,
   but absolute positioning uses physical left/right and must be
   swapped explicitly. Also flip margins/paddings used as gaps
   adjacent to inline content.
   ────────────────────────────────────────────────────────────── */

[dir="rtl"] {
  text-align: right;
}

/* Modal close button: top-LEFT in RTL */
[dir="rtl"] .modal-close {
  right: auto;
  left: var(--space-4);
}

/* Mobile sticky bar — flip any side spacing */
[dir="rtl"] .mobile-sticky-bar {
  text-align: right;
}

/* Icon margins (typically before text) need to flip side */
[dir="rtl"] .why-icon,
[dir="rtl"] .pdp-trust-icon {
  margin-right: 0;
  margin-left: var(--space-2);
}

/* Footer columns / sections: align right */
[dir="rtl"] .footer-grid,
[dir="rtl"] .footer-col {
  text-align: right;
}

/* Buying-step body lists: flip indent */
[dir="rtl"] .step-body ul {
  margin-left: 0;
  margin-right: var(--space-5);
  padding-left: 0;
  padding-right: var(--space-5);
}

/* PDP breadcrumb separators stay LTR-style; nothing to flip there */

/* Form layout — labels and required asterisks read RTL naturally */
[dir="rtl"] .form-required {
  margin-right: 2px;
  margin-left: 0;
}

/* Nav arrow icons in cat-card-link, view-listing links — the
   arrow character (→/←) doesn't auto-flip; the translations
   already use ← where appropriate, so no rule needed. */

/* Tables, badges, and other content rely on `text-align: right`
   from the base [dir="rtl"] rule above. */

/* Hero meta row: numbers should still read LTR even in RTL */
[dir="rtl"] .hero-meta-item strong,
[dir="rtl"] .prod-card-spec-item strong,
[dir="rtl"] .pdp-spec-value {
  direction: ltr;
  unicode-bidi: embed;
}

/* Homepage scroll-snap removed: the section-by-section snap felt jerky and
   trapped the footer. Plain free scrolling is smoother and reaches the bottom. */
