/* ============================================================
   FixParts Pro — Storefront stylesheet
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff5ff;
  --accent: #06b6d4;
  --navy: #0d2a5c;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e6ebf3;
  --border-strong: #d3dbe8;
  --bg-alt: #f6f8fc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 28px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 8px 22px rgba(15, 23, 42, .08), 0 28px 60px -24px rgba(15, 23, 42, .22);
  --grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #0d2a5c 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -.018em; line-height: 1.25; }
::selection { background: #dbeafe; color: var(--navy); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background-image: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(37, 99, 235, .6); }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 6px 20px -8px rgba(15, 23, 42, .5); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .55); }
.btn-lg { padding: 14px 30px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 9px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18.5px; font-weight: 800; color: var(--dark); letter-spacing: -.03em; }
.logo img { height: 40px; width: auto; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background-image: var(--grad); font-size: 18px; line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.main-nav { display: flex; gap: 4px; font-weight: 550; font-size: 14.5px; }
.main-nav a {
  padding: 8px 14px; border-radius: 9px; color: var(--muted);
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.main-nav a.active { color: var(--primary-dark); background: var(--primary-light); font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.inquiry-btn { position: relative; padding: 10px 16px; font-size: 14px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 21px; height: 21px; padding: 0 6px;
  background: rgba(255, 255, 255, .95); color: var(--primary-dark);
  border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark); padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: #0b1f4b;
  background-image:
    radial-gradient(900px 420px at 12% 8%, rgba(37, 99, 235, .55), transparent 62%),
    radial-gradient(720px 380px at 88% 92%, rgba(6, 182, 212, .32), transparent 60%),
    linear-gradient(150deg, #0b1f4b 0%, #10306e 48%, #123a83 100%);
  padding: 84px 0 88px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-text > * { max-width: 560px; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.14; margin-bottom: 18px; letter-spacing: -.03em; }
.hero p { font-size: 16.5px; color: rgba(226, 236, 255, .86); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .38); color: #fff;
  backdrop-filter: blur(4px);
}
.hero .btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 14.5px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.hero-card b { font-weight: 650; letter-spacing: -.01em; }
.hero-card span { font-size: 12.5px; color: rgba(219, 232, 255, .7); letter-spacing: 0; }

/* ---------- Features ---------- */
.features { padding: 44px 0; background: #fff; border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.feature:hover { border-color: #c9dcff; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature > span {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 11px; background: var(--primary-light); font-size: 20px;
}
.feature h3 { font-size: 15.5px; margin: 12px 0 5px; color: var(--dark); font-weight: 700; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section h2 { font-size: 27px; color: var(--dark); font-weight: 750; }
.link-more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.link-more:hover { color: var(--primary-dark); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  overflow: hidden;
}
.cat-card::after {
  content: '→'; position: absolute; right: 18px; top: 50%; transform: translate(-4px, -50%);
  color: var(--primary); opacity: 0; transition: opacity .18s, transform .18s; font-size: 15px;
}
.cat-card:hover { border-color: #c1d5ff; box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card:hover::after { opacity: 1; transform: translate(0, -50%); }
.cat-name { font-weight: 700; color: var(--dark); font-size: 15px; }
.cat-count { color: var(--muted); font-size: 12.5px; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { border-color: #c9dbfd; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(160deg, #f8fafd 0%, #eef3fa 100%);
  display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.product-card:hover .product-img img { transform: scale(1.06); }
.img-placeholder { font-size: 42px; opacity: .8; }
.img-placeholder.lg { font-size: 76px; }
.product-info { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat {
  align-self: flex-start; font-size: 10.5px; color: var(--primary-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--primary-light); border-radius: 6px; padding: 3px 8px;
}
.product-name { font-weight: 650; color: var(--dark); font-size: 14.5px; line-height: 1.45; flex: 1; letter-spacing: -.005em; }
.product-card:hover .product-name { color: var(--primary-dark); }
.product-price { color: var(--navy); font-weight: 750; font-size: 15.5px; letter-spacing: -.01em; }
.product-moq { color: var(--muted); font-size: 12.5px; }
.add-inquiry { margin-top: 8px; width: 100%; }
.add-inquiry.added { background: #12b76a; background-image: none; border-color: #12b76a; color: #fff; box-shadow: 0 4px 12px -4px rgba(18, 183, 106, .5); }

/* ---------- Page head / breadcrumb ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f8fafd 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 30px 0 34px;
}
.page-head::before {
  content: ''; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, .09), transparent 66%);
  pointer-events: none;
}
.page-head .container { position: relative; }
.page-head h1 { font-size: 30px; color: var(--dark); font-weight: 780; }
.page-head p { color: var(--muted); margin-top: 7px; font-size: 14.5px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 18px 24px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .bc-sep { color: #c3cddd; }
.breadcrumb .bc-current { color: var(--dark); font-weight: 600; }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 30px; align-items: start; }
.catalog-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.catalog-main { min-width: 0; }

.side-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.side-title {
  font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin-bottom: 12px;
}

/* Search: icon inside field, button inside field — no overflow possible */
.search-box { display: block; }
.search-field {
  display: flex; align-items: center; gap: 0; min-width: 0;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 11px;
  padding: 4px 4px 4px 12px;
  transition: border-color .16s, box-shadow .16s;
}
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.search-icon { flex: 0 0 auto; color: var(--muted); display: block; }
.search-field input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: none; outline: none; background: transparent;
  padding: 8px 8px 8px 9px; font-size: 14px; font-family: inherit; color: var(--dark);
}
.search-field input::placeholder { color: #9aa8bd; }
.search-submit {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border: none; border-radius: 8px; cursor: pointer;
  background-image: var(--grad); color: #fff;
  box-shadow: 0 3px 10px -3px rgba(37, 99, 235, .6);
  transition: filter .16s, transform .16s;
}
.search-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.search-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }

.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list a {
  padding: 9px 12px; font-size: 14px; color: var(--text); border-radius: 9px;
  position: relative; transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: space-between;
}
.cat-list a:hover { background: var(--bg-alt); color: var(--primary-dark); }
.cat-list a.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 650; }
.cat-list a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 2px; background: var(--primary);
}

.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-dark);
  border: 1px solid #c9dcff; border-radius: 999px;
  padding: 6px 8px 6px 13px; font-size: 13px; font-weight: 600;
}
.filter-chip:hover { background: #e2edff; border-color: #a9c4ff; }
.chip-x {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: var(--muted); font-size: 13px; line-height: 1;
}
.filter-chip:hover .chip-x { background: #fee2e2; color: #b91c1c; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count b { color: var(--dark); font-weight: 700; }
.empty-state {
  text-align: center; padding: 68px 24px; color: var(--muted);
  background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.empty-state .es-icon { font-size: 34px; }
.empty-state h3 { color: var(--dark); font-size: 17px; }
.empty-state p { font-size: 14px; }
.empty-state .btn { margin-top: 10px; }

/* ---------- Product detail ---------- */
.product-detail { background: #fff; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.detail-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; }
.detail-img {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #f8fafd, #eef3fa);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-btn {
  width: 74px; height: 74px; padding: 0; overflow: hidden; cursor: pointer; background: #fff;
  border: 2px solid var(--border); border-radius: 11px; transition: border-color .15s, box-shadow .15s;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { border-color: #a9c4ff; }
.thumb-btn.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.detail-info h1 { font-size: 27px; color: var(--dark); margin-bottom: 14px; line-height: 1.3; font-weight: 780; letter-spacing: -.025em; }
.detail-meta {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 24px;
}
.meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 0; border-bottom: 1px dashed var(--border-strong); font-size: 14px;
}
.meta-row:last-child { border-bottom: none; }
.meta-row .k { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.meta-row .v { color: var(--dark); font-weight: 650; text-align: right; }
.meta-row .v.price { color: var(--navy); font-size: 17px; font-weight: 780; letter-spacing: -.01em; }
.meta-row .v a { color: var(--primary); font-weight: 600; }
.detail-note { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; }
.rich-text { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.rich-text::after { content: ''; display: block; clear: both; }
.rich-text h2 { font-size: 18px; margin-bottom: 12px; color: var(--dark); font-weight: 700; }
.rich-text p { margin-bottom: 12px; max-width: 760px; font-size: 14.5px; color: var(--text); }
.rich-text .desc-img { display: block; max-width: min(100%, 640px); width: auto; margin: 16px auto; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.rich-text .desc-video { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; margin: 16px auto; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.rich-text .desc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rich-text .desc-table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rich-text .desc-table th, .rich-text .desc-table td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; vertical-align: top; }
.rich-text .desc-table thead th { background: #f1f5f9; color: var(--dark); font-weight: 700; }
.rich-text .desc-table tbody tr:nth-child(even) { background: #fafbfc; }

/* ---------- Inquiry page ---------- */
.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.inquiry-cart, .inquiry-form-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); min-width: 0;
}
.inquiry-form-wrap { position: sticky; top: 92px; }
.inquiry-cart h2, .inquiry-form-wrap h2 { font-size: 18px; color: var(--dark); margin-bottom: 16px; font-weight: 720; }
.cart-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.ci-thumb {
  width: 62px; height: 62px; flex: 0 0 62px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-ph { font-size: 22px; }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ci-name { font-size: 14px; font-weight: 620; color: var(--dark); line-height: 1.4; }
.ci-name:hover { color: var(--primary); }
.ci-qty {
  display: inline-flex; align-items: center; border: 1px solid var(--border-strong);
  border-radius: 8px; overflow: hidden; width: fit-content; height: 32px;
}
.ci-step { width: 30px; height: 100%; border: none; background: #f7f9fc; cursor: pointer; font-size: 15px; color: var(--text); transition: background .14s, color .14s; }
.ci-step:hover { background: var(--primary-light); color: var(--primary); }
.ci-input { width: 58px; height: 100%; border: none; text-align: center; font-size: 13.5px; font-weight: 650; font-family: inherit; background: #fff; }
.ci-input:focus { outline: none; }
.ci-unit { font-size: 11.5px; color: var(--muted); padding: 0 8px; }
.ci-rm { background: none; border: none; color: #98a2b3; cursor: pointer; font-size: 15px; padding: 6px; border-radius: 7px; transition: color .14s, background .14s; }
.ci-rm:hover { color: #d92d20; background: #fef3f2; }
.cart-empty { color: var(--muted); font-size: 14px; padding: 26px 0; text-align: center; }
.cart-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.cart-summary {
  margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted);
}
.cart-summary b { color: var(--dark); font-size: 15px; }

.form-row { margin-bottom: 16px; min-width: 0; }
.form-row label { display: block; font-size: 13px; font-weight: 650; color: var(--dark); margin-bottom: 7px; letter-spacing: -.005em; }
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border-strong); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--dark); background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #9aa8bd; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.form-row textarea { resize: vertical; min-height: 96px; }
.form-tip { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.success-box { text-align: center; padding: 44px 22px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.success-icon { font-size: 42px; }
.success-box h2 { font-size: 20px; color: var(--dark); }
.success-box p { color: var(--muted); font-size: 14.5px; }

/* ---------- About / contact ---------- */
.about-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: start; }
.about-side { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.about-side h3 { color: var(--dark); margin-bottom: 12px; font-size: 16px; }
.check-list { list-style: none; margin-bottom: 18px; }
.check-list li { padding: 6px 0; font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.contact-card:hover { border-color: #c9dcff; box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card > :first-child { font-size: 26px; }
.contact-card h3 { margin: 10px 0 4px; color: var(--dark); font-size: 15.5px; }
.contact-card p, .contact-card a { font-size: 14px; color: var(--muted); word-break: break-word; }
.contact-card a:hover { color: var(--primary); }
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background-image:
    radial-gradient(600px 300px at 20% 20%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #06b6d4 120%);
  padding: 72px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: 28px; font-weight: 780; }
.cta-band p { color: rgba(235, 245, 255, .9); margin-bottom: 26px; font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: #b6c2d4; padding: 52px 0 0; margin-top: 0;
  background: #0b1524;
  background-image: radial-gradient(700px 300px at 80% 0%, rgba(37, 99, 235, .18), transparent 62%);
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .55), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 34px; padding-bottom: 36px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: #93a4bb; transition: color .14s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13.5px; padding: 4px 0; }
.footer-bottom { border-top: 1px solid #1b2839; padding: 18px 0; font-size: 12.5px; color: #6f8098; }

/* ---------- Quantity picker ---------- */
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty-box {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong);
  border-radius: 12px; overflow: hidden; background: #fff; height: 52px;
}
.qty-step { width: 42px; height: 100%; border: none; background: #f7f9fc; font-size: 18px; cursor: pointer; color: var(--text); transition: background .14s, color .14s; }
.qty-step:hover { background: var(--primary-light); color: var(--primary); }
.qty-box input { width: 74px; height: 100%; border: none; text-align: center; font-size: 15px; font-weight: 650; font-family: inherit; color: var(--dark); }
.qty-box input:focus { outline: none; }
.buy-row .btn-lg { height: 52px; }

/* ---------- Form anti-spam & helpers ---------- */
.req { color: #d92d20; font-weight: 700; margin-left: 2px; }
.captcha-row { margin-bottom: 16px; }
.captcha-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-q {
  background: var(--bg-alt); border: 1.5px dashed var(--border-strong); border-radius: 10px;
  padding: 10px 16px; font-weight: 700; font-size: 15.5px; color: var(--dark);
  letter-spacing: .06em; white-space: nowrap;
}
.captcha-box input {
  width: 130px; padding: 11px 13px; border: 1.5px solid var(--border-strong); border-radius: 10px;
  font-size: 14.5px; font-family: inherit;
}
.captcha-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin-top: 12px; background: #fef3f2; border: 1px solid #fda29b; color: #b42318;
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .hero h1 { font-size: 36px; }
  .hero-inner { gap: 36px; }
}
@media (max-width: 900px) {
  .hero-inner, .detail-layout, .inquiry-layout, .about-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-gallery, .inquiry-form-wrap, .catalog-side { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 2px; padding: 12px 20px 16px;
    box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 14px; }
  .nav-toggle { display: block; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 48px 0; }
  .hero { padding: 62px 0 66px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 15px; }
  .feature-grid, .hero-art { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
  .section h2 { font-size: 22px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .product-info { padding: 12px 13px 14px; }
  .product-name { font-size: 13.5px; }
  .inquiry-cart, .inquiry-form-wrap { padding: 18px; }
  .header-inner { height: 64px; gap: 10px; }
  .header-actions { gap: 8px; min-width: 0; }
  .logo { min-width: 0; flex-shrink: 1; }
  .logo-text { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 窄屏：询价按钮只留图标和数量，确保汉堡菜单按钮不被挤出屏幕 */
  .inquiry-btn { padding: 9px 10px; font-size: 13px; white-space: nowrap; }
  .inquiry-btn .inquiry-btn-label { display: none; }
  .lang-switch { padding: 0 8px; height: 34px; }
  .lang-switch select { max-width: 86px; font-size: 12px; }
  .nav-toggle { flex-shrink: 0; }
  .cta-band h2 { font-size: 22px; }
}
/* 极窄屏幕（<430px）：进一步压缩头部，保证汉堡菜单始终可见 */
@media (max-width: 430px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
  .logo-icon { width: 32px; height: 32px; font-size: 15px; }
  .logo img { height: 32px; }
  .logo-text { font-size: 14.5px; }
  .lang-switch { padding: 0 6px; gap: 4px; flex-shrink: 0; }
  .lang-switch select { max-width: 62px; }
  .lang-switch .lang-globe { display: none; }
  .inquiry-btn { padding: 8px 8px; }
}

/* ============ Language Switch (Google Translate) ============ */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 999px; padding: 0 12px; height: 38px;
  transition: border-color .2s, box-shadow .2s;
}
.lang-switch:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.lang-globe { font-size: 15px; line-height: 1; }
.lang-switch select {
  border: 0; outline: 0; background: transparent;
  font: 600 13px/1 'Inter', sans-serif; color: #334155;
  cursor: pointer; max-width: 130px; appearance: none;
  background-image: url("data:image/svg+xml,%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='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
  padding-right: 16px;
}
/* 隐藏 Google 翻译默认横幅与元素（含新版 VIpgJd 类名） */
.goog-te-banner-frame.skiptranslate, iframe.goog-te-banner-frame,
.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-te-gadget img { display: none !important; }
body { top: 0 !important; }

/* ============ Product Share Buttons ============ */
.share-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}
.share-label { font-size: 13px; font-weight: 600; color: #64748b; }
/* 分享按钮：圆形图标风格，悬停显示品牌色 */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%; border: 1px solid #e2e8f0;
  background: #fff; color: #64748b;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s, border-color .16s;
}
.share-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15,23,42,.14);
  background: var(--share-brand, var(--primary));
  border-color: var(--share-brand, var(--primary));
  color: #fff;
}
.s-fb { --share-brand: #1877f2; }
.s-tw { --share-brand: #0f172a; }
.s-wa { --share-brand: #25d366; }
.s-li { --share-brand: #0a66c2; }
.s-pi { --share-brand: #e60023; }
.s-em { --share-brand: #64748b; }
.s-cp { --share-brand: var(--primary); }
.s-cp.copied, .s-cp.copied:hover { background: #16a34a; border-color: #16a34a; color: #fff; }

@media (max-width: 768px) {
  .lang-switch { height: 34px; padding: 0 10px; }
  .lang-switch select { max-width: 104px; font-size: 12px; }
  .share-btn { width: 32px; height: 32px; flex-basis: 32px; }
  .share-btn svg { width: 17px; height: 17px; }
}

/* ============ 分类层级（三级，可折叠） ============ */
.cat-node { display: flex; flex-direction: column; gap: 2px; }
.cat-node > .cat-row { display: flex; align-items: stretch; position: relative; }
.cat-node > .cat-row > a { flex: 1; min-width: 0; }
.cat-toggle {
  border: none; background: none; cursor: pointer;
  width: 28px; padding: 0; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 11px; transition: color .15s;
}
.cat-toggle:hover { color: var(--primary-dark); }
.cat-toggle .cat-arrow { display: inline-block; transition: transform .18s; }
.cat-toggle.open .cat-arrow { transform: rotate(90deg); }
.cat-children { display: none; flex-direction: column; gap: 2px; padding-left: 10px; }
.cat-children.open { display: flex; }
.cat-node.cat-l2 > .cat-row > a { padding-left: 26px; font-size: 13.2px; }
.cat-node.cat-l3 > .cat-row > a { padding-left: 42px; font-size: 12.8px; color: #64748b; }
.cat-node.cat-l2 > .cat-row > a, .cat-node.cat-l3 > .cat-row > a { position: relative; }
.cat-node.cat-l2 > .cat-row > a::before,
.cat-node.cat-l3 > .cat-row > a::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 7px; height: 1px;
  background: #cbd5e1; transform: translateY(-50%);
}
.cat-node.cat-l3 > .cat-row > a::before { left: 30px; width: 8px; }
.cat-list a.in-path { color: var(--primary-dark); background: #f5f9ff; }
@media (max-width: 768px) {
  .cat-node.cat-l2 > .cat-row > a { padding-left: 20px; }
  .cat-node.cat-l3 > .cat-row > a { padding-left: 32px; }
}

/* ============ WhatsApp 悬浮按钮 ============ */
.wa-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 12px 13px; border-radius: 30px;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .42);
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.wa-float:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(37, 211, 102, .5); }
.wa-float:active { transform: translateY(0); }
.wa-float svg { flex-shrink: 0; }
.wa-float-label { white-space: nowrap; }
@media (max-width: 768px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-float .wa-float-label { display: none; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ============ 报价表下载分组折叠 ============ */
.dl-group { margin: 22px 0 10px; max-width: 880px; }
.dl-group summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: #0f172a;
  border-left: 4px solid #2563eb; padding: 7px 12px;
  border-radius: 0 8px 8px 0; transition: background .15s;
}
.dl-group summary::-webkit-details-marker { display: none; }
.dl-group summary:hover { background: #eff6ff; }
.dl-group-count { font-weight: 400; font-size: 13px; color: #64748b; }
.dl-group-arrow { margin-left: auto; font-size: 14px; color: #64748b; transition: transform .2s ease; }
.dl-group:not([open]) .dl-group-arrow { transform: rotate(-90deg); }
.dl-files { display: flex; flex-direction: column; gap: 16px; margin: 14px 0 0 14px; }

/* ---------- 阿拉伯语等 RTL 语言布局适配（dir="rtl" 时自动镜像） ---------- */
[dir="rtl"] body { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] .main-nav, [dir="rtl"] .header-actions, [dir="rtl"] .hero-actions { direction: rtl; }
[dir="rtl"] .search-box .search-submit svg { transform: scaleX(-1); }
[dir="rtl"] .breadcrumb .bc-sep { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .link-more, [dir="rtl"] .filter-chip, [dir="rtl"] .btn { text-align: right; }
[dir="rtl"] .wa-float { left: 20px; right: auto; }
[dir="rtl"] .cart-item, [dir="rtl"] .detail-meta, [dir="rtl"] .buy-row { direction: rtl; }
[dir="rtl"] input[type="number"] { direction: ltr; text-align: right; }
