@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============ TOKENS ============ */
:root {
  --navy: #1a3258;
  --navy-dark: #0f2342;
  --navy-mid: #2a4570;
  --navy-soft: #f0f4fa;
  --navy-line: #dde4f0;
  --gold: #c9a14a;
  --gold-warm: #d4a548;
  --gold-light: #e8c476;
  --gold-soft: #f9efd2;
  --gold-deep: #a8853a;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #767676;
  --ink-4: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-2: #fafbfc;
  --green: #15803d;
  --green-soft: #f0fdf4;
  --red: #c62828;
  --red-soft: #fef2f2;
  --orange: #d97706;
  --orange-soft: #fff7ed;
  --shadow-sm: 0 1px 2px rgba(15,35,66,0.04);
  --shadow: 0 2px 12px rgba(15,35,66,0.08);
  --shadow-lg: 0 12px 32px rgba(15,35,66,0.12);
  --shadow-gold: 0 6px 20px rgba(201,161,74,0.25);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--navy); color: #fff; }

/* ============ LOGO ============ */
.logo-svg { display: block; }
.logo-img-dark { display: block; height: auto; max-width: 100%; }
.banner-mark { filter: none; opacity: 0.06; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
}
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,35,66,0.3); }
.btn-gold { background: linear-gradient(135deg, var(--gold-warm) 0%, var(--gold-deep) 100%); color: var(--navy-dark); border: none; font-weight: 700; position: relative; overflow: hidden; }
.btn-gold::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-warm) 100%); opacity: 0; transition: opacity 0.3s; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-gold:hover::before { opacity: 1; }
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold { z-index: 0; }
.btn-gold::before { z-index: -1; }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-gold { background: transparent; color: var(--gold-warm); border-color: var(--gold-warm); }
.btn-outline-gold:hover { background: var(--gold-warm); color: var(--navy-dark); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #a51e1e; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); padding: 6px 0; transition: all 0.3s var(--ease); }
.btn-link:hover { color: var(--gold-deep); gap: 14px; }
.btn-link::after { content: '→'; font-size: 14px; }
.btn-sm { padding: 9px 18px; font-size: 11px; }
.btn-lg { padding: 16px 36px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ============ TOP BAR ============ */
.top-bar { background: var(--navy-dark); color: rgba(255,255,255,0.75); font-size: 12px; }
.top-bar .wrap { max-width: 1280px; margin: 0 auto; padding: 9px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.top-bar .left, .top-bar .right { display: flex; gap: 24px; align-items: center; }
.top-bar a { transition: color 0.2s; }
.top-bar a:hover { color: var(--gold-light); }
.top-bar .sep { width: 1px; height: 12px; background: rgba(255,255,255,0.15); }
.top-bar .badge-live { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); }
.top-bar .badge-live::before { content: ''; width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; box-shadow: 0 0 6px var(--gold-light); }

/* ============ HEADER ============ */
header.main { background: #fff; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
header.main::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-warm), transparent); }
header.main .wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; }
.logo { display: block; flex-shrink: 0; }

/* ===== HOTLINE WIDGET ===== */
.hotline {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0; white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  background: var(--navy-soft);
  position: relative;
  min-width: 150px;
}
.hotline .pulse {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,161,74,0.3);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%,100%{box-shadow:0 0 0 3px rgba(26,50,88,0.15)}
  50%{box-shadow:0 0 0 6px rgba(26,50,88,0.05)}
}
.hotline .info { flex: 1; min-width: 0; }
.hotline .lbl {
  font-size: 8px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0; font-weight: 600; white-space: nowrap;
}
.hotline .num {
  font-size: 15px; font-weight: 800; color: var(--navy);
  letter-spacing: 0.02em; white-space: nowrap; line-height: 1.2;
}


.search { display: flex; border: 2px solid var(--navy); border-radius: 4px; overflow: hidden; background: #fff; transition: box-shadow 0.3s, border-color 0.3s; width: 100%; min-width: 300px; }
.search:focus-within { box-shadow: 0 0 0 4px var(--navy-soft); border-color: var(--gold-warm); }
.search .cat { padding: 0 18px; border-right: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.search .cat:hover { background: var(--navy-soft); color: var(--navy); }
.search .cat .arrow { font-size: 9px; opacity: 0.6; }
.search input { flex: 1; border: none; padding: 14px 18px; font-size: 14px; outline: none; color: var(--ink); font-family: inherit; min-width: 240px; width: 100%; }
.search input::placeholder { color: var(--ink-4); }
.search .submit { padding: 0 28px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.2s; position: relative; }
.search .submit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep)); opacity: 0; transition: opacity 0.3s; }
.search .submit:hover::before { opacity: 1; }
.search .submit > * { position: relative; }

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

.header-actions { display: flex; gap: 4px; align-items: center;   white-space: nowrap; flex-shrink: 0;
}
.h-btn { padding: 10px 14px; border-radius: 4px; font-size: 12px; color: var(--ink-2); transition: all 0.2s; text-align: center; line-height: 1.3; font-weight: 500; position: relative; min-width: 72px; display: block; }
.h-btn:hover { background: var(--navy-soft); color: var(--navy); }
.h-btn .label { display: block; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.h-btn .value { display: block; font-weight: 700; color: var(--ink); font-size: 12px; }
.h-btn .count { position: absolute; top: 4px; right: 4px; background: var(--gold-warm); color: var(--navy-dark); font-size: 10px; font-weight: 800; padding: 0 6px; height: 16px; line-height: 16px; min-width: 16px; text-align: center; border-radius: 8px; }

/* ============ NAV ============ */
.site-shell { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(15,35,66,0.10); }
nav.primary { background: var(--navy); color: #fff; }
nav.primary .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; justify-content: center; }
.all-cats { background: var(--navy-dark); padding: 0 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 12px; min-width: 240px; position: relative; transition: background 0.2s; white-space: nowrap; }
.all-cats::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-warm); }
.all-cats:hover { background: #081a36; color: var(--gold-light); }
.all-cats .lines { display: inline-flex; flex-direction: column; gap: 3px; }
.all-cats .lines span { width: 18px; height: 2px; background: currentColor; }
.all-cats .arrow { margin-left: auto; font-size: 10px; }
nav.primary .nav-link, nav.primary .nav-item { padding: 0 14px; display: flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; transition: all 0.2s; cursor: pointer; color: #fff; gap: 6px; position: relative; height: 48px; white-space: nowrap; }
nav.primary .nav-link::after, nav.primary .nav-item::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold-warm); transition: width 0.3s var(--ease); }
nav.primary .nav-link:hover, nav.primary .nav-item:hover { color: var(--gold-light); }
nav.primary .nav-link:hover::after, nav.primary .nav-item:hover::after { width: 60%; }
nav.primary .nav-link.active { color: var(--gold-light); }
nav.primary .nav-link.active::after { width: 60%; }
nav.primary .nav-item .caret { font-size: 9px; opacity: 0.7; }
nav.primary .promo-text { margin-left: auto; padding: 0 16px; font-size: 11px; font-weight: 600; color: var(--gold-light); display: flex; align-items: center; gap: 8px; letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0; }
nav.primary .promo-text .dot { width: 7px; height: 7px; background: var(--gold-light); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============ HERO ============ */
.hero-section { padding: 24px 0; background: var(--bg-soft); background-image: radial-gradient(ellipse 800px 400px at 90% 0%, rgba(201,161,74,0.05), transparent), radial-gradient(ellipse 600px 400px at 0% 100%, rgba(26,50,88,0.04), transparent); }
.hero-section .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 280px 1fr 320px; gap: 16px; align-items: stretch; }

.cat-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; height: fit-content; box-shadow: var(--shadow-sm); }
.cat-sidebar .head { padding: 14px 18px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; position: relative; }
.cat-sidebar .head::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold-warm), var(--gold-deep)); }
.cat-sidebar .head .lines { display: inline-flex; flex-direction: column; gap: 3px; }
.cat-sidebar .head .lines span { width: 16px; height: 2px; background: var(--gold-light); }
.cat-sidebar ul { list-style: none; }
.cat-sidebar li { border-bottom: 1px solid var(--line-2); }
.cat-sidebar li:last-child { border-bottom: none; }
.cat-sidebar li a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--ink); font-size: 13px; font-weight: 500; transition: all 0.2s var(--ease); position: relative; }
.cat-sidebar li a::before { content: ''; width: 4px; height: 4px; background: var(--ink-4); border-radius: 50%; transition: all 0.2s; flex-shrink: 0; }
.cat-sidebar li a:hover { background: var(--navy-soft); color: var(--navy); padding-left: 24px; }
.cat-sidebar li a:hover::before { background: var(--gold-warm); width: 8px; height: 8px; }
.cat-sidebar li a .arr { margin-left: auto; font-size: 11px; color: var(--ink-4); font-weight: 700; }
.cat-sidebar li a:hover .arr { color: var(--navy); }
.cat-sidebar li.featured a { color: var(--gold-deep); font-weight: 700; background: linear-gradient(90deg, var(--gold-soft), transparent 80%); }
.cat-sidebar li.featured a::before { background: var(--gold-warm); }

.banner { background: linear-gradient(110deg, rgba(15,35,66,0.95) 0%, rgba(26,50,88,0.85) 50%, rgba(42,69,112,0.7) 100%), radial-gradient(circle at 80% 30%, rgba(201,161,74,0.4), transparent 60%), var(--navy-dark); border-radius: 4px; padding: 60px 56px; color: #fff; position: relative; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,161,74,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,161,74,0.04) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.banner > * { position: relative; z-index: 1; }
.banner-mark { position: absolute; bottom: -40px; right: -20px; width: 380px; opacity: 0.04; pointer-events: none; }
.banner .badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); border: 1px solid rgba(201,161,74,0.3); padding: 7px 16px; border-radius: 999px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; width: fit-content; color: var(--gold-light); }
.banner .badge::before { content: ''; width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; box-shadow: 0 0 8px var(--gold-light); }
.banner h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 580px; }
.banner h1 .accent { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-warm) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.banner p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 540px; margin-bottom: 32px; line-height: 1.65; font-weight: 300; }
.banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.vs-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-warm); border-radius: 4px; padding: 22px; box-shadow: var(--shadow); height: fit-content; }
.vs-card .head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vs-card h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 4px; letter-spacing: -0.01em; }
.vs-card .sub { font-size: 11px; color: var(--ink-3); }
.vs-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 16px; }
.vs-progress .step { height: 3px; background: var(--line); border-radius: 2px; transition: background 0.3s; }
.vs-progress .step.done { background: linear-gradient(90deg, var(--gold-warm), var(--gold-deep)); }
.vs-field { margin-bottom: 12px; }
.vs-field label { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 5px; font-weight: 600; letter-spacing: 0.04em; }
.vs-field label .req { color: var(--gold-deep); }
.vs-field select, .vs-field input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-family: inherit; background: #fff; color: var(--ink); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23767676' d='M5 6L0 0h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; transition: border 0.2s; }
.vs-field input { background-image: none; cursor: text; }
.vs-field select:hover, .vs-field input:hover { border-color: var(--navy); }
.vs-field select:focus, .vs-field input:focus { outline: none; border-color: var(--gold-warm); box-shadow: 0 0 0 3px var(--gold-soft); }
.vs-field.disabled { opacity: 0.4; pointer-events: none; }

.vs-garage { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vs-garage .lbl { font-size: 11px; color: var(--ink-3); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.vs-garage .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.car-chip { padding: 6px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink-2); cursor: pointer; transition: all 0.2s; font-weight: 500; }
.car-chip:hover { border-color: var(--gold-warm); color: var(--gold-deep); }
.car-chip.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.car-chip.add { border-style: dashed; color: var(--ink-3); }

/* ============ TRUST STRIP ============ */
.trust { background: #fff; }
.trust .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; border-radius: 4px; overflow: hidden; }
.trust-item { background: #fff; padding: 22px 24px; display: flex; align-items: center; gap: 16px; transition: all 0.3s; position: relative; }
.trust-item:hover { background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.trust-item .num { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -0.04em; flex-shrink: 0; min-width: 44px; position: relative; }
.trust-item .num::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 24px; height: 2px; background: var(--gold-warm); }
.trust-item .ttl { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.01em; }
.trust-item .desc { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* ============ SECTION ============ */
section.block { padding: 36px 0; }
section.block .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.sec-card { background: #fff; border: none; border-radius: 4px; overflow: visible; }
.sec-head { border-top: 3px solid var(--navy); background: #fff; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); padding: 0 20px; position: relative; }
.sec-head::after { content: ''; position: absolute; top: -3px; left: 0; width: 80px; height: 3px; background: var(--gold-warm); }
.sec-head .title { padding: 16px 0; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sec-head .title .bar { width: 4px; height: 22px; background: linear-gradient(180deg, var(--gold-warm), var(--gold-deep)); border-radius: 2px; }
.sec-head .title h2 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); }
.sec-tabs { display: flex; align-items: stretch; margin-left: 32px; }
.sec-tabs button, .sec-tabs a { padding: 16px 18px; font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; transition: all 0.2s; margin-bottom: -1px; }
.sec-tabs button:hover, .sec-tabs a:hover { color: var(--navy); }
.sec-tabs button.active, .sec-tabs a.active { color: var(--navy); border-bottom-color: var(--gold-warm); }
.sec-head .all-link { margin-left: auto; align-self: center; }

/* ============ Product grid ============ */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); background: transparent; gap: 16px; }
.prod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card { background: #fff; padding: 0; transition: all 0.3s var(--ease); cursor: pointer; position: relative; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--shadow-lg); z-index: 2; }
.prod-img { aspect-ratio: 1; background: linear-gradient(135deg, #f7f8fb 0%, #e8edf5 100%); border-radius: 4px; margin-bottom: 14px; position: relative; overflow: hidden; display: grid; place-items: center; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.prod-img-content { text-align: center; padding: 16px; }
.prod-img-content .oem-lbl { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.prod-img-content .oem-code { font-family: 'JetBrains Mono', monospace; font-size: 16px; color: var(--navy); font-weight: 600; letter-spacing: 0.04em; word-break: break-all; }
.prod-img-content .oem-line { width: 28px; height: 1px; background: var(--gold-warm); margin: 12px auto 0; }
.prod-tag { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.tag { padding: 3px 9px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; border-radius: 2px; }
.tag.sale { background: var(--navy); }
.tag.new { background: var(--gold-warm); color: var(--navy-dark); }
.tag.hot { background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep)); color: var(--navy-dark); }
.tag.bestseller { background: var(--navy-dark); color: var(--gold-light); }
.prod-fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; background: rgba(255,255,255,0.95); border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; transition: all 0.2s; border: 1px solid var(--line); z-index: 1; }
.prod-fav:hover, .prod-fav.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.prod-code { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.prod-name { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; transition: color 0.2s; }
.prod-card:hover .prod-name { color: var(--navy); }
.prod-fitment { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: var(--green-soft); border-radius: 2px; font-size: 10px; color: var(--green); font-weight: 600; margin-bottom: 8px; align-self: flex-start; }
.prod-fitment::before { content: '✓'; font-size: 10px; font-weight: 700; }
.prod-fitment.warn { background: var(--orange-soft); color: var(--orange); }
.prod-fitment.warn::before { content: '⚠'; }
.prod-rating { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); margin-bottom: 10px; }
.prod-rating .stars { color: var(--gold-warm); letter-spacing: 1px; font-size: 12px; }
.prod-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.prod-price .now { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.prod-price .was { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.prod-price.contact .now { color: var(--ink-2); font-size: 16px; font-weight: 600; font-style: italic; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line-2); margin-top: auto; }
.prod-stock { font-size: 11px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 5px; }
.prod-stock::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.prod-stock.out { color: var(--red); }
.prod-stock.out::before { background: var(--red); }

/* ============ COOLING SPECIALTY BAND ============ */
.specialty { padding: 0 0 24px; }
.specialty .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.specialty-card { background: radial-gradient(circle at 80% 30%, rgba(201,161,74,0.12), transparent 60%), linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); border-radius: 4px; padding: 48px 56px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.specialty-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-warm), var(--gold-light), var(--gold-warm)); }
.specialty-card::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,161,74,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(201,161,74,0.025) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.specialty-card > * { position: relative; z-index: 1; }
.specialty-text .badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(201,161,74,0.15); border: 1px solid rgba(201,161,74,0.3); padding: 6px 14px; border-radius: 2px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; color: var(--gold-light); }
.specialty-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.specialty-text h2 em { font-style: italic; background: linear-gradient(135deg, var(--gold-light), var(--gold-warm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.specialty-text p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 24px; max-width: 480px; font-weight: 300; }
.specialty-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.specialty-cat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; transition: all 0.2s; cursor: pointer; }
.specialty-cat:hover { background: rgba(201,161,74,0.1); border-color: rgba(201,161,74,0.3); }
.specialty-cat .num { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 800; color: var(--gold-light); flex-shrink: 0; min-width: 24px; }
.specialty-cat .nm { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; }
.specialty-cat .ct { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ============ CATEGORY TILES ============ */
.cat-tiles-section { padding: 12px 0 24px; }
.cat-tiles-section .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.3s var(--ease); position: relative; overflow: hidden; display: block; }
.cat-tile:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 3px; background: linear-gradient(90deg, var(--gold-warm), var(--gold-deep)); transition: transform 0.3s var(--ease); }
.cat-tile:hover::before { transform: translateX(-50%) scaleX(1); }
.cat-tile .num { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 800; color: var(--gold-deep); letter-spacing: 0.05em; margin-bottom: 12px; font-style: italic; }
.cat-tile h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.cat-tile .count { font-size: 11px; color: var(--ink-3); font-weight: 500; }

/* ============ BRANDS ============ */
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: transparent; gap: 16px; }
.brand-card { aspect-ratio: 1.4; background: #fff; display: grid; place-items: center; text-align: center; cursor: pointer; transition: all 0.3s var(--ease); padding: 0; position: relative; overflow: hidden; border: 1px solid #e0e6f0; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.brand-card .brand-img-wrap { width: 100%; height: 100%; overflow: hidden; position: absolute; inset: 0; }
.brand-card .brand-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.brand-card:hover .brand-img-wrap img { transform: scale(1.06); }
.brand-card .brand-info { position: relative; z-index: 2; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%); }
.brand-card.has-image .brand-info { background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 50%, transparent 100%); }
.brand-card.has-image .name { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.brand-card.has-image .count { color: rgba(255,255,255,0.85); }
.brand-card.has-image:hover .brand-info { background: linear-gradient(to top, rgba(26,50,88,0.8) 0%, rgba(26,50,88,0.25) 50%, transparent 100%); }
.brand-card:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.brand-card .name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: 0.01em; margin-bottom: 4px; transition: color 0.3s; }
.brand-card:hover .name { color: var(--gold-light); }
.brand-card .count { font-size: 11px; color: var(--ink-3); font-weight: 500; transition: color 0.3s; font-family: 'JetBrains Mono', monospace; }
.brand-card:hover .count { color: rgba(255,255,255,0.6); }

/* ============ PROMO ============ */
.promo-band { padding: 24px 0; }
.promo-band .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-card { border-radius: 4px; padding: 36px; color: #fff; position: relative; overflow: hidden; min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.promo-card.gold { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%), linear-gradient(135deg, var(--gold-warm) 0%, var(--gold-deep) 100%); color: var(--navy-dark); }
.promo-card.navy { background: radial-gradient(circle at 80% 20%, rgba(201,161,74,0.15), transparent 50%), linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }

/* ============ DECORATIVE BANNERS ============ */
.banner-deco { position: absolute; pointer-events: none; user-select: none; }
.banner-deco svg { display: block; }
.banner-deco.cooling-system { right: -20px; bottom: -20px; width: 460px; height: 280px; opacity: 0.13; }
.banner-deco.partner-network { right: -10px; top: 50%; transform: translateY(-50%); width: 320px; height: 240px; opacity: 0.18; }
.banner-deco.engine-blueprint { right: -40px; top: 50%; transform: translateY(-50%); width: 380px; height: 380px; opacity: 0.15; }
.banner-deco.engine-blueprint .stroke-gold { stroke: var(--gold-light); }
.banner-deco.cooling-system .stroke-dark { stroke: var(--navy-dark); }
.banner-deco.cooling-system .fill-dark { fill: var(--navy-dark); }
.banner-deco.partner-network .stroke-gold { stroke: var(--gold-light); }
.banner-deco.partner-network .fill-gold { fill: var(--gold-light); }
.promo-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none; }
.promo-card .badge { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); padding: 5px 12px; border-radius: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; width: fit-content; margin-bottom: 14px; }
.promo-card.gold .badge { background: rgba(15,35,66,0.15); border-color: rgba(15,35,66,0.25); color: var(--navy-dark); }
.promo-card h3 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.promo-card.navy h3 .accent { background: linear-gradient(135deg, var(--gold-light), var(--gold-warm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.promo-card.gold h3 .accent { color: #fff; font-style: italic; }
.promo-card p { font-size: 13px; opacity: 0.85; margin-bottom: 20px; line-height: 1.6; max-width: 380px; }

/* ============ NEWS ============ */
.news-grid { padding: 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; background: #fff; }
.news-feature { grid-row: span 2; cursor: pointer; }
.news-feature .img { aspect-ratio: 16/9; background: radial-gradient(circle at 70% 30%, rgba(201,161,74,0.3), transparent 50%), linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); border-radius: 4px; margin-bottom: 16px; position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(201,161,74,0.4); font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 800; letter-spacing: 0.08em; }
.news-feature .img .label { position: absolute; top: 14px; left: 14px; background: var(--gold-warm); color: var(--navy-dark); padding: 5px 12px; border-radius: 2px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.news-feature h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.25; margin-bottom: 10px; letter-spacing: -0.02em; transition: color 0.2s; }
.news-feature:hover h3 { color: var(--gold-deep); }
.news-feature p { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }
.news-meta { display: flex; gap: 16px; font-size: 11px; color: var(--ink-4); align-items: center; }
.news-meta .sep { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }
.news-side { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.news-side:last-child { border-bottom: none; padding-bottom: 0; }
.news-side .img { width: 96px; aspect-ratio: 1; background: linear-gradient(135deg, var(--navy-soft), #d4dde9); border-radius: 4px; flex-shrink: 0; display: grid; place-items: center; color: var(--navy); font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; }
.news-side h4 { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.news-side:hover h4 { color: var(--navy); }
.news-side .news-meta { font-size: 10px; }

/* ============ FOOTER ============ */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); margin-top: 32px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-warm), var(--gold-light), var(--gold-warm), var(--gold-deep)); }
footer .newsletter-band { padding: 36px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.2); }
footer .newsletter-band .wrap { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.nl-text h3 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 4px; letter-spacing: -0.01em; }
.nl-text h3 em { font-style: italic; color: var(--gold-light); }
.nl-text p { font-size: 13px; color: rgba(255,255,255,0.6); }
.nl-form { display: flex; gap: 8px; flex: 1; max-width: 480px; }
.nl-form input { flex: 1; background: #fff; border: none; padding: 14px 18px; border-radius: 3px; font-size: 14px; color: var(--ink); outline: none; font-family: inherit; }
footer .main-foot { padding: 56px 20px 32px; }
footer .main-foot .wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand .logo { margin-bottom: 20px; }
.footer-logo-img-wrap { display:inline-block; line-height:0; background:#fff; padding:10px 16px; border-radius:8px; }
.footer-logo-img { max-height:54px; max-width:240px; width:auto; height:auto; object-fit:contain; display:block; }
.foot-brand .desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 0 0 22px; max-width: 320px; }
.foot-contact-list { display: flex; flex-direction: column; }
.foot-contact-item { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
.foot-contact-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.foot-contact-item .lbl { font-size: 10px; color: var(--gold-light); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.foot-contact-item .val { color: rgba(255,255,255,0.85); font-weight: 500; }
.foot-col h4 { font-size: 13px; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-warm); width: fit-content; }
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul a { font-size: 13px; color: rgba(255,255,255,0.6); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.foot-col ul a::before { content: ''; width: 4px; height: 1px; background: var(--gold-warm); transition: width 0.2s; }
.foot-col ul a:hover { color: var(--gold-light); }
.foot-col ul a:hover::before { width: 14px; }
.foot-bottom { background: rgba(0,0,0,0.3); padding: 18px 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.foot-bottom .wrap { max-width: 1280px; margin: 0 auto; display: flex; justify-content: center; align-items: center; font-size: 12px; color: rgba(255,255,255,0.5); gap: 20px; flex-wrap: wrap; }
.pay-list { display: flex; align-items: center; gap: 8px; }
.pay-list .lbl { color: rgba(255,255,255,0.5); margin-right: 6px; font-size: 11px; letter-spacing: 0.05em; }
.pay-list .pay { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 2px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.75); letter-spacing: 0.05em; }
.foot-social { display: flex; gap: 6px; }
.foot-social a { padding: 6px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 2px; color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; transition: all 0.2s; }
.foot-social a:hover { background: var(--gold-warm); border-color: var(--gold-warm); color: var(--navy-dark); }

/* ============ FLOATING ============ */
.float-stack { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.float-btn { padding: 12px 22px; background: var(--navy); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(15,35,66,0.4); transition: all 0.2s; cursor: pointer; border: 1px solid var(--navy); }
.float-btn:hover { transform: translateY(-2px); background: var(--navy-dark); box-shadow: 0 8px 20px rgba(15,35,66,0.5); }
.float-btn.gold { background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep)); color: var(--navy-dark); border: none; box-shadow: var(--shadow-gold); }
.float-btn.gold:hover { box-shadow: 0 8px 24px rgba(201,161,74,0.45); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.03em; }
.form-group label .req { color: var(--red); }
.form-control, .form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 3px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); transition: border 0.2s;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold-warm); box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-help { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ============ ALERTS ============ */
.alert { padding: 12px 16px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; border-left: 3px solid; }
.alert-success { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.alert-error   { background: var(--red-soft);   color: var(--red);   border-color: var(--red); }
.alert-warn    { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); }
.alert-info    { background: var(--navy-soft);  color: var(--navy);  border-color: var(--navy); }

/* ============ TABLES ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
.tbl th { background: var(--bg-soft); font-weight: 700; color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.tbl tr:hover td { background: var(--bg-2); }
.tbl .right { text-align: right; }
.tbl .center { text-align: center; }
.tbl .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ============ BADGES ============ */
.badge-status { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 12px; letter-spacing: 0.03em; }
.badge-status.pending { background: var(--orange-soft); color: var(--orange); }
.badge-status.active, .badge-status.published, .badge-status.completed, .badge-status.success, .badge-status.delivered { background: var(--green-soft); color: var(--green); }
.badge-status.cancelled, .badge-status.rejected, .badge-status.failed, .badge-status.locked, .badge-status.refunded, .badge-status.blocked { background: var(--red-soft); color: var(--red); }
.badge-status.processing, .badge-status.shipping, .badge-status.awaiting_confirm { background: var(--navy-soft); color: var(--navy); }
.badge-status.hidden, .badge-status.draft, .badge-status.paused, .badge-status.out_of_stock, .badge-status.unpaid, .badge-status.need_info { background: var(--bg-soft); color: var(--ink-3); }
.badge-status.pending_payment, .badge-status.returning { background: var(--gold-soft); color: var(--gold-deep); }

/* ============ DASHBOARD LAYOUT ============ */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 200px); background: var(--bg-soft); }
.dash-sidebar { background: var(--navy-dark); color: #fff; padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-sidebar .who { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.dash-sidebar .who .name { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 14px; }
.dash-sidebar .who .role { font-size: 11px; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-nav { display: flex; flex-direction: column; }
.dash-nav a { padding: 11px 20px; color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent; }
.dash-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dash-nav a.active { background: rgba(201,161,74,0.1); color: var(--gold-light); border-left-color: var(--gold-warm); }
.dash-nav .sec-label { font-size: 10px; color: rgba(255,255,255,0.4); padding: 16px 20px 6px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.dash-main { padding: 28px 32px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 4px; }
.dash-head .sub { color: var(--ink-3); font-size: 13px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; position: relative; overflow: hidden; }
.kpi::before { display: none; }
.kpi .lbl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 600; }
.kpi .val { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; }
.kpi .sub { font-size: 11px; color: var(--ink-3); margin-top: 6px; }




.panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 20px; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.panel-head h3 { font-size: 14px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.panel-body { padding: 20px; }
.panel-body.no-pad { padding: 0; }

/* ============ MISC ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; gap: 12px; }
.flex.col { flex-direction: column; }
.flex.between { justify-content: space-between; }
.flex.center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-muted { color: var(--ink-3); }
.text-gold { color: var(--gold-deep); }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-16 { font-size: 16px; } .fs-20 { font-size: 20px; }
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty-state .em-icon { font-family: 'Playfair Display', serif; font-size: 64px; color: var(--gold-warm); margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--navy); margin-bottom: 8px; font-weight: 800; }
.empty-state p { font-size: 14px; margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }

.breadcrumb { padding: 14px 0; font-size: 12px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-4); }

.pagination { display: flex; gap: 4px; justify-content: center; padding: 24px 0; }
.pagination a, .pagination span { padding: 8px 14px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); transition: all 0.2s; }
.pagination a:hover { background: var(--navy-soft); color: var(--navy); border-color: var(--navy); }
.pagination .active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

.flash-stack { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.flash { padding: 14px 18px; background: #fff; border-radius: 4px; box-shadow: var(--shadow-lg); font-size: 13px; border-left: 3px solid; animation: slideIn 0.3s ease; }
.flash.success { border-color: var(--green); color: var(--green); }
.flash.error { border-color: var(--red); color: var(--red); }
.flash.warning{border-color:var(--orange,#e67e22);color:var(--orange,#e67e22);background:#fff3e6}
.flash.info { border-color: var(--navy); color: var(--navy); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ PRODUCT DETAIL ============ */
.pd-grid { display: grid; grid-template-columns: 480px 1fr 320px; gap: 28px; padding: 28px 0; }
.pd-gallery { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.pd-main-img { aspect-ratio: 1; background: linear-gradient(135deg, #f7f8fb 0%, #e8edf5 100%); border-radius: 4px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pd-thumb { aspect-ratio: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; overflow: hidden; transition: border 0.2s; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--gold-warm); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pd-info h1 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.pd-meta { display: flex; gap: 20px; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.pd-meta b { color: var(--ink); font-weight: 700; margin-left: 4px; }
.pd-price-block { background: var(--bg-soft); padding: 18px 20px; border-radius: 4px; margin-bottom: 18px; border-left: 3px solid var(--gold-warm); }
.pd-price { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.pd-price-was { font-size: 14px; color: var(--ink-4); text-decoration: line-through; margin-left: 12px; }
.pd-discount { display: inline-block; background: var(--navy); color: #fff; padding: 3px 10px; border-radius: 2px; font-size: 11px; font-weight: 700; margin-left: 8px; }
.pd-fits { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 18px; }
.pd-fits h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 10px; }
.pd-fits ul { list-style: none; font-size: 13px; }
.pd-fits ul li { padding: 4px 0; color: var(--ink-2); }
.pd-fits ul li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.pd-buy { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-warm); border-radius: 4px; padding: 20px; height: fit-content; box-shadow: var(--shadow-sm); }
.pd-buy .lbl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; letter-spacing: 0.05em; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; width: fit-content; margin-bottom: 14px; }
.qty-input button { width: 36px; height: 36px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.qty-input button:hover { color: var(--navy); }
.qty-input input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 36px; font-size: 14px; font-weight: 700; }
.qty-input input:focus { outline: none; }

/* ============ CHAT ============ */
.chat-page { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 160px); background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background 0.2s; }
.chat-list-item:hover, .chat-list-item.active { background: var(--navy-soft); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-weight: 800; font-family: 'Playfair Display', serif; flex-shrink: 0; }
.chat-list-item .info { flex: 1; min-width: 0; }
.chat-list-item .name { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.chat-list-item .last { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-item .unread { background: var(--gold-warm); color: var(--navy-dark); font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 10px; }
.chat-window { display: flex; flex-direction: column; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: var(--bg-soft); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); }
.msg { max-width: 70%; padding: 9px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4; word-break: break-word; }
.msg.in { background: #fff; color: var(--ink); align-self: flex-start; border: 1px solid var(--line); }
.msg.out { background: var(--navy); color: #fff; align-self: flex-end; }
.msg-time { font-size: 10px; color: var(--ink-4); margin-top: 4px; padding: 0 6px; }
.msg-time.out { text-align: right; }
.chat-input { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #fff; }
.chat-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; outline: none; }
.chat-input input:focus { border-color: var(--gold-warm); }

/* ============ TIMELINE ============ */
.timeline { padding: 16px 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 16px; bottom: 16px; left: 12px; width: 2px; background: var(--line); }
.timeline-item { padding: 8px 0 8px 36px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 6px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline-item.done::before { border-color: var(--green); background: var(--green); }
.timeline-item.current::before { border-color: var(--gold-warm); background: var(--gold-warm); animation: pulse 1.5s infinite; }
.timeline-item .when { font-size: 11px; color: var(--ink-4); }
.timeline-item .what { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* ============ RESPONSIVE ============ */

/* Always: cho panel scroll ngang khi nội dung tràn */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
img { max-width: 100%; height: auto; }

/* ===== Large desktop ===== */
@media (max-width: 1380px) {
  nav.primary .promo-text { display: none; }
}
@media (max-width: 1180px) {
  .all-cats { min-width: 200px; padding: 0 16px; }
  .pd-grid { grid-template-columns: 420px 1fr 280px; }
}

/* ===== TABLET (1080px) ===== */
@media (max-width: 1080px) {
  header.main .wrap { grid-template-columns: auto 1fr auto; gap: 18px; }
    .hero-section .wrap { grid-template-columns: 1fr; }
  .cat-sidebar, .vs-card { max-width: 720px; margin: 0 auto; width: 100%; }
  .all-cats { min-width: auto; padding: 0 16px; }
  nav.primary .nav-link:nth-child(n+7), nav.primary .nav-item:nth-child(n+7) { display: none; }
  nav.primary .promo-text { display: none; }
  .prod-grid, .prod-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-feature { grid-row: auto; }
  footer .main-foot .wrap { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-card { grid-template-columns: 1fr; gap: 32px; padding: 36px 32px; }
  .pd-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  /* Sidebar → top horizontal scrolling nav */
  .dash-sidebar { padding: 10px 14px; }
  .dash-sidebar .who { border-bottom: none; margin-bottom: 8px; padding: 0; display: flex; gap: 12px; align-items: baseline; }
  .dash-sidebar .who .name { display: inline; margin: 0; font-size: 13px; }
  .dash-sidebar .who .role { display: inline; font-size: 10px; }
  .dash-nav { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 2px; }
  .dash-nav a { flex-shrink: 0; padding: 8px 12px; border-left: none; border-bottom: 3px solid transparent; font-size: 12px; white-space: nowrap; }
  .dash-nav a.active { border-left-color: transparent; border-bottom-color: var(--gold-warm); }
  .dash-nav .sec-label { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-page { grid-template-columns: 1fr; height: auto; min-height: 70vh; }
  .chat-list { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TABLET nhỏ (820px) ===== */
@media (max-width: 820px) {
  header.main { padding: 14px 0; }
  header.main .wrap { grid-template-columns: auto 1fr; gap: 14px; padding: 0 14px; }
  .header-actions {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 4px;
    gap: 4px;
  }
  .h-btn { flex-shrink: 0; min-width: 64px; padding: 8px 10px; }
  .search input { font-size: 13px; padding: 12px 14px; min-width: 0; }
  .search .cat span:first-child { display: none; }
  .search .cat { padding: 0 10px; }
  .top-bar .wrap { flex-wrap: wrap; gap: 8px; padding: 8px 14px; font-size: 11px; }
  .top-bar .left, .top-bar .right { gap: 10px; flex-wrap: wrap; }
  .top-bar .item:not(:first-child) { display: none; }
  .banner { padding: 40px 28px; min-height: 360px; }
  .banner h1 { font-size: 32px; }
  .banner p { font-size: 14px; }
  .banner .actions { flex-direction: column; align-items: stretch; }
  .banner .actions .btn { width: 100%; }
  .specialty-card { padding: 28px 24px; }
  .specialty-text h2 { font-size: 26px; }
  .promo-band .wrap { grid-template-columns: 1fr; padding: 0 14px; }
  .promo-card { padding: 28px 24px; }
  .promo-card h3 { font-size: 22px; }
  .pd-grid { gap: 18px; padding: 18px 0; }
  .pd-info h1 { font-size: 22px; }
  .pd-price { font-size: 28px; }
  .tbl { font-size: 12px; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-head h1 { font-size: 22px; }
  .sec-head { flex-wrap: wrap; padding: 0 14px; }
  .sec-head .title { padding: 12px 0; }
  .sec-tabs { margin-left: 0; overflow-x: auto; max-width: 100%; flex-wrap: nowrap; }
  .sec-tabs button, .sec-tabs a { padding: 12px 14px; flex-shrink: 0; }
  .sec-head .all-link { padding: 6px 0 12px; margin-left: 0; }
  .news-grid { padding: 14px; gap: 18px; }
  .news-feature h3 { font-size: 18px; }
  footer .newsletter-band .wrap { flex-direction: column; align-items: stretch; }
  footer .newsletter-band { padding: 28px 16px; }
  .nl-form { width: 100%; max-width: none; }
  .panel { overflow-x: auto; }
}

/* ===== MOBILE (640px) ===== */
@media (max-width: 640px) {
  header.main .wrap { grid-template-columns: auto 1fr; gap: 10px; padding: 0 12px; }
  .logo svg { width: 130px; height: auto; }
  .search { grid-column: 1 / -1; }
  .search input { font-size: 13px; padding: 10px 12px; }
  .search .submit { padding: 0 16px; font-size: 11px; }
  .search .cat { display: none; }
  .header-actions { display: none; }
  .top-bar .right { width: 100%; justify-content: flex-end; }
  nav.primary .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .all-cats { padding: 0 12px; font-size: 11px; min-width: auto; }
  .all-cats .arrow { display: none; }
  .all-cats .lines span { width: 14px; }
  nav.primary .nav-link, nav.primary .nav-item { padding: 0 10px; font-size: 11px; flex-shrink: 0; height: 42px; }
  nav.primary .nav-link:nth-child(n+5), nav.primary .nav-item:nth-child(n+5) { display: none; }
  .site-shell { box-shadow: 0 2px 6px rgba(15,35,66,0.08); }

  .banner { padding: 28px 20px; min-height: 240px; }
  .banner h1 { font-size: 24px; line-height: 1.1; margin-bottom: 12px; }
  .banner p { font-size: 13px; margin-bottom: 18px; line-height: 1.5; }
  .banner .badge { font-size: 10px; padding: 6px 12px; margin-bottom: 16px; }
  .banner-deco, .banner-mark { display: none; }

  .prod-grid, .prod-grid.cols-4, .prod-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .prod-card { padding: 0; }
  .prod-img { margin-bottom: 10px; }
  .prod-name { font-size: 12px; min-height: 32px; line-height: 1.3; }
  .prod-price .now { font-size: 18px; }
  .prod-price .was { font-size: 11px; }
  .prod-code { font-size: 9px; }
  .prod-rating { font-size: 10px; margin-bottom: 6px; }
  .prod-foot { padding-top: 8px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .prod-foot .btn { width: 100%; }

  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-tile { padding: 16px 10px; }
  .cat-tile h3 { font-size: 13px; }
  .cat-tile .num { font-size: 13px; margin-bottom: 8px; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-card { aspect-ratio: 2; padding: 12px; }
  .brand-card .name { font-size: 18px; }
  .brand-card .count { font-size: 10px; }

  .promo-band .wrap { grid-template-columns: 1fr; padding: 0 14px; gap: 12px; }
  .promo-card { padding: 22px 18px; }
  .promo-card h3 { font-size: 20px; }
  .promo-card p { font-size: 12px; margin-bottom: 14px; }

  .specialty-cats { grid-template-columns: 1fr; }
  .specialty-card { padding: 22px 16px; }
  .specialty-text h2 { font-size: 22px; }
  .specialty-text p { font-size: 13px; }
  .specialty-text .badge { font-size: 10px; }

  footer .main-foot { padding: 32px 16px 24px; }
  footer .main-foot .wrap { grid-template-columns: 1fr; gap: 28px; }
  .nl-form { width: 100%; flex-direction: column; }
  .nl-form input, .nl-form button { width: 100%; }
  .nl-text h3 { font-size: 22px; }
  .foot-bottom .wrap { flex-direction: column; align-items: center; gap: 8px; font-size: 11px; }
  .pay-list { flex-wrap: wrap; }
  .foot-social { flex-wrap: wrap; }

  .float-stack { right: 10px; bottom: 10px; gap: 6px; }
  .float-btn { padding: 9px 16px; font-size: 10px; }

  .form-row, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 8px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 14px 16px; }
  .kpi .val { font-size: 20px; }
  .kpi .lbl { font-size: 10px; }

  .pd-grid { padding: 12px 0; gap: 14px; }
  .pd-gallery, .pd-buy { width: 100%; }
  .pd-info h1 { font-size: 20px; }
  .pd-price { font-size: 24px; }
  .pd-meta { gap: 10px; font-size: 11px; flex-wrap: wrap; }

  section.block { padding: 18px 0; }
  section.block .wrap { padding: 0 12px; }
  .container { padding: 0 12px; }
  .hero-section { padding: 14px 0; }
  .hero-section .wrap { padding: 0 12px; gap: 12px; }

  .trust-item { padding: 16px 14px; gap: 12px; }
  .trust-item .num { font-size: 28px; min-width: 36px; }
  .trust-item .ttl { font-size: 13px; }
  .trust-item .desc { font-size: 11px; }

  .news-grid { padding: 12px; gap: 14px; }
  .news-feature h3 { font-size: 16px; }
  .news-feature .img { aspect-ratio: 16/10; font-size: 18px; }
  .news-side .img { width: 72px; font-size: 16px; }
  .news-side h4 { font-size: 12px; }

  .dash-main { padding: 18px 14px; }
  .dash-head h1 { font-size: 20px; }
  .dash-head .sub { font-size: 12px; }
  .dash-head > a.btn, .dash-head > button.btn { width: 100%; }

  .empty-state { padding: 32px 14px; }
  .empty-state .em-icon { font-size: 44px; }
  .empty-state h3 { font-size: 17px; }
  .empty-state p { font-size: 13px; }

  .panel { margin-bottom: 14px; overflow-x: auto; }
  .panel-head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .panel-body { padding: 14px; }
  .tbl { font-size: 11px; }
  .tbl th, .tbl td { padding: 8px 6px; }

  .btn { padding: 10px 18px; font-size: 11px; }
  .btn-lg { padding: 12px 22px; font-size: 12px; }
  .btn-sm { padding: 7px 12px; font-size: 10px; }

  .chat-page { height: 80vh; }
  .chat-msgs { padding: 14px; }
  .msg { max-width: 85%; font-size: 12px; }

  /* Voucher card on mobile */
  div[style*="grid-template-columns:120px 1fr auto"] { grid-template-columns: 100px 1fr !important; }
  div[style*="grid-template-columns:120px 1fr auto"] > *:nth-child(3) { grid-column: 1 / -1; padding: 8px 14px 12px !important; }
}

/* ===== SMALL PHONE (380px) ===== */
@media (max-width: 380px) {
  .prod-grid, .prod-grid.cols-4, .prod-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .brands-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .banner h1 { font-size: 20px; }
  .banner .badge { font-size: 9px; padding: 4px 10px; }
  .specialty-text h2 { font-size: 20px; }
  .pd-info h1 { font-size: 18px; }
  .pd-price { font-size: 22px; }
  .top-bar { font-size: 10px; }
  .top-bar .wrap { padding: 6px 10px; }
  .logo svg { width: 110px; }
}

/* ===== Stack INLINE-STYLE grids on small screens ===== */
@media (max-width: 820px) {
  /* Bắt các pattern grid-template-columns inline cố định 2 cột */
  [style*="grid-template-columns:1fr 380px"],
  [style*="grid-template-columns: 1fr 380px"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:240px 1fr"],
  [style*="grid-template-columns: 240px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Position sticky con của các grid được unstack */
  [style*="position:sticky"], [style*="position: sticky"] { position: static !important; }
}
@media (max-width: 1080px) {
  [style*="grid-template-columns:1fr 380px"],
  [style*="grid-template-columns: 1fr 380px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== TOUCH-FRIENDLY ===== */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-link, .h-btn, .nav-link, .nav-item, .car-chip, .prod-fav { min-height: 36px; }
  .qty-input button { width: 40px; height: 40px; }
  input[type="number"], input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], select, textarea { font-size: 16px; /* tránh iOS zoom */ }
}

/* ── Quill editor toolbar fix ── */
.ql-toolbar { position:relative; z-index:100; }
.ql-tooltip { z-index:1000 !important; }
.ql-picker-options { z-index:500 !important; }
.dash-main { overflow: visible !important; }

/* Hero banner fix — căn giữa, cỡ chữ đều */
.banner { text-align: center !important; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.banner h1 { font-size: 48px !important; line-height: 1.2 !important; text-align: center !important; }
.banner h1 .accent { font-size: 48px !important; }
.banner p { font-size: 18px !important; text-align: center !important; max-width: 480px; }
.banner .actions { justify-content: center !important; }
@media (max-width: 768px) {
  .banner h1 { font-size: 32px !important; }
  .banner h1 .accent { font-size: 32px !important; }
  .banner p { font-size: 15px !important; }
}




/* ══ CONSOLIDATED UI FIXES ══ */

/* 1. Nav "DANH MỤC SẢN PHẨM" button - make it bigger */
nav.primary .all-cats {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
  min-width: 240px !important;
  white-space: nowrap !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* 2. Header search button */
header.main .search {
  flex: 1;
  display: flex;
  min-width: 220px;
  max-width: 520px;
}
header.main .search input {
  flex: 1;
  min-width: 160px;
}
header.main .search .submit {
  flex-shrink: 0;
  min-width: 100px;
  white-space: nowrap;
  overflow: visible;
}

/* 3. Admin sidebar active highlight */
.dash-nav a.active,
.dash-nav a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
  border-left: 3px solid var(--gold-warm, #c9a84c) !important;
}

/* 4. Admin filter bar - uniform sizing */
.filter-bar, .admin-filter {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select, .filter-bar .form-control,
.admin-filter input, .admin-filter select {
  height: 42px !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
}
.filter-bar input[type="text"], .admin-filter input[type="text"] {
  min-width: 200px;
}
.filter-bar select, .admin-filter select {
  min-width: 120px;
}
.filter-bar input[type="date"], .admin-filter input[type="date"] {
  min-width: 140px;
}


/* 5. Admin filter inputs - uniform height/border */
.frm-input {
  height: 42px !important;
  padding: 8px 14px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #333 !important;
  transition: border-color 0.2s;
}
.frm-input:focus {
  border-color: var(--navy) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(15,35,66,0.08) !important;
}
select.frm-input {
  appearance: auto !important;
  cursor: pointer;
}

/* Fix: product card layout - image flush to edges, text padded */
.prod-card .prod-code,
.prod-card .prod-name,
.prod-card .prod-fitment,
.prod-card .prod-rating,
.prod-card .prod-price,
.prod-card .prod-foot { padding-left: 16px; padding-right: 16px; }
.prod-card .prod-foot { padding-bottom: 14px; }
.prod-card .prod-code { padding-top: 14px; }
.prod-img { margin-bottom: 0; border-radius: 0; }

/* Hide category nav from toolbar */
nav.primary .all-cats { display: none !important; }

/* Fix: Product card spacing & separation */
.prod-card { 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  overflow: hidden;
}
.prod-card:hover {
  border-color: var(--gold-warm);
}
.prod-img { border-radius: 0; }


/* Fix v2: Remove ALL borders from Quill editor content in product descriptions */
.pd-content-html,
.pd-content-html *,
.pd-content-html p,
.pd-content-html span,
.pd-content-html div,
.pd-content-html strong,
.pd-content-html em,
.pd-content-html h1, .pd-content-html h2, .pd-content-html h3,
.pd-content-html h4, .pd-content-html h5, .pd-content-html h6,
.pd-content-html ul, .pd-content-html ol, .pd-content-html li {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Only keep borders for actual tables */
.pd-content-html table { border-collapse: collapse !important; }
.pd-content-html table td,
.pd-content-html table th { border: 1px solid #ddd !important; padding: 8px !important; }
.pd-content-html h1, .pd-content-html h2, .pd-content-html h3,
.pd-content-html h4, .pd-content-html h5, .pd-content-html h6 {
  color: var(--navy); margin-top: 1.2em; margin-bottom: 0.6em; font-weight: 700;
}
.pd-content-html p { margin-bottom: 0.8em; line-height: 1.8; }
.pd-content-html ul, .pd-content-html ol { padding-left: 1.5em; margin-bottom: 1em; }
.pd-content-html li { margin-bottom: 0.3em; }
.pd-content-html img { max-width: 100%; height: auto; border-radius: 4px !important; }
.pd-content-html .ql-editor, .pd-content-html [class*="ql-"] {
  border: none !important; padding: 0 !important;
}

/* Fix: Product card name and button spacing */
.prod-card .prod-name {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 40px;
}
.prod-card .prod-price {
  padding-top: 4px;
  padding-bottom: 8px;
}
.prod-card .prod-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

/* Product card inner content padding fix */
.prod-card > div, .prod-card > a:not(.prod-img-wrap) {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
.prod-card > div:last-child {
    padding-bottom: 14px !important;
}


/* ================================================================
   QUILL EDITOR - Font size & family dropdown labels
   ================================================================ */
/* Size picker: show actual px value */
.ql-snow .ql-picker.ql-size .ql-picker-label::before { content: 'Cỡ chữ'; font-size: 13px; }
.ql-snow .ql-picker.ql-size .ql-picker-item::before { content: attr(data-value); }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value]::before { content: attr(data-value); }

/* Header picker */
.ql-snow .ql-picker.ql-header .ql-picker-label::before { content: 'Bình thường'; }
.ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Bình thường'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: 'H1 - Tiêu đề lớn'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'H2 - Tiêu đề'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'H3 - Tiêu đề phụ'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { content: 'H4'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before { content: 'H5'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before { content: 'H6'; }

/* Font family picker */
.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-snow .ql-picker.ql-font .ql-picker-item::before { content: 'Sans Serif'; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before { content: 'Serif'; font-family: Georgia, serif; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before { content: 'Monospace'; font-family: monospace; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="sans-serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="sans-serif"]::before { content: 'Sans Serif'; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="arial"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="arial"]::before { content: 'Arial'; font-family: Arial; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="times"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="times"]::before { content: 'Times New Roman'; font-family: 'Times New Roman', serif; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="verdana"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="verdana"]::before { content: 'Verdana'; font-family: Verdana; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="tahoma"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="tahoma"]::before { content: 'Tahoma'; font-family: Tahoma; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="georgia"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="georgia"]::before { content: 'Georgia'; font-family: Georgia; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="impact"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="impact"]::before { content: 'Impact'; font-family: Impact; }
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="courier"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="courier"]::before { content: 'Courier New'; font-family: 'Courier New'; }
/* Apply fonts to content */
.ql-font-serif { font-family: Georgia, 'Times New Roman', serif !important; }
.ql-font-monospace { font-family: 'Courier New', Courier, monospace !important; }
.ql-font-sans-serif { font-family: Arial, Helvetica, sans-serif !important; }
.ql-font-arial { font-family: Arial, Helvetica, sans-serif !important; }
.ql-font-times { font-family: 'Times New Roman', Times, serif !important; }
.ql-font-verdana { font-family: Verdana, Geneva, sans-serif !important; }
.ql-font-tahoma { font-family: Tahoma, Verdana, sans-serif !important; }
.ql-font-georgia { font-family: Georgia, serif !important; }
.ql-font-impact { font-family: Impact, Charcoal, sans-serif !important; }
.ql-font-courier { font-family: 'Courier New', Courier, monospace !important; }

/* ===== PAGINATION - Smart ellipsis style ===== */
.pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: visible; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  background: #fff; white-space: nowrap;
}
.pg-btn:hover { background: var(--navy-soft); border-color: var(--navy); color: var(--navy); }
.pg-current { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; cursor: default; }
.pg-ellipsis { border: none; background: transparent; cursor: default; color: var(--ink-3); min-width: 24px; }
.pg-prev, .pg-next { font-size: 18px; font-weight: 400; }
.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.pg-info { font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }

/* ===== CSV DROP ZONE ===== */
.csv-dropzone {
  border: 2px dashed var(--navy); border-radius: 10px;
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all 0.25s; background: var(--navy-soft);
  position: relative; margin-bottom: 12px;
}
.csv-dropzone:hover, .csv-dropzone.drag-over { 
  border-color: var(--gold); background: #fffbeb; 
  box-shadow: 0 0 0 4px rgba(201,161,74,0.15);
}
.csv-dropzone.drag-reject { 
  border-color: #dc2626; background: #fef2f2; 
  box-shadow: 0 0 0 4px rgba(220,38,38,0.15);
  animation: shake 0.3s ease;
}
.csv-dropzone.file-ok { 
  border-color: #059669; background: #ecfdf5; border-style: solid; 
}
.csv-dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
}
.csv-dropzone .dz-icon { font-size: 32px; margin-bottom: 8px; display: block; }
.csv-dropzone .dz-text { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.csv-dropzone .dz-subtext { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.csv-dropzone .dz-filename { 
  font-size: 13px; font-weight: 700; color: #059669; 
  margin-top: 8px; display: none; 
}
.csv-dropzone .dz-error {
  font-size: 12px; font-weight: 700; color: #dc2626;
  margin-top: 6px; display: none; background: #fee2e2;
  padding: 6px 12px; border-radius: 6px; border: 1px solid #fca5a5;
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

/* ===== QUILL EDITOR PICKER DROPDOWN FIX ===== */
.ql-picker-options {
  max-height: 200px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.ql-snow .ql-picker.ql-size .ql-picker-options,
.ql-snow .ql-picker.ql-font .ql-picker-options,
.ql-snow .ql-picker.ql-header .ql-picker-options {
  max-height: 200px !important;
  overflow-y: auto !important;
}

/* ===== CHAT INPUT VISIBILITY FIX ===== */
.chat-page {
  min-height: 75vh !important;
  height: 75vh !important;
}
.chat-window {
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.chat-msgs {
  flex: 1 1 auto !important;
  min-height: 200px !important;
  overflow-y: auto !important;
}
.chat-input, .chat-input-bar {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10 !important;
  padding: 12px 16px !important;
  border-top: 1px solid var(--line) !important;
  display: flex !important;
  gap: 8px !important;
  background: #fff !important;
}
.chat-input input, .chat-input-bar textarea {
  flex: 1 !important;
  min-width: 0 !important;
}
@media (max-width: 768px) {
  .chat-page { height: 70vh !important; }
}

/* Price no-wrap fix */
.product-price, .price-current, .price-old, .price {
  white-space: nowrap !important;
}

/* Header cart value nowrap */
.h-btn .value { white-space: nowrap; }
.h-btn .label { white-space: nowrap; }

/* Enhanced responsive fixes */
@media (max-width: 820px) {
  /* Chat mobile */
  .chat-page { flex-direction: column !important; }
  .chat-list { width: 100% !important; max-height: 180px !important; border-right: none !important; border-bottom: 1px solid #eee; overflow-y: auto; }
  .chat-window { width: 100% !important; flex: 1; }
  .chat-head { padding: 10px 12px !important; }
  .chat-msgs { padding: 12px !important; }
  .chat-input-area { padding: 8px !important; }
  .chat-input-row { gap: 6px !important; }
  
  /* Profile mobile */
  .sec-card .panel-body { padding: 14px !important; }
  
  /* Product detail mobile */
  .pd-grid { grid-template-columns: 1fr !important; }
  .pd-sidebar { position: static !important; }
  
  /* Tables scroll */
  .table-responsive, .orders-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive table { min-width: 500px; }
  
  /* Nav scroll */
  .nav-main .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-main .nav-links { min-width: max-content; }
}

@media (max-width: 640px) {
  /* Header compact */
  .header-main .wrap { gap: 6px; padding: 8px 10px !important; }
  .header-main .logo img { height: 28px; }
  .header-actions .h-btn .label { display: none; }
  .header-actions .h-btn .value { font-size: 10px; }
  .search-bar { order: 10; width: 100%; }
  
  /* Product cards 2-col */
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .brands-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  
  /* Smaller prices */
  .pd-price-big { font-size: 20px !important; }
}

/* Product description heading alignment - prevent touching black border */
.pd-content-html {
  padding: 0 16px !important;
}
.pd-content-html h1, .pd-content-html h2, .pd-content-html h3,
.pd-content-html h4, .pd-content-html h5, .pd-content-html h6 {
  margin-top: 22px !important;
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
  padding-left: 0 !important;
}
.pd-content-html p, .pd-content-html ul, .pd-content-html ol,
.pd-content-html li, .pd-content-html span, .pd-content-html div {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pd-content-html table {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Chat attachment preview - ensure visibility */
#attachPreview {
  z-index: 100 !important;
  position: relative !important;
}
.chat-input-area {
  flex-shrink: 0 !important;
}

/* Fix chat message layout */
.msg-row .chat-avatar {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  font-size: 14px !important;
  border-radius: 50% !important;
  aspect-ratio: 1/1 !important;
  align-self: flex-start !important;
}
.msg-content {
  flex: 1 !important;
  min-width: 60px !important;
  overflow: hidden !important;
}
.msg-bubble {
  overflow: hidden !important;
}
.msg-bubble img {
  max-width: 100% !important;
  height: auto !important;
}


/* MOBILE PROD CARD FIX */
@media (max-width: 768px) {
  .prod-card {
    min-width: 0 !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .prod-card .prod-img-wrap,
  .prod-card > a:first-child {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .sec-card {
    overflow: hidden !important;
    padding: 12px !important;
  }
  .sec-card .prod-grid {
    overflow: hidden !important;
  }
}


/* ===== FIX 2026-05-23: Hide mobile buttons on desktop ===== */
.mobile-icon-btn { display: none !important; }
.mobile-right-actions { display: none !important; }
@media (max-width: 640px) {
  .mobile-right-actions { display: flex !important; align-items: center; gap: 4px; }
  .mobile-icon-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    color: var(--navy) !important;
  }
  .mobile-icon-btn:hover { color: var(--gold-warm) !important; }
}

/* Block 1 order removed */



/* Block 2 order removed */


/* ═══════════════════════════════════════════════════════ */
/* PROD-CARD: Name ABOVE Image (2026-05-23 FINAL)        */
/* ═══════════════════════════════════════════════════════ */
.pc-meta {
  font-size: 10px;
  color: var(--ink-4);
  margin-bottom: 3px;
  padding: 6px 10px 0;
}
.pc-name {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--navy-dark);
  text-decoration: none;
  padding: 0 10px 6px;
  min-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pc-img-link {
  display: block;
  background: #f5f7fb;
  aspect-ratio: 1;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  position: relative;
  margin: 0 0 8px;
}
.pc-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ccc;
}
.pc-badge {
  position: absolute;
  left: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.pc-badge-sale {
  top: 8px;
  background: var(--navy);
  color: #fff;
}
.pc-badge-new {
  background: var(--gold-warm);
  color: var(--navy-dark);
  font-size: 10px;
}
.pc-rating {
  margin-bottom: 4px;
  padding: 0 10px;
}
.pc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 6px;
  padding: 0 10px;
}
.pc-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.pc-price-old {
  text-decoration: line-through;
  color: var(--ink-4);
  font-size: 11px;
  margin-left: 4px;
  white-space: nowrap;
}
.pc-cart-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f2f7;
  border: 1.5px solid #d0d5e0;
  color: #6b7a99;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.pc-cart-btn:hover {
  background: #1a3258;
  color: #fff;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 8px;
}
.pc-stock-ok {
  color: #27ae60;
  font-size: 11px;
  font-weight: 600;
}
.pc-stock-out {
  color: #e74c3c;
  font-size: 11px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════ */
/* PRODUCT DETAIL: Name ABOVE Gallery on Mobile           */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .pd-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  /* On mobile, move the info div (product name) ABOVE gallery */
  .pd-grid > .pd-gallery {
    order: 2 !important;
  }
  .pd-grid > div:not(.pd-gallery) {
    order: 1 !important;
  }
  /* Make product name stand out on mobile */
  .pd-grid > div:not(.pd-gallery) h1 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  /* Reduce gallery size on mobile */
  .pd-main-img img {
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
  }
}



/* === FIX 524: Center copyright and pagination on mobile === */
@media (max-width: 768px) {
  .foot-bottom .wrap {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .pagination-wrap {
    justify-content: center !important;
  }
}


/* === FIX 524: Align Header Buttons (Cart and Profile) === */
.header-actions {
  display: flex !important;
  align-items: stretch !important;
  gap: 6px !important;
}

.header-actions .h-btn {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  height: 52px !important;
  box-sizing: border-box !important;
  padding: 4px 12px !important;
}

.header-actions .h-btn .label {
  margin-bottom: 2px !important;
}

.header-actions .h-btn .value {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 22px !important;
  line-height: 22px !important;
  margin: 0 !important;
}

/* Nút tài khoản có cấu trúc flex ngang */
.header-actions .h-btn[href="/customer/profile"], 
.header-actions .h-btn[href="/customer/profile"] * {
  box-sizing: border-box;
}

.header-actions .h-btn[href="/customer/profile"] {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 12px !important;
}

.header-actions .h-btn[href="/customer/profile"] > div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
}

.header-actions .h-btn[href="/customer/profile"] .label {
  margin-bottom: 0px !important;
}

.header-actions .h-btn[href="/customer/profile"] .value {
  height: auto !important;
  line-height: 1.2 !important;
  justify-content: flex-start !important;
}

/* Đồng bộ vị trí badge đếm trên desktop */
.header-actions .h-btn .count {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  background: var(--gold-warm) !important;
  color: var(--navy-dark) !important;
  border: 1px solid #fff !important;
}


/* === FIX 524: Align Mobile Header Icons and Badges === */
@media (max-width: 640px) {
  .mobile-right-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
  
  .mobile-right-actions a.mobile-icon-btn,
  .mobile-right-actions a.mobile-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  
  .mobile-right-actions a.mobile-icon-btn svg,
  .mobile-right-actions a.mobile-cart-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Badge đếm số trên mobile cho Yêu thích, Giỏ hàng, Thông báo */
  .mobile-right-actions a span.fav-badge-mobile,
  .mobile-right-actions a span.cart-badge-mobile,
  .mobile-right-actions a[href="/customer/notifications"] span {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: var(--gold-warm) !important;
    color: var(--navy-dark) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    min-width: 15px !important;
    height: 15px !important;
    line-height: 13px !important;
    text-align: center !important;
    padding: 0 3px !important;
    border: 1px solid #fff !important;
    box-sizing: border-box !important;
    display: inline-block !important;
  }

  /* Căn chỉnh nút toggle menu */
  .mobile-right-actions .mobile-menu-toggle {
    height: 36px !important;
    width: 36px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
/* ==========================================================================
   2026-05-24: ADVANCED UI & RESPONSIVE LAYOUT OVERRIDES
   ========================================================================== */

/* 1. Badge Alignments & Layout on Mobile Header */
.mobile-right-actions a.mobile-icon-btn,
.mobile-right-actions a.mobile-cart-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-right-actions a.mobile-icon-btn span.fav-badge-mobile,
.mobile-right-actions a.mobile-cart-btn span.cart-badge-mobile {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  margin: 0 !important;
  z-index: 10 !important;
  background: var(--gold-warm) !important;
  color: var(--navy-dark) !important;
  border: 1.5px solid #fff !important;
}

/* 2. Product Card Layout Restructure (Image between Name and Price) */
.pc-img-link {
  border-radius: 4px !important;
  margin: 0 10px 10px !important;
  display: block !important;
  position: relative !important;
  aspect-ratio: 1 !important;
}

.pc-img-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.pc-name {
  display: block !important;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  padding: 0 10px 8px !important;
}

.prod-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.prod-card .pc-footer {
  margin-top: auto !important;
}

/* 3. Favorites Page Layout & Responsiveness */
.fav-btn-group {
  display: flex !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding: 0 10px 10px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .fav-btn-group {
    gap: 4px !important;
  }
  .fav-btn-group .btn-navy {
    padding: 8px 4px !important;
    font-size: 11px !important;
    letter-spacing: -0.3px !important;
  }
  .fav-btn-group .fav-remove-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
  }
}

@media (max-width: 360px) {
  .fav-btn-group {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .fav-btn-group .btn-navy,
  .fav-btn-group .fav-remove-btn {
    width: 100% !important;
    height: 34px !important;
  }
}



/* ==========================================================================
   2026-05-24: ADVANCED LAYOUT CORRECTIONS (HEIGHTS, BADGES, GALLERY ORDER)
   ========================================================================== */

/* 1. Equal Heights for Action Buttons in Favorites Page */
.fav-btn-group .btn,
.fav-btn-group .btn-navy,
.fav-btn-group .fav-remove-btn,
.fav-btn-group button {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* 2. Perfectly Aligned Header Badges */
.mobile-right-actions a span.fav-badge-mobile,
.mobile-right-actions a span.cart-badge-mobile,
.mobile-right-actions a span.noti-badge-mobile {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  font-size: 10px !important;
  font-weight: bold !important;
  border-radius: 50% !important;
  width: 17px !important;
  height: 17px !important;
  line-height: 1 !important;
  border: 1.5px solid #fff !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  z-index: 10 !important;
}

.mobile-right-actions a span.fav-badge-mobile,
.mobile-right-actions a span.cart-badge-mobile {
  background: var(--gold-warm) !important;
  color: var(--navy-dark) !important;
}

.mobile-right-actions a span.noti-badge-mobile {
  background: #e74c3c !important;
  color: #fff !important;
}

.prod-grid > .prod-card.hidden-card {
  display: none !important;
}

/* 3. Product Detail Mobile: Image between Title and Price */
@media (max-width: 900px) {
  .pd-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  .pd-grid > .pd-gallery {
    order: 1 !important; /* Gallery photo comes first in pd-grid */
    margin-bottom: 12px !important;
    position: relative !important;
    top: 0 !important;
  }
  .pd-grid > div:not(.pd-gallery) {
    order: 2 !important; /* Price and description columns come second */
  }
}



/* ==========================================================================
   2026-05-24: ADVANCED LAYOUT CORRECTIONS (HEIGHTS, BADGES, GALLERY ORDER)
   ========================================================================== */

/* 1. Equal Heights for Action Buttons in Favorites Page */
.fav-btn-group .btn,
.fav-btn-group .btn-navy,
.fav-btn-group .fav-remove-btn,
.fav-btn-group button {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* 2. Perfectly Aligned Header Badges */
.mobile-right-actions a.mobile-icon-btn span.fav-badge-mobile,
.mobile-right-actions a.mobile-cart-btn span.cart-badge-mobile {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  background: var(--gold-warm) !important;
  color: var(--navy-dark) !important;
  font-size: 10px !important;
  font-weight: bold !important;
  border-radius: 50% !important;
  width: 17px !important;
  height: 17px !important;
  line-height: 1 !important;
  border: 1.5px solid #fff !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  z-index: 10 !important;
}

/* 3. Product Detail Mobile: Image between Title and Price */
@media (max-width: 900px) {
  .pd-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  .pd-grid > .pd-gallery {
    order: 1 !important; /* Gallery photo comes first in pd-grid */
    margin-bottom: 12px !important;
  }
  .pd-grid > div:not(.pd-gallery) {
    order: 2 !important; /* Price and description columns come second */
  }
}
/* === FIX: Admin table text overflow === */
.tbl td, .tbl th {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 300px;
}
.tbl td { word-break: break-word; }
.panel-body { overflow-x: auto; }

/* === FIX: Mobile fav badge === */
.fav-badge-mobile {
  position: absolute; top: 0; right: 0;
  background: var(--gold-warm); color: var(--navy-dark);
  font-size: 9px; font-weight: bold; border-radius: 10px;
  min-width: 15px; height: 15px; line-height: 15px;
  text-align: center; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.noti-badge-mobile {
  position: absolute; top: 0; right: 0;
  background: #e74c3c; color: #fff;
  font-size: 9px; font-weight: bold; border-radius: 10px;
  min-width: 15px; height: 15px; line-height: 15px;
  text-align: center; padding: 0 3px;
}


/* === Admin sidebar section labels === */
.sb-section {
  padding: 14px 20px 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* === sys-autowrap: tự động xuống dòng khi viết hết khung (toàn hệ thống) === */
textarea {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}
input[type=text], input[type=email], input[type=search], input[type=url], input[type=tel], input[type=password] {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* PCBG-BLURFILL */
.prod-img-wrap{position:relative !important;overflow:hidden !important;background:#fff !important}
.prod-img-wrap::before{content:"" !important;position:absolute !important;inset:0 !important;z-index:0 !important;background-image:var(--pcbg,none) !important;background-size:cover !important;background-position:center !important;filter:blur(16px) saturate(1.08) !important;transform:scale(1.18) !important;pointer-events:none !important}
.prod-img-wrap>img{position:relative !important;z-index:1 !important;width:100% !important;height:100% !important;object-fit:cover !important;padding:0 !important}
.prod-img-wrap>span{z-index:2 !important}

/* PCBG-UNIFORM */  /* identical square frame on every breakpoint */
.prod-card a.prod-img-wrap[style*="aspect-ratio"]{aspect-ratio:1 !important;height:auto !important;width:100% !important}
.prod-card a.prod-img-wrap[style*="aspect-ratio"]>img{width:100% !important;height:100% !important;max-height:none !important;min-height:0 !important;object-fit:cover !important;padding:0 !important;box-sizing:border-box !important}
.prod-card a.prod-img-wrap[style*="aspect-ratio"]::before{z-index:0 !important}

/* HIDE-DUP-BREADCRUMB */  /* an breadcrumb trung lap cua tung trang, giu .site-breadcrumb auto cua head.php */
.breadcrumb{display:none !important}
