/* ============================================================
   Lyrvant B2B — Industrial tech theme (deep blue + orange)
   ============================================================ */
:root {
  --navy-900: #061225;
  --navy-800: #0a1b35;
  --navy-700: #0d2a52;
  --navy-600: #123a6b;
  --blue-500: #2f6bff;
  --blue-400: #4f86ff;
  --orange:   #ff6a13;
  --orange-d: #e85d0c;
  --ink:      #16202e;
  --muted:    #5b7bb0;
  --line:     #e4ebf5;
  --bg:       #f5f8fd;
  --bg-alt:   #eef3fb;
  --white:    #ffffff;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(6,18,37,.08);
  --shadow-lg:0 18px 50px rgba(6,18,37,.14);
  --maxw:     1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.6; font-size: 16px;
  /* Long unbroken strings (SKUs, emails, URLs, filenames) must never push the
     layout wider than the viewport on phones. */
  overflow-wrap: break-word;
}
/* Places where a single token really can be longer than the column */
.pc-title, .breadcrumb, .spec-table td, .spec-table th,
.footer-col a, .info-list li, .card p, .article,
.stat-num, .stat-lbl { overflow-wrap: anywhere; }

/* Grid/flex children default to min-width:auto, which equals their min-content
   width. That is what makes a track refuse to shrink and push the page wider
   than the viewport. Allow every layout child to actually shrink. */
.contact-layout > *, .layout-side > *, .split > *, .pdp > *,
.form-grid > *, .form-grid label, .info-list li, .info-list li > *,
.stats > *, .cards-3 > *, .product-grid > *, .cat-grid > *,
.news-grid > *, .media-grid > *, .client-badges > *, .footer-grid > * { min-width: 0; }

/* Replaced elements must never exceed their box */
iframe, video, embed, object { max-width: 100%; }
.form-grid input, .form-grid textarea, .form-grid select,
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
  width: 100%; max-width: 100%; min-width: 0;
}
img { max-width: 100%; display: block; }
picture { display: block; max-width: 100%; }
.pc-img picture, .pdp-main picture, .thumb picture { width: 100%; height: 100%; display: block; }
.pc-img img, .pdp-main img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--orange); }
h1,h2,h3,h4 { line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
  max-width: 100%;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-outline { background: transparent; border-color: var(--blue-500); color: var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy-700); }
.btn-ghost:hover { border-color: var(--navy-700); }
.btn-quote { background: var(--orange); color: #fff; padding: 9px 18px; }
.btn-quote:hover { background: var(--orange-d); color: #fff; }
.btn-wa { background: #25d366; color: #fff; padding: 9px 16px; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.btn.full { width: 100%; }
.wa-ico { font-size: 16px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(6,18,37,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.brand-name { font-size: 20px; letter-spacing: .5px; }
.brand-logo { border-radius: 8px; }
.main-nav { flex: 1; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 14px; color: #cdd9ec; border-radius: 8px; font-weight: 500;
}
.nav-list a:hover, .nav-list a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,.07); padding: 3px; border-radius: 999px; }
.lang-switch a { padding: 5px 10px; color: #cdd9ec; border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang-switch a.active { background: var(--orange); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
/* Visually hidden until focused. Avoids an off-canvas element at left:-999px. */
.skip-link {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; width: auto; height: auto; margin: 0; overflow: visible;
  clip-path: none; left: 10px; top: 10px; z-index: 100;
  background: #fff; padding: 8px 12px; border-radius: 8px;
}

/* Hero carousel */
.hero { position: relative; color: #fff; }
.hero-carousel { position: relative; height: 560px; max-height: 78vh; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center; opacity: 0; transition: opacity .6s; }
.hero-slide.active { opacity: 1; }
.hero-inner { max-width: 720px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--orange); font-weight: 700; margin-bottom: 12px; }
.hero-title { color: #fff; font-size: clamp(30px, 5vw, 56px); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-sub { font-size: 18px; color: #e7eefb; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots button.active { background: var(--orange); }

/* Slogan band */
.slogan-band { background: var(--navy-900); color: #fff; text-align: center; padding: 40px 20px; }
.slogan-band h2 { color: #fff; margin: 0 0 6px; }
.slogan-band p { color: #b9c7e0; margin: 0; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0f7; }
.card-ico { width: 52px; height: 52px; border-radius: 12px; background: rgba(47,107,255,.1); color: var(--blue-500); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin-bottom: 16px; }

/* Category quick nav */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); transition: .2s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--orange); }
.cat-ico { display: inline-flex; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.cat-ico::before, .cat-row-ico::before { content: "\25C6"; font-size: 28px; line-height: 1; }
.cat-ico[data-ico="shield"]::before, .cat-row-ico[data-ico="shield"]::before { content: "\1F6E1"; }
.cat-ico[data-ico="gear"]::before, .cat-row-ico[data-ico="gear"]::before { content: "\2699"; }
.cat-ico[data-ico="wave"]::before, .cat-row-ico[data-ico="wave"]::before { content: "\1F30A"; }
.cat-ico[data-ico="spark"]::before, .cat-row-ico[data-ico="spark"]::before { content: "\2728"; }
.cat-tile h3 { margin: 0 0 6px; font-size: 17px; }

/* Product grid / cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-img { aspect-ratio: 1/1; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 16px 18px 20px; }
.pc-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange); background: rgba(255,106,19,.1); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.pc-body h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.35; }
.pc-price { color: var(--navy-700); font-weight: 700; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px; box-shadow: var(--shadow); }
.stat-num { font-size: 34px; font-weight: 800; color: var(--blue-500); }
.stat-lbl { color: var(--muted); font-size: 14px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-media { min-height: 280px; }
.media-block { height: 100%; min-height: 260px; border-radius: var(--radius); background: linear-gradient(135deg, var(--c, #0d2a52), var(--navy-900)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; box-shadow: var(--shadow); }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }

/* Clients */
.client-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client-badge { aspect-ratio: 1/1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--blue-500); box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cdd9ec; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 56px 0; }
.page-hero.slim { padding: 30px 0; }
.page-hero h1 { color: #fff; margin: 0 0 8px; }
.page-hero p { color: #cdd9ec; margin: 0; max-width: 760px; }
.reply-promise { color: var(--orange); font-weight: 600; }

/* Layout side (filters + results) */
.layout-side { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 86px; }
.filter-form h3 { margin: 0 0 16px; }
.filter-label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--navy-700); }
.filter-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; }
.result-count { color: var(--muted); margin: 0 0 18px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* PDP */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pdp-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pdp-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; background: #fff; }
.thumb.active { border-color: var(--orange); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin: 6px 0 12px; }
.pdp-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); margin-bottom: 14px; }
.pdp-meta strong { color: var(--navy-700); }
.pdp-props { font-size: 17px; }
.pdp-actions { display: flex; gap: 12px; margin: 18px 0 26px; flex-wrap: wrap; }
.pdp-sub { margin-top: 22px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table th { width: 42%; color: var(--navy-700); background: var(--bg-alt); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: #cdd9ec; }
.breadcrumb span { color: #fff; }

/* Category rows */
.cat-list { display: grid; gap: 20px; }
.cat-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.cat-row-ico { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.cat-row-side { text-align: right; }
.cat-row-side .count { display: block; color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.cat-row-body { min-width: 0; }
.cat-row-body h2 { margin: 0 0 6px; font-size: 20px; }
.cat-row-body p { margin: 0 0 8px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tl-item { position: relative; padding-top: 26px; border-top: 3px solid var(--blue-500); }
.tl-dot { position: absolute; top: -9px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.tl-year { font-weight: 800; color: var(--blue-500); font-size: 18px; }
.tl-item h3 { font-size: 16px; margin: 6px 0 6px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }

/* Media grid + certs */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-block { min-height: 200px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; font-weight: 700; color: var(--navy-700); box-shadow: var(--shadow); }

/* Contact */
.contact-layout { grid-template-columns: 360px 1fr; }
.contact-info h3 { margin-top: 0; }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list a { color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.map-wrap iframe, .map-fallback { width: 100%; height: 220px; border: 0; display: block; }
.map-fallback { display: flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--muted); }
.livechat-note { font-size: 14px; color: var(--muted); background: rgba(47,107,255,.06); padding: 12px 14px; border-radius: 10px; }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; color: var(--navy-700); gap: 6px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--blue-400); border-color: var(--blue-400); }
.dropzone { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; background: var(--bg-alt); }
.dropzone input { font: inherit; }
.dropzone small { display: block; color: var(--muted); margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert-ok { background: #e7f8ee; color: #157347; border: 1px solid #b7e6c9; }
.alert-err { background: #fdeaea; color: #b22; border: 1px solid #f3c2c2; }

/* News */
.news-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; }
.nf-media { min-height: 320px; }
.nf-body { padding: 34px; }
.nf-date { color: var(--muted); font-size: 14px; }
.nf-body h2 { margin: 6px 0 12px; }
.link, .nf-body .link { color: var(--orange); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nc-media { aspect-ratio: 16/9; }
.nc-body { padding: 18px 20px 22px; }
.nc-body h3 { font-size: 18px; margin: 6px 0 8px; }
.article { max-width: 820px; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.article .lead { font-size: 19px; color: var(--navy-700); }

/* Footer */
.site-footer { background: var(--navy-900); color: #cdd9ec; padding: 54px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col .brand { color: #fff; margin-bottom: 14px; }
.footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cdd9ec; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding-top: 18px; font-size: 14px; flex-wrap: wrap; }

/* Floating CTA + cookie */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.float-wa, .float-quote { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; box-shadow: var(--shadow-lg); }
.float-wa { background: #25d366; }
.float-quote { background: var(--orange); }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(6,18,37,.96); color: #fff; padding: 16px; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; color: #d7e1f3; font-size: 14px; }
.cookie-actions { display: flex; gap: 10px; }

/* 404 */
.notfound-code { font-size: 90px; font-weight: 900; color: var(--orange); line-height: 1; }

/* ===== Category icon glyphs ===== */
[data-ico="cube"]::before { content: "◼"; }
[data-ico="shield"]::before { content: "⛨"; }
[data-ico="gear"]::before { content: "⚙"; }
[data-ico="wave"]::before { content: "∿"; }
[data-ico="spark"]::before { content: "✦"; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr; }
  .layout-side, .contact-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-list { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-list.open { display: flex; }
  /* Mobile: the top bar can't fit brand + hamburger + 3 action buttons.
     Hide the bulky Get Quote / WhatsApp buttons (the floating CTA covers them). */
  .nav-right .btn-quote, .nav-right .btn-wa { display: none; }
  .nav-right { gap: 8px; }
}
@media (max-width: 680px) {
  .product-grid, .cat-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid, .client-badges { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 70px 1fr; }
  .cat-row-side { grid-column: 1 / -1; text-align: left; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Tighten spacing so cards/sections fit small screens without overflow */
  .product-grid, .cat-grid, .news-grid, .media-grid, .client-badges { gap: 14px; }
  .pc-body { padding: 12px 12px 16px; }
  .section { padding: 44px 0; }
  .hero-carousel { height: 420px; }
  .stats, .client-badges, .media-grid, .cards-3 { gap: 14px; }
  .timeline, .steps { gap: 14px; }

  /* Nav: shrink so brand + language switch + hamburger fit on small phones */
  .nav-wrap { gap: 10px; height: 60px; }
  .brand-name { font-size: 17px; }
  .lang-switch { gap: 2px; padding: 2px; }
  .lang-switch a { padding: 4px 7px; font-size: 12px; }
  .nav-right { gap: 6px; }

  /* Buttons: smaller, text may wrap, never exceed the container width */
  .btn { padding: 11px 16px; font-size: 14px; white-space: normal; }
  .hero-actions, .cta-actions, .pdp-actions, .cat-row-side { gap: 10px; }
  .hero-actions .btn, .cta-actions .btn, .pdp-actions .btn { flex: 1 1 auto; min-width: 0; }

  /* Stats: "±0.02mm" at 34px is wider than a half-width column on small phones */
  .stat { padding: 20px 10px; }
  .stat-num { font-size: 26px; }
}

@media (max-width: 480px) {
  /* Stack primary action buttons full-width so nothing can overflow */
  .hero-actions, .cta-actions, .pdp-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn, .pdp-actions .btn { width: 100%; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .nav-list { top: 60px; }
  .container { padding: 0 14px; }
  .stat-num { font-size: 22px; }
  .inquiry-form { padding: 18px 14px; }
}

/* ===== RTL (Arabic) ===== */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-right { order: -1; }
[dir="rtl"] .breadcrumb span { display: inline; }
[dir="rtl"] .form-grid label.full { grid-column: 1 / -1; }
[dir="rtl"] .spec-table th { text-align: right; }
[dir="rtl"] .info-list li { flex-direction: row-reverse; }
[dir="rtl"] .tick-list li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .tick-list li::before { left: auto; right: 0; }
[dir="rtl"] .pdp-thumbs, [dir="rtl"] .stats, [dir="rtl"] .cat-grid { direction: rtl; }
[dir="rtl"] .hero-actions, [dir="rtl"] .cta-actions { flex-direction: row-reverse; }
