/* ============================================================
   ChipMart — tech-blue responsive stylesheet
   ============================================================ */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --accent: #00b0ff;
  --navy: #0a2540;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2d3d;
  --muted: #6b7c93;
  --border: #e1e8f0;
  --success: #2e7d32;
  --danger: #c62828;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(13, 71, 161, 0.08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
.section { padding: 54px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: 28px; }
.section-title p { color: var(--muted); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 6px;
  padding: 10px 20px; font-size: 14px; cursor: pointer; font-weight: 600;
  transition: .15s background, .15s box-shadow; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-cta { background: var(--accent); color: #00263a; }
.btn-cta:hover { background: #0091ea; color: #00263a; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo { height: 34px; width: auto; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: .5px; color: #fff; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: #d7e3f4; font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- header global search ---------- */
.header-search { display: flex; align-items: center; margin-left: 6px; }
.header-search input {
  height: 36px; width: 230px; max-width: 40vw; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28); border-right: 0; border-radius: 18px 0 0 18px;
  background: rgba(255,255,255,.10); color: #fff; font-size: 14px; outline: none;
}
.header-search input::placeholder { color: #a9c2e0; }
.header-search input:focus { background: rgba(255,255,255,.18); border-color: var(--accent); }
.header-search button {
  height: 36px; padding: 0 16px; border: 0; border-radius: 0 18px 18px 0;
  background: var(--accent); color: #00263a; font-weight: 600; font-size: 14px; cursor: pointer;
}
.header-search button:hover { background: #33c0ff; }


/* ---------- hero / tech banner (light blue) ---------- */
.hero-tech {
  position: relative; overflow: hidden; color: #0a2540;
  background:
    radial-gradient(120% 140% at 82% -10%, rgba(120,180,255,.45), transparent 55%),
    radial-gradient(120% 140% at 0% 110%, rgba(180,205,255,.40), transparent 55%),
    linear-gradient(135deg, #eaf3ff 0%, #dcebff 50%, #f5f9ff 100%);
  padding: 92px 0 100px;
}
.hero-tech .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(21,101,192,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,101,192,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
  animation: gridpan 20s linear infinite;
}
@keyframes gridpan { from { background-position: 0 0; } to { background-position: 54px 54px; } }
.hero-glow {
  position: absolute; left: 50%; top: 35%; width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(33,118,255,.22), transparent 60%);
  filter: blur(10px);
  animation: glowpulse 8s ease-in-out infinite;
}
@keyframes glowpulse { 0%,100% { opacity: .5; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .85; transform: translate(-50%,-50%) scale(1.1); } }
.hero-particles span {
  position: absolute; bottom: -24px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(21,101,192,.35); box-shadow: 0 0 10px rgba(21,101,192,.35);
  opacity: 0; animation: rise 11s linear infinite;
}
.hero-particles span:nth-child(1){ left: 6%;  animation-delay: 0s;   animation-duration: 10s; }
.hero-particles span:nth-child(2){ left: 14%; animation-delay: 3s;  }
.hero-particles span:nth-child(3){ left: 22%; animation-delay: 6s;  animation-duration: 12s; }
.hero-particles span:nth-child(4){ left: 31%; animation-delay: 1.5s; }
.hero-particles span:nth-child(5){ left: 39%; animation-delay: 5s;  animation-duration: 9s; }
.hero-particles span:nth-child(6){ left: 47%; animation-delay: 8s;  }
.hero-particles span:nth-child(7){ left: 54%; animation-delay: 2s;  animation-duration: 13s; }
.hero-particles span:nth-child(8){ left: 62%; animation-delay: 7s;  }
.hero-particles span:nth-child(9){ left: 70%; animation-delay: 4s;  animation-duration: 10s; }
.hero-particles span:nth-child(10){ left: 77%; animation-delay: 9s; }
.hero-particles span:nth-child(11){ left: 84%; animation-delay: 1s; animation-duration: 11s; }
.hero-particles span:nth-child(12){ left: 90%; animation-delay: 5.5s; }
.hero-particles span:nth-child(13){ left: 96%; animation-delay: 3.5s; animation-duration: 9s; }
.hero-particles span:nth-child(14){ left: 18%; animation-delay: 10s; }
.hero-particles span:nth-child(15){ left: 66%; animation-delay: 6.5s; }
.hero-particles span:nth-child(16){ left: 44%; animation-delay: 11s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(-560px); opacity: 0; } }

.hero-tech .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #1565c0; font-weight: 700; margin-bottom: 18px;
  padding: 6px 14px; border: 1px solid rgba(21,101,192,.30); border-radius: 999px;
  background: rgba(21,101,192,.08);
  animation: fadeup .8s ease both;
}
.hero-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin: 0 0 20px; font-weight: 800; color: #0a2540; letter-spacing: -0.02em; text-wrap: balance; animation: fadeup .8s .08s ease both; }
.hero-title .line { display: block; }
.hero-title .grad {
  background: linear-gradient(90deg, #1565c0, #6a5cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: #45617d; max-width: 540px; line-height: 1.7; margin: 0 0 30px; animation: fadeup .8s .16s ease both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeup .8s .24s ease both; }
.btn-outline-light { background: transparent; border: 1px solid #1565c0; color: #1565c0; }
.btn-outline-light:hover { background: rgba(21,101,192,.10); color: #0d47a1; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; animation: fadeup .8s .32s ease both; }
.hero-stats .stat b { font-size: 30px; color: #0a2540; display: block; line-height: 1.1; }
.hero-stats .stat span { font-size: 13px; color: #5b758f; }
@keyframes fadeup { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 18px 6px; }
.hero-frame {
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(20,60,120,.18), 0 0 0 1px rgba(21,101,192,.12);
  animation: floaty 6.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-nobanner { display: flex; align-items: center; justify-content: center; }
.hero-nobanner svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute; right: -6px; bottom: 22px; z-index: 5;
  background: linear-gradient(90deg, #2a8bff, #6a5cff); color: #fff;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 13px;
  letter-spacing: .3px; box-shadow: 0 12px 28px rgba(42,139,255,.45);
  animation: fadeup .8s .4s ease both;
}
.hero-ring {
  position: absolute; width: 120%; height: 120%; left: -10%; top: -10%; z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(33,118,255,.0), rgba(33,118,255,.30), rgba(124,92,255,.30), rgba(33,118,255,.0));
  filter: blur(26px); opacity: .5;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* floating glass chips around the visual */
.hero-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(21,101,192,.18); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 10px 26px rgba(20,60,120,.18);
  font-size: 13px; font-weight: 600; color: #0a2540; white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.hero-chip b { color: #1565c0; }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #00b0ff; box-shadow: 0 0 8px rgba(0,176,255,.7); }
.hero-chip.chip-a { top: 4px; left: -22px; }
.hero-chip.chip-b { bottom: 6px; right: -22px; animation-delay: 1.2s; }
.hero-chip.chip-c { top: 46%; right: -34px; animation-delay: 2.4s; }

@media (max-width: 860px) {
  .hero-tech { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-visual { order: -1; padding: 8px 0; }
  .hero-frame { max-width: 100%; }
  .hero-chip { display: none; }
  .hero-particles { display: none; }
}

/* ---------- category nav grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: .15s transform, .15s border-color;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.cat-card .ico { font-size: 30px; color: var(--primary); height: 56px; display: flex; align-items: center; justify-content: center; }
.cat-card .ico img { width: 52px; height: 52px; object-fit: contain; }
.cat-card h4 { margin: 10px 0 6px; color: var(--navy); font-size: 16px; }
.cat-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .15s transform;
  min-width: 0; overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); }
.product-thumb {
  aspect-ratio: 1 / 1; width: 100%; border-radius: 8px; background: linear-gradient(135deg,#e8f1fb,#d4e6fa);
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 13px;
  margin-bottom: 12px; overflow: hidden; padding: 10px; word-break: break-word; text-align: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .pn { font-weight: 700; color: var(--navy); font-size: 15px; overflow-wrap: anywhere; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .brand { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .pkg { display: inline-block; background: #eef4fb; color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 20px; margin: 6px 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.product-card .desc { color: var(--muted); font-size: 13px; flex: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-card .price { color: #e65100; font-weight: 700; font-size: 14px; margin: 6px 0 2px; }
.product-card .stock { color: var(--success); font-size: 12px; margin: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .actions { margin-top: 10px; display: flex; gap: 8px; }
.product-card .actions .btn { flex: 1; padding: 8px; font-size: 13px; }

/* ---------- brand showcase ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.brand-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  height: 84px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow); text-align: center; padding: 10px; font-size: 14px;
}
.brand-card img { max-width: 120px; max-height: 46px; object-fit: contain; }
.brand-card span { padding: 0 6px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-card .thumb { height: 160px; background: linear-gradient(135deg,var(--primary),var(--accent)); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .body { padding: 16px; }
.news-card .date { color: var(--muted); font-size: 12px; }
.news-card h4 { font-size: 16px; margin: 6px 0; }
.news-card p { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

/* ---------- layout: catalog page ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sidebar h4 { font-size: 15px; margin: 0 0 12px; }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.filter-group select, .filter-group input[type=text] {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: #fff;
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.cat-list li a:hover, .cat-list li a.active { background: #eef4fb; color: var(--primary); }
.cat-list li ul { padding-left: 14px; list-style: none; }
/* collapsible subcategory branches */
.cat-list .cat-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cat-list .cat-row a { flex: 1 1 auto; min-width: 0; }
.cat-list .cat-toggle {
  flex: 0 0 auto; width: 22px; height: 22px; padding: 0; line-height: 1;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 5px; cursor: pointer; font-size: 11px; display: flex;
  align-items: center; justify-content: center; transition: transform .18s ease, background .18s ease;
}
.cat-list .cat-toggle:hover { background: #eef4fb; color: var(--primary); }
.cat-list li.cat-open > .cat-row .cat-toggle { transform: rotate(90deg); background: #eef4fb; color: var(--primary); }
.cat-list .cat-sub { display: none; }
.cat-list li.cat-open > .cat-sub { display: block; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.search-box { display: flex; gap: 8px; }
.search-box input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; min-width: 240px; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.detail .gallery { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.detail .gallery .main-img { aspect-ratio: 1 / 1; width: 100%; height: auto; background: linear-gradient(135deg,#e8f1fb,#d4e6fa); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; }
.detail-info h1 { font-size: 24px; }
.detail-info .meta { color: var(--muted); margin-bottom: 14px; }
.detail-info .meta .price-val { color: var(--success); font-size: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.spec-table td { padding: 9px 12px; border: 1px solid var(--border); font-size: 14px; }
.spec-table td:first-child { background: #f6f9fd; color: var(--navy); font-weight: 600; width: 38%; }
.detail-actions { margin: 20px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.gallery .detail-actions { flex-direction: column; margin: 16px 0 10px; }
.gallery .detail-actions .btn { width: 100%; text-align: center; justify-content: center; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }

/* ---------- forms / contact / bom ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit;
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 12px; font-size: 14px; }
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--danger); }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #b7dfb9; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f3b9b5; }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,37,64,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; padding: 26px; position: relative; max-height: 92vh; overflow: auto; }
.modal h3 { margin-top: 0; }
.modal-sub { color: var(--muted); margin: -6px 0 16px; font-size: 14px; }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }

/* ---------- captcha row (public forms) ---------- */
.captcha-row { margin-bottom: 16px; }
.captcha-wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-input { flex: 0 0 140px; max-width: 140px; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }
.captcha-img { height: 44px; width: auto; border: 1px solid var(--border, #d4dce6); border-radius: 8px; cursor: pointer; background: #f4f7fb; transition: border-color .15s, box-shadow .15s; }
.captcha-img:hover { border-color: var(--primary, #1565c0); box-shadow: 0 0 0 3px rgba(21,101,192,.12); }

/* ---------- inquiry success dialog ---------- */
.modal-success { text-align: center; }
.modal-success .success-ico { width: 64px; height: 64px; border-radius: 50%; background: #e8f5e9; color: #2e7d32; font-size: 34px; line-height: 64px; text-align: center; margin: 0 auto 14px; }
.modal-success h3 { text-align: center; }
.modal-success .modal-sub { text-align: center; }
.modal-success .btn { display: block; margin: 18px auto 0; min-width: 150px; }

/* ---------- pages: about / contact info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-box h4 { color: var(--primary); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cdd9e8; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.15fr; gap: 28px; padding: 44px 0 28px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #b7c6da; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 4px 0; font-size: 14px; }
.social a { display: inline-block; margin-right: 14px; color: var(--accent); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #8ba0bd; }
.footer-brand .footer-logo { height: 40px; width: auto; margin-bottom: 12px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.footer-brand .footer-brand-name { font-size: 22px; font-weight: 700; color: #fff; display: inline-block; margin-bottom: 12px; }
.footer-qr img { width: 110px; height: 110px; background: #fff; padding: 6px; border-radius: 8px; }
.footer-qr span { display: block; font-size: 12px; color: #8ba0bd; margin-top: 6px; text-align: center; }

/* ---------- product detail image ---------- */
.detail .gallery .main-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- about page ---------- */
.about-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; padding: 0; }
.about-hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 60px 0; }
.about-hero-text h1 { color: #fff; font-size: 38px; margin: 0 0 16px; }
.about-hero-text .lead { font-size: 17px; color: #cdd9e8; margin: 0 0 24px; line-height: 1.7; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.about-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-hero-stats .stat { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 18px; text-align: center; }
.about-hero-stats .stat b { display: block; font-size: 30px; color: #fff; }
.about-hero-stats .stat span { font-size: 13px; color: #b7c6da; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 22px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .15s transform; }
.about-card:hover { transform: translateY(-4px); }
.about-card .about-ico { font-size: 34px; margin-bottom: 12px; }
.about-card h4 { color: var(--primary); margin: 0 0 8px; }
.about-card p { color: var(--muted); margin: 0; font-size: 14px; }
.about-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-story-text h2 { margin-top: 0; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { padding: 12px 0 12px 32px; position: relative; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; }
.about-list li::before { content: '✔'; position: absolute; left: 0; top: 12px; color: var(--success); font-weight: 700; }
.about-cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 50px 0; }

/* ---------- BOM inquiry page ---------- */
.bom-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; }
.bom-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.bom-hero h1 { color: #fff; font-size: 40px; margin: 0 0 16px; }
.bom-hero .lead { font-size: 17px; color: #cdd9e8; line-height: 1.7; margin: 0 0 24px; }
.bom-hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.bom-hero-points li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #e7eef8; }
.bom-hero-points b { color: #fff; font-size: 20px; display: block; }
.bom-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bom-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.bom-step-no { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.bom-step h4 { margin: 0 0 8px; }
.bom-step p { color: var(--muted); font-size: 14px; margin: 0; }
.bom-drop .badge-file { display: inline-block; font-size: 12px; background: #eef4fb; color: var(--primary); padding: 2px 8px; border-radius: 20px; margin-left: 6px; font-weight: 600; }
.file-drop { border: 2px dashed var(--border); border-radius: 10px; padding: 8px; background: #fafcff; }
.file-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; cursor: pointer; color: var(--muted); }
.file-drop-label:hover { color: var(--primary); }
.file-drop-icon { font-size: 26px; color: var(--primary); }
.file-drop-text { font-size: 14px; }
.file-drop-name { font-size: 13px; color: var(--primary); font-weight: 600; }
.bom-privacy { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- RFQ two-column layout ---------- */
.rfq-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.rfq-form { max-width: none; margin: 0; }
.rfq-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 18px; }
.rfq-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.rfq-card h3 { margin: 0 0 14px; font-size: 18px; color: var(--navy); }
.rfq-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rfq-reasons li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #2b3a4d; line-height: 1.5; }
.rfq-reasons .ck { color: var(--success); font-weight: 700; flex: 0 0 auto; }
.rfq-contact { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); border: 0; color: #e7eef8; }
.rfq-contact h3 { color: #fff; }
.rfq-contact-lead { font-size: 14px; margin: 0 0 12px; color: #cdd9e8; }
.rfq-line { font-size: 14px; margin: 8px 0; color: #e7eef8; }
.rfq-line a { color: #fff; text-decoration: underline; }
.bom-hero-kicker { display: inline-block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bom-hero-inner { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .bom-steps { grid-template-columns: 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .rfq-aside { position: static; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    z-index: 60; box-shadow: 0 8px 18px rgba(0,0,0,.3);
  }
  body.nav-open .main-nav { max-height: 480px; }
  .main-nav a { padding: 12px 18px; color: #d7e3f4; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .about-hero-inner { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .about-hero-text h1 { font-size: 28px; }
  .about-story { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: 64px; padding: 8px 0; }
  .header-search { width: 100%; margin: 8px 0 2px; order: 3; }
  .header-search input { width: 100%; max-width: 100%; flex: 1 1 auto; min-width: 0; height: 38px; }
  .header-search button { height: 38px; flex: 0 0 auto; }
}

/* ---------- compact pagination ---------- */
.pagination { flex-wrap: wrap; align-items: center; }
.pagination .pg-info { padding: 8px 13px; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--navy); font-size: 13px; }
.pagination .pg-disabled { padding: 8px 13px; border: 1px solid var(--border); border-radius: 6px; background: #f5f7fa; color: #a9b4c2; cursor: default; }
.pagination .pg-dots { padding: 8px 4px; color: var(--muted); }

/* ---------- clickable product thumbnail ---------- */
.product-thumb { text-decoration: none; color: inherit; cursor: pointer; }
.product-card .product-thumb:hover { opacity: .94; }

/* ---------- contact page ---------- */
.contact-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; }
.contact-hero-inner { padding: 56px 0; text-align: center; }
.contact-hero h1 { color: #fff; font-size: 38px; margin: 0 0 14px; }
.contact-hero p { color: #cdd9e8; font-size: 17px; max-width: 760px; margin: 0 auto; line-height: 1.7; }
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.contact-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.contact-list { list-style: none; margin: 14px 0 0; padding: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 15px; }
.contact-list li b { color: var(--primary); }
.contact-map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg,#e8f1fb,#d4e6fa); height: 200px; display:flex; align-items:center; justify-content:center; color: var(--primary); font-size:14px; }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-facts { grid-template-columns: 1fr; }
}

/* ---------- footer redesign ---------- */
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--primary), #29a3e0, var(--primary)); }
.footer-grid { padding: 52px 0 36px; }
.footer-col h4 { position: relative; padding-bottom: 10px; margin-bottom: 16px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--primary); }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #b7c6da; font-size: 14px; display: inline-block; transition: .15s color, .15s padding-left; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.soc-chip { padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; color: #cdd9e8; font-size: 13px; transition: .15s; }
.soc-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-qr-box { display: flex; gap: 14px; align-items: center; margin-top: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px; max-width: 300px; }
.footer-qr-box img { width: 86px; height: 86px; border-radius: 8px; background: #fff; padding: 4px; }
.footer-qr-txt h5 { color: #fff; margin: 0 0 4px; font-size: 14px; }
.footer-qr-txt span { color: #9fb2c8; font-size: 12px; }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { display: flex; gap: 10px; margin-bottom: 10px; color: #b7c6da; font-size: 14px; line-height: 1.5; }
.footer-contact-list .f-ico { flex: 0 0 auto; }
.footer-contact-list a { color: #b7c6da; }
.footer-contact-list a:hover { color: #fff; }
.footer-cta { display: inline-block; margin-top: 14px; padding: 9px 18px; border-radius: 8px; background: var(--primary); color: #fff !important; font-size: 14px; font-weight: 600; transition: .15s; }
.footer-cta:hover { background: #1179c2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom-inner p { margin: 0; color: #9fb2c8; font-size: 13px; }
.footer-tag { color: #7f93ab; }

/* QR column alignment: box sits under the heading, flush left */
.footer-qr-col .footer-qr-box { margin-top: 0; }

/* ---------- dual QR codes ---------- */
.footer-qr-row { display: flex; gap: 10px; flex-wrap: nowrap; }
.footer-qr-item { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 8px; text-align: center; flex: 1 1 0; min-width: 0; }
.footer-qr-item img { width: 88px; height: 88px; max-width: 100%; border-radius: 8px; background: #fff; padding: 4px; display: block; margin: 0 auto; }
.footer-qr-item figcaption { margin-top: 6px; color: #9fb2c8; font-size: 12px; white-space: nowrap; }

@media (max-width: 900px) { .footer-qr-row { flex-wrap: wrap; } }

/* ---------- news grid: fixed 3 columns ---------- */
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

@media (min-width: 721px) and (max-width: 980px) { .header-search input { width: 150px; } }
/* Brand grid: 7 columns on desktop, scale down on smaller screens */
@media (max-width: 1024px) { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
