/* =====================================================================
   Aolemon — OpticalGlass.cn
   Industrial tech style: deep navy + dark grey + white, generous white
   space, clean sans-serif. Fully responsive. RTL-ready for Arabic.
   ===================================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #123a66;
  --blue: #134e8f;
  --teal: #37c9b0;
  --teal-deep: #1f8fa8;
  --ink: #1d2b3a;
  --slate: #5b6b7b;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-tint: #eef3f9;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select, [dir="rtl"] button {
  font-family: var(--font-ar);
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .45em;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1.6px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); box-shadow: 0 8px 20px rgba(11, 37, 69, .25); }
.btn-ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn-ghost:hover { background: rgba(11, 37, 69, .06); }
.btn-teal { background: var(--teal); color: #062b34; }
.btn-teal:hover { background: #2fd6bb; box-shadow: 0 8px 20px rgba(55, 201, 176, .3); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(11, 37, 69, .06); }

.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-mark { flex: none; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.brand-name b { font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a.nav-cta {
  color: #fff;
  background: var(--navy);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 6px;
}
.main-nav a.nav-cta:hover { background: var(--blue); }

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

/* language selector */
.lang-select { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.lang-btn:hover { border-color: #c3d0dd; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 150px;
  display: none;
  z-index: 70;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button.active { background: var(--navy); color: #fff; font-weight: 600; }

/* mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #0b2545 0%, #0e2f58 55%, #134e8f 100%);
  color: #fff;
  padding: 88px 0 92px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.28fr .72fr; gap: 32px; align-items: center; }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(55, 201, 176, .12);
  border: 1px solid rgba(55, 201, 176, .35);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.hero-sub { font-size: 17.5px; color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-trust { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.hero-trust li { font-size: 14px; color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.hero-illu { width: 100%; height: auto; }

/* ===================== STATS ===================== */
.stats { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 30px 0; }
.stat { text-align: center; padding: 6px 10px; }
.stat-num { display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; letter-spacing: -.01em; }
.stat-label { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .68); margin-top: 4px; }

/* ===================== SECTIONS ===================== */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-sub { color: var(--slate); font-size: 17px; margin: 0; }

/* ===================== CATEGORY CARDS ===================== */
.cats { background: var(--bg); }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bcd2e8; color: inherit; }
.cat-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.cat-card h3 { font-size: 21px; margin-bottom: 10px; }
.cat-card p { color: var(--slate); font-size: 14.5px; margin-bottom: 20px; }
.cat-cta { font-weight: 700; color: var(--blue); font-size: 14.5px; }

/* ===================== PRODUCT GROUPS ===================== */
.products { background: var(--bg-soft); }
.p-group { margin-bottom: 34px; }
.p-group-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}
.p-group-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.p-group-head h3 { font-size: 22px; margin-bottom: 2px; }
.p-group-head p { margin: 0; color: var(--slate); font-size: 14px; }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.p-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.load-more {
  grid-column: 1 / -1;
  margin: 14px auto 4px;
  padding: 12px 26px;
  border: 1.5px dashed var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.load-more:hover { background: var(--blue); color: #fff; }
.load-more-done {
  grid-column: 1 / -1;
  margin: 14px auto 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: .02em;
}
.p-img { margin: -4px -4px 12px; border-radius: 8px; overflow: hidden; background: #f2f5f8; }
.p-img img { display: block; width: 100%; height: 170px; object-fit: cover; }
.p-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.p-item p { font-size: 13.5px; color: var(--slate); margin-bottom: 12px; flex-grow: 1; }
.p-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--bg-tint);
  border: 1px solid #d5e2ef;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===================== MARKETS ===================== */
.markets { background: #fff; }
.market-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1000px; margin: 0 auto; }
.m-chip {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  transition: all .18s ease;
}
.m-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

/* ===================== WHY / FEATURES ===================== */
.why { background: var(--navy); }
.why .section-head h2 { color: #fff; }
.why .section-sub { color: rgba(255, 255, 255, .7); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: background .2s ease, transform .2s ease;
}
.feature:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  background: var(--teal);
  color: #062b34;
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.feature p { color: rgba(255, 255, 255, .72); font-size: 14px; margin: 0; }

/* ===================== CUSTOM SOLUTIONS ===================== */
.custom { background: var(--bg-soft); }
.custom-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.svc {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.svc-icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.svc h3 { font-size: 16px; margin-bottom: 4px; }
.svc p { font-size: 13.5px; color: var(--slate); margin: 0; }
.process-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.process-panel > h3 { font-size: 20px; margin-bottom: 18px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { position: relative; padding: 0 0 22px 44px; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 13px;
  top: 30px; bottom: 2px;
  width: 2px;
  background: var(--line);
}
.step-num {
  position: absolute;
  inset-inline-start: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 15.5px; margin-bottom: 3px; }
.step p { font-size: 13.5px; color: var(--slate); margin: 0; }

/* ===================== ABOUT ===================== */
.about { background: #fff; }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 18px; }
.about-copy p { color: var(--slate); font-size: 15.5px; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 4px;
  width: 17px; height: 17px;
  background: var(--teal);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
}
.about-illu { width: 100%; height: auto; }

/* ===================== FAQ ===================== */
.faq { background: var(--bg-soft); }
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  text-align: start;
}
.faq-q span:first-child { line-height: 1.4; }
.faq-arrow { color: var(--blue); transition: transform .2s ease; flex: none; display: inline-flex; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--slate); font-size: 15px; }

/* ===================== CONTACT ===================== */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 16px; }
.contact-info > p { color: var(--slate); font-size: 16px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--ink); font-size: 15px; }
.contact-list svg { color: var(--navy); flex: none; }
.contact-wa { margin-top: 24px; }

.inquiry-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}
.inquiry-form h3 { font-size: 22px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 78, 143, .12);
}
.form-error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.form-note { font-size: 12.5px; color: var(--slate); text-align: center; margin: 14px 0 0; }
.form-success { text-align: center; padding: 18px 0 8px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand-light { color: #fff; }
.footer-brand p { font-size: 14.5px; color: rgba(255, 255, 255, .66); margin-top: 18px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255, 255, 255, .66); font-size: 14px; margin-bottom: 12px; transition: color .15s ease; }
.footer-col a:hover { color: var(--teal); }
.footer-contact p { font-size: 14px; color: rgba(255, 255, 255, .66); margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--teal); }
.footer-lang-links { margin: 0; }

/* ===================== FLOATING QUOTE CTA ===================== */
.quote-float {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal);
  color: #062b34;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(11, 37, 69, .28);
  transition: transform .18s ease, background .18s ease;
}
.quote-float:hover { transform: translateY(-3px); background: #2fd6bb; color: #062b34; }

/* ===================== COOKIE BAR ===================== */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
  padding: 16px 0;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: 13.5px; max-width: 760px; }
.cookie-actions { display: flex; gap: 10px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-illu { max-width: 560px; }
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-wrap { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset-inline: 0; top: 72px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 6vw 24px;
    box-shadow: 0 18px 34px rgba(11, 37, 69, .12);
    display: none;
    max-height: calc(100vh - 72px);
    overflow: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; font-size: 16px; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cats-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .products-layout { grid-template-columns: 1fr; gap: 18px; }
  .subcat-sidebar { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; }
  .subcat-item { flex: 1 1 150px; }
}

@media (max-width: 560px) {
  .p-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie-bar .container { flex-direction: column; align-items: flex-start; }
  .quote-float { bottom: 18px; inset-inline-end: 18px; padding: 12px 18px; font-size: 14px; }
}

/* ===================== RTL fine-tuning ===================== */
[dir="rtl"] .brand-name { letter-spacing: 0; }
[dir="rtl"] .hero-trust li::before { margin-inline-end: 0; }
[dir="rtl"] .step { padding: 0 44px 22px 0; }
[dir="rtl"] .step:not(:last-child)::before { inset-inline-start: auto; inset-inline-end: 13px; }
[dir="rtl"] .step-num { inset-inline-start: auto; inset-inline-end: 0; }
[dir="rtl"] .check-list li { padding-inline-start: 0; padding-inline-end: 28px; }
[dir="rtl"] .check-list li::before { inset-inline-start: auto; inset-inline-end: 0; }

/* smooth focus */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ===================== SUB-PAGES (multi-page SEO build) ===================== */
.page-hero {
  background: linear-gradient(140deg, #0b2545 0%, #134e8f 100%);
  color: #fff;
  padding: 84px 0 76px;
  margin-top: 0;
}
.page-hero .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .02em;
  margin-bottom: 22px; color: rgba(255, 255, 255, .72);
}
.page-hero .crumbs a { color: #8fd8e0; text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero .crumbs .crumb-sep { color: rgba(255, 255, 255, .45); }
.sub-h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15; color: #fff; margin: 0 0 16px; max-width: 20em;
}
.sub-lead {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: rgba(255, 255, 255, .9); max-width: 44em; margin: 0 0 6px;
}
#subHost p:not(.sub-lead) { color: rgba(255, 255, 255, .82); max-width: 52em; margin: 10px 0 0; line-height: 1.65; }
#subHost ul.sub-points {
  margin: 18px 0 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px;
}
#subHost ul.sub-points li {
  position: relative; padding-inline-start: 24px;
  color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.5;
}
#subHost ul.sub-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(55, 201, 176, .9);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
}
.sub-sec { padding: 80px 0 40px; }
.sub-sec .p-group { margin-bottom: 56px; }
.sub-sec .p-group:last-child { margin-bottom: 0; }
.sub-related {
  margin: 46px 0 0; padding: 26px 30px; border-radius: 14px;
  background: #f2f6fb; border: 1px solid #e2eaf3;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.sub-related h3 { margin: 0 10px 0 0; font-size: 16px; color: var(--blue); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-chips .m-chip { font-size: 15px; padding: 10px 16px; }
.sub-note { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.sub-note p { margin: 0; flex: 1 1 280px; color: #45536a; line-height: 1.6; }

/* ===================== 1688-STYLE PRODUCT SUB-CATEGORY NAV ===================== */
.products-layout { display: grid; grid-template-columns: 248px 1fr; gap: 30px; align-items: start; }
.subcat-sidebar {
  position: sticky; top: 86px; align-self: start;
  background: #fff; border: 1px solid #e6edf5; border-radius: 14px;
  padding: 10px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.subcat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; text-decoration: none;
  color: #33425a; font-size: 14.5px; line-height: 1.25;
  transition: background .15s, color .15s;
}
.subcat-item:hover { background: #f1f6fc; color: #0b2545; }
.subcat-item.active { background: #0b2545; color: #fff; }
.subcat-item.active .subcat-ico { color: #fff; }
.subcat-ico { flex: 0 0 22px; color: #37c9b0; display: flex; }
.subcat-ico svg { width: 20px; height: 20px; }
.subcat-name { flex: 1 1 auto; }
.subcat-count {
  flex: 0 0 auto; font-size: 12px; color: #8a98ad; background: #eef3f9;
  border-radius: 20px; padding: 1px 9px; min-width: 26px; text-align: center;
}
.subcat-item.active .subcat-count { background: rgba(255, 255, 255, .18); color: #fff; }
.subcat-h2 { font-size: 20px; margin: 0 0 16px; color: #0b2545; }

.cta-band {
  background: linear-gradient(120deg, #0b2545, #10407a);
  color: #fff; padding: 56px 0; margin-top: 60px;
}
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-inner h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 46em; line-height: 1.6; }
.cta-inner .btn { margin-top: 8px; }
.sub-contact { padding: 40px 0 90px; }

/* keep the header nav readable with 8 items on narrow desktops */
@media (max-width: 1160px) and (min-width: 861px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 13.5px; }
  .brand-name { font-size: 17px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 56px 0 50px; }
}

/* ===================== PRODUCT DETAIL MODAL ===================== */
.p-item { cursor: pointer; }
.p-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.modal-open { overflow: hidden; }
.p-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 22px; }
.p-modal-mask { position: absolute; inset: 0; background: rgba(11, 37, 69, .58); backdrop-filter: blur(2px); }
.p-modal-box {
  position: relative; z-index: 1;
  background: var(--bg);
  border-radius: 16px;
  width: 100%; max-width: 760px;
  max-height: 88vh; overflow: auto;
  box-shadow: 0 26px 70px rgba(11, 37, 69, .32);
  animation: p-modal-in .18s ease;
}
@keyframes p-modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.p-modal-x {
  position: sticky; top: 10px; left: 100%;
  width: 38px; height: 38px; margin-left: -48px; margin-bottom: -48px;
  border: 0; border-radius: 50%;
  background: rgba(11, 37, 69, .55); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.p-modal-x:hover { background: var(--blue); }
.p-modal-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; padding: 26px 26px 28px; margin-top: -38px; }
.p-modal-img { border-radius: 12px; overflow: hidden; background: var(--bg-tint); align-self: start; }
.p-modal-img img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; }
.p-modal-info h3 { font-size: 21px; color: var(--navy); margin: 2px 0 10px; line-height: 1.35; }
.p-modal-desc { font-size: 14px; color: var(--slate); line-height: 1.7; margin: 0 0 14px; white-space: pre-line; }
.p-modal-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
/* gallery thumbs */
.p-modal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.p-modal-thumb {
  width: 56px; height: 56px; padding: 0;
  border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: var(--bg-tint);
  transition: border-color .15s ease;
}
.p-modal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-modal-thumb:hover { border-color: var(--blue); }
.p-modal-thumb.active { border-color: var(--teal); }
.p-modal-main-img { transition: opacity .12s ease; }
/* attributes table */
/* product detail page (products/detail.html?id=) */
.pd-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 18px; }
.pd-crumbs a { color: var(--slate); text-decoration: none; }
.pd-crumbs a:hover { color: var(--teal); }
.pd-crumbs span { color: var(--slate); opacity: .6; }
.pd-crumbs b { color: var(--navy); font-weight: 600; }
.pd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pd-main img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 14px; background: var(--bg-tint); }
.pd-thumbs { margin-top: 12px; }
.pd-info h1 { font-size: 26px; line-height: 1.3; margin: 0 0 12px; color: var(--navy); }
.pd-desc { color: var(--slate); font-size: 15px; line-height: 1.65; }
.pd-h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.pd-attrs { border-top: 1px solid var(--bg-tint); padding: 26px 0 0; margin-top: 30px; }
.pd-descimgs { padding: 26px 0 0; }
.pd-related { margin-top: 34px; }
.pd-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pd-rel-item {
  display: block; background: var(--bg); border: 1px solid var(--bg-tint); border-radius: 12px;
  padding: 12px; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.pd-rel-item:hover { box-shadow: 0 10px 26px rgba(11, 37, 69, .12); transform: translateY(-2px); }
.pd-rel-item .p-img img { width: 100%; height: 110px; object-fit: contain; }
.pd-rel-item h4 { font-size: 12.5px; line-height: 1.4; color: var(--navy); margin: 8px 0 0; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
  .pd-wrap { grid-template-columns: 1fr; gap: 20px; }
  .pd-info h1 { font-size: 21px; }
}

.p-modal-attrs-wrap { border-top: 1px solid var(--bg-tint); padding: 0 26px 26px; }
.p-modal-attrs table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.p-modal-attrs th, .p-modal-attrs td {
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--bg-tint); vertical-align: top;
}
.p-modal-attrs th { color: var(--slate); font-weight: 600; white-space: nowrap; width: 1%; }
.p-modal-attrs td { color: var(--navy); }
.p-modal-attrs tr:last-child th, .p-modal-attrs tr:last-child td { border-bottom: 0; }
/* detail long images (1688 detail page gallery) */
.p-modal-descimgs { border-top: 1px solid var(--bg-tint); padding: 20px 26px 26px; }
.p-modal-descimgs h4 {
  margin: 0 0 12px; font-size: 15px; font-weight: 700;
  color: var(--navy); letter-spacing: .02em;
}
.p-modal-descimgs img {
  display: block; width: 100%; height: auto; margin: 0 auto 10px;
  border-radius: 10px; background: var(--bg-tint);
}
@media (max-width: 680px) {
  .p-modal-body { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px 22px; }
  .p-modal-img img { max-height: 42vh; }
  .p-modal-info h3 { font-size: 18px; }
  .p-modal-attrs-wrap { padding: 0 16px 20px; }
  .p-modal-attrs th, .p-modal-attrs td { padding: 7px 8px; }
  .p-modal-descimgs { padding: 16px 16px 20px; }
}


