/* ZS Aero Parts Shop — storefront styles (inspired by lockwood.aero/shop) */
:root {
  --accent: #00acea;
  --accent-dark: #0087b7;
  --danger: #d9534f;
  --danger-dark: #c9302c;
  --ink: #263238;
  --muted: #6b7b84;
  --line: #e4e9ec;
  --bg: #f7f9fa;
  --white: #fff;
  --shadow: 0 2px 12px rgba(20, 50, 70, .08);
  --radius: 5px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0; font-family: 'Titillium Web', 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .10); border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 20px; }
.brand img { height: 56px; width: auto; display: block; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }
.main-nav { display: flex; gap: 4px; margin-left: 10px; }
.main-nav a {
  color: var(--ink); padding: 8px 11px; font-weight: 600; font-size: 14px;
  border-radius: var(--radius); white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav a:hover { background: #eaf8fc; color: var(--accent-dark); }
.main-nav a[data-i18n="nav.home"] { font-weight: 800; }
.main-nav a[data-i18n="nav.home"]:hover { color: var(--accent); background: #eaf8fc; }
.search-form { display: flex; margin-left: auto; position: relative; }
.search-form input {
  width: 240px; padding: 9px 38px 9px 12px; border: 1px solid #ccd6dc;
  border-radius: 20px; outline: none; font-size: 13px; background: #fafcfd;
}
.search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,172,234,.15); }
.search-form button {
  position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0;
  background: var(--accent); color: #fff; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle { background: #fff; border: 1px solid var(--accent); color: var(--accent-dark); border-radius: 14px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; min-width: 44px; }
.lang-toggle:hover { background: #eaf8fc; }
.cart-link { position: relative; color: var(--ink); display: flex; align-items: center; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px;
  background: var(--danger); color: #fff; border-radius: 9px; font-size: 11px;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}
.user-links { display: flex; gap: 8px; align-items: center; font-size: 14px; white-space: nowrap; }
.user-name { font-weight: 600; color: var(--accent-dark); }

/* ---------- page head ---------- */
.page-head { background: #fff; margin: 24px 0 20px; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-head h1 { margin: 0; font-size: 26px; color: var(--ink); }
.page-head h1 span { color: var(--accent); }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb {
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
  font-weight: 800; display: inline-block; padding: 4px 9px;
  border-radius: var(--radius);
}
.breadcrumb a {
  color: var(--muted); border-radius: 3px;
  transition: color .15s, background .15s;
}
.breadcrumb a:hover { color: var(--accent); background: #eaf8fc; }

/* ---------- hero ---------- */
.hero {
  margin: 24px 0 20px; padding: 46px 40px; border-radius: 8px;
  background: linear-gradient(115deg, #0b3c53 0%, #0d5875 55%, #00acea 140%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -70px; width: 340px; height: 340px;
  border: 2px solid rgba(255,255,255,.13); border-radius: 50%;
}
.hero h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: .5px; }
.hero p { margin: 0 0 20px; font-size: 16px; opacity: .9; max-width: 560px; }
.hero .btn { margin-right: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.3;
  transition: background .15s, box-shadow .15s; font-family: inherit;
}
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); color: #fff; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: #34495e; color: #fff; }
.btn-dark:hover { background: #223342; color: #fff; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: #eaf8fc; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- category grid ---------- */
.section-title { font-size: 22px; margin: 30px 0 16px; color: var(--ink); }
.section-title small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.category-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 230px; position: relative; display: block; transition: transform .18s, box-shadow .18s;
  border: 1px solid var(--line);
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 90, 130, .15); }
.category-card img {
  width: 100%; height: 230px; object-fit: cover; display: block; background: #eef3f5;
  transition: transform .3s;
}
.category-card:hover img { transform: scale(1.04); }
.category-card .cat-label {
  position: absolute; top: 0; left: 0; right: 0; padding: 12px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent); color: #fff;
  text-transform: uppercase; font-weight: 700; font-size: 14px; letter-spacing: .4px;
}
.category-card .cat-label small { display: block; font-size: 10px; opacity: .8; font-weight: 400; }

/* ---------- subcategory tiles ---------- */
.subcat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 26px; }
.subcat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px;
  text-align: center; box-shadow: var(--shadow); transition: transform .15s;
}
.subcat-card:hover { transform: translateY(-2px); }
.subcat-card.current { border-color: var(--accent); background: #eaf8fc; }
.diagram-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 20px; text-align: center; box-shadow: var(--shadow); }
.diagram-box img { max-width: 100%; max-height: 720px; object-fit: contain; }
.product-list { background: #fff; border-radius: var(--radius); padding: 8px 14px; border: 1px solid var(--line); }

/* ---------- reference-style parts layout: diagram left + parts list right ---------- */
.parts-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; margin-bottom: 24px; }
.diagram-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 16px; }
.diagram-panel .fig-no { margin: 0 0 4px; font-size: 18px; color: var(--accent); font-weight: 700; }
.diagram-panel .fig-title { margin: 0 0 6px; font-size: 13px; color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.diagram-panel .fig-hint { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.diagram-panel .diagram-box { border: 0; box-shadow: none; padding: 0; margin: 0; }
.parts-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; box-shadow: var(--shadow); min-width: 0; }
.parts-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.parts-heading .section-title { font-size: 18px; }
.cart-pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.25); font-size: 11px; line-height: 18px; text-align: center; }
.parts-table-wrap { overflow-x: auto; }
table.parts-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.parts-table th, table.parts-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
table.parts-table th { background: #f4f8fa; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
table.parts-table tbody tr:hover { background: #f7fbfd; }
table.parts-table td.c-desc { text-align: left; line-height: 1.4; }
table.parts-table td.c-sku a { color: var(--accent); font-weight: 700; font-family: Consolas, Monaco, monospace; white-space: nowrap; }
table.parts-table td.c-desc a { color: var(--ink); }
table.parts-table td.c-desc a:hover, table.parts-table td.c-sku a:hover { text-decoration: underline; }
table.parts-table td.c-price { font-weight: 700; white-space: nowrap; color: var(--ink); }
table.parts-table td.c-fig { color: var(--muted); }
table.parts-table .row-qty { width: 54px; padding: 5px 4px; text-align: center; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
table.parts-table .btn-xs { padding: 5px 9px; font-size: 11px; white-space: nowrap; }
.figure-nav { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.figure-nav-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.figure-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.figure-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--ink); background: #fff; transition: border-color .15s; }
.figure-chip:hover { border-color: var(--accent); }
.figure-chip.active { border-color: var(--accent); background: #eaf8fc; font-weight: 700; }
.figure-chip img { width: 40px; height: 32px; object-fit: contain; }
.figure-chip span { font-family: Consolas, Monaco, monospace; font-size: 11px; }
.subcat-card img { height: 96px; object-fit: contain; margin: 0 auto 8px; }
.subcat-card h5 { margin: 0; font-size: 13px; color: var(--ink); min-height: 34px; }

/* ---------- product list row ---------- */
.product-row {
  background: #fff; border: 1px solid #efeaea; border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; display: grid;
  grid-template-columns: 130px 1fr 210px; gap: 18px; align-items: center;
}
.product-row:hover { border-color: #cfe6ee; }
.product-thumb {
  width: 130px; height: 110px; object-fit: contain; background: #fafcfd;
  border: 1px solid #f0f3f5; border-radius: 3px; padding: 4px;
}
.product-info h6 { margin: 0 0 3px; font-size: 12px; color: var(--muted); letter-spacing: .4px; }
.product-info h3 { margin: 0 0 5px; font-size: 17px; color: var(--accent); font-weight: 700; }
.product-info p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.product-buy { text-align: right; }
.product-buy .price { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.product-buy .price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

/* ---------- product grid cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,90,130,.12); }
.product-card .thumb { height: 180px; display: grid; place-items: center; background: #fafcfd; padding: 10px; }
.product-card .thumb img { max-height: 100%; object-fit: contain; }
.product-card .body { padding: 13px 14px; flex: 1; display: flex; flex-direction: column; }
.product-card .sku { font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.product-card h3 { font-size: 15px; margin: 4px 0 6px; color: var(--accent-dark); line-height: 1.35; }
.product-card .desc { font-size: 12px; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.product-card .price { font-weight: 700; font-size: 17px; color: var(--ink); }

/* ---------- product detail ---------- */
.detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 34px; }
.detail-img { width: 100%; height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fafcfd; padding: 14px; }
.detail h1 { margin: 4px 0 6px; font-size: 26px; color: var(--accent-dark); }
.detail .sku { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.detail .lead { color: var(--muted); margin-bottom: 20px; }
.detail .big-price { font-size: 30px; font-weight: 700; color: var(--danger); margin: 10px 0 18px; }
.detail .qty { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.detail .qty input { width: 72px; padding: 8px; text-align: center; border: 1px solid #ccd6dc; border-radius: 4px; }
.meta-list { list-style: none; padding: 0; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.meta-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); }

/* ---------- cart ---------- */
.cart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data th { background: #f4f8fa; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
table.data tr:last-child td { border-bottom: 0; }
table.data img { width: 66px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 3px; }
.qty-input { width: 64px; padding: 6px; border: 1px solid #ccd6dc; border-radius: 4px; text-align: center; }
.cart-summary { margin-top: 18px; display: flex; justify-content: flex-end; gap: 30px; align-items: flex-start; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; min-width: 300px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 19px; font-weight: 700; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h2 { color: var(--ink); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 620px; margin: 10px auto 40px; }
.form-card h2 { margin-top: 0; color: var(--ink); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #41535e; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid #ccd6dc; border-radius: 4px;
  font-size: 14px; font-family: inherit; outline: none; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,172,234,.13); }
.field textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---------- account: orders + change password ---------- */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin: 0 0 40px; }
.account-orders { min-width: 0; }
.password-card { margin: 0; padding: 22px; max-width: none; }
.password-card h2 { font-size: 18px; margin-bottom: 4px; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(12, 30, 42, .55); z-index: 200;
  display: grid; place-items: center; padding: 16px;
}
.modal {
  background: #fff; border-radius: 6px; width: min(440px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden;
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head button { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 20px; }
.modal-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.modal-tabs button { flex: 1; padding: 8px; border: 1px solid var(--line); background: #f7f9fa; cursor: pointer; border-radius: 4px; font-weight: 600; }
.modal-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- toast ---------- */
.toast-root { position: fixed; right: 20px; top: 92px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #263238; color: #fff; padding: 12px 18px; border-radius: 4px; box-shadow: var(--shadow); font-size: 14px; animation: slidein .2s ease; }
.toast.success { background: #2e7d4f; }
.toast.error { background: #b93733; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* ---------- orders ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.order-head { display: flex; justify-content: space-between; padding: 12px 16px; background: #f4f8fa; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-head strong { color: var(--accent-dark); }
.status { padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d9edf7; color: #31708f; }
.status-shipped { background: #e8daef; color: #6c3483; }
.status-completed { background: #dff0d8; color: #3c763d; }
.status-cancelled { background: #f2dede; color: #a94442; }
.order-body { padding: 14px 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.order-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px 6px 6px; font-size: 13px; }
.order-item img { width: 46px; height: 40px; object-fit: contain; }
.order-foot { padding: 10px 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }

/* ---------- filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.filter-bar select, .filter-bar input { padding: 8px 10px; border: 1px solid #ccd6dc; border-radius: 4px; font-size: 13px; font-family: inherit; }
.filter-bar .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 20px 0 40px; }
.pagination { flex-wrap: wrap; align-items: center; }
.pagination button { padding: 7px 13px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; color: var(--ink); font-size: 13px; }
.pagination button:hover:not(:disabled):not(.active) { border-color: var(--accent); color: var(--accent-dark); background: #eaf8fc; }
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pager-gap { padding: 0 2px; color: var(--muted); }
.pager-jump { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pager-jump input { width: 62px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 13px; }
.pager-jump button { padding: 6px 12px; }

/* ---------- footer ---------- */
.site-footer { background: #123244; color: #cfe0e8; margin-top: 50px; padding-top: 36px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer-brand img { height: 60px; background: #fff; border-radius: 3px; padding: 5px; }
.footer-site-name { color: #fff; font-size: 18px; margin: 10px 0 0; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 12px; }
.footer-links h4, .footer-contact h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer-links a { display: block; color: #cfe0e8; font-size: 13px; padding: 4px 0; }
.footer-contact p { font-size: 13px; line-height: 1.8; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 12px; color: #8fa9b6; }

/* ---------- payment method selection ---------- */
.pay-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pay-option { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.pay-option:hover { border-color: var(--accent); }
.pay-option input[type=radio] { margin-top: 3px; accent-color: var(--danger); width: 16px; height: 16px; }
.pay-option:has(input:checked) { border-color: var(--danger); background: #fff6f5; }
.pay-option-body { display: block; font-size: 14px; }
.pay-option-name { font-weight: 600; }
.pay-qr-sm { display: block; max-width: 120px; max-height: 120px; margin-top: 8px; border: 1px solid var(--line); border-radius: 4px; }
.pay-bank-sm { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.pay-note-sm { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- pay page ---------- */
.pay-wrap { display: flex; justify-content: center; margin: 10px 0 40px; }
.pay-card { width: 100%; max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.pay-status-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-status-banner strong { letter-spacing: .5px; }
.pay-amount-row, .pay-method-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pay-amount-row span, .pay-method-row span { color: var(--muted); }
.pay-amount-row strong { font-size: 26px; color: var(--danger); }
.pay-method-row strong { font-size: 16px; }
.pay-card h3 { margin: 20px 0 12px; font-size: 16px; }
.pay-qr-box { text-align: center; padding: 10px 0; }
.pay-qr-box img { max-width: 220px; max-height: 220px; border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: #fff; }
.pay-qr-box p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.pay-bank-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pay-bank-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-bank-row:last-child { border-bottom: 0; }
.pay-bank-row span { color: var(--muted); }
.pay-bank-row strong { word-break: break-all; text-align: right; }
.pay-detail-note { background: #f7f9fa; border-left: 3px solid var(--accent); padding: 10px 14px; font-size: 13px; color: var(--muted); margin: 14px 0; }
.pay-order-items { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.pay-confirm-box { margin-top: 22px; padding: 16px; background: #fff6f5; border: 1px dashed var(--danger); border-radius: var(--radius); text-align: center; }
.pay-confirm-box p { margin-top: 0; font-size: 14px; color: var(--muted); }
.pay-done { margin-top: 22px; padding: 16px; background: #f0faf4; border: 1px solid #b8e2c6; border-radius: var(--radius); text-align: center; }
.pay-done p { margin-top: 0; font-size: 14px; color: #2e7d4f; }
.muted { color: var(--muted); }
.order-action-row { padding: 10px 16px; text-align: right; border-top: 1px dashed var(--line); }


/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .category-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .subcat-grid { grid-template-columns: repeat(4, 1fr); }
  .parts-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .diagram-panel { position: static; }
  .diagram-panel .diagram-box img { max-height: 460px; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0; background: #fff; padding: 10px 16px; box-shadow: var(--shadow); }
  .nav-toggle { display: block; }
  .search-form input { width: 170px; }
}
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .search-form { order: 5; width: 100%; }
  .search-form input { width: 100%; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .parts-heading { flex-direction: column; align-items: stretch; }
  .product-row { grid-template-columns: 90px 1fr; }
  .product-thumb { width: 90px; height: 80px; }
  .product-buy { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-img { height: 260px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 26px; }
  .cart-summary { flex-direction: column; }
  .pay-card { padding: 18px 16px; }
  .pay-amount-row strong { font-size: 22px; }
}
