:root {
  --primary: #2e4755;
  --primary-dark: #233a47;
  --primary-light: #dce7ed;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #ffedd5;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1.4;
  transition: all 0.2s ease; text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.topbar { background: #1b2e39; color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { color: var(--accent); }
.topbar .hotline { font-weight: 700; color: #fbbf24; }

.header { background: var(--surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 900; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--primary); }
.logo svg, .logo img { flex-shrink: 0; }
.logo .logo-text { line-height: 1.1; }
.logo .logo-sub { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; color: var(--text); transition: all 0.15s; position: relative; }
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); background: var(--primary-light); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: none; background: var(--bg); color: var(--text); transition: all 0.2s;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.hamburger { display: flex; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 950; opacity: 0; visibility: hidden; transition: all 0.25s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: var(--surface); z-index: 960; transform: translateX(-100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.mobile-nav-links { flex: 1; overflow-y: auto; padding: 8px; }
.mobile-nav-links a { display: block; padding: 13px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { background: var(--primary-light); color: var(--primary); }
.mobile-nav-foot { padding: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }

.cart-drawer, .cart-drawer.open { display: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-head h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--text-muted); }
.cart-empty svg { margin-bottom: 12px; color: #cbd5e1; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: none; background: var(--bg); font-size: 15px; font-weight: 700; color: var(--text); }
.qty button:hover { background: var(--primary-light); color: var(--primary); }
.qty span { min-width: 32px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); font-size: 18px; align-self: flex-start; padding: 4px; }
.cart-item-remove:hover { color: var(--danger); }
.cart-foot { border-top: 1px solid var(--border); padding: 16px 20px; background: var(--bg); }
.cart-promo { margin-bottom: 6px; }
.promo-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 4px 0; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; }
.promo-toggle:hover { text-decoration: underline; }
.promo-toggle::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--primary); transition: transform 0.15s; }
.promo-box { display: flex; gap: 8px; margin-top: 8px; width: 100%; }
.promo-box[hidden] { display: none; }
.promo-box input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; text-transform: uppercase; }
.promo-box input:focus { border-color: var(--primary); }
.promo-remove-link { background: none; border: none; padding: 0; margin-left: 4px; color: var(--primary); font-weight: 600; font-size: 12px; cursor: pointer; text-decoration: underline; }
.promo-msg { font-size: 12.5px; margin-bottom: 8px; display: none; }
.promo-msg.ok { display: block; color: var(--success); font-weight: 600; }
.promo-msg.err { display: block; color: var(--danger); }
.promo-msg.pending { display: block; color: var(--text-muted); }
.price-lines { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.price-line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-muted); }
.price-line strong { font-weight: 600; color: var(--text); }
.price-line.promo-line { color: var(--success); }
.price-line.promo-line strong { color: var(--success); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.cart-total strong { font-size: 20px; color: var(--accent); }
.cart-actions { display: flex; flex-direction: column; gap: 8px; }
.cart-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }

.hero { background: linear-gradient(135deg, #1b2e39 0%, #2e4755 55%, #3e5c6e 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 56px 0; align-items: center; position: relative; z-index: 1;  }
.hero h1 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; font-weight: 800; margin-bottom: 16px; font-size: 30px; }
.hero h1 .grad { background: linear-gradient(90deg, #fbbf24, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(15px, 2vw, 18px); color: #dbeafe; max-width: 560px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: block; }

.hero-carousel { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: linear-gradient(135deg, #233a47, #3e5c6e); }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease; }
.carousel-slide.active { opacity: 1; visibility: visible; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.92); color: #1b2e39; font-size: 20px; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: all 0.2s; }
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 9px; justify-content: center; z-index: 3; }
.carousel-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); background: transparent; cursor: pointer; padding: 0; transition: all 0.2s; }
.carousel-dot.active { background: #fff; transform: scale(1.15); }
.carousel-badge { position: absolute; top: 12px; left: 12px; z-index: 3; background: rgba(15, 23, 42, 0.55); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; letter-spacing: 0.4px; }

.section { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-title { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; margin-bottom: 8px; }
.section-desc { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 15px; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.service-card {
  background: linear-gradient(180deg, var(--surface) 0%, #fbfcfe 100%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at 15% -10%, rgba(46, 71, 85, 0.07), transparent 60%);
  pointer-events: none;
}
.service-card:nth-child(2) { border-top-color: var(--accent); }
.service-card:nth-child(2)::before { background: radial-gradient(520px circle at 15% -10%, rgba(249, 115, 22, 0.08), transparent 60%); }
.service-card:nth-child(3) { border-top-color: var(--purple); }
.service-card:nth-child(3)::before { background: radial-gradient(520px circle at 15% -10%, rgba(124, 58, 237, 0.08), transparent 60%); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  border-bottom-color: var(--primary);
}
.service-card:hover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--primary);
}
.service-card:nth-child(2):hover::after { background: var(--accent); }
.service-card:nth-child(3):hover::after { background: var(--purple); }
.service-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; position: relative; }
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(46, 71, 85, 0.15);
}
.service-card:nth-child(2) .service-icon { background: var(--accent-light); color: var(--accent); box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18); }
.service-card:nth-child(3) .service-icon { background: var(--purple-light); color: var(--purple); box-shadow: 0 4px 10px rgba(124, 58, 237, 0.18); }
.service-top h3 { font-size: 21px; font-weight: 800; margin: 0; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; position: relative; }
.service-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}
.service-card .price-hint { color: var(--accent); font-weight: 800; font-size: 14.5px; }
.service-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.2s;
}
.service-card:nth-child(2) .service-link { color: var(--accent); }
.service-card:nth-child(3) .service-link { color: var(--purple); }
.service-link:hover { gap: 8px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; background: linear-gradient(180deg, #f1f5f9, #e2e8f0); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: flex-start; z-index: 2; }
.badge { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.badge.hot { background: var(--danger); }
.badge.new { background: var(--success); }
.badge.stock { background: var(--primary); }
.badge.preorder { background: var(--purple); }
.badge.custom { background: var(--accent); }
.badge.sale { background: var(--warning); }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.product-code { display: block; font-family: Consolas, "Courier New", monospace; font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: 0.03em; margin: 2px 0; }
.product-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; min-height: 39px; }
.product-name:hover { color: var(--primary); }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price .price { font-size: 17px; font-weight: 800; color: var(--accent); }
.product-price .old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .btn { flex: 1; padding: 8px 10px; font-size: 13.5px; }
.product-var { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.btn-cart { width: 40px; flex: 0 0 40px !important; padding: 0 !important; }
.view-all { text-align: center; margin-top: 28px; }

.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tab { padding: 9px 18px; border-radius: 30px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--text-muted); transition: all 0.2s; }
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature:nth-child(2n) .feature-icon { background: var(--accent-light); color: var(--accent); }
.feature:nth-child(3n) .feature-icon { background: var(--purple-light); color: var(--purple); }
.feature:nth-child(4n) .feature-icon { background: var(--success-light); color: var(--success); }
.feature:nth-child(5n) .feature-icon { background: var(--warning-light); color: var(--warning); }
.feature h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.feature p { font-size: 13.5px; color: var(--text-muted); }

.tech-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tech-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tech-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.4s; }
.tech-card:hover img { transform: scale(1.05); }
.tech-card .tech-body { padding: 16px 18px 18px; }
.tech-card h4 { font-size: 16px; margin-bottom: 4px; }
.tech-card p { font-size: 13.5px; color: var(--text-muted); }

.tkd-title .tech-card h4 {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 6px 14px; border-radius: 8px; font-size: 15px; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
}

.img-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }

.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 20px; font-size: 44px; font-weight: 800; color: var(--primary-light); line-height: 1; }
.step h4 { font-size: 16px; margin-bottom: 6px; color: var(--primary); }
.step p { font-size: 14px; color: var(--text-muted); }

.steps-quet { gap: 18px; }
.steps-quet .step { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; transition: transform 0.25s, box-shadow 0.25s; }
.steps-quet .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.steps-quet .step::before { top: 12px; right: 16px; font-size: 35px; font-weight: 900; opacity: 1.0; }
.steps-quet .step-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.steps-quet .step h4 { margin-bottom: 0; color: var(--primary); }
.steps-quet .step p { flex-basis: 100%; margin-top: 12px; }
.steps-quet .step:nth-child(1) .step-icon { background: var(--accent); box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35); }
.steps-quet .step:nth-child(2) .step-icon { background: var(--purple); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35); }
.steps-quet .step:nth-child(3) .step-icon { background: #0ea5e9; box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35); }
.steps-quet .step:nth-child(4) .step-icon { background: var(--success); box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35); }
.steps-quet .step::after {
  content: ""; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
  width: 0; height: 0; border-top: 12px solid var(--primary); border-left: 9px solid transparent; border-right: 9px solid transparent;
  z-index: 2; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}
.steps-quet .step:last-child::after { display: none; }
.steps-quet .step:nth-child(1)::after { border-top-color: var(--accent); }
.steps-quet .step:nth-child(2)::after { border-top-color: var(--purple); }
.steps-quet .step:nth-child(3)::after { border-top-color: #0ea5e9; }

@media (min-width: 900px) {
  .steps-quet { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .steps-quet .step::after {
    top: 50%; bottom: auto; left: auto; right: -17px; transform: translateY(-50%);
    border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--primary); border-right: 0;
  }
  .steps-quet .step:nth-child(1)::after { border-left-color: var(--accent); border-top-color: transparent; }
  .steps-quet .step:nth-child(2)::after { border-left-color: var(--purple); border-top-color: transparent; }
  .steps-quet .step:nth-child(3)::after { border-left-color: #0ea5e9; border-top-color: transparent; }
  .steps-quet .step:nth-child(4)::after { border-left-color: var(--success); }
}

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary); color: #fff; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f8fafc; }
td.price-cell { font-weight: 700; color: var(--accent); white-space: nowrap; }

.materials { display: grid; grid-template-columns: 1fr; gap: 14px; }
.material { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all 0.2s; }
.material:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.material h4 { font-size: 15px; margin-bottom: 4px; }
.material p { font-size: 13px; color: var(--text-muted); }
.material .tag-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag-chip { background: var(--bg); border: 1px solid var(--border); padding: 2px 10px; border-radius: 20px; font-size: 12px; color: var(--text-muted); font-weight: 600; }

.color-strip { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18); cursor: pointer; transition: transform 0.15s; }
.color-dot:hover { transform: scale(1.2); }

.cta-banner { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius); padding: 36px 28px; color: #fff; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-banner h3 { font-size: clamp(20px, 3vw, 26px); }
.cta-banner p { color: #dbeafe; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; justify-content: center; }
.hashtags span { font-size: 12.5px; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; font-weight: 600; }

.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.2s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card .c-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-hotline .c-icon { background: var(--success-light); color: var(--success); }
.c-zalo .c-icon { background: var(--primary-light); color: var(--primary); }
.c-facebook .c-icon { background: #e0f2fe; color: #0284c7; }
.c-tiktok .c-icon { background: #0f172a; color: #fff; }
.c-shopee .c-icon { background: #ffece5; color: #ee4d2d; }
.c-email .c-icon { background: var(--accent-light); color: var(--accent); }
.contact-card h4 { font-size: 16px; margin-bottom: 3px; }
.contact-card p { font-size: 14px; color: var(--text-muted); }
.contact-card .value { font-size: 17px; font-weight: 700; color: var(--text); }
.contact-card a:hover .value { color: var(--primary); }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all 0.2s; }
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-fb { background: #1877f2; }
.social-zalo { background: #0068ff; }
.social-tiktok { background: #0f172a; }
.social-yt { background: #ff0000; }
.social-ins { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-shopee { background: #ee4d2d; }

.footer { background: #1b2e39; color: #94a3b8; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 0 24px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer p { font-size: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 90px 14px 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

.float-btns { position: fixed; bottom: 20px; right: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 850; }
.float-btn { position: relative; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); transition: transform 0.2s; border: 2px solid rgba(255, 255, 255, 0.9); }
.float-btn:hover { transform: scale(1.1); }
.float-phone { background: var(--success); z-index: 1; }
.float-zalo { background: #fff; z-index: 2; overflow: hidden; border-color: #dbe2e8; border-radius: 16px; }
.float-zalo img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; flex: none; }
.float-cart { background: var(--primary); z-index: 0; }
.float-cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.float-btn .float-pulse { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: inherit; opacity: 0.5; animation: pulse 1.8s infinite; z-index: -1; }

.page-hero { background: linear-gradient(135deg, #1b2e39 0%, #2e4755 70%); color: #fff; padding: 40px 0; text-align: center; }
.page-hero h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.page-hero p { color: #dbeafe; margin-top: 8px; max-width: 640px; margin-left: auto; margin-right: auto; font-size: 15px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; margin-top: 12px; font-size: 13px; color: #bfdbfe; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.6; }

.filter-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-label { font-weight: 700; font-size: 14px; }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input { width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border 0.2s; }
.search-box input:focus { border-color: var(--primary); }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.sort-select { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--surface); outline: none; }
.result-info { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.modal { position: fixed; inset: 0; z-index: 980; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); }
.modal-content { position: relative; background: var(--surface); border-radius: var(--radius); max-width: 900px; width: 100%; max-height: 92vh; overflow-y: auto; z-index: 1; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); font-size: 18px; color: var(--text-muted); z-index: 2; }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }

.search-content { max-width: 720px; padding: 22px 24px; }
.search-head { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.search-head h3 { font-size: 19px; margin: 0; }
.search-hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 14px; }
.hs-search { display: flex; gap: 8px; }
.hs-search .search-field input { width: 100%; padding: 11px 34px 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; }
.hs-search .search-field input:focus { border-color: var(--primary); }
.hs-results { margin-top: 16px; }
.hs-section { margin-bottom: 20px; }
.hs-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hs-section-head h4 { margin: 0; }
.hs-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 10px; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hs-none { font-size: 13.5px; color: var(--text-muted); text-align: center; padding: 18px 0; margin: 0; }
.modal-grid { display: grid; grid-template-columns: 1fr; }
.modal-img { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); display: flex; align-items: center; justify-content: center; min-height: 260px; flex-direction: column; gap: 12px; padding: 18px 18px 0; }
.m-img-box { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.m-img-box img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.m-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 48px; border: none; border-radius: 10px; background: rgba(15, 23, 42, 0.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0.92; }
.m-nav:hover { background: rgba(15, 23, 42, 0.55); }
.m-prev { left: 8px; }
.m-next { right: 8px; }
.m-count { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 23, 42, 0.55); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 20px; }
.m-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 16px 16px; }
.m-thumb { width: 52px; height: 52px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; padding: 0; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.m-thumb img { width: 100%; height: 100%; object-fit: contain; }
.m-thumb:hover { border-color: var(--primary); }
.m-thumb.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }
.modal-body { padding: 20px; }
.modal-body h2 { font-size: 22px; margin-bottom: 8px; }
.modal-body .m-cat { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.modal-body .m-code { font-family: Consolas, "Courier New", monospace; color: var(--primary); font-weight: 700; }
.modal-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
.modal-price .price { font-size: 26px; font-weight: 800; color: var(--accent); }
.modal-price .old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.m-desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; white-space: pre-line; word-break: break-word; }
.m-desc-wrap { position: relative; max-height: 168px; overflow: hidden; }
.m-desc-wrap .m-desc { margin-bottom: 0; }
.m-desc-wrap.m-desc-full { max-height: none; overflow: visible; }
.m-desc-wrap:not(.m-desc-full)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface)); pointer-events: none; }
.m-desc-more { margin: 6px 0 16px; padding: 2px 0; background: none; border: none; color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.m-desc-more[hidden] { display: none; }
.m-desc-more:hover { text-decoration: underline; }
.m-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.m-meta .tag-chip { font-size: 13px; padding: 5px 12px; }
.m-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.m-qty-row .qty button { width: 34px; height: 34px; }
.m-qty-row .qty span { min-width: 40px; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.m-var-block { margin-bottom: 14px; }
.m-var-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.m-var-options { display: flex; flex-wrap: wrap; gap: 8px; }
.m-var-btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; cursor: pointer; color: var(--text); font-family: inherit; transition: all .15s; }
.m-var-btn:hover { border-color: var(--primary); color: var(--primary); }
.m-var-btn.sel { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.m-var-msg { font-size: 12.5px; min-height: 18px; margin: 4px 0 10px; }
.m-var-msg.ok { color: var(--success); font-weight: 600; }
.m-var-msg.warn { color: var(--danger); }

.checkout-modal .modal-content { max-width: 940px; padding: 18px 24px; max-height: 94vh; }
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 40px; }
.checkout-head-info { min-width: 200px; }
.checkout-title { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.checkout-title h3 { font-size: 20px; margin: 0; }
.checkout-head p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.track-search { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.track-search .search-field input { width: 100%; padding: 10px 34px 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; outline: none; }
.track-search .search-field input:focus { border-color: var(--primary); }
.clear-btn { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.clear-btn:hover { background: var(--danger); color: #fff; }
.clear-btn[hidden] { display: none; }
.track-msg { font-size: 12.5px; margin: 4px 2px 8px; display: none; }
.track-msg.pending { display: block; color: var(--text-muted); }
.track-msg.err { display: block; color: var(--danger); }
.track-result { margin-bottom: 12px; }
.track-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.track-close { width: 24px; height: 24px; padding: 0; border: none; border-radius: 50%; background: #e2e8f0; color: var(--text-muted); font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.track-close:hover { background: var(--danger); color: #fff; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.checkout-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.checkout-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.checkout-col-head h4 { font-size: 15px; color: var(--primary); }
.checkout-count { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 2px 10px; border-radius: 20px; }
.co-items { margin-bottom: 12px; }
.co-empty { text-align: center; padding: 30px 0; color: var(--text-muted); font-size: 14px; }
.co-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 26px 12px 0; border-bottom: 1px solid var(--border); }
.co-item:last-child { border-bottom: none; }
.co-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex: none; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.co-item-price { color: var(--accent); font-weight: 800; font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.co-item-var { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.co-item-var-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text); background: var(--primary-light); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.sw-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.15); flex: none; }
.co-item .co-qty { margin-top: 0; display: inline-flex; align-items: center; gap: 5px; }
.qty-prefix { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.qty-sel { font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 6px; cursor: pointer; }
.qty-sel:hover, .qty-sel:focus { border-color: var(--primary); outline: none; }
.co-item-total { color: var(--text); font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-item-remove { position: absolute; top: 6px; right: 2px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--primary-light); color: var(--text-muted); font-size: 14px; padding: 0; line-height: 1; cursor: pointer; }
.co-item-remove:hover { background: var(--danger-light); color: var(--danger); }
.checkout-right .form-group + .form-group { margin-top: 12px; }
.checkout-right .form-group label em { color: var(--danger); font-style: normal; }
.checkout-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.checkout-actions { margin-top: 20px; }
.checkout-actions .btn { padding: 14px 28px; font-size: 16px; }

.track-result { margin-top: 12px; }
.track-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.t-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.t-code { font-size: 15px; }
.t-code strong { color: var(--primary); }
.t-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.pill.st-pending, .pill.st-confirmed { background: var(--warning); }
.pill.st-deposit { background: var(--purple); }
.pill.st-printing { background: var(--primary); }
.pill.st-shipping { background: #0284c7; }
.pill.st-done { background: var(--success); }
.pill.st-cancelled { background: var(--danger); }
.track-flow { display: flex; align-items: center; gap: 4px; margin: 10px 0 12px; overflow-x: auto; padding-bottom: 2px; }
.tf-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; position: relative; }
.tf-step::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.tf-step:first-child::before { display: none; }
.tf-step.done::before { background: var(--success); }
.tf-step.active::before { background: var(--success); }
.tf-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--border); color: transparent; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 1; position: relative; }
.tf-step.done .tf-dot { background: var(--success); color: #fff; }
.tf-step.active .tf-dot { background: var(--accent); color: #fff; animation: dotPulse 1.6s infinite; }
.tf-label { font-size: 10.5px; color: var(--text-muted); text-align: center; line-height: 1.2; }
.tf-step.done .tf-label { color: var(--success); font-weight: 600; }
.tf-step.active .tf-label { color: var(--accent); font-weight: 700; }
.track-cancelled { background: var(--danger-light); color: var(--danger); font-weight: 700; font-size: 13px; text-align: center; padding: 10px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.t-items { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--border); padding-top: 10px; margin-bottom: 10px; max-height: 140px; overflow-y: auto; }
.t-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-muted); }
.t-item-name { color: var(--text); font-weight: 600; }
.t-item-var { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.t-item-code { display: inline-block; font-family: Consolas, "Courier New", monospace; font-size: 11px; color: var(--primary); font-weight: 700; margin-right: 6px; }
.t-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; font-size: 13px; color: var(--text-muted); }
.t-total strong { font-size: 17px; color: var(--accent); }

.order-success { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.order-success.open { display: flex; }
.success-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(3px); }
.success-card { position: relative; background: var(--surface); border-radius: 22px; max-width: 700px; width: 100%; max-height: 94vh; overflow-y: auto; padding: 26px 24px 22px; text-align: center; z-index: 1; box-shadow: var(--shadow-lg); animation: successIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes successIn { from { opacity: 0; transform: scale(0.8) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.success-check { width: 92px; height: 92px; margin: 0 auto 14px; position: relative; animation: ckPop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes ckPop { from { transform: scale(0.3); } to { transform: scale(1); } }
.success-check svg { width: 92px; height: 92px; display: block; }
.success-check svg circle { fill: var(--success-light); }
.ck-circle { stroke: var(--success); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: dash 0.7s 0.3s ease forwards; }
.ck-mark { stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: dash 0.45s 0.75s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success-card h3 { font-size: 24px; font-weight: 800; color: var(--success); margin-bottom: 6px; }
.success-msg { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.success-msg strong { color: var(--accent); }
.success-burst { position: absolute; top: 30px; left: 50%; width: 1px; height: 1px; pointer-events: none; }
.success-burst span { position: absolute; width: 8px; height: 8px; border-radius: 50%; opacity: 0; animation: burst 0.9s ease-out forwards; }
.success-burst span:nth-child(1) { background: var(--accent); animation-delay: 0.1s; }
.success-burst span:nth-child(2) { background: var(--purple); animation-delay: 0.25s; }
.success-burst span:nth-child(3) { background: var(--success); animation-delay: 0.4s; }
.success-burst span:nth-child(4) { background: #0ea5e9; animation-delay: 0.55s; }
.success-burst span:nth-child(5) { background: var(--warning); animation-delay: 0.7s; }
.success-burst span:nth-child(6) { background: var(--danger); animation-delay: 0.85s; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, -120px)) scale(1.2); }
}
.success-receipt-wrap { margin: 0 auto 16px; border-radius: 12px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); background: #f8fafc; box-shadow: var(--shadow-sm); max-width: 100%; text-align: center; }
.success-receipt-wrap canvas { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.success-actions .btn { flex: 1; min-width: 160px; }

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

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.9); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
.lightbox-figure { position: relative; z-index: 1; max-width: 92vw; max-height: 92vh; text-align: center; margin: 0; }
.lightbox-figure img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox-figure figcaption { margin-top: 10px; color: #cbd5e1; font-size: 14px; }

.img-frame img, .tech-card img, .carousel-slide img { cursor: zoom-in; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; background: var(--surface); transition: border 0.2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--text-muted); }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.color-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.color-picker input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--c, #fff);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--text-muted);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.swatch-any { background: linear-gradient(135deg, #fff 44%, #cbd5e1 44%, #cbd5e1 56%, #fff 56%); }
.swatch:hover { transform: scale(1.1); }
.color-picker input:checked + .swatch {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  transform: scale(1.12);
}
.form-success { background: var(--success-light); color: var(--success); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; display: none; }
.form-success.show { display: block; }

.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.info-item .i-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--primary-light); color: var(--primary); }
.info-item h4 { font-size: 15px; }
.info-item p { font-size: 14px; color: var(--text-muted); }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 16px 18px; background: none; border: none; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { transition: transform 0.2s; color: var(--primary); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; font-size: 14px; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }
.faq-panel { display: none; }
.faq-panel.active { display: block; }

.policy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.policy-block { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px dashed var(--border); }
.policy-block:last-child { border-bottom: none; }
.policy-block .p-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); }
.policy-block h3 { font-size: 15.5px; color: var(--primary); margin-bottom: 6px; }
.policy-block p, .policy-block li { font-size: 14px; color: var(--text); line-height: 1.7; }
.policy-block ul { padding-left: 0; list-style: none; display: grid; gap: 7px; }
.policy-block li { position: relative; padding-left: 14px; }
.policy-block li::before { content: "-"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.policy-note { background: var(--accent-light); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; line-height: 1.7; color: #7c2d12; margin-top: 14px; }
.policy-note ul { padding-left: 0; list-style: none; display: grid; gap: 5px; }
.policy-note li { position: relative; padding-left: 14px; }
.policy-note li::before { content: "-"; position: absolute; left: 0; top: 0; color: #c2410c; font-weight: 800; }
.policy-table { width: 100%; min-width: 0; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }

.policy-block > div { min-width: 0; }
.policy-block p, .policy-block li, .policy-table td, .policy-table th { overflow-wrap: break-word; }
.policy-table th, .policy-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--primary-light); color: var(--primary); font-size: 13px; }

@media (max-width: 560px) {
  .policy { padding: 18px; }
  .policy-block { flex-direction: column; gap: 10px; }
  .policy-table { font-size: 12.5px; display: block; overflow-x: auto; }
  .policy-table th, .policy-table td { padding: 8px 10px; }
}

.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--text); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px; font-weight: 600; z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
.split > * { min-width: 0; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr 1fr; }
  .modal-img { min-height: 320px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-visual { display: block; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-inner { padding: 72px 0; }
  .section { padding: 64px 0; }
}

@media (min-width: 1100px) {
  .hero h1 { white-space: nowrap; }
}

@media (max-width: 899px) {
  .hero-inner { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; }
  .float-btn { width: 46px; height: 46px; }
  .footer-bottom { flex-direction: column; }
  .product-actions .btn-text { display: none; }
  .product-actions .btn { flex: 1; }
  .filter-row { align-items: flex-start; }
  .filter-label { padding-top: 7px; }
  .tabs { gap: 6px; justify-content: flex-start; }
  .tab { padding: 6px 12px; font-size: 12.5px; border-radius: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .co-item { flex-wrap: wrap; gap: 6px 8px; }
  .co-item img { width: 46px; height: 46px; }
  .co-item-info { order: 2; flex: 1 1 0; padding-right: 26px; }
  .co-item .co-item-price { font-size: 14.5px; }
  .co-item .co-qty { order: 4; margin: 2px 0 0; }
  .co-item .qty-prefix { display: none; }
  .co-item .qty-sel { min-width: 48px; padding: 5px 6px; font-size: 14px; }
  .co-item-total { order: 5; margin-left: auto; font-size: 14px; color: var(--accent); }
}
@media (min-width: 640px) {
  .product-actions .btn-icon { display: none; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
