/* ==========================================================================
   Jewelives — Shenzhen Jewelives Industrial Co., Ltd
   Design system: warm paper, deep viridian, editorial serif
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --bg-soft: #f3eee6;
  --surface: #ffffff;
  --ink: #191c1f;
  --ink-soft: #4d5257;
  --muted: #7a7f85;
  --line: rgba(25, 28, 31, 0.12);
  --line-soft: rgba(25, 28, 31, 0.07);
  --accent: #e07c10;
  --accent-deep: #8a4d06;
  --accent-soft: #fbeed8;
  --clay: #c07a52;
  --sand: #ede5d8;
  --danger: #b3423a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(25, 28, 31, 0.06), 0 4px 14px rgba(25, 28, 31, 0.05);
  --shadow-md: 0 2px 6px rgba(25, 28, 31, 0.07), 0 18px 40px rgba(25, 28, 31, 0.1);
  --shadow-lg: 0 8px 24px rgba(25, 28, 31, 0.12), 0 32px 80px rgba(25, 28, 31, 0.16);
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-locked, body.modal-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); opacity: 0.6; }
.eyebrow-sm {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--accent-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(25, 28, 31, 0.28); }
.btn-outline:hover { border-color: var(--ink); background: rgba(25, 28, 31, 0.04); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: rgba(25, 28, 31, 0.05); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { background: var(--sand); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
}
.linklike:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(250, 247, 242, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none;
}
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 9px 15px; border-radius: 999px; font-size: 0.93rem; font-weight: 600; color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: rgba(25, 28, 31, 0.05); }
.main-nav a.is-active { color: var(--accent-deep); background: var(--accent-soft); }
.header-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; right: 0; top: -6px; }
.nav-toggle span::after { left: 0; right: 0; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 76px 0 0 0; z-index: 55; background: var(--bg);
  padding: 28px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.22s ease;
}
.mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav .mobile-link {
  padding: 15px 6px; border-bottom: 1px solid var(--line-soft); font-size: 1.15rem;
  font-weight: 600; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer;
}
@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Page scaffold ---------- */
main { padding-top: 76px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 768px) { .section { padding: 68px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.page-hero { padding: 108px 0 72px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding: 88px 0 72px; }
.hero-copy .lead { margin-top: 24px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.hero-stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-media::before {
  content: ""; position: absolute; inset: -34px auto auto -34px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%); z-index: -1;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
}

/* ---------- Home: tighter vertical rhythm ---------- */
.home .hero-grid { padding: 62px 0 54px; }
.home .hero-ctas { margin-top: 30px; }
.home .hero-stats { margin-top: 42px; }
.home .section { padding: 76px 0; }
.home .section-head { margin-bottom: 42px; }
.home .cta-band { padding: 60px 52px; }
.home .site-footer { margin-top: 88px; }
@media (max-width: 960px) {
  .home .hero-grid { padding: 40px 0 40px; gap: 34px; }
}
@media (max-width: 768px) {
  .home .section { padding: 54px 0; }
  .home .section-head { margin-bottom: 30px; }
  .home .hero-stats { margin-top: 34px; }
  .home .cta-band { padding: 44px 26px; }
  .home .site-footer { margin-top: 64px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line-soft); background: var(--surface); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; flex-wrap: wrap; }
.trust-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.trust-items { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-chip {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg);
}

/* ---------- Category / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.cat-card {
  display: block; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--bg-soft); transition: transform 0.3s ease;
}
.cat-card:hover::after { transform: scale(1.35); }
.cat-card .cat-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.cat-card .cat-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 0.88rem; color: var(--accent); }

.feature-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.feature-card b { display: block; font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.feature-card .f-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--clay); margin-bottom: 14px; display: block; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1); }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-body { padding: 22px 24px 26px; }
.product-name { font-size: 1.28rem; margin: 8px 0 6px; }
.product-tagline { color: var(--ink-soft); font-size: 0.93rem; margin: 0 0 14px; }
.product-more { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ---------- Chips / filters ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 40px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all 0.18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-count { opacity: 0.55; font-size: 0.78em; margin-left: 2px; }

/* ---------- Split band (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: auto; display: block; }
.split-copy .eyebrow-sm { color: var(--accent); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); font-size: 0.97rem; }
.check-list svg { flex: none; color: var(--accent); margin-top: 3px; }

.stat-band { background: var(--accent-deep); color: #f0efe8; border-radius: var(--radius-lg); padding: 54px 48px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.stat-band .stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; line-height: 1.1; }
.stat-band .stat span { font-size: 0.85rem; opacity: 0.75; letter-spacing: 0.05em; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 8px; padding-left: 30px; display: grid; gap: 36px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.tl-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Values / certifications ---------- */
.value-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.value-card h4 { margin: 0 0 8px; font-size: 1rem; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.cert-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 20px; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
}
.cert-badge small { font-weight: 500; color: var(--muted); font-size: 0.76rem; letter-spacing: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
@media (max-width: 640px) { .form-card { padding: 26px 20px; } }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 124, 16, 0.16); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.83rem; color: var(--muted); margin: 14px 0 0; }
.form-error { color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.form-success {
  background: var(--accent-soft); border: 1px solid rgba(31, 95, 78, 0.25); color: var(--accent-deep);
  padding: 18px 20px; border-radius: 12px; font-weight: 600; margin-bottom: 20px;
}
/* Catalog requests — the catalog is never downloadable, only sent by inquiry */
.catalog-intent-note {
  background: var(--surface, #f6f4f0); border: 1px solid var(--line-soft, #e6e1d8);
  border-left: 3px solid var(--accent, #e07c10);
  padding: 16px 18px; border-radius: 12px; margin-bottom: 20px;
}
.catalog-intent-note b { display: block; margin-bottom: 6px; }
.catalog-intent-note p { margin: 0; font-size: 0.9rem; color: var(--muted, #6b6459); font-weight: 400; }
.attach-wrap { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; transition: opacity 0.2s ease; }
.attach-wrap.is-locked { opacity: 0.65; }
.attach-wrap input[type=file] { font-size: 0.88rem; }
.attach-note { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Contact info ---------- */
.info-block { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.info-item b { display: block; font-size: 0.95rem; }
.info-item p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Auth / portal ---------- */
.auth-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--shadow-md); }
@media (max-width: 560px) { .auth-card { padding: 28px 22px; } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 12px; padding: 5px; margin-bottom: 26px; }
.auth-tab { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 0.9rem; color: var(--muted); cursor: pointer; transition: all 0.18s ease; }
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-title { font-size: 1.5rem; margin-bottom: 6px; }
.auth-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.8rem; margin: 18px 0; text-transform: uppercase; letter-spacing: 0.12em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.auth-error { color: var(--danger); font-size: 0.88rem; font-weight: 600; margin: 14px 0 0; }
.form-row-split { display: flex; justify-content: flex-end; margin: -6px 0 16px; }

.jl-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: jlspin 0.7s linear infinite; vertical-align: -2px; margin-right: 4px;
}
@keyframes jlspin { to { transform: rotate(360deg); } }

.portal-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.portal-card h3 { margin-bottom: 4px; }
.portal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

.inq-list { display: grid; gap: 14px; }
.inq-row {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; background: var(--bg);
}
@media (max-width: 640px) { .inq-row { flex-direction: column; align-items: stretch; } }
.inq-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inq-msg { margin: 6px 0 8px; color: var(--ink-soft); font-size: 0.92rem; }
.inq-meta { font-size: 0.8rem; color: var(--muted); }
.inq-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.status-chip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.status-new { background: var(--sand); color: #7a6a4f; }
.status-replied { background: var(--accent-soft); color: var(--accent-deep); }

.pw-msg { font-size: 0.88rem; font-weight: 600; margin-top: 12px; }
.pw-msg.ok { color: var(--accent); }
.pw-msg.err { color: var(--danger); }

/* ---------- Modals ---------- */
.jl-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.jl-modal.is-open { display: block; }
.jl-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 23, 25, 0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadegrid 0.2s ease; }
.jl-modal-card {
  position: relative; z-index: 1; max-width: 480px; margin: 7vh auto 0; background: var(--surface);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto;
  animation: risein 0.25s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.jl-modal-card--wide { max-width: 920px; }
@media (max-width: 640px) { .jl-modal-card { margin: 4vh 14px 0; padding: 26px 20px; } }
.jl-modal-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.jl-modal-close:hover { background: var(--line-soft); color: var(--ink); }
@keyframes fadegrid { from { opacity: 0; } }
@keyframes risein { from { opacity: 0; transform: translateY(14px); } }

.product-detail { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.detail-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg-soft); }
.detail-name { font-size: 1.7rem; margin: 10px 0 4px; }
.detail-tagline { color: var(--accent); font-weight: 600; font-size: 0.98rem; margin-bottom: 16px; }
.detail-desc { color: var(--ink-soft); font-size: 0.95rem; }
.detail-features { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.detail-features li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.detail-features li::before { content: "—"; color: var(--clay); font-weight: 700; }
.spec-table { border-top: 1px solid var(--line-soft); margin: 0 0 26px; display: grid; }
.spec-table > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.spec-table dt { color: var(--muted); font-weight: 600; }
.spec-table dd { margin: 0; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Skeletons & empty states ---------- */
.skeleton-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; padding-bottom: 24px; }
.sk { background: linear-gradient(100deg, var(--bg-soft) 40%, #f7f3ec 50%, var(--bg-soft) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.sk-img { aspect-ratio: 1 / 0.92; border-radius: 0; margin-bottom: 18px; }
.sk-line { height: 14px; margin: 0 24px 10px; }
.sk-line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state.is-error { border-color: rgba(179, 66, 58, 0.35); color: var(--danger); }

/* ---------- Toasts ---------- */
.jl-toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.jl-toast {
  background: var(--ink); color: #f5f2ea; padding: 14px 20px; border-radius: 12px; font-size: 0.92rem; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.jl-toast.is-in { opacity: 1; transform: none; }
.jl-toast.is-error { background: var(--danger); }

/* ---------- CTA band & footer ---------- */
.cta-band {
  background: var(--accent-deep); color: #eef0e9; border-radius: var(--radius-lg); padding: 72px 60px;
  display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap;
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.09), transparent 45%);
}
.cta-band h2 { max-width: 18ch; }
.cta-band p { opacity: 0.8; max-width: 44ch; }
@media (max-width: 720px) { .cta-band { padding: 48px 30px; } }

.site-footer { background: var(--ink); color: #b9bcc0; margin-top: 110px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 54px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.12); }
.site-footer h5 { color: #fff; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { font-size: 0.92rem; transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; }

/* ================= LANGUAGE SWITCH (EN / ES) ================= */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-switch button { border: 0; background: transparent; font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.08em; padding: 7px 11px; border-radius: 999px; color: var(--muted); cursor: pointer; transition: all 0.18s ease; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: var(--accent); color: #fff; }
.mobile-lang { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px 6px; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.mobile-lang > span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .header-inner .lang-switch { display: none; } }

/* ================= CATALOG DOWNLOAD GATE ================= */
.gate-card { max-width: 580px; }
.gate-head { margin-bottom: 4px; }
.gate-title { font-size: 1.55rem; margin: 6px 0 2px; }
.gate-lead { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 22px; }
.gate-desc { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.55; }
.gate-form .field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); margin: 2px 0 18px; }
.gate-form .field-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.gate-alt { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; }
.gate-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.gate-done { text-align: center; }

/* ==========================================================================
   Quote cart — floating button, drawer, add buttons, inquiry list
   ========================================================================== */
body.cart-locked { overflow: hidden; }

.cart-fab {
  position: fixed; right: 22px; bottom: 88px; z-index: 110;
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(224, 124, 16, 0.35); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cart-fab:hover { transform: translateY(-2px); background: var(--accent-deep); }
.cart-fab-count {
  background: #fff; color: var(--accent-deep); min-width: 22px; height: 22px; border-radius: 999px;
  font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}

.cart-drawer {
  position: fixed; right: 22px; bottom: 152px; z-index: 115;
  width: min(400px, calc(100vw - 28px)); max-height: min(72vh, 620px);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); display: none; flex-direction: column; overflow: hidden;
}
.cart-drawer.is-open { display: flex; animation: risein 0.25s cubic-bezier(0.2, 0.65, 0.3, 1); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: 1.08rem;
}
.cart-drawer-count { color: var(--muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; }
.cart-icon-btn {
  border: 0; background: var(--bg-soft); width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); line-height: 1; flex: none;
}
.cart-icon-btn:hover { background: var(--line-soft); color: var(--ink); }
.cart-drawer-items { overflow-y: auto; padding: 6px 18px; flex: 1; }
.cart-drawer-empty { padding: 26px 22px 22px; text-align: center; }
.cart-drawer-empty p { color: var(--ink-soft); }
.cart-drawer-empty .btn { margin-top: 10px; }
.cart-drawer-empty-hint { font-size: 0.88rem; color: var(--muted); }

.cart-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); flex: none; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.cart-item-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.cart-qty { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.cart-qty input {
  width: 58px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 0.85rem; color: var(--ink); background: var(--surface);
}
.cart-qty input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.cart-item-remove { border: 0; background: none; color: var(--muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-item-remove:hover { color: var(--danger); }
.cart-drawer-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 18px; border-top: 1px solid var(--line-soft); background: var(--bg);
}

/* product card — add to quote list */
.product-card { position: relative; }
.cart-add {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.cart-add:hover { transform: scale(1.08); background: var(--accent); color: #fff; }
.cart-add .cart-add-check { display: none; }
.cart-add.is-in { background: var(--accent); color: #fff; }
.cart-add.is-in svg:not(.cart-add-check) { display: none; }
.cart-add.is-in .cart-add-check { display: block; }

/* product detail modal — qty + add row */
.detail-cart-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.detail-qty {
  display: inline-flex; flex-direction: column; gap: 5px; font-size: 0.74rem; color: var(--muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.detail-qty input {
  width: 84px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 0.95rem; color: var(--ink);
}
.detail-qty input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* contact page — combined inquiry list */
.inquiry-cart {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 16px 20px 10px; margin-bottom: 22px;
}
.inquiry-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.inquiry-cart-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.inquiry-cart-count { color: var(--muted); font-size: 0.85rem; }
.inquiry-cart-hint { font-size: 0.8rem; color: var(--muted); }
.inquiry-cart-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.inquiry-cart-item:last-child { border-bottom: 0; }
.inquiry-cart-img { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); flex: none; }
.inquiry-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.inquiry-cart-name { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 600; }
.inquiry-cart-remove {
  border: 0; background: var(--bg-soft); width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; color: var(--ink-soft); font-size: 1rem; line-height: 1; flex: none;
}
.inquiry-cart-remove:hover { background: rgba(179, 66, 58, 0.12); color: var(--danger); }

@media (max-width: 640px) {
  .cart-fab { right: 14px; bottom: 74px; height: 46px; padding: 0 16px 0 13px; }
  .cart-fab-label { display: none; }
  .cart-drawer { right: 14px; bottom: 128px; width: calc(100vw - 28px); }
  .detail-cart-row .btn { flex: 1; }
}

/* ==========================================================================
   About page — factory photo gallery
   ========================================================================== */
.factory-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px;
}
.factory-shot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.factory-shot img {
  display: block; width: 100%; height: 200px; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.factory-shot:hover img { transform: scale(1.05); }
.factory-shot figcaption {
  padding: 11px 14px; font-size: 0.85rem; font-weight: 700;
  font-family: var(--font-display); color: var(--ink-soft);
  background: var(--surface); border-top: 1px solid var(--line-soft);
}
.factory-shot figcaption b { display: block; color: var(--ink); font-size: 0.9rem; }
.factory-shot figcaption span { display: block; margin-top: 4px; font-family: Manrope, sans-serif; font-weight: 500; font-size: 0.78rem; letter-spacing: 0; line-height: 1.45; }
@media (max-width: 900px) {
  .factory-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .factory-gallery { grid-template-columns: 1fr; }
  .factory-shot img { height: 220px; }
}

/* ==========================================================================
   FAQ section (native details/summary — content stays crawlable)
   ========================================================================== */
.faq-list { max-width: 780px; margin: 42px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item p { padding: 0 20px 17px; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ==========================================================================
   WhatsApp click-to-chat floating button
   ========================================================================== */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 105;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-fab:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5); }
.wa-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.wa-tip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.wa-tip::after {
  content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--ink);
}
.wa-fab:hover .wa-tip { opacity: 1; }

/* inline WhatsApp buttons (contact page etc.) */
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; border: 0; cursor: pointer;
  font-weight: 700; font-size: 0.95rem; padding: 12px 22px; border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-wa:hover { transform: translateY(-1px); background: #1ebe5a; box-shadow: 0 11px 26px rgba(37, 211, 102, 0.4); }
.btn-wa svg { flex: none; }

@media (max-width: 640px) {
  .wa-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::before { animation: none; }
}

/* ==========================================================================
   Factory-direct page — canonical statement, comparison cards
   ========================================================================== */
.fd-quote {
  background: var(--surface); border: 1px solid var(--line-soft); border-left: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px 30px; margin-top: 34px;
  font-size: 1.02rem; color: var(--ink-soft); line-height: 1.7;
}
.fd-quote b { color: var(--ink); }
.fd-quote .fd-quote-label {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 10px;
}

.fd-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin-top: 12px; }
@media (max-width: 860px) { .fd-compare { grid-template-columns: 1fr; } }
.fd-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.fd-card--yes { border-color: var(--accent); box-shadow: var(--shadow-md); }
.fd-card--no { background: var(--bg-soft); }
.fd-card .fd-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.fd-card--yes .fd-flag { background: var(--accent-soft); color: var(--accent-deep); }
.fd-card--no .fd-flag { background: rgba(25, 28, 31, 0.06); color: var(--muted); }
.fd-card h3 { margin-bottom: 16px; }
.fd-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.fd-card li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.fd-card li svg { flex: none; margin-top: 3px; }
.fd-card--yes li svg { color: var(--accent); }
.fd-card--no li svg { color: var(--muted); }
.fd-card li b { color: var(--ink); }
