/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #14509e;
  --primary-dark: #0e3b78;
  --accent: #2bb8ad;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --dark: #111827;
  --border: #e5e7eb;
  --radius: 12px;
}
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
[dir="rtl"] body, [dir="rtl"] { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: 18px; }
.btn-whatsapp:hover { background: #1eb85a; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #14509e; }
.logo-img { width: 42px; height: 42px; border-radius: 9px; display: block; }
.logo-name { letter-spacing: .5px; white-space: nowrap; }
.logo-light, .logo-light .logo-name { color: #fff; }
.logo-light .logo-img { background: #fff; padding: 3px; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { font-size: 15px; color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text);
}
.lang-menu {
  display: none; position: absolute; inset-inline-end: 0; top: 110%;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 150px; overflow: hidden;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 10px 16px; font-size: 14px; }
.lang-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.lang-menu a.active { color: var(--primary); font-weight: 600; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0a1f4a 0%, #14509e 58%, #2b8fc4 100%);
  color: #fff; padding: 80px 0 70px;
}
.hero-inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 50px; align-items: center; }
.badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px;
}
.hero h1 { font-size: 38px; line-height: 1.12; margin-bottom: 16px; letter-spacing: -.01em; max-width: 560px; }
.hero-sub { font-size: 17px; font-weight: 600; letter-spacing: .01em; opacity: .96; margin-bottom: 8px; max-width: 560px; }
.hero-sub2 { font-size: 14px; opacity: .88; letter-spacing: .01em; margin-bottom: 8px; max-width: 560px; }
.hero-sub3 { font-size: 13.5px; opacity: .72; line-height: 1.5; margin-bottom: 24px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25);
}
.stat strong { display: block; font-size: 26px; color: #ffd8a8; }
.stat span { font-size: 13px; opacity: .85; }

/* ===== Images ===== */
.hero-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: block;
}
.card-img, .case-img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  border-radius: 10px; background: #fff; display: block;
}
.case-img { aspect-ratio: 3/2; object-fit: cover; }
.factory-photos { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; margin-bottom: 26px; }
.factory-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.video-block { margin-top: 44px; }
.factory-video {
  width: 100%; max-height: 560px; object-fit: cover;
  border-radius: var(--radius); background: #000; display: block;
  box-shadow: 0 18px 40px rgba(15,43,107,.12);
}
.video-caption { text-align: center; color: var(--text-light); font-size: 14px; margin-top: 14px; }

/* Placeholder boxes (replace with real photos) */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e3e9f2 12px, #e3e9f2 24px);
  border: 2px dashed #b6c2d4; border-radius: var(--radius);
  color: #64748b; font-size: 13px; text-align: center; padding: 20px;
  aspect-ratio: 4/3;
}
.ph-hero { aspect-ratio: 4/3.4; background-color: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; background: none; }
.ph-factory { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-title { font-size: 32px; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-light); max-width: 640px; margin: 0 auto 44px; }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 24px; }
.grid > *, .hero-text, .hero-visual, .contact-info, .contact-form { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 30px rgba(15,43,107,.1); transform: translateY(-3px); }
.card h3 { font-size: 17px; margin: 14px 0 8px; }
.card p { font-size: 14px; color: var(--text-light); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 24px 16px;
  border: 1px solid var(--border); text-align: center; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 17px;
}
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-light); }

/* ===== Factory ===== */
.factory-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: #e8effc; color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-light); }

/* ===== Cases ===== */
.case h3 { font-size: 15px; margin-top: 12px; text-align: center; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer; font-size: 15px;
  list-style: none; position: relative;
}
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px;
  font-size: 20px; color: var(--primary); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 16px; color: var(--text-light); font-size: 14px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 30px; margin-bottom: 12px; }
.contact-info > p { opacity: .85; margin-bottom: 8px; }
.contact-mail { margin-top: 16px; font-size: 15px; }
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* ===== Footer ===== */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-grid > div { min-width: 0; }
.footer-grid p, .footer-grid a { overflow-wrap: anywhere; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.site-footer p { font-size: 14px; margin-bottom: 8px; }
.site-footer a { display: block; font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { display: inline-flex; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 36px; padding: 18px 20px; text-align: center; font-size: 13px; opacity: .7;
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner, .contact-grid { grid-template-columns: minmax(0,1fr); }
  .factory-photos { grid-template-columns: minmax(0,1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .ph-factory { min-height: 220px; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 66px; inset-inline: 0;
    background: #fff; flex-direction: column; padding: 14px 20px;
    border-bottom: 1px solid var(--border); gap: 12px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .header-right .btn { display: none; }
  .section { padding: 54px 0; }
}

/* ===== Featured gang sheet card ===== */
.featured-card {
  margin-top: 32px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.featured-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: #fff; border-radius: 10px; display: block;
}
.featured-body h3 { font-size: 24px; margin: 0 0 10px; }
.featured-body p { margin: 0 0 20px; }
.badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* ===== Pricing table ===== */
.price-table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
.price-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 40, 80, .07);
}
.price-table th, .price-table td {
  padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border);
}
.price-table thead th { background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg-alt); }
.price-table td.price { font-weight: 800; color: var(--primary); font-size: 18px; }
.save-badge {
  display: inline-block; background: #e3f5f1; color: #0d8a6a;
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.save-badge.base { background: #eef2f7; color: #94a3b8; }
.price-note { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 13px; color: #64748b; }

/* ===== Testimonials ===== */
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.stars { color: #f59e0b; font-size: 18px; letter-spacing: 3px; margin-bottom: 14px; }
.testi-text { flex: 1; margin: 0; }
.testi-name { font-weight: 700; margin-top: 18px; }
.testi-role { font-size: 13px; color: #64748b; margin-top: 2px; }

@media (max-width: 960px) {
  .featured-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .price-table th, .price-table td { padding: 12px 10px; font-size: 14px; }
}

.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }

.result-hint.warn {
  color: #b45309; background: #fef3c7; border: 1px solid #fcd34d;
  border-radius: 8px; padding: 10px 14px; font-weight: 600;
}

/* ===== Quote calculator page ===== */
.quote-hero { padding: 120px 0 80px; background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%); }
.quote-hero h1 { font-size: 32px; margin: 0 0 8px; text-align: center; }
.quote-sub { text-align: center; color: #64748b; max-width: 640px; margin: 0 auto 24px; }

/* 关键信息条：最低订单 / DDP / 交期 / 免费审稿 */
.quote-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.qf-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
}
.qf-item.qf-key {
  grid-column: 1 / -1;
  background: var(--primary);
  border-color: var(--primary);
  border-left-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-align: center;
}
[dir="rtl"] .qf-item { text-align: right; border-left: 1px solid var(--border); border-right: 3px solid var(--accent); }
[dir="rtl"] .qf-item.qf-key { border-right-color: var(--accent); }
@media (max-width: 640px) {
  .quote-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .qf-item { font-size: 13px; padding: 12px 14px; }
  .qf-item.qf-key { font-size: 14px; }
}

.calc-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; box-shadow: 0 8px 30px rgba(15, 40, 80, .08);
}
.calc-group { margin-bottom: 26px; }
.calc-label { font-weight: 700; margin-bottom: 12px; padding-inline-start: 10px; border-inline-start: 4px solid var(--primary); }

.opt-grid { display: grid; gap: 12px; }
.opt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt-btn {
  padding: 14px 12px; border: 2px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.opt-btn small { font-weight: 400; font-size: 12px; color: #64748b; }
.opt-btn:hover { border-color: var(--primary); }
.opt-btn.active { border-color: var(--primary); background: #eef4fd; color: var(--primary); }
.opt-btn.active small { color: var(--primary); }

.design-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto 32px;
  gap: 12px; align-items: end; margin-bottom: 12px;
}
.dim-field label { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; }
.dim-field input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; box-sizing: border-box;
}
.dim-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 80, 158, .12); }
.row-area { font-size: 13px; color: #64748b; padding-bottom: 12px; white-space: nowrap; }
.row-del {
  width: 32px; height: 32px; border: none; border-radius: 8px; margin-bottom: 6px;
  background: #f1f5f9; color: #94a3b8; font-size: 18px; cursor: pointer; line-height: 1;
}
.row-del:hover { background: #fee2e2; color: #dc2626; }

.result-box {
  margin-top: 8px; background: #f8fafc; border: 1px dashed var(--border);
  border-radius: 12px; padding: 22px 24px;
}
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.result-row span { color: #64748b; }
.result-row strong { font-size: 17px; }
.result-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.result-total strong { font-size: 26px; color: var(--primary); }
.result-usd { text-align: end; color: #64748b; font-size: 14px; margin-top: 2px; }
.result-hint { text-align: center; color: #94a3b8; font-size: 14px; margin: 14px 0 0; }
.result-box .btn-primary { margin-top: 16px; width: 100%; text-align: center; }
.contour-msg { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 18px; margin-top: 14px; }

.quote-notes {
  max-width: 720px; margin: 28px auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.qn-item { display: flex; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.qn-item strong { color: var(--primary); }
.qn-item p { margin: 0; font-size: 13px; color: #475569; line-height: 1.6; }

/* ===== 收货信息 + 支付 ===== */
.checkout-card { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.co-field, .dim-field { min-width: 0; }
.co-full { grid-column: 1 / -1; }
.co-field label { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; }
.co-field input, .co-field select, .co-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; box-sizing: border-box; background: #fff; color: var(--text);
}
.co-field textarea { resize: vertical; min-height: 46px; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 80, 158, .12);
}
.co-file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.co-field input.co-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: 0;
  opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.co-file-input:focus + .co-file-btn { outline: 2px solid var(--primary); outline-offset: 2px; }
.co-file-btn {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--border); border-radius: 8px;
  background: #f1f5f9; font-size: 14px; font-weight: 600; color: #334155; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.co-file-btn:hover { background: #e2e8f0; border-color: #cbd5e1; }
.co-file-name { font-size: 13px; color: #64748b; word-break: break-all; }
.co-file-hint { font-size: 12px; color: #94a3b8; margin: 6px 0 0; line-height: 1.5; }
.co-error { color: #dc2626; font-size: 14px; margin: 14px 0 0; }
.co-actions { display: flex; gap: 12px; margin-top: 20px; }
.co-actions .btn { flex: 1; text-align: center; justify-content: center; }
.btn-paypal { background: #ffc439; color: #003087; border: 1px solid #f0b429; font-weight: 800; }
.btn-paypal:hover { background: #f5b81e; }
.btn-wa { background: #25d366; color: #fff; border: 1px solid #1eb257; font-weight: 700; }
.btn-wa:hover { background: #1eb257; }
@keyframes coPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } }
.btn-wa.pulse { animation: coPulse 1.6s ease-out 3; }
.co-note { font-size: 13px; color: #64748b; margin: 14px 0 0; line-height: 1.6; }

/* PayPal 官方按钮容器 */
.paypal-slot { flex: 1; min-width: 0; }
.paypal-slot:empty { display: none; }
.paypal-slot iframe { width: 100% !important; }
.co-card-note { font-size: 12px; color: #94a3b8; margin: 10px 0 0; line-height: 1.5; }
.co-success { margin-top: 18px; }
.co-success-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 18px 20px; }
.co-success-box strong { display: block; color: #047857; font-size: 17px; margin-bottom: 8px; }
.co-success-box p { margin: 0 0 14px; color: #065f46; font-size: 14px; line-height: 1.65; }
.co-success-box .btn { display: block; width: 100%; text-align: center; }

@media (max-width: 640px) {
  .calc-card { padding: 20px; }
  .opt-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .design-row { grid-template-columns: 1fr 1fr; }
  .row-area { padding-bottom: 0; }
  .quote-notes { grid-template-columns: minmax(0, 1fr); }
  .quote-hero h1 { font-size: 25px; }
  .co-grid { grid-template-columns: 1fr; }
  .co-actions { flex-direction: column; }
}

/* unit switch */
.calc-label-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.unit-switch { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.unit-btn { border: none; background: #fff; padding: 5px 14px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; }
.unit-btn.active { background: var(--primary); color: #fff; }

/* text-only cards (overseas buyers section) */
.card-plain { padding: 24px 26px; }
.card-plain h3 { font-size: 16px; margin: 0 0 8px; color: var(--primary); }
.card-plain p { margin: 0; font-size: 14px; line-height: 1.7; }

/* ===== Shipping / policy page ===== */
.policy-hero {
  background: linear-gradient(135deg, #0a1f4a 0%, #14509e 58%, #2b8fc4 100%);
  color: #fff; padding: 62px 0 54px;
}
.policy-brand {
  display: inline-block; font-size: 12px; letter-spacing: .18em; font-weight: 700;
  text-transform: uppercase; color: #cfe4f7; margin-bottom: 14px;
}
.policy-hero h1 { font-size: 36px; line-height: 1.2; margin-bottom: 16px; letter-spacing: -.01em; }
.policy-lead { font-size: 16px; opacity: .92; max-width: 780px; line-height: 1.75; }

.policy-wrap { max-width: 880px; }
.policy-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin: 0 0 42px;
}
.p-fact {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 18px; text-align: center;
}
.p-fact strong { display: block; font-size: 28px; color: var(--primary); line-height: 1.2; }
[dir="rtl"] .p-fact strong { direction: ltr; unicode-bidi: isolate; }
.p-fact span { display: block; font-size: 12.5px; color: var(--text-light); margin-top: 6px; line-height: 1.5; }

.policy-sec { padding: 26px 0; border-top: 1px solid var(--border); }
.policy-sec:first-child { border-top: none; padding-top: 0; }
.policy-sec h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; line-height: 1.35; margin-bottom: 14px; color: var(--primary-dark);
}
.p-no {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.policy-sec p { font-size: 15px; line-height: 1.8; margin-bottom: 11px; color: #374151; }
.policy-sec p:last-child { margin-bottom: 0; }
.policy-sec strong { color: var(--text); }
.policy-sec ul { margin: 0 0 12px; padding-inline-start: 22px; }
.policy-sec li { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 5px; }

.policy-cta {
  margin-top: 46px; padding: 30px 32px; border-radius: 14px;
  background: linear-gradient(135deg, #0e3b78, #14509e 60%, #2b8fc4);
  color: #fff;
}
.policy-cta p { font-size: 16px; margin-bottom: 18px; opacity: .95; }
.policy-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.policy-cta .btn-primary { background: #fff; color: var(--primary); }
.policy-cta .btn-primary:hover { background: #eef4fc; }
.policy-cta .btn-wa { background: #25d366; }

.policy-foot { margin-top: 26px; font-size: 13px; color: var(--text-light); line-height: 1.7; }

@media (max-width: 640px) {
  .policy-hero { padding: 44px 0 38px; }
  .policy-hero h1 { font-size: 26px; }
  .policy-lead { font-size: 14.5px; }
  .policy-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 32px; }
  .p-fact { display: flex; align-items: baseline; gap: 12px; text-align: start; padding: 14px 16px; }
  .p-fact strong { font-size: 22px; }
  .p-fact span { margin-top: 0; }
  .policy-sec { padding: 22px 0; }
  .policy-sec h2 { font-size: 17px; }
  .policy-cta { padding: 24px 20px; }
  .policy-cta-btns .btn { width: 100%; justify-content: center; }
}

/* section-level link button */
.section-more { margin-top: 30px; text-align: center; }

/* ===== Care notes ===== */
.care-box {
  max-width: 720px; margin: 34px auto 0; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 26px;
  text-align: left;
}
.care-box h3 { margin: 0 0 12px; font-size: 17px; color: #0f172a; }
.care-box ul { margin: 0; padding-left: 20px; }
.care-box li { color: #475569; font-size: 14.5px; line-height: 1.65; margin-bottom: 8px; }
.care-box li:last-child { margin-bottom: 0; }
[dir="rtl"] .care-box { text-align: right; }

/* ===== Why choose / hero chips / app chips ===== */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; max-width: 560px; }
.hero-chip {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 13px; border-radius: 999px; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.30);
}
.app-chips {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px; margin-top: 28px;
}
.app-chip {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: #334155; font-weight: 500;
}
.app-chip b { color: #2563eb; font-size: 12px; font-weight: 700; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card .btn-sm { margin-top: 6px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.steps.steps-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps.steps-6 { grid-template-columns: repeat(2, 1fr); } }

/* ===== Pay page & quote min note ===== */
.qf-note {
  text-align: center; color: #64748b; font-size: 13.5px; max-width: 720px;
  margin: 10px auto 0; line-height: 1.6;
}
.pay-card {
  max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; text-align: left;
}
.pay-card .co-field { margin-bottom: 14px; }
.pay-card .btn-block { width: 100%; }
.pay-order-info {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 18px 22px; margin: 22px 0 14px;
}
.pay-order-info > div { min-width: 180px; }
.pay-order-info label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.pay-order-info b { font-size: 17px; color: #0f172a; }
.pay-note { text-align: center; color: #475569; font-size: 14.5px; margin: 12px auto 18px; max-width: 560px; line-height: 1.6; }
.pay-order-info .paypal-slot { margin-top: 6px; }

/* ===== Global shipping / payment zones (round 3) ===== */
.ship-note {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.55; text-align: center;
}
.ship-note.ok {
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; font-weight: 600;
}
.ship-note.info {
  color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe;
}
.ship-note.warn {
  color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
}

/* ===== Final quote breakdown (pay page) ===== */
.pay-breakdown {
  max-width: 460px; margin: 0 auto 8px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; text-align: left;
}
.pb-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; color: #334155; padding: 5px 0;
}
.pb-row span { color: #64748b; }
.pb-row b { font-weight: 600; }
.pb-row.pb-total {
  border-top: 1px dashed #cbd5e1; margin-top: 8px; padding-top: 12px;
  font-size: 16px;
}
.pb-row.pb-total b { color: var(--primary); }
.pb-incoterm { font-size: 12.5px; color: #64748b; }
.pb-dap-note, .pb-ddp-note {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; border-radius: 8px; padding: 9px 12px;
}
.pb-dap-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.pb-ddp-note { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.pb-expiry { text-align: center; font-size: 12.5px; color: #b45309; margin: 10px 0 0; }

/* ===== Payment method choice ===== */
.pay-methods { max-width: 460px; margin: 16px auto 0; display: grid; gap: 10px; }
.pm-label { text-align: center; font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.pm-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
  padding: 15px 18px; font-size: 15px; font-weight: 600; color: #0f172a;
  cursor: pointer; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.pm-btn:hover { border-color: #93c5fd; }
.pm-btn small { display: block; font-size: 11.5px; font-weight: 400; color: #64748b; }
.pm-btn .pm-sub { display: flex; flex-direction: column; line-height: 1.35; }
.pm-cards { display: inline-flex; gap: 5px; align-items: center; }
.pm-cards svg { width: 30px; height: 19px; border-radius: 3px; background: #f1f5f9; }

/* ===== Bank transfer block ===== */
.bank-box {
  max-width: 460px; margin: 16px auto 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  text-align: left;
}
.bank-box h3 { font-size: 15px; margin: 0 0 4px; }
.bank-box .bk-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.bank-box .bk-row span { color: #64748b; }
.bank-box .bk-row b { word-break: break-all; text-align: end; }
.bank-box .bk-note { margin: 10px 0 0; font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 9px 12px; line-height: 1.5; }
.receipt-form { max-width: 460px; margin: 14px auto 0; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 16px 18px; text-align: left; }
.receipt-form label { font-size: 13px; font-weight: 600; color: #334155; display: block; margin-bottom: 8px; }
.receipt-form input[type="file"] { width: 100%; font-size: 13px; margin-bottom: 8px; }
.receipt-form textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; padding: 8px 10px; font-family: inherit; }
.receipt-form .btn { margin-top: 10px; }
.receipt-pending { max-width: 460px; margin: 14px auto 0; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.6; }

/* ===== Payment result page ===== */
.pr-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.pr-icon.processing { background: #eff6ff; border: 2px solid #93c5fd; color: #1d4ed8; }
.pr-icon.success { background: #ecfdf5; border: 2px solid #34d399; color: #047857; }
.pr-icon.fail { background: #fef2f2; border: 2px solid #fca5a5; color: #b91c1c; }
.pr-title { text-align: center; font-size: 22px; margin: 0 0 8px; }
.pr-sub { text-align: center; color: #64748b; font-size: 14.5px; max-width: 520px; margin: 0 auto 18px; line-height: 1.6; }
.pr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pr-spinner { margin: 0 auto 14px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #dbeafe; border-top-color: #2563eb; animation: prspin 1s linear infinite; }
@keyframes prspin { to { transform: rotate(360deg); } }

/* ===== Admin: shipping & payment management ===== */
.cfg-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.cfg-panel h2 { font-size: 16px; margin: 0 0 12px; }
.cfg-zone { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #f8fafc; }
.cfg-zone .cz-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cfg-zone .cz-head b { font-size: 14px; }
.cfg-zone textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-family: inherit; min-height: 54px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cfg-grid label { font-size: 12px; color: #64748b; display: block; margin-bottom: 3px; }
.cfg-grid input, .cfg-grid select { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 16px; max-width: 760px; width: 100%; padding: 24px; }
.receipt-badge { background: #fef3c7; color: #b45309; }
