/* ==========================================================================
   Đức Trí PC — hệ thống thiết kế
   ========================================================================== */

:root {
  --red-700: #8f2624;
  --red-600: #b3312f;
  --red-500: #c74542;
  --red-50:  #fdf2f1;
  --gold:    #b8863a;
  --gold-50: #fbf4e8;
  --green-600: #2f7d4f;
  --green-50:  #eef8f1;

  --ink-900: #1c1815;
  --ink-700: #4a423d;
  --ink-500: #7a706a;
  --ink-300: #b0a89f;

  --paper:   #fbf9f6;
  --paper-2: #f4efe8;
  --line:    #e7e0d6;
  --white:   #ffffff;

  --shadow-sm: 0 1px 2px rgba(28, 24, 21, .06);
  --shadow-md: 0 6px 20px -8px rgba(28, 24, 21, .18);
  --shadow-lg: 0 20px 45px -18px rgba(28, 24, 21, .28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 72px;

  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--red-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-600);
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-top: 10px;
}
.section-head p { margin-top: 10px; color: var(--ink-700); font-size: 15.5px; }
.section-head.center { margin-inline: auto; text-align: center; }

section { padding-block: 76px; }
.section-alt { background: var(--paper-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--red-700); }
.btn-outline { background: #fff; color: var(--ink-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-900); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--ink-300); color: #fff; box-shadow: none; cursor: not-allowed; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 249, 246, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.site-header .container { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand-tag { font-size: 10.5px; color: var(--ink-500); letter-spacing: .06em; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding-block: 6px;
}
.main-nav a:hover { color: var(--ink-900); }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red-600);
  transform: scaleX(0); transition: transform .18s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-chip {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14px;
  color: var(--ink-900);
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
}
.phone-chip svg { color: var(--red-600); }
.phone-chip:hover { border-color: var(--red-600); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block;
  width: 18px; height: 2px; background: var(--ink-900);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--paper);
  z-index: 99;
  padding: 20px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 15px 4px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 60px; padding-bottom: 40px; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-top: 16px;
}
.hero h1 .accent { color: var(--red-600); }
.hero-sub { margin-top: 18px; font-size: 16.5px; color: var(--ink-700); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.trust-checklist {
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
}
.trust-checklist li {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
}
.trust-checklist svg { color: var(--green-600); flex-shrink: 0; }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.hero-visual .ring {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, var(--red-50) 60%, var(--paper-2));
  box-shadow: var(--shadow-lg);
}
.hero-visual .mascot { width: 46%; position: relative; filter: drop-shadow(0 18px 30px rgba(28,24,21,.18)); }
.hero-stat {
  position: absolute;
  bottom: 6%; left: 2%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--line);
}
.hero-stat .num { font-size: 26px; font-weight: 800; color: var(--red-600); line-height: 1; }
.hero-stat .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-500); margin-top: 4px; }
.hero-card-float {
  position: absolute; top: 8%; right: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700;
}
.hero-card-float svg { color: var(--gold); }

/* ---------- Brand strip ---------- */
.brand-strip { padding-block: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-strip .container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: space-between; }
.brand-strip .label { font-size: 12.5px; font-weight: 700; color: var(--ink-500); letter-spacing: .04em; white-space: nowrap; }
.brand-strip .marks { display: flex; gap: 34px; flex-wrap: wrap; }
.brand-strip .marks span { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--ink-300); }

/* ==========================================================================
   Value props
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--red-50);
  color: var(--red-600);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.value-card h3 { font-size: 16.5px; font-weight: 700; }
.value-card p { margin-top: 8px; font-size: 14px; color: var(--ink-700); }

/* ==========================================================================
   Promo banner
   ========================================================================== */
.promo-banner {
  background: linear-gradient(120deg, var(--red-700), var(--red-600) 60%, #a12f2d);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.promo-banner .tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  background: rgba(255,255,255,.16);
  padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.promo-banner h3 { font-size: 21px; font-weight: 800; }
.promo-banner p { margin-top: 6px; font-size: 14.5px; opacity: .92; }
.promo-banner strong { font-size: 16px; }
.promo-banner .btn-outline { background: #fff; border-color: #fff; }

/* ==========================================================================
   Products
   ========================================================================== */
.products-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.products-count { font-size: 14px; color: var(--ink-500); font-weight: 600; }

.toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 22px;
}
.toolbar-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-field {
  flex: 1 1 240px;
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  height: 46px;
}
.search-field svg { color: var(--ink-500); flex-shrink: 0; }
.search-field input { border: none; outline: none; background: transparent; width: 100%; font-size: 14.5px; font-family: inherit; }
.select-field {
  height: 46px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  padding: 0 16px; font-size: 14px; font-family: inherit;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" stroke="%234a423d" stroke-width="2"><path d="M2 4l5 5 5-5"/></svg>') no-repeat right 14px center;
  appearance: none; -webkit-appearance: none;
  padding-right: 34px;
  color: var(--ink-900);
}

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  height: 38px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  transition: all .15s ease;
}
.pill:hover { border-color: var(--ink-500); }
.pill[aria-pressed="true"] {
  background: var(--ink-900); border-color: var(--ink-900); color: #fff;
}
.pill-row.quick .pill[aria-pressed="true"] { background: var(--red-600); border-color: var(--red-600); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.product-media { position: relative; aspect-ratio: 4/3; background: var(--paper-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.out img { filter: grayscale(60%); opacity: .6; }
.badge-row { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; }
.badge {
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 9px; border-radius: var(--radius-pill);
}
.badge-grade { background: var(--gold-50); color: var(--gold); border: 1px solid #ecd9b4; }
.badge-out { background: var(--ink-900); color: #fff; }
.badge-discount { background: var(--red-600); color: #fff; }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-500); text-transform: uppercase; }
.product-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.spec-list { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.spec-list li { font-size: 13px; color: var(--ink-700); position: relative; padding-left: 14px; }
.spec-list li::before { content: "•"; position: absolute; left: 0; color: var(--red-500); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag-chip { font-size: 11px; font-weight: 600; color: var(--ink-700); background: var(--paper-2); padding: 3px 9px; border-radius: var(--radius-pill); }

.price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 19px; font-weight: 800; color: var(--red-600); }
.price-was { font-size: 13px; color: var(--ink-300); text-decoration: line-through; }

.stock-line { font-size: 12px; font-weight: 700; margin-top: 2px; }
.stock-line.in { color: var(--green-600); }
.stock-line.out { color: var(--ink-500); }

.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.product-actions .btn { flex: 1; height: 42px; font-size: 13.5px; padding: 0 10px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-500);
  font-size: 15px;
}
.empty-state a { color: var(--red-600); font-weight: 700; }

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.process-step { position: relative; }
.process-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--red-600);
  color: var(--red-600); font-weight: 800; font-size: 18px;
  display: grid; place-items: center;
  position: relative; z-index: 1;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 16px; font-weight: 700; }
.process-step p { margin-top: 8px; font-size: 13.5px; color: var(--ink-700); }

/* ==========================================================================
   Policy
   ========================================================================== */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.policy-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px;
}
.policy-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.policy-card .icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--red-50); display: grid; place-items: center; font-size: 19px; flex-shrink: 0;
}
.policy-card h3 { font-size: 16px; font-weight: 700; }
.policy-card ul { display: flex; flex-direction: column; gap: 10px; }
.policy-card li { font-size: 13.5px; color: var(--ink-700); padding-left: 16px; position: relative; }
.policy-card li::before { content: "—"; position: absolute; left: 0; color: var(--ink-300); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
  max-width: 640px; margin-inline: auto;
  background: #fff; border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px; text-align: center;
}
.testimonial-card .quote-mark { font-size: 40px; color: var(--red-500); font-weight: 800; line-height: 1; }
.testimonial-card p { margin-top: 10px; color: var(--ink-700); font-size: 15px; }
.testimonial-card .btn { margin-top: 20px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 50px 18px 20px;
  font-weight: 700; font-size: 15px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--red-600);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 20px; font-size: 14px; color: var(--ink-700); }

/* ==========================================================================
   B2B banner
   ========================================================================== */
.b2b-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
}
.b2b-banner h3 { font-size: 17px; font-weight: 800; }
.b2b-banner p { margin-top: 6px; font-size: 13.5px; color: var(--ink-700); max-width: 52ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-900); color: #e7ded6; padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand span { font-weight: 800; font-size: 17px; color: #fff; }
.site-footer .about-text { font-size: 13.5px; color: #b8afa6; max-width: 40ch; }
.site-footer h4 {
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: #fff;
  margin-bottom: 16px;
}
.footer-list { display: flex; flex-direction: column; gap: 12px; }
.footer-list li { font-size: 13.5px; color: #cfc6bd; display: flex; gap: 9px; align-items: flex-start; }
.footer-list svg { color: var(--red-500); flex-shrink: 0; margin-top: 2px; }
.footer-list a:hover { color: #fff; }
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.footer-qr img { width: 64px; height: 64px; border-radius: 8px; background: #fff; padding: 4px; }
.footer-qr span { font-size: 12.5px; color: #b8afa6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-block: 22px;
  font-size: 12.5px; color: #96897d;
}

/* ==========================================================================
   Floating buttons
   ========================================================================== */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.fab:hover { transform: translateY(-3px); }
.fab-zalo { background: #0068ff; color: #fff; font-weight: 800; font-size: 13px; }
.fab-top {
  background: #fff; color: var(--ink-900); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.fab-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,24,21,.55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 200; overflow-y: auto;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-in .18s ease;
}
.modal.modal-wide { max-width: 620px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-2); border: none;
  display: grid; place-items: center;
}
.modal-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--red-600); text-transform: uppercase; }
.modal h3 { font-size: 21px; font-weight: 800; margin-top: 6px; }

.form-field { margin-top: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--red-600); }
.form-field textarea { resize: vertical; min-height: 70px; }
.form-note { margin-top: 16px; font-size: 12px; color: var(--ink-500); }
.order-summary-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2); border-radius: 12px; padding: 10px 12px; margin-top: 16px;
}
.order-summary-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.order-summary-chip .name { font-weight: 700; font-size: 13.5px; }
.order-summary-chip .price { font-size: 13px; color: var(--red-600); font-weight: 700; }

.confirm-panel { display: none; text-align: center; padding-top: 6px; }
.confirm-panel.show { display: block; }
.confirm-panel .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin: 0 auto 14px; }
.confirm-panel h3 { font-size: 18px; }
.confirm-panel p { margin-top: 8px; font-size: 13.5px; color: var(--ink-700); }
.confirm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.copy-box {
  text-align: left; background: var(--paper-2); border-radius: 10px; padding: 14px;
  font-size: 12.5px; color: var(--ink-700); white-space: pre-wrap; margin-top: 14px;
  max-height: 160px; overflow-y: auto;
}

/* Product detail modal */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail-grid .product-media { border-radius: var(--radius-md); }
.detail-specs { margin-top: 14px; }
.detail-specs .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.detail-specs .row span:first-child { color: var(--ink-500); }
.detail-specs .row span:last-child { font-weight: 700; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--ink-900); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .process-grid::before { display: none; }
  .policy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .phone-chip { display: none; }
  .menu-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin-inline: auto; order: -1; }
  .brand-strip .container { justify-content: center; text-align: center; }
}

@media (max-width: 680px) {
  section { padding-block: 54px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-actions { flex-direction: column; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .b2b-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}
