/* ============================================================
   DongZhuo Soles — B2B Independent Site
   Brand colors (from ZD logo):
     --brand   #1A4F8C  deep industrial blue  (primary)
     --brand-2 #2DA3DC  sky blue              (secondary)
     --accent  #C8102E  brand red             (CTA / emphasis)
     --ink     #0F1A2B  body text
     --bg      #FFFFFF  page
     --bg-alt  #F4F6FA  card
     --line    #E2E6EE  hairline
============================================================ */

:root {
  --brand: #1A4F8C;
  --brand-2: #2DA3DC;
  --accent: #C8102E;
  --ink: #0F1A2B;
  --ink-2: #3B475C;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --line: #E2E6EE;
  --warn: #F59E0B;
  --ok: #16A34A;
  --shadow: 0 1px 2px rgba(15,26,43,.04), 0 4px 16px rgba(15,26,43,.06);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --header-h: 72px;
  --side-fab: 56px;
  --tr: .2s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.nav-links { display: flex; gap: 4px; margin-left: 16px; flex: 1; }
.nav-links a {
  color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; position: relative;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-alt); color: var(--brand); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 4px; flex-wrap: wrap; max-width: 360px; }
.lang-switch button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.lang-switch button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.lang-switch .more {
  position: relative;
}
.lang-switch .more-menu {
  position: absolute; right: 0; top: 130%; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; min-width: 220px; max-height: 320px; overflow: auto; display: none;
  z-index: 100;
}
.lang-switch .more.open .more-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.lang-switch .more-menu button { width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; }
.lang-switch .more-menu button:hover { background: var(--bg-alt); }
.mobile-toggle { display: none; background: transparent; border: 0; padding: 8px; color: var(--ink); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: all var(--tr); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #a30c25; color: #fff; border-color: #a30c25; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: #0f3a6c; color: #fff; border-color: #0f3a6c; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F2A52 0%, #1A4F8C 50%, #2DA3DC 100%);
  color: #fff; padding: 80px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 20% 10%, #fff 0, transparent 40%),
                    radial-gradient(circle at 80% 90%, #2DA3DC 0, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.18);
}
.hero h1 { font-size: 48px; line-height: 1.1; margin: 16px 0 12px; font-weight: 900; letter-spacing: -.5px; }
.hero h1 span { color: #FFC940; }
.hero p { font-size: 17px; opacity: .92; margin: 0 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: var(--accent); border-color: var(--accent); }
.hero-cta .btn-primary:hover { background: #fff; color: var(--accent); }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 36px; max-width: 520px; }
.hero-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 16px 18px; }
.hero-stat b { display: block; font-size: 28px; line-height: 1; }
.hero-stat small { opacity: .8; font-size: 12px; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 20px; backdrop-filter: blur(10px);
}
.hero-card img { width: 100%; border-radius: 12px; }
.hero-card .row { display: flex; gap: 8px; margin-top: 12px; }
.hero-card .row span { font-size: 11px; background: rgba(255,255,255,.14); padding: 4px 8px; border-radius: 6px; }

/* ---------------- sections ---------------- */
section { padding: 64px 0; }
section h2 { font-size: 32px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.3px; }
section .sub { color: var(--muted); font-size: 15px; margin: 0 0 32px; max-width: 720px; }
section.tight { padding: 40px 0; }
.alt-bg { background: var(--bg-alt); }

/* ---------------- categories & filters ---------------- */
.shop-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filter-panel h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); }
.filter-group { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.filter-group h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.filter-group input[type=checkbox] { accent-color: var(--brand); }
.filter-group input[type=range] { width: 100%; accent-color: var(--brand); }
.filter-group .price-range { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.filter-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group .chip { padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.filter-group .chip.on { background: var(--brand); color: #fff; }
.filter-group .sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.filter-group .sizes .chip { text-align: center; padding: 6px 0; }
.filter-group .colors { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group .swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.filter-group .swatch.on { box-shadow: 0 0 0 2px var(--brand); }
.filter-group .stars { display: flex; gap: 4px; }
.filter-group .stars .chip { font-size: 12px; }
.filter-actions { display: flex; gap: 8px; margin-top: 20px; }

/* ---------------- products ---------------- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.shop-toolbar .cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-toolbar .cat-chips button {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all var(--tr);
}
.shop-toolbar .cat-chips button:hover { border-color: var(--brand); color: var(--brand); }
.shop-toolbar .cat-chips button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.shop-toolbar .sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.shop-toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; font: inherit; }
.shop-toolbar .count { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all var(--tr); cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdd4e2; }
.product-thumb { aspect-ratio: 4/3; background: var(--bg-alt); position: relative; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #FAFBFC; transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 14px; background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e3e8f1 12px, #e3e8f1 24px); }
.product-thumb .cat-tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.95); color: var(--brand); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.product-thumb .rating { position: absolute; top: 10px; right: 10px; background: rgba(15,26,43,.7); color: #FFD54A; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.product-body { padding: 14px 16px 16px; }
.product-body h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.product-body .pid { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.product-body .price { margin: 6px 0 10px; font-size: 18px; color: var(--accent); font-weight: 800; }
.product-body .price small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.product-body .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.product-body .meta span { font-size: 11px; background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; color: var(--ink-2); }
.product-body .actions { display: flex; gap: 6px; margin-top: 12px; }
.product-body .actions .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; }

/* ---------------- about / capabilities / partners ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: all var(--tr); }
.feature-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.feature-card .icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 6px; font-size: 16px; }
.feature-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-grid .img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-grid .stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 24px; }
.about-grid .stats > div { padding: 16px; background: var(--bg-alt); border-radius: var(--radius); }
.about-grid .stats b { font-size: 28px; color: var(--brand); display: block; line-height: 1; }
.about-grid .stats small { color: var(--muted); font-size: 12px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 580px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.partners-banner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.partners-banner img { max-width: 100%; height: auto; }
.partners-banner .cap { color: var(--accent); font-style: italic; font-size: 13px; margin: 4px 0 12px; font-weight: 600; }

/* ---------------- inquiry / contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-card h3 { margin: 0 0 16px; font-size: 20px; }
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(26,79,140,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.contact-info { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; }
.contact-info h3 { margin: 0 0 16px; }
.contact-info .item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #dde3ed; }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .item b { color: var(--brand); display: block; font-size: 13px; }
.contact-info .item span { font-size: 14px; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.form-msg.ok { background: #DCFCE7; color: #14532D; }
.form-msg.err { background: #FEE2E2; color: #7F1D1D; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brand); transition: transform var(--tr); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------------- footer ---------------- */
.site-footer { background: #0F1A2B; color: #cdd4e2; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 14px; }
.site-footer a { color: #cdd4e2; display: block; padding: 4px 0; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright { border-top: 1px solid #1f2a40; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #8590a8; }
.site-footer .brand { color: #fff; }

/* ---------------- left floating side rail ---------------- */
.side-rail {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 10px;
}
.side-rail button, .side-rail a {
  width: var(--side-fab); height: var(--side-fab); border-radius: 50%;
  display: grid; place-items: center; color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(15,26,43,.18); transition: all var(--tr);
  position: relative;
}
.side-rail button:hover, .side-rail a:hover { transform: scale(1.08); }
.side-rail .whatsapp { background: #25D366; }
.side-rail .wechat { background: #07C160; }
.side-rail .email { background: var(--brand); }
.side-rail .phone { background: var(--accent); }
.side-rail .top { background: #0F1A2B; }
.side-rail .label {
  position: absolute; left: calc(var(--side-fab) + 12px); top: 50%; transform: translateY(-50%);
  background: #0F1A2B; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--tr);
}
.side-rail button:hover .label, .side-rail a:hover .label { opacity: 1; }
.wechat-pop {
  position: fixed; left: 80px; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; z-index: 60;
  box-shadow: 0 12px 40px rgba(15,26,43,.18); width: 240px; display: none;
}
.wechat-pop.open { display: block; }
.wechat-pop h4 { margin: 0 0 8px; font-size: 14px; }
.wechat-pop .qr { background: repeating-conic-gradient(#07C160 0% 25%, #fff 0% 50%) 50%/16px 16px; width: 200px; height: 200px; border-radius: 8px; margin: 0 auto; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.wechat-pop small { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 6px; }
@media (max-width: 580px) {
  .side-rail { left: 8px; }
  .side-rail button, .side-rail a { width: 44px; height: 44px; }
  .wechat-pop { left: 60px; width: 200px; }
  .side-rail .top { display: none; }
}

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; background: rgba(15,26,43,.6); z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-card { background: #fff; border-radius: var(--radius-lg); max-width: 920px; width: 100%; max-height: 90vh; overflow: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; background: #fff; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-body { padding: 24px; }
.modal-body .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .modal-body .row { grid-template-columns: 1fr; } }
.modal-body .thumb { aspect-ratio: 4/3; background: var(--bg-alt); border-radius: 12px; overflow: hidden; }
.modal-body .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-body h2 { margin: 0 0 6px; font-size: 24px; }
.modal-body .pid { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.modal-body .price { font-size: 26px; color: var(--accent); font-weight: 800; margin: 8px 0; }
.modal-body .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; font-size: 13px; }
.modal-body .meta-grid div { background: var(--bg-alt); padding: 8px 10px; border-radius: 6px; }
.modal-body .meta-grid b { color: var(--brand); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.modal-body .desc { font-size: 14px; color: var(--ink-2); margin: 12px 0; line-height: 1.7; }
.modal-body .actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.modal-body .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.modal-body .tags span { background: var(--bg-alt); padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.modal-body .opt { margin: 12px 0; }
.modal-body .opt b { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.modal-body .opt .swatches { display: flex; gap: 6px; }
.modal-body .opt .swatches .sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.modal-body .opt .sizes-row { display: flex; gap: 4px; flex-wrap: wrap; }
.modal-body .opt .sizes-row .s { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; cursor: pointer; }
.modal-body .opt .sizes-row .s.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------------- cookie banner ---------------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  background: #0F1A2B; color: #fff; border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 40px rgba(15,26,43,.25);
  flex-wrap: wrap;
}
.cookie-bar p { margin: 0; font-size: 13px; opacity: .92; flex: 1; min-width: 220px; }
.cookie-bar .links a { color: #FFC940; font-size: 12px; text-decoration: underline; }
.cookie-bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-alt); }
.admin-side { background: #0F1A2B; color: #cdd4e2; padding: 18px; }
.admin-side .brand { color: #fff; margin-bottom: 18px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #cdd4e2; font-size: 14px; font-weight: 600; cursor: pointer; }
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(255,255,255,.06); color: #fff; }
.admin-side .who { margin-top: auto; padding: 10px 12px; font-size: 12px; opacity: .7; border-top: 1px solid #1f2a40; }
.admin-main { padding: 24px 28px; overflow: auto; }
.admin-main h1 { font-size: 24px; margin: 0 0 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.admin-card h2 { margin: 0 0 12px; font-size: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 980px) { .admin-stats { grid-template-columns: repeat(2,1fr); } }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.admin-stat b { font-size: 22px; color: var(--brand); display: block; }
.admin-stat small { color: var(--muted); font-size: 12px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--bg-alt); }
.admin-login .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 380px; }
.admin-login h1 { margin: 0 0 6px; font-size: 22px; }
.admin-login p { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.admin-2fa { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.admin-2fa input { text-align: center; font-size: 20px; font-weight: 700; padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.admin-tabs button { background: transparent; border: 0; padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.admin-tabs button.active { color: var(--brand); border-color: var(--brand); }

/* ---------------- legal pages ---------------- */
.legal { max-width: 880px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 36px; margin: 0 0 12px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal ul { padding-left: 22px; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); z-index: 60; }
  .nav-links.open a { padding: 12px; border-radius: 0; }
  .mobile-toggle { display: inline-flex; }
  .shop-wrap { grid-template-columns: 1fr; }
  .filter-panel { position: static; max-height: none; }

  /* ---- mobile header: never let the language switch clip over the brand ---- */
  .nav { height: auto; flex-wrap: wrap; padding: 8px 0; gap: 10px 16px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-tools { width: 100%; justify-content: space-between; margin-left: 0; gap: 10px; }
  .lang-switch { max-width: 100%; flex: 1 1 auto; }

  /* ---- hero centered on tablet / large phone (single column already kicks in) ---- */
  .hero2-right { text-align: center; align-items: center; }
  .hero2-left { text-align: center; }
  .hero2-product-card { margin: 0 auto; }
  .hero2-eyebrow { align-self: center; }
  .hero2-desc { text-align: center; }
  .hero2-title { overflow-wrap: break-word; }
}
@media (max-width: 580px) {
  section { padding: 48px 0; }
  section h2 { font-size: 26px; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 30px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { padding: 12px; }
  .admin-side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side .who { display: none; }
  /* ---- small phone: compact lang switch so it never wraps over content ---- */
  .lang-switch { gap: 3px; }
  .lang-switch button { padding: 3px 8px; font-size: 11px; }
  .brand small { max-width: 110px; }
  .container { padding: 0 16px; }
}

/* ============================================================
   Hero v3.0 (classic dual-column lampbox — left card + right text)
============================================================ */
.hero2 { position: relative; padding: 60px 0 56px; background: var(--bg); overflow: hidden; }
.hero2::before { content: ""; position: absolute; inset: 0; opacity: .05; background-image: radial-gradient(circle at 90% 20%, #C8102E 0, transparent 30%), radial-gradient(circle at 10% 90%, #1A4F8C 0, transparent 40%); }
.hero2-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.hero2-left { display: flex; flex-direction: column; gap: 0; }
.hero2-product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; cursor: zoom-in; min-height: 320px; }
.hero2-product-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #FAFBFC; transition: transform .4s; }
.hero2-product-card:hover img { transform: scale(1.03); }

.hero2-right { display: flex; flex-direction: column; }
.hero2-eyebrow { display: inline-block; padding: 6px 16px; background: rgba(200,16,46,.08); color: var(--accent); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; align-self: flex-start; }

.hero2-title { margin: 0 0 18px; font-size: 52px; line-height: 1.05; font-weight: 900; letter-spacing: -.5px; color: var(--ink); }
.hero2-t1 { display: block; color: var(--ink); }
.hero2-t2 { display: block; color: var(--brand); margin-top: 4px; }

.hero2-desc { font-size: 16px; color: var(--ink-2); margin: 0 0 26px; max-width: 540px; line-height: 1.65; }

.hero2-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; border-radius: 4px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.hero2-btn-primary { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.hero2-btn-primary:hover { background: #a30c25; border-color: #a30c25; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,16,46,.3); }
.hero2-btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.hero2-btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.hero2-stats { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero2-stat { padding: 0 12px; }
.hero2-stat b { display: block; font-size: 32px; line-height: 1; color: var(--brand); font-weight: 900; }
.hero2-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.hero2-stat-divider { width: 1px; background: var(--line); }

/* Responsive */
@media (max-width: 980px) {
  .hero2 { padding: 40px 0 36px; }
  .hero2-grid { grid-template-columns: 1fr; gap: 28px; overflow: hidden; }
  .hero2-title { font-size: 40px; }
  .hero2-stats { padding: 18px 0; }
  .hero2-stat b { font-size: 26px; }
  /* The card had min-height:320px from desktop; at 16:10 that forces 512px width
     and overflows narrow viewports. Drop min-height + cap width so the card
     fits the column. */
  .hero2-product-card { aspect-ratio: 16/10; min-height: 0; max-width: 100%; }
  .hero2-left { align-items: center; }
  .hero2-desc { max-width: 100%; }
}
@media (max-width: 580px) {
  .hero2-title { font-size: 30px; text-align: center; }
  .hero2-cta { flex-direction: column; align-items: stretch; }
  .hero2-cta .hero2-btn { justify-content: center; }
  .hero2-stats { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .hero2-stat-divider { display: none; }
  .hero2-left { text-align: center; align-items: center; }
  .hero2-product-card { margin: 0 auto; }
  .hero2-right { text-align: center; align-items: center; }
  .hero2-eyebrow { align-self: center; }
  .hero2-desc { text-align: center; max-width: 100%; }
}

/* ============================================================
   Marquee (auto-scroll product strip)
============================================================ */
.marquee-section { padding: 40px 0 48px; background: #fff; overflow: hidden; }
.marquee-section h2 { font-size: 22px; margin: 0 0 6px; }
.marquee-section .sub { font-size: 14px; color: var(--muted); margin: 0; }
.marquee-track {
  display: flex; gap: 18px; padding: 22px 0;
  overflow: hidden; white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track::before, .marquee-track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; pointer-events: none; z-index: 2; }
.marquee-track::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee-track::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-run { display: flex; gap: 18px; flex-shrink: 0; animation: marquee-scroll var(--mq-speed, 40s) linear infinite; padding-right: 18px; }
.marquee-track:hover .marquee-run { animation-play-state: var(--mq-pause, paused); }
.marquee-run .item { flex: 0 0 220px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); position: relative; }
.marquee-run .item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.marquee-run .item:hover img { transform: scale(1.05); }
.marquee-run .item .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; padding: 18px 10px 8px; font-size: 12px; font-weight: 700; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 18px)); } }

/* ============================================================
   Lightbox (image zoom)
============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,26,43,.92); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 32px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.lightbox .lightbox-cap { color: #fff; margin-top: 12px; font-size: 13px; opacity: .9; text-align: center; }
.lightbox .lightbox-close { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; color: #0F1A2B; }
.lightbox .lightbox-close:hover { background: var(--accent); color: #fff; }

/* ============================================================
   Modal gallery + size table
============================================================ */
.modal-gallery { display: flex; flex-direction: column; gap: 10px; }
.modal-main-img { aspect-ratio: 1/1; background: var(--bg-alt); border-radius: 12px; overflow: hidden; }
.modal-main-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .3s; }
.modal-main-img img:hover { transform: scale(1.02); }
.modal-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.modal-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; opacity: .7; transition: opacity .2s; }
.modal-thumb:hover { opacity: 1; }
.modal-thumb.on { border-color: var(--brand); opacity: 1; }

/* ---- detail gallery: 1 main + 2 side (3-image layout) ---- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; aspect-ratio: 1/1; background: var(--bg-alt); border-radius: 12px; overflow: hidden; }
.detail-main { background: var(--bg-alt); overflow: hidden; position: relative; cursor: zoom-in; }
.detail-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.detail-main:hover img { transform: scale(1.04); }
.detail-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.detail-thumb { background: var(--bg-alt); overflow: hidden; cursor: pointer; position: relative; border: 2px solid transparent; transition: border-color .2s, opacity .2s; opacity: .85; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb:hover { opacity: 1; }
.detail-thumb.on { border-color: var(--brand); opacity: 1; }
.detail-thumb.empty, .detail-main.placeholder { background: linear-gradient(135deg, #F1F5F9, #E2E8F0); display: grid; place-items: center; color: var(--ink-2); font-weight: 700; font-size: 13px; letter-spacing: .5px; cursor: default; }
.detail-main.placeholder { font-size: 18px; letter-spacing: 1px; }
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: 1fr; grid-template-rows: 1.6fr 1fr; aspect-ratio: auto; }
  .detail-side { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
  .detail-grid { min-height: 480px; }
}
.modal-section { margin: 12px 0; }
.modal-section h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); font-weight: 800; }
.modal-section p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.modal-section p b { color: var(--ink); }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-table th, .size-table td { padding: 6px 8px; border: 1px solid var(--line); text-align: center; }
.detail-extra { margin-top: 6px; color: var(--ink-2); font-size: 12px; text-align: center; }
.size-table th { background: var(--bg-alt); font-weight: 700; color: var(--brand); }
.modal-body .swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-body .swatches .sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.modal-body .thumb.placeholder { font-size: 16px; }

/* ============================================================
   Canvas Editor (in-page inline editing)
============================================================ */
body.ed-on { padding-top: 64px; }
.ed-toolbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 99; background: #0F1A2B; color: #fff; border-radius: 999px; padding: 10px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 13px; }
.ed-toolbar .ed-brand { font-weight: 800; }
.ed-toolbar .ed-hint { color: rgba(255,255,255,.7); font-size: 12px; }
.ed-toolbar .ed-btn { background: var(--accent); color: #fff; border: 0; padding: 8px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; font-size: 12px; }
.ed-toolbar .ed-btn-secondary { background: rgba(255,255,255,.1); color: #fff; }
.ed-toolbar .ed-btn-link { background: rgba(45,163,220,.2); color: #2DA3DC; }
.ed-toolbar .ed-btn-primary:hover { background: #a30c25; }

.ed-on [data-edit]:not(img):not(a) { outline: 1px dashed rgba(26,79,140,.35); outline-offset: 2px; cursor: text; }
.ed-on img[data-edit] { outline: 2px dashed rgba(26,79,140,.45); cursor: zoom-in; }
.ed-on a[data-edit] { outline: 2px dashed rgba(45,163,220,.45); cursor: pointer; }
.ed-on [data-edit]:hover { outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(26,79,140,.08); }

.ed-popover { position: absolute; z-index: 100; min-width: 320px; max-width: 420px; background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(15,26,43,.25); border: 1px solid var(--line); font-size: 13px; overflow: hidden; }
.ed-popover-head { background: var(--ink); color: #fff; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.ed-popover-head b { font-weight: 700; }
.ed-popover-head .ed-x { background: transparent; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ed-popover-body { padding: 12px 14px; }
.ed-popover-foot { padding: 8px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: #fafbfc; }
.ed-popover-foot .ed-cancel { background: transparent; border: 1px solid var(--line); padding: 6px 14px; border-radius: 4px; cursor: pointer; }
.ed-popover-foot .ed-save { background: var(--brand); color: #fff; border: 0; padding: 6px 18px; border-radius: 4px; font-weight: 700; cursor: pointer; }

.ed-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: edToastIn .3s ease both; }
.ed-toast-hide { opacity: 0; transition: opacity .5s; }
@keyframes edToastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 760px) {
  .ed-toolbar { flex-wrap: wrap; max-width: calc(100vw - 24px); gap: 6px; padding: 8px 12px; }
  .ed-toolbar .ed-hint { display: none; }
}

/* ============================================================
   Video Showcase (Factory & Equipment)
============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #0F1A2B; cursor: pointer; box-shadow: 0 8px 24px rgba(15,26,43,.15); }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video-card:hover video { transform: scale(1.04); }
.video-card .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent, rgba(0,0,0,.35)); transition: opacity .3s; }
.video-card .play-overlay .play-btn { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .3s; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.video-card .play-overlay .play-btn::after { content: ""; width: 0; height: 0; border-left: 16px solid #C8102E; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video-card:hover .play-overlay .play-btn { transform: scale(1.15); background: #fff; }
.video-card:hover .play-overlay { opacity: .85; }
.video-card .vc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.video-card .vc-tag { position: absolute; top: 10px; left: 10px; background: rgba(200,16,46,.95); color: #fff; padding: 3px 9px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.video-empty { padding: 32px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 10px; background: rgba(255,255,255,.5); }
.video-empty b { color: var(--ink); display: block; margin-bottom: 6px; }

/* Lightbox player */
.video-lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.video-lightbox[hidden] { display: none; }
.video-lightbox .vl-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3); color: #fff; font-size: 28px; cursor: pointer; transition: all .2s; }
.video-lightbox .vl-close:hover { background: var(--accent); border-color: var(--accent); }
.video-lightbox .vl-inner { max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; gap: 14px; }
.video-lightbox video { width: 100%; max-height: 78vh; border-radius: 8px; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.video-lightbox .vl-cap { color: #fff; text-align: center; font-size: 14px; opacity: .9; padding: 0 20px; }

@media (max-width: 580px) {
  .video-grid { grid-template-columns: 1fr; }
}
