/* ==========================================================================
   NHIỆM AUTOTECH ELECTRICAL - MODERN DESIGN SYSTEM (INSPIRED BY NOITHAT365)
   ========================================================================== */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #ff7a00;
  --accent-hover: #e66a00;
  --accent-soft: rgba(255, 122, 0, 0.1);
  --blue-tech: #0284c7;
  --blue-soft: rgba(2, 132, 199, 0.1);
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-line: #e2e8f0;
  --border-focus: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.09);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ff5500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.4);
}

.btn.secondary {
  background: var(--primary);
  color: #fff;
}

.btn.ghost {
  border: 1px solid var(--border-line);
  background: #fff;
  color: var(--primary);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.full { width: 100%; text-align: center; }

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: #090e17;
  color: #94a3b8;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.top-text {
  color: #cbd5e1;
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.top-contact-item strong {
  color: var(--accent);
}

.top-social-links {
  display: flex;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 14px;
}

.top-social-links a {
  color: #94a3b8;
}

.top-social-links a:hover {
  color: #fff;
}

/* ==========================================================================
   MAIN HEADER
   ========================================================================== */
.header-main {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #e65100);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.4);
  letter-spacing: 0.5px;
}

.brand-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.45);
  border: 2px solid #ff7a00;
  background: #000000;
  display: block;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 420px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 6px 3px 18px;
  transition: var(--transition);
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.25);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: #ffffff;
  outline: none;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box button {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--accent-hover);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-consultation {
  background: linear-gradient(135deg, #ff7a00, #ff5500);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
  transition: var(--transition);
}

.btn-consultation:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.45);
}

.btn-cart-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.btn-cart-nav:hover {
  border-color: var(--accent);
  background: rgba(255, 122, 0, 0.15);
}

.cart-icon-wrap {
  position: relative;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.cart-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cart-info-text small {
  font-size: 11px;
  color: #94a3b8;
}

.cart-info-text strong {
  font-size: 13px;
  color: #ff9933;
}

.user-menu-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.user-nav-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.admin-badge-link {
  background: linear-gradient(135deg, #ff7a00, #e65100);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.admin-badge-link:hover {
  background: #ff5500;
}

.logout-link {
  font-size: 12px;
  color: #94a3b8;
}

.logout-link:hover {
  color: #ef4444;
}

.btn-login-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.btn-login-nav:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   NAVIGATION BAR (DESKTOP)
   ========================================================================== */
.nav-bar-desktop {
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-link:hover, .menu-link.active {
  color: #ff9933;
  background: rgba(255, 122, 0, 0.1);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: #1e293b;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 110;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.dropdown-item:hover .dropdown-icon {
  background: var(--accent-soft);
}

.dropdown-item strong {
  display: block;
  font-size: 13.5px;
  color: #f1f5f9;
}

.dropdown-item small {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

.dropdown-all {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  padding: 6px;
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 200;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 205;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-line);
}

.drawer-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.drawer-search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
}

.drawer-search form {
  display: flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 6px 2px 14px;
}

.drawer-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  padding: 8px 0;
}

.drawer-search button {
  background: none;
  border: none;
  cursor: pointer;
}

.drawer-nav {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  border-radius: var(--radius-sm);
}

.drawer-link:hover {
  background: #f8fafc;
  color: var(--accent);
}

.drawer-contact-box {
  margin-top: auto;
  padding: 20px;
  background: #0f172a;
  color: #fff;
}

.drawer-contact-box h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--accent);
}

.drawer-contact-box p {
  margin: 0 0 12px;
  font-size: 14px;
}

.drawer-contact-box a {
  color: #fff;
}

.drawer-socials {
  display: flex;
  gap: 12px;
}

.drawer-socials a {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* ==========================================================================
   UNIFIED HERO SECTION (GỘP PHẦN ĐẦU & 3 MỤC CHÍNH HOÀNH TRÁNG)
   ========================================================================== */
.hero-unified-section {
  background: 
    linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 26, 0.88) 35%, rgba(9, 14, 23, 0.96) 85%, #090e17 100%),
    radial-gradient(ellipse 70% 50% at 50% 25%, rgba(2, 132, 199, 0.2), transparent 70%),
    url('../images/hero_cad_bg.jpg') center top / cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  padding: 55px 0 65px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-unified-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 45%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

.hero-unified-section::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.22), rgba(2, 132, 199, 0.14) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-cad-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 999px;
  margin-top: 18px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.cad-strip-badge {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cad-strip-text {
  font-size: 13px;
  color: #cbd5e1;
}

.cad-strip-text strong {
  color: #38bdf8;
}

.hero-unified-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 38px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 122, 0, 0.15);
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: #ff9933;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7);
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 122, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

.hero-unified-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 14px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.highlight-text {
  background: linear-gradient(135deg, #ff9933, #ff5500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-unified-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 auto 20px;
  max-width: 800px;
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #e2e8f0;
}

.trust-pill strong {
  color: #ff9933;
}

/* 3 Pillars Grid inside Hero */
.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero-pillar-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.hero-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-pillar-card.featured-hero-card {
  border: 2px solid #ff7a00;
  box-shadow: 0 20px 45px rgba(255, 122, 0, 0.25);
}

.hero-pillar-head {
  padding: 24px 22px 18px;
  color: #fff;
  position: relative;
}

.pillar-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pillar-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
}

.pillar-sub-tag {
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}

.pillar-icon-box {
  font-size: 34px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-pillar-head h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.3;
}

.hero-pillar-head p {
  font-size: 13px;
  opacity: 0.92;
  margin: 0;
  line-height: 1.45;
}

.hero-pillar-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.hero-checklist li {
  font-size: 13.5px;
  color: #334155;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.45;
}

.hero-checklist li:last-child {
  border-bottom: none;
}

.hero-checklist li strong {
  color: #0f172a;
}

.btn-pillar-cad {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-pillar-cad:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
  color: #fff;
}

.btn-pillar-panel {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-pillar-panel:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  color: #fff;
}

.btn-pillar-auto {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-pillar-auto:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  color: #fff;
}

@media (max-width: 992px) {
  .hero-pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   PILLARS / VALUE PROPOSITIONS
   ========================================================================== */
.section-pillars {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar-card {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: #fff7ed;
  color: var(--accent);
  font-size: 22px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.pillar-info h4 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.pillar-info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SECTIONS & MODERN HEADERS
   ========================================================================== */
.section-container {
  padding: 60px 0 70px;
}

.bg-subtle {
  background: #f1f5f9;
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
}

.text-center-head {
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow, .eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.count-badge {
  background: #fff;
  border: 1px solid var(--border-line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.btn-view-all:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}

/* ==========================================================================
/* ==========================================================================
   PRODUCT CARDS & GRIDS (ENLARGED IMAGES & FULL TITLE)
   ========================================================================== */
.products-grid-modern, .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.product-thumb-wrap {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  height: 260px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scale-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.4s ease;
}

.product-card:hover .scale-img img {
  transform: scale(1.06);
}

.no-img-placeholder {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.4);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-cad {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-cat {
  background: linear-gradient(135deg, #ff7a00, #ea580c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.4);
}

.product-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-sku, .sku {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-title {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--primary);
  word-break: break-word;
  white-space: normal;
  overflow: visible;
  display: block;
  min-height: auto;
  height: auto;
}

.product-title a {
  color: #0f172a;
  transition: var(--transition);
  text-decoration: none;
}

.product-title a:hover {
  color: var(--accent);
}

.product-price-row {
  margin-top: auto;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.product-price, .price, .big-price {
  color: var(--accent);
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
}

.big-price {
  font-size: 32px;
  margin: 16px 0;
}

.price-unit {
  font-size: 15px;
  font-weight: 700;
  margin-left: 2px;
}

.price-contact {
  font-size: 15px;
  color: var(--blue-tech);
  font-weight: 800;
}

.product-actions-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 8px;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff7a00, #ea580c);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
  text-decoration: none;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.45);
}

.btn-view-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--primary) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
  transition: var(--transition);
  text-decoration: none;
}

.btn-view-detail:hover {
  background: #e2e8f0;
  color: var(--accent) !important;
}

.empty-state-box, .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-line);
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card-modern {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.category-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.cat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  background: #fff7ed;
  padding: 3px 8px;
  border-radius: 4px;
}

.cat-icon-symbol {
  font-size: 28px;
}

.cat-card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.cat-card-body p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cat-card-footer {
  margin-top: auto;
}

.cat-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================================================
   CAD SHOWCASE & BRAND GRIDS
   ========================================================================== */
.cad-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cad-showcase-card {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cad-card-badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.cad-showcase-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
}

.cad-showcase-card p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.cad-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.cad-check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 8px;
}

.cad-card-btn {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
}

/* Brand Grid */
.brand-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.brand-badge-card {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: var(--transition);
}

.brand-badge-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.brand-logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 6px;
}

.brand-badge-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   CONSULTATION SECTION (HOMEPAGE)
   ========================================================================== */
.section-consultation {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 70px 0;
}

.consultation-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.consultation-info h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  margin: 10px 0 16px;
}

.consultation-lead {
  font-size: 15.5px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 30px;
}

.text-accent {
  color: #ff9933 !important;
}

.direct-contact-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.direct-c-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.direct-c-box:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.direct-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.direct-c-box small {
  font-size: 11px;
  color: #94a3b8;
}

.direct-c-box strong {
  font-size: 13.5px;
  color: #fff;
}

/* Consultation Form Card */
.consultation-form-card, .form-card {
  background: #fff;
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-line);
}

.c-form-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.c-form-header p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label, .form-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select,
.form-card input, .form-card textarea, .form-card select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  outline: none;
  transition: var(--transition);
  background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit-quote {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #ff5500);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
  transition: var(--transition);
}

.btn-submit-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.4);
}

/* ==========================================================================
   FLOATING CONTACT WIDGETS (HOTLINE, ZALO, FB, TIKTOK)
   ========================================================================== */
.floating-contact-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.btn-call {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-zalo {
  background: linear-gradient(135deg, #0088ff, #0066cc);
}

.btn-facebook {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.btn-tiktok {
  background: #000000;
}

.zalo-text-icon {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.5px;
}

.floating-tooltip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pulsing Ripple Animation */
.btn-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.7;
  animation: ripple-pulse 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
  pointer-events: none;
}

@keyframes ripple-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   CONSULTATION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  width: min(500px, 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.modal-badge {
  display: inline-block;
  background: #fff7ed;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.modal-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.modal-head p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-modal-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #ff5500);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   PAYMENT & VIETCOMBANK QR STYLES
   ========================================================================== */
.payment-page-wrap {
  max-width: 1080px;
}

.payment-status-card {
  display: flex;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.status-awaiting-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}

.status-success-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #166534;
}

.status-badge-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.status-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.status-info p {
  margin: 0 0 8px;
  font-size: 14px;
}

.status-gmail-note {
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #78350f;
  margin-top: 10px;
  border-left: 3px solid #f59e0b;
}

.paid-action-row {
  margin-top: 14px;
}

.payment-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.payment-details-card, .payment-qr-card {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.p-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.vcb-tag {
  background: #00703c;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.p-card-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.amount-highlight-box {
  background: #fff7ed;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.amount-highlight-box small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.amount-val {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.amount-val span {
  font-size: 16px;
  font-weight: 700;
}

.bank-info-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-line);
  font-size: 14px;
  gap: 12px;
}

.highlight-row {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.info-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.copyable-val {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy {
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--primary);
  color: #fff;
}

.btn-copy.copied {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.note-highlight {
  color: #e65100;
  font-size: 16px;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 4px;
}

.payment-warning-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.notify-paid-box {
  border-top: 2px solid #f1f5f9;
  padding-top: 20px;
}

.confirm-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: 16px;
}

.confirm-checkbox-label input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-notify-submit {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.btn-notify-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.waiting-prompt-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13.5px;
  color: #92400e;
}

.waiting-prompt-box a {
  color: #d97706;
  text-decoration: underline;
}

/* QR Code Card */
.payment-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.qr-header p {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.qr-image-wrapper {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-line);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  max-width: 260px;
}

.qr-img-main {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.qr-guide-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #334155;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.step-num {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.payment-bottom-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

/* Status Pills */
.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
}

.status-paid-pill {
  background: #dcfce7;
  color: #166534;
}

.status-awaiting-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-pending-pill {
  background: #fee2e2;
  color: #991b1b;
}

.btn-download-mini {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-download-mini:hover {
  background: var(--accent-hover);
}

.row-highlight-awaiting {
  background: #fffdf5;
}

/* ==========================================================================
   CHECKOUT PAGE & FORM STYLES
   ========================================================================== */
.checkout-page-wrap {
  max-width: 1120px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.checkout-form-card, .checkout-summary-card {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.c-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.c-card-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.step-badge {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
  background: #f8fafc;
  transition: var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
}

.req {
  color: #ef4444;
  font-weight: bold;
}

.checkout-policy-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
}

.policy-icon {
  width: 20px;
  height: 20px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-checkout-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #ff5500);
  color: #fff;
  padding: 16px 24px;
  font-size: 15.5px;
  font-weight: 900;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
  transition: var(--transition);
}

.btn-checkout-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.45);
}

/* Checkout Summary Items */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.c-item-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.c-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.c-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-item-info {
  flex: 1;
}

.c-item-name {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.c-cad-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.c-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748b;
}

.c-item-price {
  font-weight: 800;
  color: var(--accent);
}

.summary-totals-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #64748b;
}

.free-badge {
  color: #16a34a;
  font-weight: 800;
}

.grand-total-row {
  border-top: 1.5px dashed #cbd5e1;
  padding-top: 10px;
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.grand-total-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

.payment-method-preview {
  margin-bottom: 18px;
}

.payment-method-preview h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
}

.method-badge-vcb {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

.vcb-logo-text {
  background: #00703c;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.method-sub {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
}

.back-to-cart-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  transition: var(--transition);
}

.back-to-cart-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   PAYMENT PAGE ENHANCEMENTS
   ========================================================================== */
.customer-target-email-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.target-email-icon {
  font-size: 24px;
}

.customer-target-email-box small {
  display: block;
  font-size: 12px;
  color: #1e40af;
}

.customer-target-email-box strong {
  font-size: 15px;
  color: #1e3a8a;
  display: block;
}

.customer-target-email-box .phone-sub {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.qr-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  width: 100%;
}

.qr-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
}

.qr-tab-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.qr-tab-content {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.qr-tab-content.active {
  display: flex;
}

.qr-card-image-wrapper {
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-line);
}

.qr-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.paid-downloads-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
}

.paid-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paid-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid #dcfce7;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-download-file {
  font-size: 12.5px;
  padding: 6px 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

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

.admin-status-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background: #090e17;
  color: #94a3b8;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 50px;
}

.footer-logo .brand-name {
  color: #fff;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 14px 0 18px;
}

.footer-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-pill {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.2px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.contact-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.footer-contact-list strong {
  display: block;
  color: #cbd5e1;
}

.footer-contact-list a {
  color: var(--accent);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-social-box {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.soc-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.zalo-btn { background: #0088ff; }
.fb-btn { background: #1877f2; }
.tt-btn { background: #1e293b; border: 1px solid #334155; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 12.5px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom strong {
  color: #fff;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   PAGES / CONTACT / DETAIL / CART / ADMIN STYLES
   ========================================================================== */
.page {
  padding: 50px 0 70px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.product-hero-bar {
  background: #fff;
  border: 1px solid var(--border-line);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-hero-bar strong {
  color: var(--accent);
  margin-right: 8px;
}

.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.searchbar input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: #fff;
}

.filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter a {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.filter a.active, .filter a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Product Detail Page (Enlarged Cover Image) */
.detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  background: #fff;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.detail-image-wrapper {
  position: relative;
  background: #0b1120;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid #1e293b;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  width: 100%;
}

.detail-image-wrapper a.detail-img-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  overflow: hidden;
}

.detail-image-wrapper img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 620px;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-image-wrapper:hover img {
  transform: scale(1.03);
}

.btn-zoom-image {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-zoom-image:hover {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #fff !important;
  transform: translateY(-2px);
}

.detail-image {
  background: #0b1120;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  min-height: 480px;
  font-size: 72px;
  overflow: hidden;
  width: 100%;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.spec-box, .quote-box {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
}

.spec-box pre {
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* Cart & Checkout */
.cart-row, .cad-row {
  display: grid;
  grid-template-columns: 1fr 100px 160px 60px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-line);
  padding: 20px 0;
}

.cart-row input {
  padding: 8px;
  width: 70px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
}

.cart-total {
  text-align: right;
  padding: 30px 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

/* Table Wrap */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-line);
  white-space: nowrap;
}

th {
  background: #f8fafc;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
}

.status-paid { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }

/* Admin Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 75vh;
}

.admin-layout aside {
  background: #090e17;
  color: #fff;
  padding: 30px 20px;
}

.admin-layout aside h3 {
  color: var(--accent);
  margin-top: 0;
}

.admin-layout aside a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
}

.admin-layout aside a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-main {
  padding: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.stats div {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.stats b {
  font-size: 32px;
  display: block;
  color: var(--primary);
  font-weight: 900;
}

.stats span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Flash alerts */
.flashes {
  margin-top: 16px;
}

.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
/* ==========================================================================
   3 MAIN PILLARS DESIGN SYSTEM
   ========================================================================== */
.pillars-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-3-card {
  background: #fff;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.pillar-3-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.pillar-3-card.featured-pillar {
  border: 2px solid #0284c7;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}

.pillar-featured-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ff7a00;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.4);
  z-index: 2;
}

.pillar-3-header {
  padding: 28px 24px 22px;
  color: #fff;
  position: relative;
}

.pillar-color-cad {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.pillar-color-panel {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.pillar-color-auto {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.pillar-3-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.pillar-3-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.pillar-3-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}

.pillar-3-header p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}

.pillar-3-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.pillar-checklist li {
  font-size: 13.5px;
  color: #334155;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.45;
}

.pillar-checklist li:last-child {
  border-bottom: none;
}

.pillar-3-footer {
  margin-top: auto;
}

/* 3 Pillar Tabs in Products Page */
.filter-3-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--border-line);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13.5px;
  transition: var(--transition);
}

.filter-tab-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff7ed;
}

.filter-tab-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Dark Steps Grid */
.steps-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
}

.step-card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-dark-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.4);
}

.step-card-dark h4 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.step-card-dark p {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Brand Chips for AutoCAD Libraries */
.brand-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  transition: var(--transition);
  text-decoration: none;
}

.brand-chip:hover {
  background: #fff7ed;
  border-color: #ff7a00;
  color: #ff7a00;
  transform: translateY(-2px);
}

.brand-chip.active {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.4);
}

.cad-banner-featured-card {
  transition: var(--transition);
}

.cad-banner-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--border-line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-back-nav:hover {
  background: #fff7ed;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PRODUCT DETAIL & MOBILE RESPONSIVE FIXES
   ========================================================================== */
.detail {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  align-items: flex-start;
}

.detail-gallery-col {
  width: 100%;
}

.detail-image-wrapper {
  background: #0b1120;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border-line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.detail-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 105;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 1100px) {
  .products-grid-modern, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-thumb-wrap { height: 240px; min-height: 240px; }
}

@media (max-width: 900px) {
  /* Hide top announcement bar on mobile to save vertical space */
  .top-bar {
    display: none;
  }

  .header-main {
    padding: 10px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-sub {
    font-size: 8.5px;
    letter-spacing: 1px;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  .search-box {
    padding: 2px 4px 2px 14px;
  }

  .search-box input {
    font-size: 13px;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-consultation span, .cart-info-text, .user-nav-link span {
    display: none !important;
  }

  .btn-consultation {
    padding: 8px 10px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  .btn-cart-nav {
    padding: 6px 8px;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .nav-bar-desktop {
    display: none !important;
  }

  /* Product Detail Page Mobile Fix */
  .detail {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .detail-gallery-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .detail-image-wrapper {
    min-height: 220px !important;
    max-height: 320px !important;
  }

  .detail-image-wrapper img {
    max-height: 300px !important;
  }

  .detail-top-nav-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .detail h1 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .big-price {
    font-size: 26px !important;
    margin: 10px 0 !important;
  }

  .detail-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .detail-actions .btn, .detail-actions form {
    width: 100% !important;
    display: block !important;
  }

  .detail-actions .btn {
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Grids & Cards Mobile Fix */
  .products-grid-modern, .product-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .product-thumb-wrap {
    height: 210px !important;
    min-height: 210px !important;
  }

  .hero-pillars-grid, .pillars-grid, .cad-showcase-grid, .brand-showcase-grid, .pillars-3-grid, .steps-3-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .consultation-wrapper {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .direct-contact-items {
    grid-template-columns: 1fr !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .checkout-grid, .payment-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
  }

  .admin-layout {
    grid-template-columns: 1fr !important;
  }

  .admin-layout aside {
    position: static !important;
    width: 100% !important;
  }

  /* Tables on Mobile */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Floating Contact Buttons on Mobile */
  .floating-contact-wrap {
    bottom: 14px !important;
    right: 12px !important;
    gap: 8px !important;
  }

  .floating-btn {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ==========================================================================
   LIVE CHAT SUPPORT WIDGET (NHIỆM AUTOTECH)
   ========================================================================== */
.btn-livechat {
  background: linear-gradient(135deg, #ff7a00, #ff5500) !important;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.45) !important;
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.6), 0 8px 20px rgba(0,0,0,0.2); }
  70% { box-shadow: 0 0 0 12px rgba(255, 122, 0, 0), 0 8px 20px rgba(0,0,0,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0), 0 8px 20px rgba(0,0,0,0.2); }
}

.btn-livechat:hover {
  background: linear-gradient(135deg, #ff8a1a, #ff5e0d) !important;
  transform: scale(1.12);
}

.btn-livechat .chat-close-icon {
  display: none;
}

.btn-livechat.active .chat-open-icon {
  display: none !important;
}

.btn-livechat.active .chat-close-icon {
  display: block !important;
}

.btn-livechat .chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: pulse-badge 1.8s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Chat Teaser Popup */
.chat-teaser {
  position: fixed;
  bottom: 275px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 280px;
  border: 1px solid rgba(255, 122, 0, 0.4);
}

.chat-teaser.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-teaser-badge {
  display: inline-block;
  background: #ff7a00;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.chat-teaser-text strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
}

.chat-teaser-text span {
  font-size: 12px;
  color: #cbd5e1;
}

.chat-teaser-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.chat-teaser-close:hover {
  color: #fff;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff7a00;
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #fff;
}

.chat-status-dot.online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.chat-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.chat-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  text-decoration: none;
}

.chat-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.chat-action-btn.zalo-action {
  font-weight: 800;
  width: auto;
  padding: 0 8px;
  background: #0088ff;
}

.chat-action-btn.zalo-action:hover {
  background: #0077e6;
}

/* Zalo mini-bar */
.chat-zalo-banner {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #1e40af;
}

.chat-zalo-banner a {
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.chat-zalo-banner a:hover {
  text-decoration: underline;
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-date-divider {
  text-align: center;
  margin: 4px 0 6px;
}

.chat-date-divider span {
  background: #e2e8f0;
  color: #64748b;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
}

.msg-author {
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 2px;
  font-weight: 600;
}

.chat-msg.user-msg .msg-author {
  display: none;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.bot-msg .msg-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, #ff7a00, #ff5500);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(255, 122, 0, 0.25);
}

.msg-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
}

.user-msg .msg-time {
  text-align: right;
}

/* Quick Chips */
.chat-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 36px;
}

.chip-btn {
  background: #ffffff;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.chip-btn:hover {
  background: #fff7ed;
  border-color: #ff7a00;
  transform: translateX(3px);
}

/* Typing Indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.typing-bubble span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: chat-bounce 1.4s infinite ease-in-out both;
}

.typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2) { animation-delay: -0.16s; }

@keyframes chat-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Area */
.chat-input-form {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px 8px;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s;
}

.chat-input-row:focus-within {
  border-color: #ff7a00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  resize: none;
  max-height: 80px;
  line-height: 1.4;
  padding: 5px 0;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a00, #ff5500);
  border: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-footer-note {
  text-align: center;
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .chat-window {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
  }
  .chat-teaser {
    bottom: 230px !important;
    right: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

