/* ==========================================================
   Sahab Trading & Import
   Palette : deep #062B4E / blue #1B7FBF / sky #5EC5E8
             mist #E8F5FB / white #FFFFFF
   Type    : IBM Plex Sans Arabic — one family, wide weight range
   ========================================================== */

:root {
  --deep:      #062B4E;
  --deep-2:    #0A3D6B;
  --blue:      #1B7FBF;
  --sky:       #5EC5E8;
  --mist:      #E8F5FB;
  --mist-2:    #F5FAFD;
  --white:     #FFFFFF;

  --ink:       #0B1E30;
  --ink-2:     #47637C;
  --ink-3:     #7D96AC;
  --line:      #D6E7F2;

  --ok:        #1B9E6E;
  --warn:      #C7822A;

  --r:         4px;
  --r-lg:      6px;

  --sp:        clamp(1.25rem, 4vw, 2rem);
  --gut:       clamp(1.25rem, 5vw, 4.5rem);
  --maxw:      1240px;

  --shadow:    0 1px 2px rgba(6, 43, 78, .06),
               0 8px 24px -12px rgba(6, 43, 78, .18);
  --shadow-lg: 0 2px 4px rgba(6, 43, 78, .06),
               0 24px 48px -20px rgba(6, 43, 78, .28);

  --ease:      cubic-bezier(.22, .61, .36, 1);
}

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Long unbroken strings (emails, URLs, product codes) must never
   push the page wider than the screen. */
body, p, a, h1, h2, h3, h4, b, span, td, th, li, label, input, textarea {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Grid and flex children default to min-width:auto, which means they
   refuse to shrink below their content. This is the single most common
   cause of horizontal scroll on mobile. */
.wrap > *,
.cards > *,
.products > *,
.form-grid > *,
.hero-in > *,
.detail > *,
.cart-layout > *,
.contact-layout > *,
.footer-grid > *,
.band-in > *,
.cart-row > * {
  min-width: 0;
}

img, svg { display: block; max-width: 100%; height: auto; }

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

button, input, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--sky); color: var(--deep); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.75rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .625rem;
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--sky);
  flex: none;
}

[dir="rtl"] .eyebrow { letter-spacing: 0; }

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-2);
  line-height: 1.8;
}

.muted { color: var(--ink-2); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section--mist { background: var(--mist-2); }

.section--deep {
  background: var(--deep);
  color: var(--white);
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 46rem; }

.section-head h2 { margin-block: .875rem .625rem; }

.section--deep .section-head h2 { color: var(--white); }
.section--deep .lead { color: rgba(255, 255, 255, .72); }
.section--deep .eyebrow { color: var(--sky); }

/* ==========================================================
   SIGNATURE — the clinical grid
   A field of fine squares echoing glove surface texture.
   Used as an ambient backdrop, never as decoration on top.
   ========================================================== */
.grid-field {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(94, 197, 232, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 197, 232, .16) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 68% 38%, #000 12%, transparent 74%);
          mask-image: radial-gradient(ellipse 78% 62% at 68% 38%, #000 12%, transparent 74%);
  pointer-events: none;
}

[dir="rtl"] .grid-field {
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 32% 38%, #000 12%, transparent 74%);
          mask-image: radial-gradient(ellipse 78% 62% at 32% 38%, #000 12%, transparent 74%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 88px;
}

/* Logo: a bracket mark built from the grid motif */
.logo {
  display: flex;
  align-items: center;
  gap: .6875rem;
  flex: none;
  font-weight: 700;
}

/* Uploaded logo image — the uploaded logo already contains the brand
   name, so the text beside it is hidden and the logo can be larger. */
.logo-img {
  display: block;
  width: auto !important;
  height: 72px !important;
  max-width: 260px !important;
  max-height: 72px !important;
  object-fit: contain;
  flex: none;
}

.site-footer .logo-img { height: 72px !important; max-width: 260px !important; max-height: 72px !important; }

.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--r);
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(94, 197, 232, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 197, 232, .5) 1px, transparent 1px);
  background-size: 7px 7px;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: var(--sky);
  border-radius: 1px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.logo-text span { font-size: .6875rem; color: var(--ink-3); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-inline-start: auto;
}

.nav a {
  padding: .5rem .8125rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r);
  transition: color .18s var(--ease), background .18s var(--ease);
}

.nav a:hover { color: var(--deep); background: var(--mist); }
.nav a.is-active { color: var(--deep); font-weight: 600; }

.header-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: none;
}

.lang-switch {
  padding: .4375rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  transition: all .18s var(--ease);
}

.lang-switch:hover { border-color: var(--blue); color: var(--blue); background: var(--mist); }

/* Cart pill */
.cart-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4375rem .75rem .4375rem .625rem;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--r);
  transition: background .18s var(--ease);
}

.cart-btn:hover { background: var(--deep-2); }

.cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  padding-inline: .25rem;
  font-size: .6875rem;
  font-weight: 700;
  background: var(--sky);
  color: var(--deep);
  border-radius: 2px;
}

.cart-count[data-empty="1"] { background: rgba(255, 255, 255, .18); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--deep);
  position: relative;
  transition: background .2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--deep);
  transition: transform .24s var(--ease);
}

.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary { background: var(--blue); color: var(--white); }

.btn--primary:hover {
  background: var(--deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--deep);
  background: var(--white);
}

.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--mist); }

.btn--light { background: var(--white); color: var(--deep); }
.btn--light:hover { background: var(--sky); transform: translateY(-1px); }

.btn--sky { background: var(--sky); color: var(--deep); }
.btn--sky:hover { background: var(--white); }

.btn--block { width: 100%; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--mist-2) 0%, var(--white) 62%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
}

.hero-copy { position: relative; z-index: 2; max-width: 34rem; }

.hero h1 { margin-block: 1.125rem 1.25rem; color: var(--deep); }

.hero .lead { margin-bottom: 2rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-stats div b {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.hero-stats div span {
  font-size: .75rem;
  color: var(--ink-3);
  font-weight: 500;
}

/* Hero visual — the shipping route */
.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.route {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.375rem;
  box-shadow: var(--shadow-lg);
}

.route-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

[dir="rtl"] .route-label { letter-spacing: 0; }

.route-line { display: grid; gap: 0; }

.route-node {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: .875rem;
  padding-block: .5rem;
}

.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  justify-self: center;
  position: relative;
  flex: none;
}

.route-node--end .route-dot {
  background: var(--deep);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 4px var(--mist);
}

.route-node b { font-size: .9375rem; font-weight: 600; color: var(--deep); }

.route-stem {
  grid-column: 1;
  justify-self: center;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, var(--sky), var(--line));
  position: relative;
  overflow: hidden;
}

/* A pulse travelling the route — the one motion moment on the page */
.route-stem::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -12px;
  width: 3px;
  height: 12px;
  background: var(--blue);
  border-radius: 2px;
  animation: travel 2.8s var(--ease) infinite;
}

.route-stem--2::after { animation-delay: .5s; }

@keyframes travel {
  0%        { transform: translateY(0);    opacity: 0; }
  12%       { opacity: 1; }
  78%       { opacity: 1; }
  100%      { transform: translateY(40px); opacity: 0; }
}

.route-meta {
  margin-top: 1.125rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: .8125rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.route-meta svg { flex: none; color: var(--ok); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: .625rem; color: var(--deep); font-size: 1.0625rem; }

.card p { font-size: .9375rem; color: var(--ink-2); line-height: 1.7; }

/* Bullet list with a check mark — used on the services page to list
   what each service covers. */
.check-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: .5rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .3125rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center/10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Numbered marker — used only where order genuinely matters
   (the three inspection stages, which are sequential). */
.card-step {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.125rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--mist);
  border-radius: var(--r);
  font-variant-numeric: tabular-nums;
}

.section--deep .card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}

.section--deep .card:hover { border-color: rgba(94, 197, 232, .5); }
.section--deep .card h3 { color: var(--white); }
.section--deep .card p  { color: rgba(255, 255, 255, .66); }
.section--deep .card-step { background: rgba(94, 197, 232, .14); color: var(--sky); }

/* Category cards carry a material swatch */
.cat-card { position: relative; overflow: hidden; }

.cat-swatch {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r);
  margin-bottom: 1.125rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.cat-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .34) 1px, transparent 1px);
  background-size: 6px 6px;
}

.cat-card .count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: .875rem;
  display: block;
}

/* ---------- Product grid ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.filter {
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  transition: all .18s var(--ease);
}

.filter:hover { border-color: var(--blue); color: var(--blue); }

.filter.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
  font-weight: 600;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.product:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Product "image" is a generated swatch panel — no stock photos,
   which keeps the identity consistent until real photography exists. */
.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  overflow: hidden;
}

.product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--swatch, var(--blue));
  opacity: .92;
}

/* When a real photo exists, it replaces the colour + grid treatment. */
.product-visual.has-img::before,
.product-visual.has-img::after { display: none; }

.product-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, .22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 13px 13px;
  transition: background-size .5s var(--ease);
}

.product:hover .product-visual::after { background-size: 17px 17px; }

.badge {
  position: absolute;
  top: .75rem;
  inset-inline-start: .75rem;
  z-index: 2;
  padding: .3125rem .625rem;
  font-size: .6875rem;
  font-weight: 600;
  border-radius: 3px;
  background: var(--white);
  color: var(--ok);
}

.badge--order { color: var(--warn); }

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}

.product-body h3 { font-size: 1rem; color: var(--deep); line-height: 1.4; }

.product-body p {
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
}

.chips { display: flex; flex-wrap: wrap; gap: .3125rem; }

.chip {
  padding: .25rem .5rem;
  font-size: .6875rem;
  font-weight: 500;
  background: var(--mist);
  color: var(--ink-2);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.chip--cert { background: transparent; border: 1px solid var(--line); color: var(--blue); }

.product-foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--mist-2);
}

.product-foot .btn { padding: .5625rem 1rem; font-size: .8125rem; flex: 1; }

/* ---------- Product detail ---------- */
.detail {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.detail-visual {
  position: sticky;
  top: 96px;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-visual .product-visual { aspect-ratio: 1; height: 100%; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
  transition: color .18s var(--ease);
}

.back-link:hover { color: var(--blue); }

[dir="rtl"] .back-link svg { transform: scaleX(-1); }

.detail h1 { font-size: clamp(1.65rem, 3.4vw, 2.25rem); color: var(--deep); margin-bottom: .875rem; }

.spec-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-block: 1.75rem;
  table-layout: fixed;
}

.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:first-child { border-top: 1px solid var(--line); }

.spec-table th {
  text-align: start;
  padding: .875rem 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-3);
  width: 38%;
  vertical-align: top;
}

.spec-table td { padding: .875rem 0; font-size: .9375rem; color: var(--ink); }

/* Size selector */
.size-picker { margin-bottom: 1.5rem; }

.size-picker > b {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: .625rem;
}

.sizes { display: flex; flex-wrap: wrap; gap: .5rem; }

.size {
  min-width: 3rem;
  padding: .5625rem .875rem;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  transition: all .18s var(--ease);
  font-variant-numeric: tabular-nums;
}

.size:hover { border-color: var(--blue); color: var(--blue); }

.size.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
}

.qty-row { display: flex; gap: .75rem; align-items: stretch; margin-bottom: 1rem; }

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

.qty button {
  width: 2.75rem;
  height: 100%;
  min-height: 3rem;
  font-size: 1.125rem;
  color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}

.qty button:hover { background: var(--mist); color: var(--blue); }

.qty input {
  width: 3.5rem;
  height: 100%;
  border: 0;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: transparent;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: .4375rem; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field label i {
  font-style: normal;
  color: var(--blue);
  margin-inline-start: .1875rem;
}

.field input,
.field textarea,
.field select {
  padding: .8125rem .9375rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-size: .9375rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 127, 191, .12);
}

.field textarea { resize: vertical; min-height: 7rem; line-height: 1.7; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }

/* Honeypot. Must not use a physical offset: `left: -9999px` widens the
   document in RTL. Clipping to zero size hides it from humans while
   leaving it fillable by bots, and occupies no layout space. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  padding: .875rem 1rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-msg--err { background: #FDECEC; color: #B3261E; }
.form-msg--ok  { background: #E7F6EF; color: var(--ok); }

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.cart-items {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child { border-bottom: 0; }

.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  background: var(--swatch, var(--blue));
  flex: none;
}

.cart-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, .26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .26) 1px, transparent 1px);
  background-size: 8px 8px;
}

.cart-info b { display: block; font-size: .9375rem; font-weight: 600; color: var(--deep); line-height: 1.4; }
.cart-info span { font-size: .8125rem; color: var(--ink-3); }

.cart-row .qty button { min-height: 2.25rem; width: 2.25rem; font-size: 1rem; }
.cart-row .qty input { width: 2.75rem; }

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--ink-3);
  transition: all .18s var(--ease);
}

.icon-btn:hover { background: #FDECEC; color: #B3261E; }

.cart-aside {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  background: var(--mist-2);
}

.cart-aside h3 { margin-bottom: 1.25rem; color: var(--deep); }

.empty-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

.empty-state p { color: var(--ink-2); margin-bottom: 1.5rem; }

/* ---------- CTA band ---------- */
.band {
  position: relative;
  background: var(--deep);
  color: var(--white);
  overflow: hidden;
}

.band-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.band h2 { color: var(--white); margin-bottom: .5rem; }
.band p  { color: rgba(255, 255, 255, .7); font-size: 1.0625rem; }

.band .grid-field {
  background-image:
    linear-gradient(to right,  rgba(94, 197, 232, .2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 197, 232, .2) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 82% 50%, #000 8%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 100% at 82% 50%, #000 8%, transparent 72%);
}

[dir="rtl"] .band .grid-field {
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 18% 50%, #000 8%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 100% at 18% 50%, #000 8%, transparent 72%);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-list { display: grid; gap: 1.5rem; }

.contact-item { display: grid; gap: .25rem; }

.contact-item b {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

[dir="rtl"] .contact-item b { letter-spacing: 0; }

.contact-item a, .contact-item span { font-size: 1rem; color: var(--deep); font-weight: 500; }
.contact-item a:hover { color: var(--blue); }

/* ---------- About ---------- */
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.25rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, .66);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer .logo-text b { color: var(--white); }
.site-footer .logo-text span { color: rgba(255, 255, 255, .5); }

.footer-brand p { margin-top: 1.125rem; max-width: 24rem; line-height: 1.75; }

.footer-col h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.125rem;
}

[dir="rtl"] .footer-col h4 { letter-spacing: 0; }

.footer-col ul { list-style: none; display: grid; gap: .625rem; }
.footer-col a { transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.125rem;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}

.toast.is-open { transform: translateY(0); opacity: 1; }
.toast svg { flex: none; color: var(--sky); }

/* ---------- 404 ---------- */
.err {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.err h1 { color: var(--deep); margin-bottom: .875rem; }
.err p { color: var(--ink-2); margin-bottom: 2rem; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 0; justify-self: start; }
  .route { max-width: 300px; }
  .detail { grid-template-columns: 1fr; }
  .detail-visual { position: static; max-width: 22rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav-toggle { display: grid; }

  /* Anchored under the header. `top: 100%` follows the real header
     height instead of assuming a fixed 72px. */
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gut) 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .24s var(--ease);
  }

  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav a { padding: .8125rem .25rem; font-size: 1rem; border-radius: 0; }
  .nav a + a { border-top: 1px solid var(--line); }

  /* The header row must never exceed the screen. The logo is allowed
     to shrink and truncate; the controls keep their size. */
  .header-in { gap: .5rem; min-height: 76px; }

  .logo { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .logo-img { width: auto !important; height: 60px !important; max-width: 200px !important; max-height: 60px !important; }
  .logo-text { min-width: 0; }
  .logo-text b {
    font-size: .9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-tools { margin-inline-start: auto; flex: none; gap: .375rem; }

  /* Drop the cart label on small screens — the count badge carries
     the meaning and the full Arabic label is what breaks the row. */
  .cart-btn { padding: .4375rem .5625rem; }
  .cart-btn > span:last-child { display: none; }

  .lang-switch { padding: .4375rem .5625rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }

  /* Two rows: item on top, controls beneath. Trying to fit a thumbnail,
     name, stepper and delete button on one 360px row is what broke. */
  .cart-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "thumb info info"
      "qty   qty  remove";
    gap: .75rem;
    padding: 1rem;
  }

  .cart-thumb { grid-area: thumb; width: 44px; height: 44px; }
  .cart-info  { grid-area: info; min-width: 0; }
  .cart-info b { overflow-wrap: break-word; }
  .cart-row .qty { grid-area: qty; justify-self: start; }
  .cart-row .icon-btn { grid-area: remove; }

  .band-in { flex-direction: column; align-items: flex-start; }

  .toast { inset-inline: 1rem; bottom: 1rem; }

  /* Spec table stacks — two columns of Arabic can't fit 320px. */
  .spec-table, .spec-table tbody, .spec-table tr { display: block; width: 100%; }
  .spec-table tr { padding-block: .875rem; }
  .spec-table th, .spec-table td {
    display: block;
    width: 100%;
    padding: 0;
  }
  .spec-table th { margin-bottom: .25rem; }

  .filters { gap: .375rem; }
  .filter { padding: .4375rem .75rem; font-size: .8125rem; }
}

@media (max-width: 480px) {
  .logo-text span { display: none; }
  .btn { padding: .8125rem 1.25rem; }
  .btn-row .btn { flex: 1 1 auto; min-width: 0; }

  /* Tighter gutters buy back 16px of content width. */
  :root { --gut: 1rem; }

  .hero-stats { gap: 1rem .75rem; }
  .hero-stats div b { font-size: 1.25rem; }

  /* Product/quote actions stack rather than squeeze side by side. */
  .product-foot { flex-direction: column; gap: .5rem; }
  .product-foot .btn { width: 100%; flex: none; }

  .qty-row { flex-wrap: wrap; }
  .qty-row .qty { flex: none; }
  .qty-row .btn { flex: 1 1 100%; }

  .route { max-width: 100%; }

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

/* Very small / older devices (320px). */
@media (max-width: 360px) {
  .logo-text b { font-size: .875rem; }
  .cart-btn { padding: .375rem .5rem; }
  .lang-switch { padding: .375rem .5rem; font-size: .75rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .route-stem::after { display: none; }
}

/* ---------- Client logos strip ---------- */
.clients-strip {
  padding-block: 2rem;
  background: var(--mist-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.clients-track {
  overflow: hidden;
  /* Fade the edges so tiles don't cut off abruptly. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: clients-scroll 36s linear infinite;
}

/* RTL pages scroll toward the right, LTR pages toward the left —
   each feels like "forward" in that reading direction. */
[dir="rtl"] .clients-row { animation-name: clients-scroll-rtl; }
[dir="ltr"] .clients-row { animation-name: clients-scroll-ltr; }

@keyframes clients-scroll-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes clients-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* Pause on hover/focus so a visitor can actually read a name or click one. */
.clients-track:hover .clients-row,
.clients-row:focus-within {
  animation-play-state: paused;
}

.client-tile {
  flex: none;
  display: grid;
  place-items: center;
  height: 56px;
  width: 140px;
  padding: .5rem 1rem;
  transition: transform .18s var(--ease);
}
.client-tile:hover,
.client-tile:focus-visible {
  transform: scale(1.06);
}
.client-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 560px) {
  .clients-strip { padding-block: 1.5rem; }
  .clients-row { gap: 2rem; }
  .client-tile { height: 44px; width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-row { animation: none; }
  .clients-track { overflow-x: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .band, .btn, .toast { display: none !important; }
  body { color: #000; }
}

/* ---------- Powered by Casper Solutions ---------- */
.credit-line {
  text-align: center;
  padding-block: .875rem;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 1.5rem;
}
.credit-line a {
  display: inline-block;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .18s ease;
}
.credit-line a:hover,
.credit-line a:focus-visible {
  color: var(--sky, #5EC5E8);
  text-decoration: underline;
}
