/* Jewelives corporate site - minimal & elegant */
:root {
  --accent: #e8734a;
  --accent-dark: #d05a32;
  --rose: #f6e3dd;
  --ink: #2b2622;
  --muted: #7a716a;
  --bg: #fdfaf8;
  --card: #ffffff;
  --line: #eee5df;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 30, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 80px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.5px; }
.brand img { height: 54px; width: auto; }
.brand span { font-size: 15px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--rose); }
.nav-links a.active { color: var(--accent-dark); background: var(--rose); font-weight: 600; }
.nav-cta {
  background: var(--accent) !important; color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.menu-btn { display: none; margin-left: 12px; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }
.nav-right { margin-left: auto; display: flex; align-items: center; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; margin-left: 8px;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.lang-opt {
  background: none; border: none; cursor: pointer;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--muted); font-family: inherit; transition: all 0.2s;
}
.lang-opt:hover { color: var(--accent-dark); background: var(--rose); }
.lang-opt.active { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 72px 0 80px;
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-dark); background: var(--rose); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px; font-weight: 600;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.15; letter-spacing: -0.5px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow); }
.hero-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  background: var(--rose); border-radius: 24px; z-index: -1;
}
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--rose); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.3px; }
.section-head .rule { width: 46px; height: 3px; background: var(--accent); border-radius: 2px; margin: 14px auto 16px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
}
.stat b { display: block; font-size: 34px; color: var(--accent-dark); }
.stat span { font-size: 13.5px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--rose);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- Factory strength ---------- */
.factory-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.factory-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center;
}
.factory-stat b { display: block; font-size: 30px; color: var(--accent-dark); line-height: 1.15; }
.factory-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cert-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.cert-pill {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 9px 20px; font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.cert-pill small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.factory-note {
  margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted);
}
.factory-note a { color: var(--accent-dark); font-weight: 600; }

/* ---------- About page: professional B2B layout ---------- */
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-hero { padding-top: 30px; }
body[data-page="about"] .hero-media img {
  width: 100%; height: 360px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* left-aligned headline block (professional spec-sheet rhythm) */
.headline { max-width: 760px; margin-bottom: 32px; }
.headline h2 { font-size: clamp(24px, 2.7vw, 33px); letter-spacing: -0.3px; }
.headline .rule { width: 46px; height: 3px; background: var(--accent); border-radius: 2px; margin: 13px 0 14px; }
.headline p { color: var(--muted); font-size: 15.5px; }
.headline.center { text-align: center; margin-left: auto; margin-right: auto; }
.headline.center .rule { margin: 13px auto 14px; }

.hero-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts li {
  font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}

/* two-column split: narrative + spec card / media + content */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.split.media-left { grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.split-main p { margin-bottom: 14px; color: var(--muted); font-size: 15px; line-height: 1.78; }
.split-media { margin: 0; }
.split-media img {
  width: 100%; height: 360px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.split-media figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

.spec-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: sticky; top: 92px;
}
.alt .spec-card { background: var(--bg); }
.spec-card h3 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 12px;
}
.spec-list { margin: 0; }
.spec-list div {
  display: grid; grid-template-columns: 132px 1fr; gap: 12px;
  padding: 11px 0; border-top: 1px dashed var(--line);
}
.spec-list div:first-child { border-top: none; }
.spec-list dt { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.spec-list dd { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.spec-cta { margin-top: 18px; width: 100%; }

/* KPI strip — one bordered band instead of four floating boxes */
.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 34px 0;
}
.alt .kpi-row { background: var(--bg); }
.kpi { padding: 24px 18px; text-align: center; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: none; }
.kpi b { display: block; font-size: 29px; color: var(--accent-dark); line-height: 1.2; }
.kpi span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* plants */
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plant {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 24px 22px 22px; transition: all .25s;
}
.plant:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plant-no, .why-no, .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent-dark);
}
.plant h3 { font-size: 17px; margin: 8px 0 6px; }
.plant-meta { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.plant p:last-child { margin: 0; font-size: 13.5px; color: var(--muted); }

/* numbered feature rows (no emoji icons) */
.feature-list { list-style: none; margin: 22px 0 20px; padding: 0; }
.feature-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: none; }
.feature-list h3 { font-size: 15.5px; margin-bottom: 4px; }
.feature-list p { font-size: 13.5px; color: var(--muted); }
.link-arrow { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.link-arrow:hover { text-decoration: underline; }

/* process steps */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step-no {
  width: 34px; height: 34px; border-radius: 50%; background: var(--rose);
  margin-bottom: 12px;
}
.process h3 { font-size: 16px; margin-bottom: 6px; }
.process p { font-size: 13.5px; color: var(--muted); }

.cert-block { margin-top: 42px; text-align: center; }
.cert-head { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }

/* gallery — captioned figures, three columns */
.section-head-with-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 28px; }
.section-head-with-cta .headline { margin-bottom: 0; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s;
}
.gal:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gal img { display: block; width: 100%; height: 190px; object-fit: cover; }
.gal figcaption { padding: 12px 16px 14px; }
.gal b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.gal span { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; }

/* why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.why h3 { font-size: 16px; margin: 8px 0 6px; }
.why p { font-size: 13.5px; color: var(--muted); }

.cta-section { padding-top: 0; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.85); color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--accent-dark); }

@media (max-width: 900px) {
  .split, .split.media-left { grid-template-columns: 1fr; }
  .spec-card { position: static; }
  .plant-grid, .process, .why-grid, .gal-grid { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: none; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head-with-cta { flex-direction: column; align-items: flex-start; }
  body[data-page="about"] .hero-media img, .split-media img { height: 280px; }
}
@media (max-width: 620px) {
  .plant-grid, .process, .why-grid, .gal-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .kpi { border-left: none; border-top: 1px solid var(--line); }
  .kpi:first-child { border-top: none; }
  .kpi:nth-child(-n+2) { border-bottom: none; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Product grid ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-bar button {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all 0.25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #f6f1ee; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .sku { font-size: 12px; color: var(--accent-dark); font-weight: 700; letter-spacing: 0.5px; }
.product-card h3 { font-size: 15.5px; line-height: 1.4; }
.product-card .tagline { font-size: 13px; color: var(--muted); flex: 1; }
.skeleton {
  grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(43, 38, 34, 0.5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 920px; width: 100%; max-height: 88vh;
  overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr;
}
.modal .media { background: #f6f1ee; }
.modal .media img { width: 100%; height: 100%; object-fit: cover; }
.modal .info { padding: 34px 30px; }
.modal .info .sku { color: var(--accent-dark); font-weight: 700; font-size: 13px; }
.modal .info h3 { font-size: 22px; margin: 6px 0 4px; }
.modal .info .tagline { color: var(--muted); font-size: 14.5px; }
.modal .info .desc { font-size: 14.5px; margin-top: 14px; }
.modal .info h4 { margin: 18px 0 8px; font-size: 15px; }
.modal ul { padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 5px; }
.modal .meta { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.modal .meta b { color: var(--ink); }
.modal-close {
  position: absolute; top: 14px; right: 18px; background: #fff; border: none; font-size: 22px;
  cursor: pointer; color: var(--muted); width: 38px; height: 38px; border-radius: 50%;
  box-shadow: var(--shadow); z-index: 5;
}
.modal-wrap { position: relative; width: 100%; max-width: 920px; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 14px 0; display: none; }
.msg.ok { display: block; background: #e8f5ec; color: #1e7a3c; }
.msg.err { display: block; background: #fbeaea; color: #b03636; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1.5px solid var(--line); }
.tabs button {
  background: none; border: none; padding: 11px 18px; font-size: 14.5px; color: var(--muted);
  cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; font-weight: 600;
}
.tabs button.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.contact-item .ci-icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--rose);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.contact-item b { display: block; font-size: 14px; }
.contact-item span { font-size: 14px; color: var(--muted); }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.profile-box { display: grid; gap: 16px; }
.inquiry-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.inquiry-item .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.inquiry-item b { font-size: 14.5px; }
.inquiry-item .date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.inquiry-item p { font-size: 13.5px; color: var(--muted); margin-top: 6px; white-space: pre-wrap; }
.inquiry-item .att { font-size: 12.5px; color: var(--accent-dark); margin-top: 8px; }
.badge {
  display: inline-block; font-size: 11.5px; padding: 2px 10px; border-radius: 999px;
  background: var(--rose); color: var(--accent-dark); font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #f0a17e); color: #fff; border-radius: 22px;
  padding: 54px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { opacity: 0.92; margin: 10px 0 24px; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }

/* ---------- GEO: answer box + FAQ ---------- */
.answer-box {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px 30px; max-width: 900px; margin: 0 auto;
}
.answer-box h2 { font-size: 20px; margin-bottom: 10px; }
.answer-box p { font-size: 15px; color: var(--ink); }
.fact-list { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.fact-list li { font-size: 14px; color: var(--muted); }
.fact-list b { color: var(--ink); }
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
}
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq-list details p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- Inquiry cart ---------- */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: all 0.2s;
}
.cart-btn:hover { background: var(--rose); color: var(--accent-dark); border-color: var(--accent); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 34, 0.45); z-index: 300; opacity: 0;
  pointer-events: none; transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 310;
  background: var(--bg); box-shadow: -12px 0 40px rgba(60, 40, 30, 0.18);
  transform: translateX(105%); transition: transform 0.28s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff;
}
.cart-head h3 { font-size: 17px; }
.cart-head-count { color: var(--muted); font-weight: 500; font-size: 14px; }
.cart-close { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.cart-close:hover { color: var(--accent-dark); }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px 26px; }
.cart-items-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted);
}
.cart-clear { background: none; border: none; color: #b03636; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.cart-row {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
}
.cart-row img, .cart-row-nopic {
  width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none;
  background: #f6f1ee; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-info .sku { display: block; font-size: 11.5px; color: var(--accent-dark); font-weight: 700; }
.cart-row-info b { display: block; font-size: 13px; line-height: 1.35; }
.cart-row-qty { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.cart-row-qty label { font-size: 10.5px; color: var(--muted); }
.cart-row-qty input {
  width: 62px; padding: 5px 6px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 13px; text-align: center; font-family: inherit;
}
.cart-row-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px; }
.cart-row-del:hover { color: #b03636; }
.cart-empty { text-align: center; padding: 46px 10px; color: var(--muted); }
.cart-empty .ce-icon { font-size: 40px; margin-bottom: 10px; }
.cart-empty.ok .ce-icon { font-size: 44px; }
.cart-form h4 { font-size: 14px; margin: 18px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); z-index: 320;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 20px;
  display: flex; align-items: center; gap: 14px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all 0.25s; box-shadow: var(--shadow);
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast button {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 4px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.product-card .cart-add {
  margin-top: 10px; align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: #fff; color: var(--accent-dark);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.product-card .cart-add:hover { background: var(--accent); color: #fff; }
.product-card .cart-add.in-cart { background: var(--rose); border-color: var(--rose); color: var(--accent-dark); cursor: pointer; }
.cart-merge-note {
  background: var(--rose); border: 1px solid #ecc9bd; border-radius: 10px;
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cart-merge-note b { color: var(--accent-dark); }
.cart-merge-note button {
  background: #fff; border: 1.5px solid var(--accent); color: var(--accent-dark);
  border-radius: 999px; padding: 4px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: #2b2622; color: #cbc2bb; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer p, .site-footer a { font-size: 13.5px; }
.site-footer a { display: block; padding: 3px 0; color: #cbc2bb; }
.site-footer a:hover { color: #fff; }
.footer-brand img { background: #fff; border-radius: 8px; padding: 8px 12px; height: 66px; width: auto; margin-bottom: 12px; }
.copyright { border-top: 1px solid #443c36; padding: 18px 0; text-align: center; font-size: 12.5px; color: #8d837b; }

/* ---------- Official social profiles ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social-title { margin-top: 20px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); color: #e9e2dc;
  background: rgba(255,255,255,.06);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-btn:hover { background: var(--sc); border-color: var(--sc); color: #fff; transform: translateY(-2px); }
/* inline variant: used on light backgrounds (contact page, homepage band) */
.social-row.social-inline { margin-top: 8px; }
.social-row.social-inline .social-btn { color: #5b534d; border-color: var(--line); background: #fff; }
.social-row.social-inline .social-btn:hover { background: var(--sc); border-color: var(--sc); color: #fff; }

/* homepage follow band */
.follow-block { padding: 46px 0; }
.social-band {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 34px 28px; text-align: center;
}
.social-band h2 { margin: 0 0 10px; font-size: 22px; }
.social-band p { margin: 12px auto 0; max-width: 620px; color: var(--muted); font-size: 14.5px; }
.social-band .social-row { justify-content: center; margin-top: 20px; }
.social-band .social-btn { width: 42px; height: 42px; }
.social-band .social-btn svg { width: 21px; height: 21px; }

/* footer contact column: one icon per line, same style across items */
.footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-contact .c-line {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 0; font-size: 13.5px; color: #cbc2bb; line-height: 1.55;
}
.footer-contact .c-line svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.footer-contact .c-line a { display: inline; padding: 0; color: #cbc2bb; }
.footer-contact .c-line a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .contact-grid, .account-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 16px; border-bottom: 1px solid var(--line); display: none; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Insight / answer pages (GEO) ---------- */
/* Bilingual blocks: both languages live in HTML; CSS picks one. */
/* Spanish title inside bilingual blocks: keeps the h1 look without putting a
   second <h1> in the document (crawlers read both language blocks). */
.lang-block p.lang-h1 {
  font-size: 30px; line-height: 1.32; margin: 6px 0 18px;
  letter-spacing: -0.2px; font-weight: 700;
}
.news-index .lang-block p.lang-h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
@media (max-width: 620px) { .lang-block p.lang-h1 { font-size: 24px; } }

/* A promoted <h1> that must keep the section-head's <h2> size. */
.section-head h1.as-h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.3px; }

.lang-block[data-lang="es"] { display: none; }
html[lang^="es"] .lang-block[data-lang="en"] { display: none; }
html[lang^="es"] .lang-block[data-lang="es"] { display: block; }
.insight-card .es, .mini-card .n-es { display: none; }
html[lang^="es"] .insight-card .en, html[lang^="es"] .mini-card .n-en { display: none; }
html[lang^="es"] .insight-card .es, html[lang^="es"] .mini-card .n-es { display: block; }

.answer-page { padding: 46px 0 60px; }
.answer-page .container { max-width: 780px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.answer-page h1 { font-size: 30px; line-height: 1.32; margin: 6px 0 18px; letter-spacing: -0.2px; }
.answer-box {
  background: linear-gradient(180deg, #fff, var(--rose)); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.answer-tag {
  display: inline-block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.answer-box p { font-size: 16.5px; line-height: 1.72; }
.answer-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }
.answer-page h2 { font-size: 20px; margin: 34px 0 12px; letter-spacing: -0.1px; }
.answer-page p { margin-bottom: 13px; }
.answer-page ul { margin: 0 0 16px 20px; }
.answer-page li { margin-bottom: 7px; }
.answer-page ul ul { margin-top: 7px; }
ul.takeaways { list-style: none; margin-left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 18px 22px; box-shadow: var(--shadow); }
ul.takeaways li { position: relative; padding-left: 20px; margin-bottom: 8px; }
ul.takeaways li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); }
.faq-list { list-style: none; margin-left: 0; }
.faq-list > li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-list > li:last-child { border-bottom: none; }
.faq-list h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-list p { margin-bottom: 0; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: .18s; }
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.mini-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.mini-card .sku { display: block; font-size: 11px; color: var(--accent); padding: 10px 12px 0; font-weight: 600; }
.mini-card .n-en, .mini-card .n-es { display: block; font-size: 13.5px; padding: 2px 12px 12px; line-height: 1.45; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.insight-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: .2s; }
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.insight-card .thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.insight-card .body { padding: 18px 20px 20px; }
.insight-card h3 { font-size: 16px; line-height: 1.45; margin: 6px 0 8px; }
.insight-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.insight-card .date { font-size: 11.5px; color: var(--accent); font-weight: 600; }
/* ---------- News section ---------- */
body[data-page="news"] .es, .news-card .es { display: none; }
html[lang^="es"] body[data-page="news"] .en, html[lang^="es"] .news-card .en { display: none; }
html[lang^="es"] body[data-page="news"] .es, html[lang^="es"] .news-card .es { display: revert; }
.news-index .section-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.news-meta { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.news-meta .date { color: var(--accent); }
.news-card .body { display: flex; flex-direction: column; flex: 1; }
.news-card .more { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--accent-dark); }
.news-figure { margin: 24px 0 6px; }
.news-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); }
.news-page .answer-box { margin-bottom: 18px; }
.news-page .answer-box p { font-size: 16px; line-height: 1.7; }
.related-title { font-size: 20px; margin: 46px 0 -14px; letter-spacing: -0.1px; }

@media (max-width: 960px) {
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .insight-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .answer-page h1 { font-size: 24px; }
}

/* ---------- WhatsApp float button ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; text-decoration: none;
  border-radius: 999px; padding: 10px;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-fab:hover { transform: translateY(-2px); background: #1fb959; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55); }
.wa-fab-icon { display: grid; place-items: center; width: 44px; height: 44px; }
.wa-fab-icon svg { display: block; }
.wa-fab-label {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s ease, opacity .25s ease, padding .25s ease;
}
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { max-width: 240px; opacity: 1; padding-right: 6px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 6px 22px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 6px 22px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 22px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
.wa-fab { animation: wa-pulse 2.6s ease-out 2; }
@media (max-width: 640px) {
  .wa-fab { right: 14px; bottom: 14px; }
  .wa-fab-label { display: none; }
}

/* ---------- WhatsApp contact entry ---------- */
a.contact-item.wa-item { text-decoration: none; color: inherit; align-items: center; cursor: pointer; transition: .18s; border: 1px solid transparent; }
a.contact-item.wa-item:hover { transform: translateY(-2px); }
.wa-icon { background: #25d366 !important; color: #fff; }
.wa-text { display: flex; flex-direction: column; gap: 2px; }
.wa-text .wa-cta { color: #128c4b; font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.wa-item:hover .wa-cta { text-decoration: underline; }
.wa-qr { width: 100px; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; margin-left: auto; flex-shrink: 0; }

@media (max-width: 900px) {
  .factory-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .factory-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .factory-stat b { font-size: 24px; }
  .cert-pill { padding: 8px 15px; font-size: 12.5px; }
  .factory-photos { grid-template-columns: 1fr; }
  body[data-page="about"] .hero-media img { height: 220px; }
  .photo-strip-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Quick Quote popup (1-tap inquiry) ---------- */
.qi-overlay { position: fixed; inset: 0; background: rgba(43,38,34,.55); z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.qi-overlay.open { opacity: 1; pointer-events: auto; }
.qi-modal {
  position: fixed; z-index: 401; left: 50%; top: 50%;
  transform: translate(-50%, -47%) scale(.98);
  width: min(560px, 94%); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 16px; padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(60,40,30,.28);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.qi-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.qi-close { position: absolute; top: 14px; right: 16px; border: none; background: none;
  font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }
.qi-close:hover { color: var(--ink); }
.qi-head { padding-right: 30px; }
.qi-head h3 { font-size: 20px; margin-top: 6px; line-height: 1.35; }
.qi-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.qi-modal .qi-form { margin-top: 18px; }
.qi-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.qi-alt { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.qi-alt .qi-wa { color: #1fa855; font-weight: 600; }
.qi-alt .qi-wa:hover { text-decoration: underline; }
.qi-done { text-align: center; padding: 6px 0 2px; }
.qi-done-icon { font-size: 34px; }
.qi-done p b { font-size: 16px; }
.qi-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* product card: 1-tap quote + add to list.
   Quick Quote is the primary action, so it gets the full-width orange button
   with the bolt icon and its name spelled out; "add to list" sits under it. */
.card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.card-actions .cart-add { width: 100%; margin-top: 0; }
.qi-add { width: 100%; padding: 10px 14px !important; font-size: 13.5px; line-height: 1.2; }
.product-card .card-actions .btn { width: 100%; }
.qi-ico { vertical-align: -2px; margin-right: 4px; flex: 0 0 auto; }

/* contact form: one-tap need chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; color: var(--muted); cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--rose); }
.chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.form-fast { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.form-fast a { font-weight: 600; color: var(--accent-dark); }
.form-fast a:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .qi-modal { padding: 22px 18px 18px; }
  .card-actions { flex-wrap: wrap; }
}
