/* ============================================================
   Shengxing Machinery — Global B2B Site
   Visual Scheme D: Dynamic Efficiency
   Charcoal (#1a1c20) + Safety Orange (#ff6a00) + Bright White
   ============================================================ */

:root {
  --charcoal: #1a1c20;
  --charcoal-2: #25282e;
  --charcoal-3: #32363d;
  --orange: #ff6a00;
  --orange-dk: #e35d00;
  --steel: #8a9099;
  --steel-lt: #c7ccd2;
  --bg: #f4f5f7;
  --white: #ffffff;
  --ink: #1a1c20;
  --line: #e2e5ea;
  --shadow: 0 10px 40px rgba(20, 22, 26, 0.10);
  --shadow-lg: 0 24px 70px rgba(20, 22, 26, 0.18);
  --maxw: 1240px;
  --rad: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Utility ---------- */
.accent { color: var(--orange); }
.eyebrow {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  position: relative;
  padding-left: 42px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 30px; height: 2px;
  background: var(--orange);
  transform: translateY(-50%);
}

.section { padding: 92px 0; }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.section-sub { color: var(--steel); max-width: 640px; font-size: 16px; }
.section-dark .section-sub { color: var(--steel-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--rad);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,106,0,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--orange); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,28,32,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 42px; width: auto; display: block; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--orange);
  display: grid; place-items: center;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px;
  color: #fff; border-radius: var(--rad);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 80% 100%, 0 100%);
}
.brand-name { color: #fff; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.brand-name small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--steel); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  color: #ffffff; font-family: "Oswald", sans-serif; font-weight: 500;
  font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.nav-cta .btn { white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }

/* ---------- Hero (Split Layout) ---------- */
.hero {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100dvh;
  background: #15161a;
  overflow: hidden;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 80px 100px;
  position: relative;
  z-index: 10;
}

.hero-right {
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.hero-image-full-wrap {
  position: relative;
  width: 120%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: -20%;
  z-index: 5;
}

.hero-image-full-wrap img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
}

.hero-floating-badge {
  position: absolute;
  bottom: 20%;
  right: 15%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,106,0,.4);
  border-radius: 16px;
  padding: 20px 28px;
  background: rgba(26,28,32,.85);
  backdrop-filter: blur(12px);
  width: fit-content;
  z-index: 15;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero-left .eyebrow {
  color: var(--orange);
  margin-bottom: 24px;
}

.hero-left h1 {
  font-size: clamp(40px, 5vw, 72px);
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.04;
  letter-spacing: -1px;
  font-weight: 800;
}

.hero-left h1 .accent {
  display: block;
  color: #fff;
}

.hero-left p {
  font-size: 20px;
  color: var(--steel-lt);
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-right {
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-full-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 24px;
}

.hero-image-full-wrap img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  object-position: center center;
  filter: none;
}

/* Orange solid experience badge (bottom-left, per mockup) */
.hero-exp-badge {
  margin-top: 40px;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 26px 16px;
  width: fit-content;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(255,106,0,.30);
}

.hero-exp-badge .num {
  font-family: "Oswald", sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -1px;
}

.hero-exp-badge .lbl {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.4);
  width: 100%;
}

/* Remove old hero-bg references */
.hero-bg { display: none; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--orange); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 38px 24px; text-align: center; color: #fff;
  border-right: 1px solid rgba(255,255,255,.22);
}
.stat:last-child { border-right: 0; }
.stat .num { font-family: "Oswald", sans-serif; font-size: 42px; font-weight: 700; line-height: 1; }
.stat .lbl { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; opacity: .92; }

/* ---------- USP cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.usp-card {
  background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.06);
  padding: 38px 30px; border-radius: var(--rad);
  transition: transform .3s ease, border-color .3s ease;
}
.usp-card:hover { transform: translateY(-6px); border-color: rgba(255,106,0,.5); }
.usp-icon {
  width: 56px; height: 56px; background: rgba(255,106,0,.14); color: var(--orange);
  display: grid; place-items: center; border-radius: var(--rad); margin-bottom: 20px;
  font-size: 26px; font-weight: 700; font-family: "Oswald", sans-serif;
}
.usp-card h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.usp-card p { color: var(--steel-lt); font-size: 15px; }

/* ---------- Product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-thumb { aspect-ratio: 4/3; background: #eceef1; overflow: hidden; position: relative; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange); color: #fff; font-family: "Oswald", sans-serif;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.prod-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 19px; margin-bottom: 8px; }
.prod-body .spec { color: var(--steel); font-size: 14px; margin-bottom: 16px; flex: 1; }
.prod-body .spec strong { color: var(--orange); }
.prod-link {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 8px;
}
.prod-link:hover { color: var(--orange); }

/* ---------- Detailed product blocks ---------- */
.product-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rad);
  margin-bottom: 40px; overflow: hidden; box-shadow: var(--shadow);
}
.product-block-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.product-block-img { background: #eceef1; min-height: 340px; }
.product-block-img img { width: 100%; height: 100%; object-fit: cover; }
.product-block-intro { padding: 44px; }
.product-block-intro .model { color: var(--orange); font-family: "Oswald", sans-serif; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.product-block-intro h3 { font-size: 28px; margin: 8px 0 16px; }
.product-block-intro .usp-list { list-style: none; margin: 18px 0 26px; }
.product-block-intro .usp-list li { padding: 8px 0 8px 28px; position: relative; color: #444; font-size: 15px; }
.product-block-intro .usp-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--orange); font-weight: 700;
}
.badge-ce {
  display: inline-block; border: 1.5px solid var(--charcoal); border-radius: 50%;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 13px;
  padding: 8px 10px; letter-spacing: 1px; margin-right: 10px;
}

/* ---------- Spec table ---------- */
.spec-table-wrap { padding: 0 44px 44px; overflow-x: auto; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec-table th, table.spec-table td {
  border: 1px solid var(--line); padding: 11px 14px; text-align: left;
}
table.spec-table thead th {
  background: var(--charcoal); color: #fff; font-family: "Oswald", sans-serif;
  letter-spacing: .5px; text-transform: uppercase; font-size: 13px; font-weight: 500;
}
table.spec-table tbody tr:nth-child(even) { background: #f8f9fb; }
table.spec-table td:first-child { font-weight: 600; color: var(--charcoal); background: #f2f3f6; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-imgs img { border-radius: var(--rad); height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-imgs img:first-child { grid-row: span 2; aspect-ratio: 3/5; }
.timeline { list-style: none; margin-top: 24px; }
.timeline li { padding: 14px 0 14px 32px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 20px;
  width: 12px; height: 12px; background: var(--orange); border-radius: 50%;
}
.timeline .yr { font-family: "Oswald", sans-serif; font-weight: 700; color: var(--orange); font-size: 17px; }

/* ---------- About (enhanced) ---------- */
.page-hero-sub {
  max-width: 720px; margin: 16px auto 0;
  color: var(--steel-lt); font-size: 18px; line-height: 1.6;
}
.section-tag {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  position: relative; padding-left: 42px; margin-bottom: 14px;
}
.section-tag::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 30px; height: 2px; background: var(--orange); transform: translateY(-50%);
}
.about-content p { color: #44474d; font-size: 16px; margin-bottom: 16px; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px;
}
.about-stat {
  background: #f7f8fa; border-left: 3px solid var(--orange);
  border-radius: var(--rad); padding: 18px 16px;
}
.about-stat .num {
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: 28px; color: var(--charcoal); line-height: 1;
}
.about-stat .lbl {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--steel); margin-top: 8px; font-weight: 500;
}

/* Evolution timeline */
.evolution-section { background: var(--bg); }
.evolution-head { text-align: center; margin-bottom: 52px; }
.evolution-head .section-tag { padding-left: 0; }
.evolution-head .section-tag::before { display: none; }
.timeline-evolution {
  margin-top: 0; max-width: 880px; margin-left: auto; margin-right: auto;
}
.timeline-evolution li {
  padding: 0 0 36px 40px; border-left: 2px solid var(--line);
}
.timeline-evolution li:last-child { padding-bottom: 0; }
.timeline-evolution li::before {
  top: 4px; left: -9px; width: 16px; height: 16px;
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--orange);
}
.timeline-evolution .yr {
  font-size: 20px; letter-spacing: .5px; margin-bottom: 6px;
}
.timeline-evolution .tl-title {
  font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: 20px; color: var(--charcoal); text-transform: none;
  letter-spacing: 0; margin-bottom: 8px; line-height: 1.25;
}
.timeline-evolution p { color: #44474d; font-size: 15.5px; line-height: 1.65; margin: 0; }

@media (max-width: 760px) {
  .about-stats { grid-template-columns: 1fr; }
}

/* Legacy single complete image */
.about-img-single {
  border-radius: var(--rad); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-single img {
  width: 100%; height: auto; display: block; object-fit: contain;
}

/* Company profile video */
.video-section { background: var(--bg); }
.video-wrap {
  max-width: 960px; margin: 44px auto 0;
  border-radius: var(--rad); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000;
  aspect-ratio: 16/9;
}
.video-wrap video {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}

/* Facilities + Certifications (redesigned — minimal business) */
.facilities-section { background: var(--charcoal); }
.facilities-section .section-title { color: #fff; }
.facil-intro {
  max-width: 680px; margin: 14px auto 0;
  color: var(--steel); font-size: 16px; line-height: 1.6;
}
.facilities-section .facil-intro { color: var(--steel-lt); }

/* 2x2 grid — images shown complete (no aggressive crop) */
.facility-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px; margin-top: 48px;
}
.facility-card {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 8px; background: #000;
}
.facility-card img {
  width: 100%; height: auto; display: block; aspect-ratio: 3/2;
  object-fit: cover; transition: transform .5s ease;
}
.facility-card:hover img { transform: scale(1.04); }
.facility-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 20px 16px;
  font-family: "Oswald", sans-serif; font-size: 15px;
  letter-spacing: .5px; color: #fff;
  background: linear-gradient(to top, rgba(10,11,13,.88), rgba(10,11,13,0));
}
.facility-card figcaption::before {
  content: ""; display: inline-block;
  width: 22px; height: 2px; background: var(--orange);
  vertical-align: middle; margin-right: 10px;
}

/* Certifications & Patents — clearly separated */
.cert-section { background: var(--bg); }
.cert-split {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 48px; margin-top: 48px; align-items: start;
}
.cert-sub-title {
  font-family: "Oswald", sans-serif; font-size: 18px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--charcoal);
  padding-bottom: 12px; margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
}
.cert-sub-title .cert-count { color: var(--orange); }

/* CE block (left, highlighted) */
.cert-ce-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; box-shadow: var(--shadow);
}
.cert-ce-card img { width: 100%; height: auto; display: block; border-radius: 4px; }
.cert-ce-meta { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.cert-badge {
  flex: none; width: 52px; height: 52px; border-radius: 6px;
  background: var(--orange); color: #fff;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.cert-ce-name {
  font-family: "Oswald", sans-serif; font-size: 16px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 4px;
}
.cert-ce-desc { font-size: 13px; line-height: 1.55; color: var(--steel); margin: 0; }

/* Patent block (right, compact grid) */
.cert-patent-intro { font-size: 14px; color: var(--steel); margin: -10px 0 22px; line-height: 1.55; }
.patent-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.patent-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.patent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.patent-card img {
  width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 3px;
}
.patent-card figcaption { padding: 8px 4px 2px; text-align: left; }
.patent-type {
  display: inline-block; font-family: "Oswald", sans-serif;
  font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--steel); padding: 2px 6px; border: 1px solid var(--line);
  border-radius: 3px; margin-bottom: 5px;
}
.patent-invention .patent-type { color: #fff; background: var(--orange); border-color: var(--orange); }
.patent-name {
  display: block; font-size: 11.5px; line-height: 1.35; color: var(--charcoal); font-weight: 500;
}

@media (max-width: 980px) {
  .cert-split { grid-template-columns: 1fr; gap: 40px; }
  .cert-ce-block { max-width: 360px; margin: 0 auto; }
  .patent-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .facility-grid-2 { grid-template-columns: 1fr; }
  .patent-grid { grid-template-columns: repeat(2, 1fr); }
}

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.cert-grid img { aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); border-radius: var(--rad); background:#fff; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--orange); color: #fff; text-align: center; padding: 70px 0;
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-banner p { font-size: 17px; margin-bottom: 28px; opacity: .95; }
.cta-banner .btn-dark { background: var(--charcoal); }
.cta-banner .btn-dark:hover { background: #000; }

/* ---------- Contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-card {
  background: var(--charcoal-2); color: #fff; padding: 40px; border-radius: var(--rad);
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.info-row .ic { color: var(--orange); font-size: 18px; min-width: 24px; }
.info-row .t small { display: block; color: var(--steel); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.info-row .t span { color: var(--steel-lt); }

/* Contact team cards */
.contact-team-intro { color: var(--steel-lt); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
.contact-team { display: flex; flex-direction: column; gap: 14px; }
.person-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--orange);
  border-radius: 8px; padding: 18px 20px;
  transition: background .2s ease, transform .2s ease;
}
.person-card:hover { background: rgba(255,255,255,.07); transform: translateX(2px); }
.person-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.person-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.person-name {
  font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 600;
  color: #fff; letter-spacing: .5px;
}
.person-channels { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.person-channels li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.person-channels .ch-ic { flex: none; width: 18px; text-align: center; font-size: 13px; opacity: .9; margin-top: 1px; }
.person-channels a, .person-channels .ch-text { min-width: 0; }
.person-channels a { color: var(--steel-lt); transition: color .2s ease; overflow-wrap: anywhere; }
.person-channels li > a, .person-channels li > .ch-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
.person-channels a:hover { color: var(--orange); }
.person-channels .ch-text { color: var(--steel-lt); }
.ch-tag {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--orange);
  border: 1px solid rgba(255,106,0,.4); border-radius: 3px;
  padding: 1px 5px; margin-right: 6px; vertical-align: middle;
}
.info-address { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: none; padding-bottom: 0; }

form.inquiry { background: #fff; padding: 40px; border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow); }
form.inquiry .fld { margin-bottom: 18px; }

/* ---------- Category Nav ---------- */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 76px;
  z-index: 90;
}
.category-links {
  display: flex;
  justify-content: center;
  list-style: none;
  overflow-x: auto;
  gap: 30px;
  padding: 15px 0;
}
.category-links a {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
  transition: color .25s;
}
.category-links a:hover { color: var(--orange); }

.category-title {
  font-size: 32px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.category-desc {
  color: var(--steel);
  font-size: 16px;
  max-width: 800px;
  margin-bottom: 44px;
  line-height: 1.6;
}

form.inquiry label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; color: #555; }
form.inquiry input, form.inquiry select, form.inquiry textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--rad);
  font-family: inherit; font-size: 15px; background: #fafbfc; transition: border-color .2s;
}
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
form.inquiry .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.inquiry textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--steel); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #121317; color: var(--steel-lt); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: 1px; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 6px 0; font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.footer-about p { font-size: 14px; line-height: 1.7; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center;
  font-size: 13px; color: var(--steel);
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--charcoal); color: #fff; padding: 70px 0; text-align: center;
  border-bottom: 3px solid var(--orange);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); }
.page-hero .crumb { color: var(--steel); font-size: 14px; letter-spacing: 1px; margin-top: 12px; text-transform: uppercase; }
.page-hero .crumb .accent { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .prod-grid { grid-template-columns: 1fr 1fr; }
  .product-block-head { grid-template-columns: 1fr; }
  .about-split, .contact-split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--charcoal); padding: 20px 28px; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.1); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: flex; gap: 10px; margin-left: auto; margin-right: 12px; }
  .nav-cta .btn-primary { display: none; }
  .grid-3, .prod-grid, .cert-grid, .row2 { grid-template-columns: 1fr !important; }
  .section { padding: 60px 0; }
  .hero-badge { display: none; }
  .spec-table-wrap, .product-block-intro { padding: 24px; }
  form.inquiry, .contact-info-card { padding: 26px; }
}


/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #fff; cursor: pointer; padding: 8px 12px; border-radius: var(--rad);
  font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: 1px;
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--orange); background: rgba(255,106,0,.12); }
.lang-globe { font-size: 15px; line-height: 1; }
.lang-current-label { font-weight: 600; }
.lang-caret { font-size: 10px; opacity: .7; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad);
  box-shadow: var(--shadow-lg); min-width: 188px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 200;
  max-height: 70vh; overflow-y: auto;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 10px 12px; border-radius: 3px; font-family: inherit;
  font-size: 14px; color: var(--ink); transition: background .15s;
}
.lang-item:hover { background: #f2f3f6; }
.lang-item.active { background: rgba(255,106,0,.1); color: var(--orange-dk); font-weight: 600; }
.lang-item .lang-code {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 12px;
  min-width: 26px; color: var(--orange); letter-spacing: .5px;
}
.lang-item.active .lang-code { color: var(--orange-dk); }

/* RTL support (Arabic) */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .eyebrow { padding-left: 0; padding-right: 42px; }
html[dir="rtl"] .eyebrow::before { left: auto; right: 0; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 18px; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .hero-inner { text-align: right; }
html[dir="rtl"] .hero-bg::after {
  background: linear-gradient(270deg, rgba(20,22,26,.96) 0%, rgba(20,22,26,.80) 45%, rgba(20,22,26,.25) 100%);
}
html[dir="rtl"] .hero-badge { right: auto; left: 5%; }
html[dir="rtl"] .product-block-intro .usp-list li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .product-block-intro .usp-list li::before { left: auto; right: 0; }
html[dir="rtl"] .timeline li { border-left: 0; border-right: 2px solid var(--line); padding-left: 0; padding-right: 32px; }
html[dir="rtl"] .timeline li::before { left: auto; right: -7px; }
html[dir="rtl"] table.spec-table th,
html[dir="rtl"] table.spec-table td { text-align: right; }
html[dir="rtl"] .info-row { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .stat { border-right: 0; border-left: 1px solid rgba(255,255,255,.22); }
html[dir="rtl"] .stat:last-child { border-left: 0; }

@media (max-width: 680px) {
  .lang-switch { margin: 0; }
  .lang-menu { right: 0; left: auto; }
  .lang-toggle { padding: 7px 10px; }
}

/* ============================================================
   Bento Grid — USP Section
   ============================================================ */
.bento-section { background: #f0f1f4; padding: 96px 0; }

.bento-header { margin-bottom: 44px; }
.bento-accent-line {
  display: block;
  width: 40px; height: 3px;
  background: var(--orange);
  margin-bottom: 18px;
  border-radius: 2px;
}
.bento-title {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: -0.5px;
  font-weight: 800;
}

/* Grid layout: left tall card + right 2x2 */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-tall {
  grid-row: span 2;
}

/* Base card */
.bento-card {
  border-radius: 12px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20,22,26,.14);
}

/* Dark card (precision) */
.bento-dark {
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}

.bento-metric {
  font-family: "Oswald", sans-serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.bento-metric.white { color: #fff; }

.bento-card-title {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin-bottom: 14px;
}
.bento-card-title.dark {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--charcoal);
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card-body {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}
.bento-card-body.dark { color: var(--steel); }

.bento-link {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.bento-link:hover { gap: 10px; }

/* Light cards */
.bento-light {
  background: #fff;
  border: 1px solid rgba(20,22,26,.07);
  box-shadow: 0 2px 12px rgba(20,22,26,.06);
}

.bento-highlight {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 10px;
  line-height: 1.4;
}

.bento-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
}

.bento-icon-wrap {
  flex-shrink: 0;
  opacity: .85;
}

/* Orange capacity card */
.bento-orange {
  background: var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
}

.bento-unit {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-top: 4px;
}

.bento-cap-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tall { grid-row: span 1; min-height: 280px; }
  .bento-dark { min-height: 280px; }
}

/* ============================================================
   Hero responsive
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 100px 40px 60px; text-align: center; align-items: center; order: 2; }
  .hero-left p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-exp-badge { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
  .hero-exp-badge .lbl { text-align: center; }
  .hero-right { padding: 0; height: auto; order: 1; }
  .hero-image-full-wrap { height: auto; justify-content: center; }
  .hero-image-full-wrap img { width: 100%; height: auto; object-fit: contain; }
}

@media (max-width: 680px) {
  .hero-left { padding: 60px 24px 40px; }
  .hero-left h1 { font-size: clamp(38px, 10vw, 56px); }
  .hero-exp-badge { padding: 14px 22px; }
  .hero-exp-badge .num { font-size: 42px; }
}

/* ============================================================
   Products Page Layout & Sidebar (Fixed & Sticky)
   ============================================================ */
.products-hero { background: #1a1c20; color: #fff; padding: 60px 0; text-align: center; border-bottom: 4px solid #ff6a00; }
.products-hero h1 { font-size: 42px; margin: 0; }
.products-hero .crumb { margin-top: 10px; font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.products-hero .accent { color: #ff6a00; }

.products-layout { display: flex; gap: 30px; margin-top: 40px; align-items: flex-start; padding-bottom: 80px; }
.sidebar { width: 300px; flex-shrink: 0; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 25px; position: sticky; top: 100px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 10; }
.sidebar-title { font-family: 'Oswald', sans-serif; font-size: 18px; color: #333; margin-bottom: 20px; border-bottom: 2px solid #ff6a00; padding-bottom: 10px; text-transform: uppercase; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin-bottom: 5px; }
.sidebar-menu a { color: #666; text-decoration: none; font-size: 14px; display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-radius: 4px; transition: 0.3s; line-height: 1.4; border-bottom: 1px solid #f0f0f0; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: #ff6a00 !important; color: #ffffff !important; padding-left: 20px; }
.sidebar-menu a:hover .count, .sidebar-menu a.active .count { background: rgba(255,255,255,0.25) !important; color: #ffffff !important; }

.main-content { flex: 1; min-width: 0; }
.category-group { margin-bottom: 60px; scroll-margin-top: 120px; }
.category-header { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.category-header h2 { font-size: 26px; color: #1a1c20; margin: 0; font-family: 'Oswald', sans-serif; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: #ff6a00; }
.card-img { aspect-ratio: 1/1; background: #fff; padding: 15px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f5f5f5; }
.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body .model-name { font-family: 'Oswald', sans-serif; font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-body h3 { font-size: 16px; margin: 0 0 12px; color: #333; line-height: 1.4; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-range { font-family: 'Oswald', sans-serif; color: #ff6a00; font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.card-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.btn-card { padding: 10px 5px; text-align: center; font-size: 13px; font-family: 'Oswald', sans-serif; text-transform: uppercase; text-decoration: none; border-radius: 3px; font-weight: 600; transition: 0.2s; cursor: pointer; }
.btn-view { background: #333; color: #fff; }
.btn-view:hover { background: #000; }
.btn-chat { background: #ff6a00; color: #fff; }
.btn-chat:hover { background: #e35d00; }

@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .products-layout { flex-direction: column; } .sidebar { width: 100%; position: static; margin-bottom: 30px; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } .products-hero h1 { font-size: 32px; } }

/* ============================================================
   Product Detail Page (unified layout: nav + sidebar + content)
   ============================================================ */
/* Back to Products — polished pill button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 4px;
  padding: 11px 22px;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 40px;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(20,22,26,.05);
}
.back-btn .back-arrow { font-size: 16px; transition: transform .25s ease; }
.back-btn:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(255,106,0,.28);
}
.back-btn:hover .back-arrow { transform: translateX(-4px); }

/* Two-column detail layout */
.product-detail-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-top: 18px;
  padding-bottom: 90px;
}
.detail-sidebar { top: 96px; }
.detail-main { flex: 1; min-width: 0; }

/* Product hero (image + info) */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.product-image {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-image img { width: 100%; height: auto; object-fit: contain; }
.product-image video { width: 100%; margin-top: 16px; border-radius: 6px; background: #000; }

.product-info { display: flex; flex-direction: column; justify-content: center; }
.product-info .oswald,
h2.oswald, h1.oswald, .oswald {
  font-family: "Oswald", sans-serif;
}
.product-info > h2.oswald {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.product-info h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.product-info > p.oswald {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* USP list */
.usp-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.usp-item {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: #f7f8fa;
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  font-size: 15px;
  color: #3a3d44;
  line-height: 1.5;
}
.usp-item::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19 20 8l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19 20 8l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* Detail gallery (product-details image grid on detail pages) */
.detail-gallery { margin-top: 56px; }
.detail-gallery-heading {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--charcoal);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 22px;
}
.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* 4-image variant: 2x2 grid on desktop for visual balance */
.detail-gallery-grid.four-cols {
  grid-template-columns: repeat(2, 1fr);
}
/* 7-image variant: first image spans full width as banner, other 6 in 3x2 grid */
.detail-gallery-grid.seven-imgs {
  grid-template-columns: repeat(3, 1fr);
}
.detail-gallery-grid.seven-imgs .detail-gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.detail-gallery-grid.seven-imgs .detail-gallery-item:first-child img {
  object-position: center;
}
@media (max-width: 900px) {
  .detail-gallery-grid.seven-imgs .detail-gallery-item:first-child {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 520px) {
  .detail-gallery-grid.seven-imgs .detail-gallery-item:first-child {
    aspect-ratio: 1 / 1;
  }
}
/* 9-image variant: pure 3x3 grid, all cards equal size, no banner focal */
.detail-gallery-grid.nine-imgs {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .detail-gallery-grid.nine-imgs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .detail-gallery-grid.nine-imgs {
    grid-template-columns: 1fr;
  }
}
/* 5-image variant: pure 3-column grid, all cards equal 1:1 (3 top row + 2 second row) */
.detail-gallery-grid.five-imgs {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .detail-gallery-grid.five-imgs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .detail-gallery-grid.five-imgs {
    grid-template-columns: 1fr;
  }
}
/* 6-image variant: pure 3-column x 2-row grid, all cards equal 1:1 */
.detail-gallery-grid.six-imgs {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .detail-gallery-grid.six-imgs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .detail-gallery-grid.six-imgs {
    grid-template-columns: 1fr;
  }
}
.detail-gallery-item {
  display: block;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.detail-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26,28,32,.12);
  border-color: var(--orange);
}
.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* On the first row (3 cols), items 4 and 5 wrap to a second row and span 1.5 cols each */
.detail-gallery-item:nth-child(4),
.detail-gallery-item:nth-child(5) {
  grid-column: span 1;
}
@media (max-width: 900px) {
  .detail-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-gallery-item:nth-child(4),
  .detail-gallery-item:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 520px) {
  .detail-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Spec section */
.spec-wrap { margin-top: 56px; }
.spec-heading {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--charcoal);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--orange);
  margin-bottom: 22px;
}
.detail-main table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.detail-main table.spec-table th,
.detail-main table.spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.detail-main table.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--charcoal);
  background: #f2f3f6;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: .5px;
}
.detail-main table.spec-table tr:last-child th,
.detail-main table.spec-table tr:last-child td { border-bottom: 0; }

/* CTA section */
.detail-main .cta-section {
  margin-top: 56px;
  background: var(--charcoal);
  color: #fff;
  border-radius: 10px;
  padding: 52px 44px;
  text-align: center;
}
.detail-main .cta-section h2.oswald {
  font-family: "Oswald", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.detail-main .cta-section p { color: var(--steel-lt); margin-bottom: 26px; font-size: 16px; }
.detail-main .cta-section .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 38px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  transition: all .25s ease;
}
.detail-main .cta-section .btn-primary:hover {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,106,0,.35);
}

.detail-footer { margin-top: 0; padding: 30px 0; text-align: center; background: #121317; }
.detail-footer p { font-size: 13.5px; color: var(--steel-lt); letter-spacing: .3px; }

/* Detail page responsive */
@media (max-width: 980px) {
  .product-detail-layout { flex-direction: column; }
  .detail-sidebar { width: 100%; position: static; margin-bottom: 8px; }
  .product-hero { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}
@media (max-width: 600px) {
  .product-hero { padding: 20px; }
  .detail-main .cta-section { padding: 38px 24px; }
  .detail-main table.spec-table th { width: 45%; }
}
