/* Máy tính Trần Đức — storefront + admin styles */
/* Be Vietnam Pro — SIL Open Font License 1.1 (self-hosted) */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bvp-400-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bvp-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bvp-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bvp-500-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bvp-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bvp-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bvp-600-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bvp-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bvp-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/bvp-700-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/bvp-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/bvp-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #e70303; --brand-600: #c40202; --brand-50: #fff1f1; --accent: #ffb400;
  --ink: #1d1f23; --ink-2: #4b5059; --muted: #7a808a; --line: #e6e8ec; --bg: #f3f4f6; --card: #fff;
  --ok: #128a3e; --bad: #c40202; --zalo: #0068ff;
  --radius: 10px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.14);
  --wrap: 1240px;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); line-height: 1.5; -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); font-size: 15px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.ic { flex: none; vertical-align: middle; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
.hide-sm { } @media (max-width: 720px) { .hide-sm { display: none !important; } }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- buttons, chips, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand-50); }
.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: #fff7d6; color: var(--brand-600); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--ghost { background: transparent; }
.btn--text { background: none; border: 0; color: var(--muted); }
.btn--zalo { background: var(--zalo); border-color: var(--zalo); color: #fff; } .btn--zalo:hover { color: #fff; filter: brightness(1.08); }
.btn--danger { border-color: var(--bad); color: var(--bad); } .btn--danger:hover { background: var(--bad); color: #fff; }
.btn--block { width: 100%; } .btn--lg { min-height: 50px; font-size: 17px; } .btn--sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn--grow { flex: 1; }
.btn--grow span { display: flex; flex-direction: column; line-height: 1.2; } .btn--grow small { font-weight: 400; font-size: 12px; opacity: .9; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.iconbtn:hover { background: rgba(0,0,0,.05); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.chip.is-active, .chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; }
.badge--sale { background: var(--brand); } .badge--oos { background: #6b7280; left: auto; right: 8px; } .badge--lg { font-size: 15px; padding: 4px 10px; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #fff3cd; font-size: 12px; }
.note { background: #fff8e1; border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; }

/* ---------- header */
.topbar { background: #1d1f23; color: #d6d8dc; font-size: 13px; }
.topbar__in { display: flex; gap: 20px; align-items: center; min-height: 34px; }
.topbar__in span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__right { margin-left: auto; display: flex; gap: 18px; }
.topbar a { display: inline-flex; gap: 6px; align-items: center; } .topbar a:hover { color: #fff; }
.header { background: var(--brand); position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { background: #fff; border-radius: 8px; padding: 4px 8px; display: block; flex: none; }
.logo img { display: block; width: 130px; height: auto; }
.header__burger { display: none; color: #fff; }
.search { position: relative; flex: 1; display: flex; max-width: 620px; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 16px; background: #fff; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.search button { width: 56px; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #1d1f23; color: #fff; cursor: pointer; }
.search--inline { margin: 18px auto; max-width: 440px; } .search--inline input { border: 1px solid var(--line); }
.suggest { position: absolute; top: 48px; left: 0; right: 0; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border: 0; } .suggest a:hover, .suggest a.is-active { background: var(--brand-50); }
.suggest img { width: 44px; height: 44px; object-fit: contain; } .suggest b { display: block; color: var(--brand); font-size: 13px; }
.header__hotline, .header__cart { display: flex; align-items: center; gap: 8px; color: #fff; flex: none; }
.header__hotline:hover, .header__cart:hover { color: #fff3c4; }
.header__hotline span { display: flex; flex-direction: column; line-height: 1.15; } .header__hotline small { font-size: 12px; opacity: .9; } .header__hotline b { font-size: 17px; }
.header__cart { position: relative; font-weight: 600; }
.cart-count { position: absolute; top: -6px; left: 16px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #1d1f23; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-count.bump { animation: bump .4s; } @keyframes bump { 50% { transform: scale(1.4); } }

.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: stretch; gap: 16px; }
.nav__cats { position: relative; width: 260px; flex: none; }
.nav__catbtn { width: 100%; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 0; background: #1d1f23; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; cursor: pointer; }
.nav__catdrop { display: none; position: absolute; left: 0; top: 46px; width: 260px; z-index: 25; }
.nav__cats:hover .nav__catdrop, .nav__cats:focus-within .nav__catdrop { display: block; }
@media (min-width: 1081px) {
  .is-home .nav__catdrop { display: block; top: 62px; }
  .is-home .catmenu { border-radius: var(--radius); box-shadow: var(--shadow); }
  .is-home .hero { min-height: 440px; }
}
.nav__links { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__links a { display: flex; align-items: center; height: 46px; padding: 0 12px; font-weight: 600; font-size: 14px; text-transform: uppercase; white-space: nowrap; }
.nav__links a.hot { color: var(--brand); }

.catmenu { list-style: none; margin: 0; padding: 6px 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); }
.catmenu > li { position: relative; }
.catmenu > li > a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; }
.catmenu > li > a span { flex: 1; }
.catmenu > li:hover > a { background: var(--brand-50); color: var(--brand); }
.catmenu__arrow { opacity: .5; }
.catmenu__sub { display: none; position: absolute; left: 100%; top: 0; min-width: 260px; min-height: 100%; background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; }
.catmenu > li:hover > .catmenu__sub { display: block; }
.catmenu__subtitle { font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.catmenu__sub ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.catmenu__sub a { display: block; padding: 5px 0; font-size: 14px; }

.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); }
.drawer__panel { width: min(340px, 88vw); height: 100%; overflow-y: auto; background: #fff; padding: 12px 16px 24px; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer .catmenu { box-shadow: none; padding: 0; }
.drawer .catmenu > li > a { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.drawer .catmenu__sub { display: block; position: static; box-shadow: none; padding: 4px 0 8px 32px; min-height: 0; }
.drawer .catmenu__subtitle, .drawer .catmenu__arrow { display: none; }
.drawer__links { list-style: none; padding: 0; margin: 12px 0 16px; } .drawer__links a { display: block; padding: 10px 4px; font-weight: 600; }

/* ---------- home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; margin: 16px 0; }
@media (min-width: 1081px) { .is-home .hero { padding-left: 276px; } }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 330px; box-shadow: var(--shadow); }
.slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 12px;
  color: #fff; padding: 34px 20px 44px 40px; position: relative; overflow: hidden; isolation: isolate; }
.hero__slide:hover { color: #fff; }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero__slide::after { content: ""; position: absolute; right: -80px; top: -60px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); z-index: -1; }
.hero__slide--build::before { background: radial-gradient(130% 130% at 100% 0%, #ff4d2e 0%, var(--brand) 42%, #7d0000 100%); }
.hero__slide--pc::before { background: linear-gradient(120deg, #101318 0%, #1f2530 55%, #3a1010 100%); }
.hero__slide--monitor::before { background: linear-gradient(120deg, #0b2a6b 0%, #1d4ed8 55%, #3b82f6 100%); }
.hero__slide h1, .hero__slide h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.hero__slide p { max-width: 470px; opacity: .92; margin: 0 0 18px; font-size: 15px; }
.hero__img { width: 100%; max-width: 260px; aspect-ratio: 1; justify-self: center; object-fit: contain; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.3); transform: rotate(2deg); transition: transform .5s; }
.hero__slide:hover .hero__img { transform: scale(1.03) rotate(0); }
.hero__kicker { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: #ffe08a; margin-bottom: 10px !important; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slider__dots { position: absolute; left: 40px; bottom: 16px; display: flex; gap: 8px; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s, background .25s; }
.slider__dots button.is-active { width: 26px; background: #fff; }
.hero__side { display: grid; gap: 14px; grid-template-rows: repeat(3, 1fr); }
.hero__tile { border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; overflow: hidden; position: relative; box-shadow: var(--shadow); transition: transform .15s; }
.hero__tile > div { display: flex; flex-direction: column; line-height: 1.3; position: relative; z-index: 1; }
.hero__tile b { font-size: 17px; } .hero__tile span { opacity: .9; font-size: 13px; } .hero__tile em { font-style: normal; font-weight: 700; font-size: 13px; margin-top: 6px; }
.hero__tile img { width: 92px; height: 92px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.hero__tileic { opacity: .25; flex: none; } .hero__tile:hover .hero__tileic { opacity: .4; }
.hero__tile--sale { background: linear-gradient(135deg, #ffc531, #ff7a00); color: #1d1f23; }
.hero__tile--pay { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.hero__tile--care { background: linear-gradient(135deg, #1d1f23, #3a3f48); }
.hero__tile:hover { color: inherit; transform: translateY(-1px); } .hero__tile--pay:hover, .hero__tile--care:hover { color: #fff; }
.usp { list-style: none; margin: 0 0 16px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.usp li { display: flex; gap: 12px; align-items: center; color: var(--brand); }
.usp div { display: flex; flex-direction: column; color: var(--ink); line-height: 1.3; } .usp span { font-size: 13px; color: var(--muted); }

.block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.block--hot { background: linear-gradient(180deg, #ffe9e9 0, #fff 140px); border-top: 3px solid var(--brand); }
.block__head { display: flex; align-items: center; margin-bottom: 14px; gap: 16px; }
.block__title { font-size: 20px; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; white-space: nowrap; }
.block__title .ic { color: var(--brand); }
.block--hot .block__title { color: var(--brand); }
.block__links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.block__links::-webkit-scrollbar { display: none; }
.block__links a { white-space: nowrap; padding: 5px 12px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 500; }
.block__links a:hover { background: var(--brand-50); }
.block__more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cattiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.cattile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px 10px; border-radius: var(--radius); background: var(--bg); font-size: 13px; transition: background .15s, transform .15s; }
.cattile:hover { background: var(--brand-50); transform: translateY(-2px); }
.cattile__img { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 4px; }
.cattile__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cattile__name { font-weight: 600; line-height: 1.25; } .cattile small { color: var(--muted); font-size: 11px; }
.buildbanner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; align-items: center; gap: 24px; padding: 24px 28px; margin-bottom: 16px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 200% at 100% 50%, rgba(231,3,3,.85), transparent 60%), linear-gradient(100deg, #111318, #2c3038); box-shadow: var(--shadow); }
.buildbanner b { display: block; font-size: 22px; margin-bottom: 4px; } .buildbanner__copy span { opacity: .85; font-size: 14px; } .buildbanner:hover { color: #fff; }
.buildbanner__steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.buildbanner__steps li { counter-increment: s; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 6px 12px 6px 6px; font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.buildbanner__steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.brands a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.brands a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.brands b { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; } .brands small { color: var(--muted); font-size: 11px; }
.showroom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.showroom .hero__kicker { color: var(--brand); }
.showroom h2 { font-size: 24px; }
.showroom p { display: flex; gap: 10px; align-items: flex-start; } .showroom p .ic { color: var(--brand); margin-top: 2px; } .showroom p a { color: var(--brand); font-weight: 600; }
.showroom__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.showroom__list li { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--bg); font-size: 13px; color: var(--muted); line-height: 1.4; }
.showroom__list li > span { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; }
.showroom__list b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- product grid / card / row */
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.listing__main .pgrid { grid-template-columns: repeat(4, 1fr); }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.pcard__img { position: relative; display: block; aspect-ratio: 1; background: #fff; }
.pcard__img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; transition: opacity .3s, transform .3s; }
.pcard__img .pcard__alt { opacity: 0; }
@media (hover: hover) {
  .pcard:hover .has-alt img:first-child { opacity: 0; } .pcard:hover .pcard__alt { opacity: 1; }
  .pcard:hover .pcard__img:not(.has-alt) img { transform: scale(1.05); }
}
.pcard__img .badge { z-index: 1; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 0 12px 12px; gap: 6px; }
.pcard__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.pcard__chips li { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 4px; background: #f1f3f6; color: var(--ink-2); }
.pcard__name { font-size: 14px; font-weight: 500; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; line-height: 1.4; }
.pcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pcard__stock { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.pcard__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c2c6cd; }
.pcard__stock.is-in { color: var(--ok); } .pcard__stock.is-in::before { background: var(--ok); }
.pcard__add { width: 38px; height: 38px; display: grid; place-items: center; border: 0; color: #fff; background: var(--brand); border-radius: 50%; cursor: pointer; transition: transform .15s, background .15s; flex: none; }
.pcard__add:hover:not(:disabled) { background: var(--brand-600); transform: scale(1.08); }
.pcard__add:disabled { background: #e5e7eb; color: #9aa0a8; cursor: default; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__now { color: var(--brand); font-weight: 700; font-size: 16px; }
.price__old { color: var(--muted); font-size: 13px; }
.price--big .price__now { font-size: 30px; font-weight: 700; letter-spacing: -.01em; } .price--big .price__old { font-size: 16px; }
.price__off { background: var(--brand); color: #fff; border-radius: 4px; padding: 0 6px; font-weight: 700; font-size: 14px; }
.prow { position: relative; }
.prow__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px -8px; }
.prow__track::-webkit-scrollbar { display: none; }
.prow__track > * { scroll-snap-align: start; }
.prow__nav { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.prow__nav:hover { color: var(--brand); }
.prow__nav--prev { left: -14px; } .prow__nav--prev .ic { transform: rotate(180deg); } .prow__nav--next { right: -14px; }

/* ---------- product page additions */
.pdp__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.pdp__chips li { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 6px; background: #f1f3f6; color: var(--ink-2); }
.paylater { margin-top: 14px; border: 1px solid #b7e4dc; background: linear-gradient(180deg, #f0fdfa, #fff); border-radius: var(--radius); padding: 12px 14px; }
.paylater__head { display: flex; gap: 10px; align-items: center; color: #0f766e; }
.paylater__head div { display: flex; flex-direction: column; line-height: 1.3; } .paylater__head b { color: var(--ink); } .paylater__head span { font-size: 13px; color: var(--muted); }
.paylater .bk-btn { margin-top: 10px; }
.paylater .bk-btn:empty { min-height: 44px; border-radius: var(--radius-sm); background: linear-gradient(90deg, #eef2f5 0, #f7f9fa 50%, #eef2f5 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.paylater__fallback { display: inline-block; margin-top: 8px; color: #0f766e; font-weight: 600; font-size: 14px; }
.buybar { display: none; }

/* ---------- mobile bottom nav */
.bnav { display: none; }

/* ---------- breadcrumbs, listing */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 14px 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 6px; }
.crumbs a:hover { color: var(--brand); }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; margin-bottom: 24px; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 16px; position: sticky; top: 90px; }
.filters summary { list-style: none; font-weight: 700; padding: 12px 0; display: flex; gap: 8px; align-items: center; cursor: default; }
.filters summary::-webkit-details-marker { display: none; }
.filters__group { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.filters__group h3 { font-size: 14px; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.filters__group ul { list-style: none; margin: 0; padding: 0; }
.filters__group li a { display: block; padding: 5px 0; font-size: 14px; }
.filters__group li a.is-active { color: var(--brand); font-weight: 700; }
.filters__cats li { padding-left: calc(var(--d, 0) * 14px); }
.filters__brands { max-height: 260px; overflow-y: auto; }
.listing__head { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.listing__head h1 { font-size: 22px; margin: 0; } .listing__head p { margin: 6px 0 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar select { height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 8px; background: #fff; margin-left: 6px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 20px 0; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.pager .is-current { background: var(--brand); color: #fff; border-color: var(--brand); } .pager__gap { border: 0 !important; background: none !important; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); }
.empty h1 { color: var(--ink); }

/* ---------- product page */
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.gallery__main { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.gallery__main.is-zoom img { transform: scale(1.9); cursor: zoom-out; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 72px; height: 72px; padding: 4px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__name { font-size: 24px; }
.pdp__meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--ink-2); }
.pdp__pricebox { background: var(--brand-50); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.pdp__save { margin: 4px 0 0; color: var(--ok); font-weight: 600; font-size: 14px; }
.pdp__promo { list-style: none; padding: 12px 14px; margin: 0 0 16px; border: 1px dashed var(--brand); border-radius: var(--radius); display: grid; gap: 8px; font-size: 14px; }
.pdp__promo li { display: flex; gap: 10px; align-items: center; } .pdp__promo .ic { color: var(--brand); } .pdp__promo a { color: var(--brand); text-decoration: underline; }
.buy { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; height: 50px; }
.qty button { width: 40px; border: 0; background: #f7f7f8; cursor: pointer; }
.qty input { width: 52px; border: 0; text-align: center; -moz-appearance: textfield; } .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { min-height: 50px; }
.pdp__short { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.pdp__tabs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.pdp__desc, .pdp__specs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.pdp__desc h2, .pdp__specs h2 { font-size: 18px; text-transform: uppercase; border-bottom: 2px solid var(--brand); padding-bottom: 8px; display: inline-block; }
.pdp__specs { position: sticky; top: 90px; }
[data-collapsible].is-collapsed { max-height: 640px; overflow: hidden; position: relative; }
[data-collapsible].is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.collapse-toggle { display: block; margin: 12px auto 0; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--ink-2); font-weight: 600; background: #fafafa; }
.prose { overflow-wrap: anywhere; }
.prose img { display: block; margin: 12px auto; border-radius: 6px; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose h2 { font-size: 20px; margin-top: 1.2em; } .prose h3 { font-size: 17px; margin-top: 1em; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose p:first-child { margin-top: 0; }

/* ---------- cart / forms */
.page-title { font-size: 24px; margin: 4px 0 14px; }
.cart { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 16px; align-items: start; margin-bottom: 24px; }
.cart__checkout { position: sticky; top: 90px; }
.cart__checkout h2 { font-size: 18px; }
.cline { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border: 0; }
.cline img { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cline__name { font-weight: 600; font-size: 14px; } .cline__unit { font-size: 13px; color: var(--muted); }
.cline__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cline .qty { height: 34px; } .cline .qty button { width: 30px; } .cline .qty input { width: 40px; }
.cline__sum { font-weight: 700; color: var(--brand); }
.cline__rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.cline__rm:hover { color: var(--bad); }
.cline--bad { opacity: .6; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 10px; font-size: 16px; }
.cart__total b { font-size: 24px; color: var(--brand); }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label, .adm-form label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select, .adm-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .adm-form textarea, .adm-form select, .adm-tools input, .adm-tools select, .adm-table input, .adm-table select, .picker__tools input, .picker__tools select {
  width: 100%; border: 1px solid #d5d8de; border-radius: var(--radius-sm); padding: 9px 12px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(231,3,3,.12); }
.field.is-error input { border-color: var(--bad); }
.pay { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 8px; display: grid; gap: 8px; }
.pay legend { font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 0 4px; }
.pay label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cf-turnstile { margin: 10px 0; min-height: 65px; }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; } .form-msg.is-error { color: var(--bad); } .form-msg.is-ok { color: var(--ok); }
.form h1, .form h2 { font-size: 20px; }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; } .newsletter input { flex: 1; min-width: 0; border: 0; border-radius: var(--radius-sm); padding: 0 12px; height: 42px; }
.newsletter .form-msg { flex-basis: 100%; color: #fff; margin: 0; }
.done { text-align: center; margin: 24px 0; } .done__ok { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #e7f6ec; color: var(--ok); display: grid; place-items: center; }
.done .code { color: var(--brand); font-size: 18px; letter-spacing: .04em; }
.done__meta { list-style: none; padding: 0; display: grid; gap: 4px; margin: 14px 0; }
.lines { width: 100%; border-collapse: collapse; margin: 12px 0; text-align: left; }
.lines td { padding: 8px 4px; border-bottom: 1px solid var(--line); } .lines td:last-child { text-align: right; white-space: nowrap; }
.lines__total td { font-weight: 700; font-size: 17px; color: var(--brand); border: 0; }
.done .ctas { justify-content: center; }
.status { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef0f3; }
.status--new { background: #fff3cd; color: #8a5a00; } .status--confirmed { background: #e0ecff; color: #1d4ed8; } .status--shipping { background: #ede4ff; color: #6d28d9; }
.status--done { background: #e7f6ec; color: var(--ok); } .status--cancelled { background: #f1f1f1; color: #777; }

/* ---------- content pages, news */
.content { display: grid; gap: 16px; margin-bottom: 24px; } .content--aside { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.content h1 { font-size: 26px; }
.contactbox p { display: flex; gap: 8px; align-items: flex-start; } .contactbox a { color: var(--brand); font-weight: 600; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.newscard { padding: 0; overflow: hidden; } .newscard > div { padding: 14px 16px; } .newscard h2 { font-size: 17px; }
.newscard__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #eee; }
.post__cover { width: 100%; border-radius: var(--radius); }

/* ---------- build pc */
.build__intro h1 { font-size: 26px; } .build__intro p { max-width: 820px; margin-top: 0; }
.build__head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-bottom: 24px; }
.build__sum a { color: var(--brand); font-weight: 600; }
.build__sum { position: sticky; top: 90px; } .build__sum span { color: var(--muted); }
.build__sum > b { display: block; font-size: 30px; color: var(--brand); margin: 4px 0 12px; }
.build__actions { display: grid; gap: 8px; }
.build__warn { background: #fff8e1; border: 1px solid #ffd666; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.build__warn li { margin: 2px 0; }
.build__slots { list-style: none; margin: 0; padding: 0; counter-reset: slot; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.bslot { display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); counter-increment: slot; }
.bslot:last-child { border: 0; }
.bslot__label { font-weight: 700; display: flex; gap: 10px; align-items: center; }
.bslot__label::before { content: counter(slot); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 13px; flex: none; }
.bslot__label small { color: var(--brand); font-weight: 400; }
.bslot__items { display: grid; gap: 8px; }
.bitem { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; }
.bitem img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.bitem__name { font-size: 14px; font-weight: 600; } .bitem__name a:hover { color: var(--brand); }
.bitem .price__now { font-size: 15px; }
.bitem .qty { height: 32px; } .bitem .qty button { width: 28px; } .bitem .qty input { width: 36px; }
.picker { width: min(760px, 96vw); max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.picker::backdrop { background: rgba(0,0,0,.5); }
.picker__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.picker__head h2 { font-size: 18px; margin: 0; }
.picker__tools { display: grid; grid-template-columns: 1fr 180px; gap: 8px; padding: 12px 18px; }
.picker__list { list-style: none; margin: 0; padding: 0 18px 18px; }
.picker__list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.picker__list img { width: 64px; height: 64px; object-fit: contain; }
.picker__list .is-oos { opacity: .55; }
@media print {
  .topbar, .header, .nav, .footer, .floating, .build__actions, .bslot button, .crumbs, .build__head p { display: none !important; }
  body { background: #fff; } .build__slots, .build__sum { box-shadow: none; } .bslot { break-inside: avoid; } .build__head { grid-template-columns: 1fr; }
}

/* ---------- footer, floating, toast */
.footer { background: #1d1f23; color: #c9ccd2; margin-top: 8px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0 0 16px; } .footer li { margin: 7px 0; }
.footer a:hover { color: #fff; }
.footer p { margin: 0 0 10px; } .footer p .ic { color: var(--brand); }
.footer__logo { background: #fff; border-radius: 8px; padding: 4px 8px; margin-bottom: 10px; }
.footer__legal { font-weight: 700; color: #fff; }
.footer__social { display: flex; flex-wrap: wrap; gap: 14px; } .footer__social a { display: inline-flex; gap: 6px; align-items: center; }
.footer__bottom { border-top: 1px solid #33363d; padding: 14px 0; font-size: 13px; color: #8d929b; }
.footer__bottomin { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.credit { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 99px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #c9ccd2; transition: border-color .2s, background .2s, transform .2s; }
.credit:hover { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); transform: translateY(-1px); }
.credit__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8d929b; }
.credit__name { font-weight: 700; font-size: 13px; background: linear-gradient(90deg, #fff 0%, #ffb4b4 60%, #ff5a5a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credit__go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--zalo); color: #fff; transition: transform .2s; }
.credit:hover .credit__go { transform: rotate(-12deg) scale(1.08); }
@media (max-width: 720px) { .footer__bottomin { flex-direction: column; text-align: center; } }
.floating { position: fixed; right: 16px; bottom: 18px; display: grid; gap: 10px; z-index: 50; }
.floating__btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 13px; }
.floating__btn:hover { color: #fff; transform: scale(1.06); }
.floating__btn--phone { background: var(--brand); animation: ring 2.4s infinite; } .floating__btn--zalo { background: var(--zalo); } .floating__btn--msg { background: linear-gradient(135deg, #00b2ff, #a033ff); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(231,3,3,.5); } 60% { box-shadow: 0 0 0 14px rgba(231,3,3,0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1f23; color: #fff; padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 70; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---------- responsive */
@media (max-width: 1180px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); } .listing__main .pgrid { grid-template-columns: repeat(3, 1fr); }
  .prow__track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .cattiles { grid-template-columns: repeat(6, 1fr); } .brands { grid-template-columns: repeat(6, 1fr); }
  .buildbanner { grid-template-columns: 1fr auto; } .buildbanner__steps { display: none; }
}
@media (max-width: 960px) {
  .header__hotline { display: none; }
  .nav__cats { display: none; }
  .hero { grid-template-columns: 1fr; } .hero__side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .hero__tile img { width: 64px; height: 64px; } .hero__tileic { display: none; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; } .filters { position: static; } .filters:not([open]) { padding-bottom: 4px; }
  .filters summary { cursor: pointer; }
  .pdp, .pdp__tabs, .cart, .content--aside, .showroom, .build__head { grid-template-columns: 1fr; }
  .pdp__specs, .cart__checkout, .build__sum { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: repeat(2, 1fr); }
  .bslot { grid-template-columns: 1fr; gap: 8px; }
  .prow__track { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
  .prow__nav { display: none; }
  .cattiles { grid-template-columns: repeat(4, 1fr); } .brands { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 14px; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .header__in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-top: 8px; padding-bottom: 10px; }
  .header__burger { display: inline-grid; margin-left: -8px; color: #fff; }
  .logo { order: 0; } .logo img { width: 96px; }
  .header__cart { margin-left: auto; } .header__cart .cart-count { left: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; } .search input { height: 40px; }
  .nav { display: none; }
  .slider { min-height: 0; }
  .hero__slide { grid-template-columns: 1fr 120px; padding: 22px 16px 36px 18px; gap: 6px; }
  .hero__slide p { display: none; } .hero__slide h1, .hero__slide h2 { font-size: 20px; } .hero__kicker { font-size: 10px; }
  .hero__img { max-width: 116px; padding: 8px; border-radius: 12px; }
  .slider__dots { left: 18px; bottom: 12px; }
  .hero__side { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
  .hero__side::-webkit-scrollbar { display: none; } .hero__tile { scroll-snap-align: start; min-height: 86px; }
  .usp { grid-template-columns: 1fr 1fr; padding: 10px; gap: 10px; font-size: 13px; } .usp li { gap: 8px; } .usp span { display: none; }
  .pgrid, .listing__main .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .prow__track { grid-auto-columns: 46%; gap: 8px; }
  .pcard__body { padding: 0 10px 10px; } .pcard__name { font-size: 13px; } .pcard__add { width: 34px; height: 34px; } .pcard__chips li:nth-child(3) { display: none; }
  .cattiles { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 23%; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .cattiles::-webkit-scrollbar { display: none; }
  .cattile { padding: 8px 2px; font-size: 12px; } .cattile__img { width: 56px; height: 56px; } .cattile small { display: none; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .block { padding: 12px; } .block__title { font-size: 16px; } .block__head { flex-wrap: wrap; gap: 8px; } .block__links { order: 3; flex-basis: 100%; }
  .buildbanner { grid-template-columns: 1fr; padding: 18px; gap: 12px; } .buildbanner b { font-size: 18px; }
  .showroom { padding: 18px; } .showroom__list { grid-template-columns: 1fr; }
  .pdp { padding: 14px; gap: 16px; } .pdp__name { font-size: 20px; } .price--big .price__now { font-size: 24px; }
  .buy .btn--grow { flex-basis: 100%; order: -1; } .buy .btn--outline { flex: 1; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 45; gap: 8px; align-items: center; padding: 8px 12px; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12); transform: translateY(150%); transition: transform .25s; }
  .buybar.is-on { transform: none; }
  .buybar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .buybar__price small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .buybar__price b { color: var(--brand); font-size: 18px; }
  .buybar .btn { min-height: 44px; }
  .footer__grid { grid-template-columns: 1fr; gap: 8px; }
  .news { grid-template-columns: 1fr; }
  .bitem { grid-template-columns: 48px 1fr; } .bitem > :nth-child(3), .bitem > :nth-child(4) { grid-column: 2; justify-self: start; }
  .picker__tools { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .floating { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
  .bnav a.is-active { color: var(--brand); }
  .bnav__ic { position: relative; display: grid; place-items: center; }
  .bnav__ic .cart-count { top: -6px; left: 12px; }
  .bnav__call .bnav__ic { width: 40px; height: 40px; margin-top: -18px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(231,3,3,.4); }
  .bnav__call { color: var(--brand) !important; font-weight: 700 !important; }
}

/* ---------- admin */
.adm { background: #f5f6f8; }
.adm-bar { display: flex; align-items: center; gap: 18px; background: #1d1f23; color: #fff; padding: 0 20px; min-height: 54px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.adm-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; } .adm-brand img { background: #fff; border-radius: 4px; padding: 2px; }
.adm-bar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.adm-bar nav a { padding: 16px 12px; font-size: 14px; color: #c9ccd2; } .adm-bar nav a.is-active, .adm-bar nav a:hover { color: #fff; box-shadow: inset 0 -3px var(--brand); }
.adm-bar__right { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.adm-bar__right .btn { color: #fff; border-color: #444; } .adm-bar__right form { margin: 0; }
.adm-main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; } .adm-head h1 { font-size: 22px; margin: 0; }
.adm h2 { font-size: 18px; margin: 20px 0 10px; } .adm .card h2:first-child, .adm .card h3:first-child { margin-top: 0; }
.adm .card { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; }
.kpi b { font-size: 26px; } .kpi span { color: var(--muted); font-size: 13px; } .kpi--hot b { color: var(--brand); }
.adm-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.adm-table th, .adm-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.adm-table th { background: #fafbfc; font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.adm-table a { color: #1d4ed8; } .adm-table img { object-fit: contain; border: 1px solid var(--line); border-radius: 4px; }
.adm-table input, .adm-table select { padding: 5px 8px; }
.card .adm-table { box-shadow: none; margin-bottom: 12px; }
.adm-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .adm-tools input, .adm-tools select { width: auto; flex: 1 1 200px; }
.adm-tools h3 { flex-basis: 100%; margin: 0; }
.adm-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; } .adm-grid--2-1 { grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); }
.adm-form label { display: grid; gap: 4px; margin-bottom: 12px; } .adm-form label.check, label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0; }
.adm-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; } .adm-form legend { font-weight: 600; font-size: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.catpick { max-height: 420px; overflow-y: auto; } .catpick .sub { padding-left: 20px; }
.imgs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.imgs figure { margin: 0; width: 140px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; text-align: center; }
.imgs figure.is-main { border-color: var(--brand); } .imgs img { width: 120px; height: 120px; object-fit: contain; }
.imgs figcaption { display: grid; gap: 4px; font-size: 12px; } .imgs form { margin: 0; }
.flash { background: #e7f6ec; color: var(--ok); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.danger-zone { margin-top: 24px; text-align: right; }
.adm-login { max-width: 360px; margin: 12vh auto; text-align: center; } .adm-login label { display: grid; gap: 6px; text-align: left; margin: 16px 0; font-weight: 600; }
.adm-login input { border: 1px solid #d5d8de; border-radius: var(--radius-sm); padding: 10px 12px; }
@media (max-width: 900px) { .adm-grid, .adm-grid--2-1, .row3 { grid-template-columns: 1fr; } .adm-table { display: block; overflow-x: auto; } }
