:root {
  --navy: #12263f;
  --navy-2: #1b3a5c;
  --orange: #f26522;
  --orange-d: #d9531a;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e3e8ef;
  --text: #1f2937;
  --muted: #64748b;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(18, 38, 63, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar + nav ---------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 13px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar .contact span { margin-right: 18px; }

header.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: .5px; }
.logo .mark { background: var(--orange); color: #fff; padding: 4px 9px; border-radius: 8px; font-size: 18px; }
.logo .txt { color: var(--navy); letter-spacing: -.5px; }
nav.menu { display: flex; gap: 4px; flex: 1; }
nav.menu a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--navy); }
nav.menu a:hover, nav.menu a.active { background: #fff3ec; color: var(--orange); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; border: 0; cursor: pointer; font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: 8px; transition: .15s; text-align: center; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.cart-btn { position: relative; }
.cart-btn .badge { position: absolute; top: -7px; right: -7px; background: var(--orange); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(115deg, #0d1f35 0%, #123055 55%, #1d4a7a 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(242,101,34,.35), transparent 65%); }
.hero-inner { position: relative; z-index: 1; padding: 72px 0 66px; max-width: 680px; }
.hero .badge-pill { display: inline-block; background: var(--orange); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: .5px; margin-bottom: 14px; text-transform: uppercase; }
.hero p { font-size: 17px; color: #c8d6e5; margin-bottom: 26px; max-width: 560px; }
.hero .dots { display: flex; gap: 8px; margin-top: 26px; }
.hero .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.hero .dots i.on { background: var(--orange); }

/* ---------- find my parts ---------- */
.finder { margin-top: -38px; position: relative; z-index: 2; }
.finder-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.finder-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.finder-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.finder-grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.finder-grid > .btn { height: 44px; box-sizing: border-box; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.field select, .field input { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; background-color: #fff; color: var(--text); box-sizing: border-box; }
.field select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field select:focus, .field input:focus { outline: none; border-color: var(--orange); }
.serial-note { grid-column: 1 / -1; background: #fff8f4; border: 1px dashed #f2a680; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #9a5b3a; }
.serial-note b { color: var(--orange-d); }

/* ---------- sections ---------- */
section.block { padding: 52px 0 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.sec-head h2 { font-size: 26px; color: var(--navy); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.sec-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sec-head a.more { color: var(--orange); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sec-head a.more:hover { text-decoration: underline; }

/* brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brand-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 20px 10px 16px; transition: .15s; cursor: pointer; }
.brand-tile:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-tile .logo-chip { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.brand-tile .name { font-weight: 700; font-size: 14px; color: var(--navy); }
.brand-tile .cnt { font-size: 12px; color: var(--muted); }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; transition: .15s; }
.cat-tile:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-tile .ic { width: 46px; height: 46px; border-radius: 10px; background: #fff3ec; display: flex; align-items: center; justify-content: center; }
.cat-tile .ic svg { width: 26px; height: 26px; stroke: var(--orange); }
.cat-tile .name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.cat-tile .desc { font-size: 12.5px; color: var(--muted); flex: 1; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.prod-card:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.prod-card .ph { height: 150px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); }
.prod-card .ph img { width: 80%; height: 80%; object-fit: contain; }
.prod-card .ph .noimg { color: #94a3b8; font-weight: 800; letter-spacing: 2px; font-size: 22px; }
.prod-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-card .sku { font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.prod-card .name { font-weight: 700; font-size: 14.5px; color: var(--navy); line-height: 1.35; flex: 1; }
.prod-card .name:hover { color: var(--orange); }
.prod-card .row { display: flex; justify-content: space-between; align-items: center; }
.prod-card .price { color: var(--orange-d); font-weight: 800; font-size: 17px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2f7; color: var(--navy-2); }

/* support hub + trust */
.hub { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 34px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.hub h2 { font-size: 24px; margin-bottom: 8px; }
.hub p { color: #b7c6d8; max-width: 620px; }
.hub .links { display: flex; gap: 12px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 40px; }
.trust .t { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.trust .ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fff3ec; display: flex; align-items: center; justify-content: center; }
.trust b { color: var(--navy); display: block; font-size: 14.5px; }
.trust span { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
footer { background: #0c1c30; color: #93a6bb; margin-top: 30px; padding: 44px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.foot-grid a, .foot-grid li { display: block; font-size: 13.5px; margin-bottom: 8px; color: #93a6bb; }
.foot-grid a:hover { color: var(--orange); }
.foot-bottom { border-top: 1px solid #1c334e; padding: 16px 0; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- listing page ---------- */
.page-head { background: var(--navy); color: #fff; padding: 34px 0; }
.page-head h1 { font-size: 26px; text-transform: uppercase; letter-spacing: 1px; }
.page-head .crumb { font-size: 13px; color: #93a6bb; margin-top: 6px; }
.page-head .crumb a:hover { color: var(--orange); }
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 30px 0 50px; align-items: start; }
.filter-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 88px; }
.filter-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin: 14px 0 8px; }
.filter-card h4:first-child { margin-top: 0; }
.filter-card label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 4px 0; cursor: pointer; color: var(--text); }
.filter-card label:hover { color: var(--orange); }
.filter-card input[type=checkbox] { accent-color: var(--orange); }
.filter-card input[type=text] { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; }
.list-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 36px 0 50px; }
.detail .ph { background: #fff; border-radius: var(--radius); min-height: 380px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); overflow: hidden; }
.detail .ph img { width: 80%; height: 80%; max-height: 560px; object-fit: contain; display: block; }
.detail .noimg { color: #94a3b8; font-weight: 800; letter-spacing: 3px; font-size: 34px; }
.detail h1 { font-size: 24px; color: var(--navy); margin: 10px 0 6px; }
.detail .price { font-size: 30px; color: var(--orange-d); font-weight: 800; margin: 14px 0; }
.detail .desc { color: var(--muted); margin-bottom: 20px; }
.detail .sku-line { font-size: 13px; color: var(--muted); letter-spacing: .3px; }
.detail .sku-line b { color: var(--navy); font-weight: 700; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.qty-row input { width: 90px; padding: 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; text-align: center; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.spec .row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec .row:last-child { border-bottom: 0; }
.spec .k { width: 130px; background: #f8fafc; padding: 10px 14px; font-weight: 700; color: var(--navy); }
.spec .v { padding: 10px 14px; color: var(--muted); }

/* ---------- inquiry / contact ---------- */
.inquiry-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; padding: 30px 0 50px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-card h3 { color: var(--navy); margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card input, .form-card textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--orange); }
.form-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.cart-items { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cart-items .ci { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.cart-items .ci:last-child { border-bottom: 0; }
.cart-items .rm { color: #dc2626; cursor: pointer; font-size: 12.5px; border: 0; background: none; }
.ok-msg { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.err-msg { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }

/* toast */
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1000px) {
  .brand-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .finder-grid { grid-template-columns: 1fr 1fr; }
  .list-layout, .detail, .inquiry-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.menu { display: none; }
  .brand-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
