/* === AUTHENTIC HOFACO TYPOGRAPHY (cloned from hofaco.com.vn) === */
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/css/fonts/HelveticaNeue-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/css/fonts/HelveticaNeue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/css/fonts/HelveticaNeue-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/css/fonts/HelveticaNeue-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/css/fonts/HelveticaNeue-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/css/fonts/HelveticaNeue-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --accent: #e4312c;
  --accent-dark: color-mix(in srgb, var(--accent) 82%, #000000);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 28%, transparent);

  --zalo: #0068ff;
  --zalo-dark: #0054d1;
  --emerald: #059669;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #334155;
  --ink-muted: #64748b;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 34px -10px rgba(15, 23, 42, 0.13);
  --shadow-accent: 0 18px 36px -12px rgba(228, 49, 44, 0.24);
  --shadow-lg: 0 26px 56px -16px rgba(15, 23, 42, 0.20);
  --container: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-family: 'Helvetica Neue', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
svg.ico { width: 17px; height: 17px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

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

#siteHeaderMount { display: contents; }

/* Scroll Progress Bar (100% GPU scaleX, zero layout reflow) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ff6b4a, var(--zalo));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200; pointer-events: none;
}

/* Top Utility Bar */
.utility-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px; padding: 6px 0; flex-wrap: wrap;
}
.utility-left { display: flex; align-items: center; gap: 14px; }
.utility-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  display: inline-block; margin-right: 6px;
  animation: dot-fade 2.2s ease-in-out infinite;
}
.utility-right { display: flex; align-items: center; gap: 18px; }
.utility-right a { color: #e2e8f0; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.utility-right a:hover { color: #ffffff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.16);
}
.header-inner {
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; transition: opacity 0.2s; }
.brand-link:hover { opacity: 0.9; }
.brand-logo-img { height: 42px; width: auto; max-width: 155px; object-fit: contain; }
.brand-b2b-pill {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border);
}
.brand-fallback {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}

.header-search { flex: 1; max-width: 340px; position: relative; }
.header-search input {
  width: 100%; height: 40px; padding: 0 44px 0 15px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-alt);
  font-family: inherit; font-size: 0.86rem; color: var(--ink);
  transition: all 0.2s ease;
}
.header-search input:focus {
  outline: none; background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.header-search button {
  position: absolute; right: 4px; top: 4px; width: 32px; height: 32px;
  border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.header-search button:hover { background: var(--accent-dark); transform: scale(1.06); }

.nav-desktop { display: flex; align-items: center; gap: 22px; }
.nav-desktop a {
  position: relative; font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; padding: 6px 0; transition: color 0.2s;
}
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform 0.26s var(--ease-out);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); font-weight: 700; }
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px;
}
.lang-btn {
  border: 0; background: transparent; color: var(--ink-muted);
  font-size: 0.74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--ink); color: #fff; }

.quote-cart-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--accent-border);
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.84rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.quote-cart-btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.quote-cart-btn.pop { animation: cart-pop 0.42s var(--ease-out); }
.quote-badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center; transition: all 0.2s;
}
.quote-cart-btn:hover .quote-badge { background: #fff; color: var(--accent); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--border);
  background: #fff; border-radius: 10px; padding: 8px; cursor: pointer;
}
.menu-toggle span { height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  background: #fff; border-top: 1px solid var(--border);
  padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-md);
}
.mobile-nav a { font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--bg-alt); }

/* Buttons + Glossy Sheen Sweep Effect */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: 0.82rem; padding: 8px 13px; }
.btn-md { font-size: 0.9rem; padding: 11px 18px; }
.btn-lg { font-size: 0.95rem; padding: 13px 23px; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c8221e 100%);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(228, 49, 44, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 28px -8px rgba(228, 49, 44, 0.7); }
.btn-zalo {
  background: linear-gradient(135deg, #0074ff 0%, #0055d4 100%);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(0, 104, 255, 0.55);
}
.btn-zalo:hover { box-shadow: 0 14px 28px -8px rgba(0, 104, 255, 0.72); }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: #fffafa; }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.btn-soft:hover { background: var(--accent); color: #fff; }

/* Glossy light-beam sweep on primary conversion CTAs (GPU-composited transform only) */
.btn-shine::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.36) 50%, transparent 80%);
  transform: translate3d(-160%, 0, 0) skewX(-20deg);
  animation: btn-sheen 4.5s infinite ease-in-out;
  will-change: transform;
  pointer-events: none;
}

/* Marquee Trust Ticker (Seamless 60fps GPU loop) */
.trust-marquee {
  background: linear-gradient(90deg, #b91c1c, var(--accent), #b91c1c);
  color: #fff;
  overflow: hidden;
  padding: 10px 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  contain: layout paint;
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: marquee-scroll 48s linear infinite;
}
.marquee-group {
  display: flex; align-items: center; gap: 38px;
  padding-right: 38px; flex-shrink: 0;
}
.trust-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }

/* Sections */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0 64px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: linear-gradient(145deg, #0b1220 0%, #162033 100%); color: #f8fafc; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 34px; flex-wrap: wrap;
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; max-width: 720px; margin: 0 auto 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title {
  margin: 0 0 8px; font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  font-weight: 700; line-height: 1.24; letter-spacing: -0.02em;
}
.section-sub { margin: 0; font-size: 0.95rem; font-weight: 400; color: var(--ink-muted); max-width: 62ch; }
.section-dark .section-sub { color: #94a3b8; }

/* Hero (Zero-blur-cost layered radial gradient for locked 60fps) */
.hero {
  position: relative; padding: 56px 0 64px; overflow: hidden;
  background:
    radial-gradient(620px circle at 10% 18%, rgba(228, 49, 44, 0.11), transparent 65%),
    radial-gradient(540px circle at 90% 82%, rgba(0, 104, 255, 0.09), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--accent-border);
  box-shadow: 0 4px 14px rgba(228, 49, 44, 0.1);
  color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.hero-title {
  margin: 0 0 16px; font-size: clamp(1.95rem, 3.6vw, 2.9rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -0.025em;
}
.hero-subtitle { margin: 0 0 26px; font-size: 1.02rem; font-weight: 400; color: var(--ink-2); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--border);
}
.hero-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.hero-stat-lbl { font-size: 0.78rem; color: var(--ink-muted); margin-top: 4px; }

.hero-showcase {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.hero-showcase:hover { transform: translateY(-4px); box-shadow: 0 32px 64px -18px rgba(15, 23, 42, 0.24); }
.hero-banner-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-collage { padding: 20px; background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.hero-collage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 0.82rem; color: #cbd5e1; }
.hero-collage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-mini-prod {
  background: #fff; color: var(--ink); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.hero-mini-prod:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); }
.hero-mini-prod img { width: 100%; height: 112px; object-fit: contain; background: #f8fafc; border-radius: 8px; padding: 4px; transition: transform 0.3s var(--ease-out); }
.hero-mini-prod:hover img { transform: scale(1.08); }
.hero-mini-prod span { font-size: 0.75rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Catalog Hero Header Banner (on /san-pham & /danh-muc/:slug) */
.catalog-hero-banner {
  background: linear-gradient(125deg, #0f172a 0%, #1e293b 62%, #7f1d1d 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.catalog-hero-banner::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(228, 49, 44, 0.35), transparent 70%);
  pointer-events: none;
}
.catalog-hero-banner h1 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; }
.catalog-hero-banner p { margin: 0; font-size: 0.88rem; color: #cbd5e1; }
.catalog-hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.catalog-hero-pill {
  font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.11); border: 1px solid rgba(255, 255, 255, 0.16); color: #f8fafc;
}

/* Trust Badges */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.trust-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s;
}
.trust-card:hover .trust-icon { background: var(--accent); color: #fff; transform: scale(1.08) rotate(-4deg); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-card h3 { margin: 0 0 6px; font-size: 0.98rem; font-weight: 700; }
.trust-card p { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }

/* Category Grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform 0.28s var(--ease-out), border-color 0.25s, box-shadow 0.28s var(--ease-out);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(228, 49, 44, 0.08), transparent 65%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-accent); }
.cat-card:hover::before { opacity: 1; }
.cat-thumb {
  width: 96px; height: 96px; border-radius: 14px; background: #f8fafc;
  display: grid; place-items: center; overflow: hidden; padding: 6px;
  transition: transform 0.3s var(--ease-out);
}
.cat-card:hover .cat-thumb { transform: scale(1.09) translateY(-2px); }
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-name { font-size: 0.89rem; font-weight: 700; color: var(--ink); line-height: 1.3; transition: color 0.2s; }
.cat-card:hover .cat-name { color: var(--accent); }
.cat-count { font-size: 0.76rem; color: var(--ink-muted); font-weight: 500; }

/* Product Grid & Cards (60fps optimized, zero scroll jank) */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px;
  transition: opacity 0.16s ease;
}
.product-grid.is-loading { opacity: 0.45; pointer-events: none; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  content-visibility: auto; contain-intrinsic-size: 250px 380px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease;
}
.product-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: var(--shadow-accent);
  border-color: var(--accent-border);
}
.product-img-wrap {
  position: relative; aspect-ratio: 1 / 1; background: #f8fafc;
  display: grid; place-items: center; padding: 14px; overflow: hidden;
}
.product-img-wrap::after {
  content: ''; position: absolute; top: 0; left: 0; width: 65%; height: 100%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translate3d(-160%, 0, 0) skewX(-22deg);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}
.product-card:hover .product-img-wrap::after { transform: translate3d(260%, 0, 0) skewX(-22deg); }
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.3s var(--ease-out);
}
.product-card:hover .product-img-wrap img { transform: scale3d(1.06, 1.06, 1); }

.quick-view-btn {
  position: absolute; left: 50%; bottom: 12px;
  transform: translate3d(-50%, 10px, 0); opacity: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 0;
  background: rgba(15, 23, 42, 0.92); color: #fff;
  font-size: 0.76rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), background 0.16s ease; z-index: 3;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translate3d(-50%, 0, 0); }
.quick-view-btn:hover { background: var(--accent); }

.p-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 2; }
.p-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 4px;
}
.p-badge-new { background: var(--accent); color: #fff; }
.p-badge-new::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: dot-fade 1.6s ease-in-out infinite; }
.p-badge-sku { background: rgba(15, 23, 42, 0.86); color: #fff; }
.p-badge-hd { background: var(--emerald); color: #fff; }

.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-title {
  margin: 0 0 6px; font-size: 0.93rem; font-weight: 700; line-height: 1.38; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.18s;
}
.product-title:hover { color: var(--accent); }
.product-meta {
  font-size: 0.79rem; color: var(--ink-muted); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price-tag {
  font-size: 0.82rem; font-weight: 700; color: var(--accent);
  margin: auto 0 11px; display: flex; align-items: center; gap: 6px;
}
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.product-actions .btn { padding: 8px 11px; font-size: 0.79rem; border-radius: 8px; }

/* OEM Section */
.oem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.oem-visual {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05); aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: center;
}
.oem-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.oem-visual:hover img { transform: scale(1.04); }
.oem-list { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 11px; }
.oem-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: #e2e8f0; }
.oem-list li::before {
  content: '✓'; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}

/* Process Steps */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.step-num {
  font-size: 1.4rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); width: 48px; height: 48px;
  border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  transition: background 0.25s, color 0.25s;
}
.step-card:hover .step-num { background: var(--accent); color: #fff; }
.step-card h3 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 700; }
.step-card p { margin: 0; font-size: 0.86rem; color: var(--ink-muted); }

/* Media Showcase */
.media-showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.media-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-card img, .media-card video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0f172a; }
.media-card-cap { padding: 10px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Quote Section & Forms */
.quote-split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 32px; align-items: start; }
.quote-info-box {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc; border-radius: var(--radius-lg); padding: 32px;
}
.quote-info-box h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; }
.quote-info-box p { color: #cbd5e1; font-size: 0.92rem; }
.direct-channels { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.channel-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.channel-card:hover { background: rgba(255, 255, 255, 0.14); transform: translateX(4px); }
.channel-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; color: #fff; }

.quote-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 0.83rem; font-weight: 700; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit; font-size: 0.92rem; padding: 10px 13px;
  border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; }

/* Catalog Layout with HOFACO Category Icons */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.cat-sidebar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto;
  scrollbar-width: thin; overscroll-behavior: contain;
  box-shadow: var(--shadow-sm);
}
.cat-sidebar h3 {
  margin: 0 0 12px; font-size: 0.92rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
}
.cat-filter-list { display: flex; flex-direction: column; gap: 2px; }
.cat-filter-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 9px; font-size: 0.86rem; font-weight: 500;
  color: var(--ink-2); transition: background-color 0.14s ease, color 0.14s ease;
}
.cat-filter-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cat-filter-ico {
  width: 24px; height: 24px; border-radius: 6px; object-fit: contain;
  background: #f8fafc; padding: 2px; flex-shrink: 0; border: 1px solid var(--border);
}
.cat-filter-item:hover { background: var(--accent-soft); color: var(--accent); }
.cat-filter-item.active { background: var(--accent); color: #fff; font-weight: 700; }
.cat-filter-item.active .cat-filter-ico { background: #fff; border-color: transparent; }
.cat-filter-cnt { font-size: 0.74rem; opacity: 0.78; font-weight: 700; }

.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 13px 16px;
  box-shadow: var(--shadow-sm);
}
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--border-strong); background: #fff;
  font-weight: 700; font-size: 0.86rem; cursor: pointer; transition: all 0.18s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 14px -5px rgba(228, 49, 44, 0.5); }

/* Product Detail Page */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.84rem; color: var(--ink-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery-main {
  aspect-ratio: 1 / 1; background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: grid; place-items: center; padding: 20px; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.35s var(--ease-out); }
.gallery-main:hover img { transform: scale(1.06); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 74px; height: 74px; border-radius: 10px; border: 2px solid var(--border);
  background: #f8fafc; padding: 4px; cursor: pointer; overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 0.89rem; }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { width: 40%; color: var(--ink-muted); font-weight: 500; background: #f8fafc; }
.spec-table td { font-weight: 700; color: var(--ink); }

.wholesale-banner {
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
}
.wholesale-banner strong { display: block; color: var(--accent); font-size: 0.96rem; }
.wholesale-banner span { font-size: 0.84rem; color: var(--ink-2); }

.detail-qty-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.detail-qty-row label { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.detail-qty-row input { width: 120px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 9px; font-family: inherit; font-weight: 600; }
.detail-qty-row .btn { flex: 1; }
.detail-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }

/* Quote Drawer & Modals */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 200;
  display: flex; justify-content: flex-end; backdrop-filter: blur(3px);
}
.drawer-panel {
  width: 100%; max-width: 460px; height: 100%; background: #fff;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
  animation: slide-in-right 0.28s var(--ease-out);
}
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { margin: 0; font-size: 1.08rem; }
.drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.cart-item img { width: 54px; height: 54px; object-fit: contain; background: #f8fafc; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-sku { font-size: 0.74rem; color: var(--ink-muted); }
.cart-qty { width: 76px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; font-size: 0.82rem; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65); z-index: 250;
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px);
}
.modal-card {
  width: 100%; max-width: 520px; background: #fff; border-radius: 18px;
  padding: 28px; box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
  animation: modal-pop 0.26s var(--ease-out);
}
.modal-card-lg { max-width: 760px; max-height: 90vh; overflow-y: auto; }
.zalo-preview-box {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 0.82rem; white-space: pre-wrap;
  max-height: 160px; overflow-y: auto; margin: 14px 0; color: var(--ink-2);
}

/* Floating Desktop & Mobile Sticky Conversion Bars with Radar Halo Pulse */
.floating-desktop {
  position: fixed; right: 20px; bottom: 26px; z-index: 120;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  color: #fff; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.26);
  transition: transform 0.2s var(--ease-out);
}
.float-pill:hover { transform: translateY(-3px) scale(1.03); }
.float-zalo { background: linear-gradient(135deg, #0078ff, #0054d1); }
.float-zalo::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(0, 104, 255, 0.55);
  animation: halo-pulse 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
  pointer-events: none;
}
.float-call { background: linear-gradient(135deg, var(--accent), #b91c1c); }
.float-call::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(228, 49, 44, 0.55);
  animation: halo-pulse 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) 1.2s infinite;
  pointer-events: none;
}

.mobile-sticky-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 8px 10px; gap: 8px;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
}
.mobile-sticky-bar a, .mobile-sticky-bar button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; border: 0; cursor: pointer;
}

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.footer-col h4 { margin: 0 0 12px; color: #fff; font-size: 0.94rem; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.87rem; color: #94a3b8; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; font-size: 0.8rem; color: #64748b;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Toast */
.toast-container { position: fixed; left: 50%; transform: translateX(-50%); bottom: 80px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast-msg {
  background: #0f172a; color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-md);
  animation: modal-pop 0.22s var(--ease-out);
}

/* Keyframes (100% GPU-composited transform & opacity only) */
@keyframes btn-sheen {
  0%, 62% { transform: translate3d(-160%, 0, 0) skewX(-20deg); }
  100% { transform: translate3d(340%, 0, 0) skewX(-20deg); }
}
@keyframes halo-pulse {
  0% { transform: scale3d(1, 1, 1); opacity: 0.75; }
  100% { transform: scale3d(1.18, 1.45, 1); opacity: 0; }
}
@keyframes dot-fade {
  0%, 100% { opacity: 1; transform: scale3d(1, 1, 1); }
  50% { opacity: 0.4; transform: scale3d(0.85, 0.85, 1); }
}
@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes cart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.94) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slide-in-right {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* Smooth animations always enabled cleanly without infinite-keyframe flicker */

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .oem-grid, .quote-split, .detail-grid, .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .nav-desktop, .header-search, .brand-b2b-pill { display: none; }
  .menu-toggle { display: flex; }

  /* Horizontal swipeable category chips on tablet & mobile */
  .cat-sidebar { position: static; max-height: none; padding: 12px 14px; overflow: hidden; }
  .cat-sidebar h3 { font-size: 0.8rem; margin-bottom: 8px; padding-bottom: 6px; }
  .cat-filter-list {
    flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .cat-filter-list::-webkit-scrollbar { display: none; }
  .cat-filter-item {
    flex-shrink: 0; white-space: nowrap; border: 1px solid var(--border);
    background: #f8fafc; border-radius: 999px; padding: 7px 12px; font-size: 0.82rem;
  }
  .cat-filter-item.active { background: var(--accent); border-color: var(--accent); color: #fff; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .container { padding: 0 14px; }
  .utility-bar, .floating-desktop { display: none; }
  .mobile-sticky-bar { display: flex; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .toast-container { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 28px); max-width: 360px; text-align: center; }

  /* Compact 360px-safe header */
  .header-inner { height: 62px; gap: 8px; }
  .brand-logo-img { height: 32px; max-width: 116px; }
  .header-actions { gap: 6px; }
  .lang-btn { padding: 4px 7px; font-size: 0.7rem; }
  .quote-cart-btn { height: 36px; padding: 0 10px; gap: 5px; }
  .quote-cart-btn > span:not(.quote-badge) { display: none; }
  .menu-toggle { width: 36px; height: 36px; }

  /* Prevent iOS Safari input auto-zoom (16px minimum) */
  .form-group input, .form-group select, .form-group textarea,
  .mobile-nav input, #catSearchInput, #catSortSelect, #detailQtyInput, .cart-qty { font-size: 16px !important; }
  .catalog-toolbar { padding: 10px 12px; }
  #catSearchInput, #catSortSelect { width: 100% !important; min-width: 0 !important; flex: 1 1 100% !important; }

  /* Sections, grids & touch-friendly buttons */
  .hero { padding: 28px 0 36px; }
  .hero-badge { font-size: 0.68rem; padding: 5px 10px; white-space: normal; line-height: 1.35; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn, .catalog-hero-actions, .catalog-hero-actions .btn { width: 100%; }
  .hero-stats, .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 14px 10px; gap: 7px; }
  .cat-thumb { width: 68px; height: 68px; }
  .trust-grid, .process-grid, .form-row, .footer-grid, .detail-cta-grid, .qv-grid { grid-template-columns: 1fr !important; }
  .detail-qty-row { flex-wrap: wrap; }
  .detail-qty-row input { width: 100px; }
  .catalog-hero-banner { padding: 18px 16px; border-radius: 14px; gap: 14px; }
  .quote-form-card, .quote-info-box, .modal-card { padding: 20px 16px; border-radius: 14px; }
  .product-img-wrap { padding: 10px; }
  .product-body { padding: 10px; }
  .product-title { font-size: 0.85rem; }
  .product-meta { font-size: 0.74rem; -webkit-line-clamp: 1; margin-bottom: 6px; }
  .product-price-tag { font-size: 0.76rem; margin-bottom: 8px; }
  .product-actions { grid-template-columns: 1fr auto; gap: 6px; }
  .product-actions .btn { padding: 7px 8px; font-size: 0.75rem; }
  .quick-view-btn { display: none; }
  .section { padding: 44px 0; }
  .section-sm { padding: 24px 0 44px; }
}
