/* ============================================
   CHUSI PRINT — B2B Print Supplies Website
   Style System v1.0
   ============================================ */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #12294d;
  --navy-700: #1a3766;
  --navy-600: #244a85;
  --blue-500: #2f6fd6;
  --blue-400: #4d8ae0;
  --orange-500: #f26b1d;
  --orange-400: #ff8a3d;
  --orange-50: #fff3ea;
  --gray-50: #f7f9fc;
  --gray-100: #eef1f6;
  --gray-200: #dfe4ec;
  --gray-300: #c6cdd9;
  --gray-500: #7a8599;
  --gray-600: #5b6577;
  --gray-700: #3c4557;
  --gray-900: #1c2436;
  --white: #ffffff;
  --green-600: #1f9d55;
  --red-600: #e53e3e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(11,31,58,.08);
  --shadow-md: 0 4px 14px rgba(11,31,58,.1);
  --shadow-lg: 0 12px 32px rgba(11,31,58,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: all .2s ease; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-400); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy-800); border: 2px solid var(--navy-700); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 38px; font-size: 17px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-top {
  background: var(--navy-800);
  color: #aeb9cc; font-size: 12.5px; padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-top a { color: #cfd8e8; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.header-logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.logo-text { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .3px; }
.logo-text small { display: block; font-size: 10.5px; font-weight: 400; color: #8fa3c4; letter-spacing: 1.6px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #c6d2e5; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; transition: all .15s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 6px; }

/* ---------- Search bar ---------- */
.search-wrap { position: relative; max-width: 480px; width: 100%; }
.search-input {
  width: 100%; padding: 11px 42px 11px 16px; border-radius: 30px; border: 1px solid var(--gray-200);
  font-size: 14px; background: #fff; outline: none; transition: border .2s;
}
.search-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,111,214,.12); }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--orange-500); border: none; color: #fff; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100); max-height: 380px; overflow-y: auto; z-index: 200;
  display: none;
}
.search-dropdown.show { display: block; }
.search-dropdown a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700);
}
.search-dropdown a:hover { background: var(--gray-50); }
.search-dropdown .sd-model { font-weight: 600; color: var(--navy-900); }
.search-dropdown .sd-brand { font-size: 12px; color: var(--gray-500); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,107,29,.22), transparent 65%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 42px; line-height: 1.15; margin-bottom: 18px; max-width: 680px; }
.hero h1 span { color: var(--orange-400); }
.hero p { color: #c6d2e5; font-size: 17px; max-width: 600px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 40px; margin-top: 42px; flex-wrap: wrap; }
.hero-stat .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 13px; color: #8fa3c4; }

/* ---------- Section titles ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 10px; }
.section-head p { color: var(--gray-500); font-size: 15.5px; }
.section-head .eyebrow {
  display: inline-block; background: var(--orange-50); color: var(--orange-500);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
}

/* ---------- Brand grid ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.brand-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: all .2s; display: block; color: var(--gray-700);
}
.brand-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--gray-700); }
.brand-card .b-logo {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.brand-card .b-name { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.brand-card .b-count { font-size: 12.5px; color: var(--gray-500); margin-top: 3px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cat-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; transition: all .2s; display: block; color: var(--gray-700);
  position: relative; overflow: hidden;
}
.cat-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--gray-700); }
.cat-card .c-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 13.5px; color: var(--gray-500); margin-bottom: 12px; }
.cat-card .c-count { font-size: 12px; font-weight: 600; color: var(--orange-500); }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { text-align: center; padding: 20px 10px; }
.feature .f-icon { font-size: 32px; margin-bottom: 10px; }
.feature h4 { font-size: 15.5px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--gray-500); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  border-radius: 16px; padding: 44px 40px; text-align: center; color: #fff;
  margin: 56px 0;
}
.cta-banner h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.9); margin-bottom: 22px; font-size: 15.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aeb9cc; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #aeb9cc; font-size: 14px; display: block; margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer p { font-size: 13.5px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; color: #74839c; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4); transition: transform .2s; font-size: 28px;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--navy-900); color: #fff; padding: 46px 0 42px; }
.page-hero h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: #c6d2e5; max-width: 700px; }
.breadcrumb { font-size: 12.5px; color: #8fa3c4; margin-bottom: 14px; }
.breadcrumb a { color: #8fa3c4; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 7px; opacity: .6; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: all .2s; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pc-img { height: 160px; background: var(--gray-50); display: flex; align-items: center; justify-content: center; padding: 14px; }
.pc-img img { max-height: 130px; object-fit: contain; }
.pc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.pc-model { font-weight: 700; color: var(--navy-900); font-size: 14.5px; margin-bottom: 4px; }
.pc-model small { display: block; font-weight: 400; color: var(--gray-500); font-size: 12px; margin-top: 2px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-600);
}
.tag-chip { background: #e8f4ff; color: var(--blue-500); }
.tag-nonchip { background: var(--gray-100); color: var(--gray-500); }
.tag-mono { background: #eef1f6; color: var(--gray-600); }
.tag-color { background: #fdeef2; color: #d6336c; }
.tag-na { background: #e6f7ee; color: var(--green-600); }
.pc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; }
.pd-img {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 340px;
}
.pd-img img { max-height: 300px; object-fit: contain; }
.pd-brand-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--gray-50); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 14px; }
.pd-brand-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.pd h1 { font-size: 27px; margin-bottom: 10px; }
.pd .pd-oem { color: var(--gray-500); font-size: 15px; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); }
.spec-table td:first-child { color: var(--gray-500); font-weight: 500; width: 150px; }
.spec-table td:last-child { color: var(--gray-900); }
.spec-table tr:nth-child(odd) td { background: var(--gray-50); }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.compat-box { background: var(--gray-50); border-radius: var(--radius); padding: 16px 18px; font-size: 13.5px; color: var(--gray-600); }
.compat-box strong { color: var(--navy-800); display: block; margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Quote form ---------- */
.quote-form { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote-form h3 { margin-bottom: 6px; font-size: 18px; }
.quote-form .qf-sub { color: var(--gray-500); font-size: 13px; margin-bottom: 18px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--gray-900);
  transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,111,214,.1); }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-success { display: none; background: #e6f7ee; color: var(--green-600); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; margin-top: 14px; }
.form-success.show { display: block; }
.form-error { display: none; background: #fdecec; color: var(--red-600); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; margin-top: 14px; }
.form-error.show { display: block; }
.btn.loading { opacity: .7; cursor: wait; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.filter-bar select {
  padding: 9px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 13.5px; background: #fff; color: var(--gray-700); outline: none; cursor: pointer;
}
.filter-bar .result-count { font-size: 13.5px; color: var(--gray-500); margin-left: auto; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200); font-size: 13.5px; color: var(--gray-700); background: #fff;
}
.pagination a:hover { border-color: var(--blue-400); color: var(--blue-500); }
.pagination .current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 600; }

/* ---------- About / misc ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.tick-list li { padding: 9px 0 9px 30px; position: relative; color: var(--gray-700); font-size: 14.5px; }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: 9px; width: 20px; height: 20px;
  background: var(--orange-50); color: var(--orange-500); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.info-card { background: var(--gray-50); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.info-card h4 { font-size: 14.5px; margin-bottom: 8px; }
.info-card p, .info-card a { font-size: 14px; color: var(--gray-600); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .pd-layout { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--navy-900); flex-direction: column; align-items: flex-start;
    padding: 70px 24px 24px; transition: right .3s ease; gap: 6px; z-index: 150;
  }
  .nav.open { right: 0; }
  .nav a { width: 100%; }
  .nav .btn { margin: 10px 0 0; width: 100%; }
  .nav-toggle { display: block; position: relative; z-index: 160; }
  .search-wrap { display: none; }
  .header-top { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
