/*
 * Theme Vivid — nạp sau assets/css/site.css.
 * Toàn bộ màu lấy từ Admin → Giao diện → Màu thương hiệu:
 *   --brand (màu chính)  --brand-2 (màu phụ)  --brand-dark (màu đậm)  --brand-soft (nền nhạt)
 *   --brand-ink / --brand-2-ink / --brand-dark-ink = màu chữ đặt trên nền tương ứng (hệ thống tự chọn trắng/đen)
 */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');

:root {
    --font: 'Lexend', 'Be Vietnam Pro', system-ui, sans-serif;
    --ink: #1f2430;
    --ink-2: #6b7280;
    --line: #e7e8ec;
    --tile: #f5f6f8;
    --r-sm: 8px;
    --r-md: 14px;
    --wrap: 1260px;
    --header-h: 150px;
}
body { background: #f7f7f9; }
main { padding-bottom: 8px; }

/* ---------- Thanh trên: màu đậm ---------- */
.vv-top { background: var(--brand-dark); color: var(--brand-dark-ink); font-size: 13.5px; }
.vv-top__in { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.vv-top a { color: inherit; }
.vv-top__promo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-top__tag { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--brand-2); color: var(--brand-2-ink); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vv-top__links { display: flex; gap: 20px; margin-left: auto; white-space: nowrap; }
.vv-top__links a { opacity: .8; }
.vv-top__links a:hover { opacity: 1; }

/* ---------- Header: logo · tìm kiếm · hotline · giỏ ---------- */
.header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.header__in { min-height: 86px; gap: 28px; }
.logo img { max-height: 56px; }
.search { flex: 1 1 420px; max-width: 520px; margin: 0 auto 0 12px; }
.search input { height: 46px; padding: 0 56px 0 18px; border: 2px solid var(--brand); border-radius: 999px; font-size: 14.5px; background: #fff; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
.search__list { border-radius: var(--r-md); overflow: hidden; }

.vv-hotlines { display: flex; gap: 18px; }
.vv-hotline { display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.vv-hotline__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.vv-hotline__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.vv-hotline small { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.2; }
.vv-hotline b { font-size: 15.5px; color: var(--brand); line-height: 1.3; }
.vv-hotline:hover b { text-decoration: underline; }

.vv-cart { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--brand-2); color: var(--brand-2-ink); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.vv-cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vv-cart__num { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: #1f2430; font-size: 12px; line-height: 22px; text-align: center; }
.vv-cart:hover { filter: brightness(1.06); }

/* ---------- Dải menu màu chính ---------- */
.vv-nav { background: var(--brand); color: var(--brand-ink); }
.vv-nav__in { display: flex; align-items: stretch; min-height: 50px; }
.vv-nav__cats { position: relative; flex: 0 0 260px; }
.vv-nav__cats-btn { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 18px; background: var(--brand-deep); color: var(--brand-ink); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.vv-nav__cats-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.vv-nav__drop { position: absolute; top: 100%; left: 0; right: 0; z-index: 46; display: none; border-radius: 0 0 var(--r-md) var(--r-md); border-top: 0; box-shadow: 0 16px 32px rgb(0 0 0 / .14); }
.vv-nav__cats:hover .vv-nav__drop, .vv-nav__cats:focus-within .vv-nav__drop { display: block; }
.vv-nav__drop .catnav__title { display: none; }

.vv-nav .nav { margin-left: 8px; align-items: stretch; }
.vv-nav .nav > * + .nav__link::before, .vv-nav .nav > * + .nav__drop > .nav__link::before { display: none; }
.vv-nav .nav__link { padding: 0 16px; color: var(--brand-ink); font-size: 14.5px; font-weight: 500; text-transform: none; opacity: .92; }
.vv-nav .nav__link:hover, .vv-nav .nav__link.is-active { color: var(--brand-ink); opacity: 1; background: rgb(0 0 0 / .12); }
.vv-nav .nav__sub { border-radius: 0 0 var(--r-md) var(--r-md); }
.vv-nav .nav__sub a:hover { color: var(--brand); }

/* ---------- Trang chủ: slider + 2 thẻ bên phải ---------- */
.vv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 18px; }
.vv-hero__slider { min-width: 0; }
.vv-hero .stage { height: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.vv-hero .stage .slider__track { height: 100%; padding-inline: 0; gap: 0; }
.vv-hero .stage .slider__item { flex-basis: 100%; opacity: 1; }
.vv-hero .stage .slider__item img { height: 100%; min-height: 340px; aspect-ratio: auto; object-fit: cover; }
.vv-hero .stage__arrow { width: 40px; height: 40px; border-radius: 50%; }
.vv-hero .stage__arrow--prev { left: 14px; }
.vv-hero .stage__arrow--next { right: 14px; }
.vv-hero .slider__dots button[aria-selected="true"], .vv-hero .slider__dots .is-active { background: var(--brand-2); }

.vv-hero__side { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.vv-card { border-radius: var(--r-md); padding: 20px; }
.vv-card__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.vv-card--call { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--brand-ink); }
.vv-card__phone { display: block; font-size: 26px; font-weight: 700; color: inherit; letter-spacing: .01em; }
.vv-card__text { margin: 6px 0 14px; font-size: 13.5px; opacity: .9; line-height: 1.5; }
.vv-card__actions { display: flex; gap: 8px; }
.vv-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.vv-btn--light { background: #fff; color: #1f2430; }
.vv-btn--ghost { border: 1.5px solid currentColor; color: inherit; }
.vv-card--deal { background: #fff; border: 1px solid var(--line); }
.vv-card--deal .vv-card__eyebrow { color: var(--brand-2); opacity: 1; }
.vv-card__deal { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.vv-card__deal:first-of-type { border-top: 0; }
.vv-card__deal span { color: var(--brand); font-size: 18px; line-height: 1; }
.vv-card__deal:hover { color: var(--brand); }

/* ---------- Danh mục: biểu tượng tròn ---------- */
.vv-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; margin-top: 22px; padding: 22px 18px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); }
.vv-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ink); }
.vv-cat__img { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--brand-soft); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.vv-cat__img img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: multiply; color: transparent; font-size: 0; }
.vv-cat__name { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.vv-cat:hover .vv-cat__img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--brand); }
.vv-cat:hover .vv-cat__name { color: var(--brand); }

/* ---------- Cam kết: thẻ trắng, icon màu chính ---------- */
.promises { margin-top: 18px; }
.promises ul { gap: 14px; border: 0; }
.promises li, .promises li + li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.promises__icon { background: var(--brand-soft); color: var(--brand); }
.promises__icon svg { stroke: currentColor; }
.home-intro { margin-top: 30px; }
.home-intro__title { font-weight: 700; }

/* ---------- Tiêu đề khối mặc định ---------- */
.block__title { font-weight: 700; }
.block__more { border: 0; color: var(--brand); }
.rail__btn { border-radius: 50%; }
.rail__btn:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- "Giá tốt hôm nay": nền màu chính ---------- */
.vv-deal { margin-top: 34px; padding: 26px 0 30px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); }
.vv-deal .rail { margin: 0; }
.vv-deal .block__head { margin-bottom: 16px; }
.vv-deal .block__title, .vv-deal .block__title a { color: var(--brand-ink); font-size: 26px; }
.vv-deal .block__title::before { content: "⚡"; margin-right: 8px; }
.vv-deal .block__more { color: var(--brand-ink); opacity: .9; }
.vv-deal .rail__btn { background: rgb(255 255 255 / .9); border: 0; color: #1f2430; }
.vv-deal .tiles { border: 0; gap: 12px; }
.vv-deal .tiles--row { grid-auto-columns: calc((100% - (var(--per-row) - 1) * 12px) / var(--per-row)); }

/* ---------- Khối danh mục: thanh tiêu đề + lưới 5 cột ---------- */
.vv-sec { margin-top: 34px; }
.vv-sec__head { display: flex; align-items: center; gap: 16px; padding: 0 0 0 0; margin-bottom: 14px; border-bottom: 2px solid var(--brand); }
.vv-sec__title { flex: none; margin: 0; padding: 10px 22px 9px; background: var(--brand); border-radius: var(--r-sm) var(--r-sm) 0 0; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.vv-sec__title a { color: var(--brand-ink); }
.vv-sec__chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.vv-sec__chips a { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.vv-sec__chips a:hover { background: var(--brand-soft); color: var(--brand); }
.vv-sec__more { margin-left: auto; flex: none; font-size: 14px; font-weight: 500; color: var(--brand); }
.vv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

/* ---------- Thẻ sản phẩm ---------- */
.tiles { gap: 12px; border: 0; }
.tile--vv { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile--vv:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgb(0 0 0 / .08); transform: translateY(-2px); }
.tile--vv .tile__img { padding: 14px; }
.tile--vv .tile__img img { color: transparent; font-size: 0; }
.tile--vv .tile__off { top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--brand-2); color: var(--brand-2-ink); font-size: 12px; }
.tile--vv .tile__stock { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: #1f2430; color: #fff; font-size: 11.5px; }
.tile--vv .tile__body { padding: 0 14px 10px; }
.tile--vv .tile__model { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile--vv .tile__name { font-weight: 500; color: var(--ink); }
.tile--vv .tile__name a:hover { color: var(--brand); }
.tile--vv .price strong { font-size: 16.5px; }
.tile--vv .price s { color: #9aa0aa; }
.tile--vv .tile__buy { padding: 0 14px 14px; }
.tile--vv .tile__buy button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; border: 1.5px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); font: 600 13.5px var(--font); cursor: pointer; transition: background .15s, color .15s; }
.tile--vv .tile__buy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile--vv:hover .tile__buy button, .tile--vv .tile__buy button:focus-visible { background: var(--brand); color: var(--brand-ink); }

/* ---------- Đăng ký nhận tin ---------- */
.newsletter { margin-top: 44px; background: var(--brand-soft); color: var(--ink); }
.newsletter::before { display: none; }
.newsletter h2 { color: var(--ink); }
.newsletter p { color: var(--ink-2); }
.newsletter__form input { height: 50px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; }
.newsletter__form .btn { min-height: 50px; border-radius: 999px; padding: 0 26px; background: var(--brand); color: var(--brand-ink); }

/* ---------- Tin tức ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.post__img img { border-radius: 0; color: transparent; font-size: 0; }
.post__title, .post__excerpt { padding-inline: 14px; }
.post__excerpt { padding-bottom: 14px; }
.post__title a:hover { color: var(--brand); }

/* ---------- Giới thiệu + FAQ ---------- */
.home-faq details, .faq details { border-radius: var(--r-sm); }

/* ---------- Footer: màu đậm ---------- */
.footer { background: var(--brand-dark); color: var(--brand-dark-ink); }
.footer, .footer a, .footer__title, .footer__about, .footer__about :is(p, span, li, div, strong, b) { color: var(--brand-dark-ink) !important; }
.footer a:hover { opacity: .75; }
.footer__title { position: relative; padding-bottom: 10px; font-size: 16px; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--brand-2); }
.footer__list { opacity: .9; }
.footer__bottom { border-top-color: rgb(255 255 255 / .14); background: rgb(0 0 0 / .14); }
.social-block a { border-radius: 50%; background: rgb(255 255 255 / .14); }

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1360px) { .vv-hotline:nth-child(3) { display: none; } } /* 3 số (có Hotline riêng): màn hẹp chỉ hiện 2 */
@media (max-width: 1180px) {
    .vv-hotline:nth-child(2) { display: none; }
    .vv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .vv-hero { grid-template-columns: 1fr; }
    .vv-hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .vv-hero .stage .slider__item img { min-height: 0; aspect-ratio: 2.4; }
    .vv-hotlines { display: none; }
    .vv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 900px) {
    :root { --header-h: 60px; }
    .vv-top__links, .vv-nav, .vv-cart { display: none; }
    .vv-top__in { justify-content: center; min-height: 32px; font-size: 12.5px; }
    .header__in { min-height: 0; padding-top: 8px; gap: 8px; }
    .search { margin: 0 0 10px; max-width: none; }
    .search input { height: 42px; }
    .search button { width: 34px; height: 34px; }
    .vv-hero { margin-top: 10px; gap: 10px; }
    .vv-hero__side { grid-template-columns: 1fr; }
    .vv-card--deal { display: none; }
    .vv-card { padding: 16px; }
    .vv-card__phone { font-size: 22px; }
    .vv-cats { display: flex; overflow-x: auto; scrollbar-width: none; gap: 12px; padding: 14px 12px; margin-top: 12px; }
    .vv-cat { flex: 0 0 82px; }
    .vv-cat__img { width: 68px; height: 68px; }
    .vv-cat__name { font-size: 12.5px; }
    .promises ul { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promises li, .promises li + li { padding: 10px; font-size: 12.5px; }
    .promises__icon { width: 36px; height: 36px; }
    .vv-deal { padding: 18px 0 20px; margin-top: 24px; }
    .vv-deal .block__title, .vv-deal .block__title a { font-size: 20px; }
    .vv-sec { margin-top: 24px; }
    .vv-sec__head { flex-wrap: wrap; gap: 8px 12px; border-bottom-width: 0; }
    .vv-sec__title { border-radius: var(--r-sm); font-size: 15px; padding: 8px 14px; }
    .vv-sec__chips { order: 3; flex-basis: 100%; }
    .vv-sec__chips a { background: #fff; border: 1px solid var(--line); }
    .vv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tile--vv .tile__body { padding: 0 10px 8px; }
    .tile--vv .tile__buy { padding: 0 10px 10px; }
    .tile--vv .tile__buy button { height: 34px; font-size: 12.5px; }
}
