﻿/*
 * CSS tuỳ chỉnh của dự án.
 * Nạp SAU các file CSS của theme để ghi đè.
 * Không sửa trực tiếp file trong Content/pc/css (đó là CSS gốc của theme).
 */
/* ============================================================
   MÀU THƯƠNG HIỆU
   Ghi đè --main-color của theme (theme dùng biến này ở 64 chỗ:
   header, tiêu đề section, nút, viền...).
   Giá bán & badge % giảm giá cố tình GIỮ MÀU ĐỎ cho nổi bật.
   ============================================================ */
:root {
    --main-color: #121b3d;   /* navy - ghi đè màu đỏ gốc của theme */
    --brand: #121b3d;        /* dùng cho CSS tuỳ chỉnh bên dưới */
    --price-red: #e10600;    /* màu riêng cho giá tiền */
}

/* Badge % giảm giá: theme lấy nền từ --main-color -> kéo về lại đỏ */
.product-price .saved .discount-percent {
    background-color: var(--price-red);
}

/* Bỏ bo góc khung "Danh mục sản phẩm" ở header cho vuông vức */
.ks-category > h3 {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ks-category {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ks-menu-category {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ============================================================
   Trang chi tiết bài viết (tin tức)
   Bổ sung 2 class theme không có sẵn: .text-color-news, .news-item-content
   ============================================================ */

/* Tiêu đề "TIN TỨC" ở sidebar */
.news-option .text-color-news {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand);
    color: var(--brand);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Nội dung bài viết */
.news-item-content {
    color: #333;
    font-size: 15px;
    line-height: 1.85;
}

.news-item-content p { margin-bottom: 14px; }

.news-item-content h1,
.news-item-content h2,
.news-item-content h3,
.news-item-content h4 {
    margin: 24px 0 12px;
    font-weight: 700;
    color: #1e2a35;
    line-height: 1.4;
}

.news-item-content h1 { font-size: 22px; }
.news-item-content h2 { font-size: 20px; }
.news-item-content h3 { font-size: 18px; }

.news-item-content ul,
.news-item-content ol {
    margin: 0 0 14px 20px;
    padding-left: 6px;
}

.news-item-content li { margin-bottom: 8px; }

/* Ảnh trong bài không bao giờ tràn khung */
.news-item-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px auto;
    display: block;
}

.news-item-content a { color: #0b76d1; }
.news-item-content a:hover { text-decoration: underline; }

/* Bảng trong bài viết cuộn ngang thay vì vỡ layout */
.news-item-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.news-item-content table td,
.news-item-content table th {
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
}

/* Video nhúng co giãn theo khung */
.news-item-content iframe {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* --- "Tin liên quan": lưới ngang, nằm dưới bài viết --- */
.news-relate {
    margin: 34px 0 10px;
}

.news-relate__title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand);
    color: var(--brand);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.news-relate__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.news-relate__item {
    display: block;
    text-decoration: none;
}

.news-relate__item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    display: block;
    transition: transform .2s ease;
}

.news-relate__item:hover img {
    transform: translateY(-3px);
}

.news-relate__item span {
    display: block;
    margin-top: 9px;
    color: #223;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.news-relate__item:hover span {
    color: var(--brand);
}

@media (max-width: 991px) {
    .news-relate__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .news-relate__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ============================================================
   FOOTER — nền navy đậm, dải logo/thanh toán giữ nền sáng
   ============================================================ */
.footer {
    margin-top: 44px;
    background: #121b3d;
    color: #aeb6c8;
}

.footer-links {
    padding: 44px 0 32px;
    background: linear-gradient(180deg, #16204a 0%, #121b3d 100%);
}

/* --- Tiêu đề cột --- */
/* Theme đặt h1..h6 { color: var(--dark) } trực tiếp lên thẻ -> phải ép màu trắng ở đây */
.footer-box h3 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .6px;
}

.footer-box h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--price-red);
}

/* --- Link ---
   Theme có:  .footer-submenu a:not(.main-color) { color: var(--link-color) }  -> xám đậm #3f3f3f
              .footer-submenu a:hover           { color: var(--main-color) }  -> navy (trùng nền!)
   Phải dùng ĐÚNG selector đó (cùng độ ưu tiên, file nạp sau -> thắng). */
.footer-submenu a,
.footer-submenu a:not(.main-color) {
    display: block;
    position: relative;
    padding: 7px 0 7px 15px;
    color: #dbe1ec;                 /* sáng rõ trên nền navy */
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .15s ease, padding-left .15s ease;
}

.footer-submenu a::before {
    content: "\203A";
    position: absolute;
    left: 0;
    top: 6px;
    color: #7d88a8;
    font-size: 15px;
    transition: color .15s ease;
}

.footer-submenu a:hover,
.footer-submenu a:not(.main-color):hover {
    color: #fff;
    padding-left: 20px;
    text-decoration: none;
}

.footer-submenu a:hover::before { color: var(--price-red); }

/* --- Đoạn văn / địa chỉ showroom --- */
.footer-box p,
.footer-box li,
.footer-box div {
    color: #dbe1ec;
    font-size: 14px;
    line-height: 1.65;
}

.footer-box p i { color: #8a95b5; margin-right: 6px; }

/* Tên chi nhánh (in đậm) — cho trắng hẳn để tách khỏi danh sách địa chỉ */
.footer-box b,
.footer-box strong,
.footer-box h4 {
    color: #fff;
    font-weight: 700;
}

/* --- Vùng showroom cuộn --- */
.footer-box .custom-scrollbar {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 10px;
}

.footer-box .custom-scrollbar::-webkit-scrollbar { width: 5px; }
.footer-box .custom-scrollbar::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 3px; }
.footer-box .custom-scrollbar::-webkit-scrollbar-thumb { background: #3c4874; border-radius: 3px; }
.footer-box .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--price-red); }

/* --- Hotline & email --- */
.footer-box .main-color,
.footer-box a[href^="tel:"] {
    color: #ff5b56;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
}

.footer-box a[href^="mailto:"] {
    color: #7fb2ff;
    font-weight: 600;
    text-decoration: none;
}

.footer-box a[href^="tel:"]:hover,
.footer-box a[href^="mailto:"]:hover { text-decoration: underline; }

/* --- Icon mạng xã hội ---
   .connect-with-us nằm LỒNG BÊN TRONG .footer-submenu, nên nó dính luôn kiểu
   "link menu" (mũi tên ›, padding, display:block). Phải gỡ hết ở đây. */
.footer-submenu .connect-with-us {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.footer-submenu .connect-with-us a,
.footer-submenu .connect-with-us a:not(.main-color) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;                       /* gỡ padding của link menu */
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    transition: background .18s ease, transform .18s ease;
}

/* Gỡ mũi tên › bị kế thừa từ link menu */
.footer-submenu .connect-with-us a::before { content: none; }

.footer-submenu .connect-with-us a:hover,
.footer-submenu .connect-with-us a:not(.main-color):hover {
    background: rgba(255, 255, 255, .18);
    padding: 0;                       /* chặn hiệu ứng trượt phải của link menu */
    transform: translateY(-3px);
}

.footer-submenu .connect-with-us img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Hotline & email cũng không phải link menu -> bỏ mũi tên và padding trái */
.footer-submenu a.main-color,
.footer-submenu a[href^="tel:"],
.footer-submenu a[href^="mailto:"] {
    display: inline;
    padding: 0;
}

.footer-submenu a.main-color::before,
.footer-submenu a[href^="tel:"]::before,
.footer-submenu a[href^="mailto:"]::before { content: none; }

.footer-submenu a.main-color:hover,
.footer-submenu a[href^="tel:"]:hover,
.footer-submenu a[href^="mailto:"]:hover { padding-left: 0; }

/* --- Dải logo thương hiệu ---
   Đã tách ra NGOÀI <footer>, nằm trên nền sáng phía trên footer. */
.footer-brands {
    margin: 34px 0 0;
    padding: 26px 0;
    background: #fff;
    border-top: 1px solid #e8eaef;
    border-bottom: 1px solid #e8eaef;
}

.footer-brands .row {
    flex-wrap: wrap;
    gap: 10px 0;
}

.footer-brands a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.footer-brands img {
    max-height: 36px;
    width: auto;
    filter: grayscale(100%);
    opacity: .55;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.footer-brands a:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-3px);
}

/* Footer navy bắt đầu ngay dưới dải logo -> bỏ khoảng cách thừa */
.footer { margin-top: 0; }

/* --- Thanh toán / chứng nhận (nền sáng) --- */
.footer-end {
    padding: 28px 0 18px;
    background: #f5f6fa;
}

.footer-end h3,
.footer-end h4 {
    color: #1e2a35;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-end p,
.footer-end strong { color: #3d4550; }

.footer-end img,
.foot_payment img {
    max-height: 36px;
    width: auto;
    border-radius: 5px;
    transition: transform .18s ease;
}

.footer-end img:hover,
.foot_payment img:hover { transform: translateY(-2px); }

/* --- Copyright --- */
.footer-copyright {
    padding: 20px 0 24px;
    background: #0d1430;
    text-align: center;
}

.footer-copyright,
.footer-copyright p,
.span_copyright {
    color: #7d87a3;
    font-size: 13px;
    line-height: 1.95;
}

.footer-copyright a { color: #aeb6c8; }

@media (max-width: 767px) {
    .footer-links { padding: 30px 0 18px; }
    .footer-box { margin-bottom: 26px; }
    .footer-box .custom-scrollbar { max-height: 180px; }
}
/* ============================================================
   Trang tĩnh (chính sách, hỏi đáp, hướng dẫn...)
   ============================================================ */
.static-page { margin: 22px 0 50px; }

/* --- Breadcrumb --- */
.static-page__crumb {
    font-size: 13px;
    color: #8a94a0;
    margin-bottom: 16px;
}

.static-page__crumb a { color: #8a94a0; }
.static-page__crumb a:hover { color: var(--brand); text-decoration: none; }
.static-page__crumb span { color: #1e2a35; font-weight: 600; }

/* --- Thẻ nội dung --- */
.static-page__card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(20, 30, 45, .06);
    overflow: hidden;
}

/* Tiêu đề trang: dải navy + vạch nhấn */
.static-page__head {
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--brand) 0%, #1d2a55 100%);
    color: #fff;
}

/* Theme có quy tắc h1..h6 { color: var(--dark) } đặt TRỰC TIẾP lên thẻ,
   nên nó thắng màu trắng kế thừa từ khung cha -> phải ép màu trắng ở đây. */
.static-page__head h1 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.static-page__head p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

/* Thân bài: dùng lại typography của bài viết */
.static-page__body { padding: 26px 28px 30px; }

.static-page__body h3 {
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
    font-size: 18px;
    font-weight: 700;
    color: #1e2a35;
    line-height: 1.4;
}

.static-page__body h3:first-child { margin-top: 0; }

.static-page__body p {
    margin-bottom: 13px;
    color: #3d4550;
    font-size: 15px;
    line-height: 1.85;
}

.static-page__body ul,
.static-page__body ol {
    margin: 0 0 16px;
    padding-left: 0;
    list-style: none;
}

.static-page__body ul li {
    position: relative;
    padding: 7px 0 7px 26px;
    color: #3d4550;
    font-size: 15px;
    line-height: 1.7;
}

/* Dấu tích trước mỗi gạch đầu dòng */
.static-page__body ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef0f7;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.static-page__body ol { padding-left: 20px; list-style: decimal; }
.static-page__body ol li { padding: 6px 0; color: #3d4550; line-height: 1.7; }

.static-page__body b,
.static-page__body strong { color: #1e2a35; }

.static-page__body img { max-width: 100%; height: auto; border-radius: 6px; }

/* --- Sidebar --- */
.static-aside {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(20, 30, 45, .06);
    overflow: hidden;
    position: sticky;
    top: 14px;
}

.static-aside__title {
    margin: 0;
    padding: 15px 18px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    color: #1e2a35;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.static-aside__list { list-style: none; margin: 0; padding: 6px 0; }

.static-aside__list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    color: #4a5361;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.static-aside__list a::before {
    content: "\203A";                    /* dấu › */
    color: #c8ccd2;
    font-size: 17px;
    line-height: 1;
    flex: 0 0 auto;
}

.static-aside__list a:hover {
    background: #f7f8fb;
    color: var(--brand);
    border-left-color: var(--brand);
    text-decoration: none;
}

.static-aside__list a:hover::before { color: var(--brand); }

/* Trang đang xem */
.static-aside__list .is-active a {
    background: #eef0f7;
    color: var(--brand);
    font-weight: 700;
    border-left-color: var(--brand);
}

.static-aside__list .is-active a::before { color: var(--brand); }

/* --- Hộp hỗ trợ dưới sidebar --- */
.static-help {
    margin-top: 16px;
    padding: 20px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, #1d2a55 100%);
    color: #fff;
    text-align: center;
}

.static-help p { margin: 0 0 4px; font-size: 13px; opacity: .82; }

.static-help a {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.static-help a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 767px) {
    .static-aside { position: static; }
    .static-page__head { padding: 18px 18px; }
    .static-page__head h1 { font-size: 20px; }
    .static-page__body { padding: 20px 18px 24px; }
}

/* ============================================================
   Trang "Liên hệ"
   ============================================================ */
.contact-page { margin: 26px 0 50px; }

/* --- Tiêu đề --- */
.contact-hero {
    text-align: center;
    margin-bottom: 30px;
}

.contact-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e2a35;
    margin: 0 0 8px;
}

.contact-hero p {
    color: #667;
    margin: 0;
    font-size: 15px;
}

/* --- Dải 3 ô liên hệ nhanh --- */
.contact-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.contact-quick__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(20, 30, 45, .05);
    text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease;
}

.contact-quick__item:hover {
    box-shadow: 0 6px 20px rgba(18, 27, 61, .16);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-quick__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef0f7;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.contact-quick__label {
    display: block;
    color: #8a94a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.contact-quick__value {
    display: block;
    color: #1e2a35;
    font-weight: 700;
    font-size: 16px;
    word-break: break-word;
}

/* --- Thẻ chung --- */
.contact-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(20, 30, 45, .06);
    overflow: hidden;
    height: 100%;
}

.contact-card__title {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 14px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e2a35;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.contact-card__body { padding: 20px; }

/* --- Form --- */
.contact-form .form-control {
    height: 44px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    padding: 0 14px;
    margin-bottom: 14px;
    width: 100%;
}

.contact-form textarea.form-control {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.contact-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(18, 27, 61, .12);
    outline: none;
}

.contact-form__btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 13px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .15s ease;
}

.contact-form__btn:hover { opacity: .9; }

.contact-form__note {
    margin: 12px 0 0;
    color: #8a94a0;
    font-size: 13px;
    text-align: center;
}

/* --- Danh sách showroom --- */
.showroom-list { display: grid; gap: 20px; }

.showroom-list__branch h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
}

.showroom-list__branch ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.showroom-list__branch li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: #444;
    font-size: 14px;
    line-height: 1.55;
    border-bottom: 1px dashed #f0f0f0;
}

.showroom-list__branch li:last-child { border-bottom: 0; }

.showroom-list__branch li::before {
    content: "\f3c5";                 /* icon định vị */
    font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro", FontAwesome;
    position: absolute;
    left: 0;
    top: 7px;
    color: #c8ccd2;
    font-size: 13px;
}

/* --- Mạng xã hội --- */
.contact-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .15s ease;
}

.contact-social a:hover { opacity: .88; color: #fff; text-decoration: none; }

.contact-social .is-fb { background: #1877f2; }
.contact-social .is-zalo { background: #0068ff; }
.contact-social .is-yt { background: #ff0000; }

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

/* ============================================================
   Trang "Đặt hàng thành công"
   ============================================================ */
.order-success {
    max-width: 900px;
    margin: 40px auto 60px;
}

/* --- Phần đầu: dấu tích + tiêu đề --- */
.order-success__head {
    text-align: center;
    margin-bottom: 28px;
}

.order-success__check {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f7ee;
    border: 3px solid #2eb872;
    color: #2eb872;
    font-size: 42px;
    line-height: 78px;
    animation: os-pop .45s cubic-bezier(.3, 1.4, .5, 1) both;
}

@keyframes os-pop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}

.order-success__title {
    font-size: 28px;
    font-weight: 700;
    color: #1e2a35;
    margin: 0 0 10px;
}

.order-success__sub {
    color: #667;
    font-size: 15px;
    margin: 0;
}

.order-success__code {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 22px;
    background: #eef0f7;
    border: 1px dashed var(--brand);
    border-radius: 8px;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: .5px;
    font-size: 17px;
}

/* --- Thẻ nội dung --- */
.order-success__card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(20, 30, 45, .06);
    overflow: hidden;
    margin-bottom: 22px;
}

.order-success__card-title {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 13px 20px;
    font-weight: 700;
    color: #1e2a35;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.order-success__body { padding: 6px 20px 18px; }

/* --- Danh sách sản phẩm --- */
.order-success__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
}

.order-success__item:last-child { border-bottom: 0; }

.order-success__item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 6px;
    flex: 0 0 62px;
    background: #fff;
}

.order-success__item-name {
    flex: 1;
    min-width: 0;
    color: #223;
    font-weight: 600;
    line-height: 1.4;
}

.order-success__item-qty {
    color: #8a94a0;
    font-weight: 400;
    font-size: 13px;
}

.order-success__item-price {
    white-space: nowrap;
    font-weight: 600;
    color: #223;
}

/* --- Tổng tiền --- */
.order-success__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-top: 2px solid #eee;
    font-size: 16px;
    font-weight: 700;
}

.order-success__total b {
    color: var(--price-red);
    font-size: 24px;
}

/* --- Thông tin người nhận --- */
.order-success__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    padding: 18px 20px;
}

.order-success__info .label {
    display: block;
    color: #8a94a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px;
}

.order-success__info .value {
    color: #223;
    font-weight: 600;
    word-break: break-word;
}

/* --- Ghi chú tiếp theo --- */
.order-success__note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbe9;
    border: 1px solid #f5e2a3;
    border-radius: 8px;
    padding: 14px 16px;
    color: #6b5a1e;
    font-size: 14px;
    margin-bottom: 24px;
}

.order-success__note i { color: #e0a800; margin-top: 2px; }

/* --- Nút --- */
.order-success__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.order-success__btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s ease;
}

.order-success__btn:hover { opacity: .88; text-decoration: none; }

.order-success__btn--primary { background: var(--brand); color: #fff; }
.order-success__btn--primary:hover { color: #fff; }

.order-success__btn--ghost {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--brand);
}
.order-success__btn--ghost:hover { color: var(--brand); }

@media (max-width: 640px) {
    .order-success__info { grid-template-columns: 1fr; }
    .order-success__title { font-size: 23px; }
}

/* =========================================================
   NÚT "XEM THÊM" (tin tức / video)
   Theme gốc: .readmore-link { display:block; color:#0071ff; line-height:40px }
   -> chỉ là chữ xanh trơn. Đổi thành nút pill viền navy.
   ========================================================= */
.readmore-link {
    /* flex (không phải inline-flex) để "margin: auto" căn giữa được */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    /* KHÔNG dùng clear: both — nó kéo nút ra giữa cả cột col-9.
       Khoảng cách phía trên do margin-bottom của tin cuối (:last-of-type) tạo ra. */
    margin: 60px auto 24px;
    padding: 0 26px;
    line-height: 38px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* mũi tên: dịch sang phải khi hover */
.readmore-link::after {
    content: "→";
    font-size: 15px;
    line-height: 1;
    transition: transform .2s ease;
}

.readmore-link:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(18, 27, 61, .25);
    transform: translateY(-2px);
}
.readmore-link:hover::after { transform: translateX(4px); }

/* .readmore-link nằm trong flex-column của cột tin tức -> căn giữa cả khối */
.readmore-link { align-self: center; }

/* =========================================================
   PHÂN TRANG (Bootstrap 5 pagination — dùng ở danh mục, tin tức, tìm kiếm)
   Mặc định Bootstrap tô xanh #0d6efd, lệch với navy của site.
   ========================================================= */
.pagination { gap: 6px; margin: 0; }

.pagination .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    color: #4a5162;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pagination .page-link:hover {
    background: #eef1f8;
    border-color: var(--brand);
    color: var(--brand);
}
.pagination .page-link:focus { box-shadow: none; }

.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: #f7f8fa;
    border-color: #eceff3;
    color: #b7bcc5;
}

/* =========================================================
   TRANG CHI TIẾT TIN TỨC
   ========================================================= */
.post-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    /* tách khỏi thanh menu phía trên, nếu không cột sidebar dính sát mép */
    margin: 18px 0 26px;
}

.post-main {
    flex: 1;
    min-width: 0;              /* cho phép co lại, nếu không ảnh/bảng dài sẽ đẩy tràn */
    background: #fff;
    border-radius: 8px;
    padding: 22px 26px 26px;
}

.post-aside {
    flex: 0 0 292px;
    width: 292px;
    position: sticky;          /* cuộn đọc bài vẫn thấy tin mới + hotline */
    top: 12px;
}

/* --- Breadcrumb --- */
.post-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #9aa1ae;
    margin-bottom: 12px;
}
.post-crumb a { color: #7c8494; text-decoration: none; }
.post-crumb a:hover { color: var(--brand); }

/* --- Tiêu đề + thông tin --- */
.post-head { border-bottom: 1px solid #edeff2; padding-bottom: 14px; margin-bottom: 18px; }

.post-title {
    margin: 0 0 12px;
    font-size: 29px;
    line-height: 1.32;
    font-weight: 700;
    color: #18203a;            /* trước là đỏ chói -> chuyển sang navy đậm cho dễ đọc */
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 13px;
    color: #8d94a1;
}
.post-meta i { margin-right: 4px; }

.post-meta__tag {
    padding: 3px 11px;
    border-radius: 999px;
    background: #eef1f8;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.post-meta__tag:hover { background: var(--brand); color: #fff; }

/* --- Ảnh bìa --- */
.post-cover { margin: 0 0 18px; }
.post-cover img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* --- Đoạn mở đầu --- */
.post-lead {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 3px solid var(--brand);
    background: #f7f9fc;
    border-radius: 0 6px 6px 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #3d4453;
    font-weight: 500;
}

/* --- Nội dung bài (HTML từ trình soạn thảo) --- */
.post-body { font-size: 16px; line-height: 1.85; color: #38404f; }
.post-body p { margin: 0 0 15px; }
.post-body h2, .post-body h3, .post-body h4 {
    color: #18203a;
    font-weight: 700;
    line-height: 1.4;
    margin: 26px 0 11px;
}
.post-body h2 { font-size: 21px; }
.post-body h3 { font-size: 18px; }
.post-body h4 { font-size: 16px; }

.post-body ul, .post-body ol { margin: 0 0 15px; padding-left: 22px; }
.post-body li { margin-bottom: 7px; }

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.post-body a { color: var(--brand); text-decoration: underline; }

.post-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--brand);
    background: #f7f9fc;
    color: #4a5162;
    font-style: italic;
}

/* Bảng rộng phải tự cuộn, không được đẩy vỡ cả trang */
.post-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 15px;
}
.post-body th, .post-body td { border: 1px solid #e6e9ee; padding: 9px 12px; }
.post-body th { background: #f5f7fa; font-weight: 700; color: #23293a; }

/* --- Chia sẻ --- */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #edeff2;
}
.post-share__label { font-size: 13px; font-weight: 700; color: #5b6270; margin-right: 4px; }

.post-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1px solid #dfe3e9;
    border-radius: 999px;
    background: #fff;
    color: #4a5162;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.post-share__btn.is-fb:hover   { background: #1877f2; border-color: #1877f2; color: #fff; }
.post-share__btn.is-zalo:hover { background: #0068ff; border-color: #0068ff; color: #fff; }
.post-share__btn.is-copy:hover { border-color: var(--brand); color: var(--brand); }
.post-share__btn.is-done {
    background: #e8f6ec;
    border-color: #43a05b;
    color: #2f7a44;
}

/* --- Sidebar: tin mới nhất --- */
.post-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-card__title {
    margin: 0;
    padding: 12px 15px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.post-card__list { list-style: none; margin: 0; padding: 0; }
.post-card__list li + li { border-top: 1px solid #f0f2f5; }

.post-card__list a {
    display: flex;
    gap: 10px;
    padding: 11px 13px;
    color: #38404f;
    text-decoration: none;
}
.post-card__list a:hover { background: #f6f8fc; color: var(--brand); }

.post-card__list img {
    flex: 0 0 84px;
    width: 84px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
}
.post-card__list span {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__list em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 11.5px;
    color: #a3a9b4;
}

/* --- Sidebar: danh mục tin tức --- */
.news-cats { list-style: none; margin: 0; padding: 0; }
.news-cats li + li { border-top: 1px solid #f0f2f5; }

.news-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    color: #444b58;
    font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.news-cats a:hover {
    background: #f6f8fc;
    color: var(--brand);
    border-left-color: var(--brand);
}
.news-cats a.is-active {
    background: #eef1f8;
    color: var(--brand);
    font-weight: 700;
    border-left-color: var(--brand);
}

.news-cats em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 12px;
    color: #a3a9b4;
    background: #f2f4f7;
    border-radius: 999px;
    padding: 1px 8px;
}
.news-cats a.is-active em { background: var(--brand); color: #fff; }

/* --- Lưới bài viết (trang danh sách tin) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.news-grid__item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ebef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.news-grid__item:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(18, 27, 61, .12);
    transform: translateY(-3px);
}

.news-grid__img { display: block; overflow: hidden; }
.news-grid__img img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.news-grid__item:hover .news-grid__img img { transform: scale(1.05); }

.news-grid__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px 14px;
    flex: 1;
}

.news-grid__tag {
    align-self: flex-start;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: #eef1f8;
    border-radius: 999px;
    padding: 2px 9px;
}

.news-grid__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #23293a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-grid__item:hover .news-grid__title { color: var(--brand); }

.news-grid__desc {
    font-size: 13px;
    line-height: 1.6;
    color: #868d99;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid__date {
    margin-top: auto;          /* ngày luôn nằm đáy thẻ, dù tiêu đề dài ngắn khác nhau */
    padding-top: 6px;
    font-style: normal;
    font-size: 12px;
    color: #a3a9b4;
}

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

/* --- Sidebar: hộp tư vấn --- */
.post-help {
    background: var(--brand);
    border-radius: 8px;
    padding: 18px 16px;
    text-align: center;
    color: #fff;
}
.post-help__hint { margin: 0 0 6px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.post-help__phone {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.post-help__phone:hover { color: #fff; text-decoration: underline; }
.post-help__note { margin: 6px 0 0; font-size: 12px; color: rgba(255, 255, 255, .65); }

@media (max-width: 991px) {
    .post-layout { flex-direction: column; }
    .post-aside { flex: none; width: 100%; position: static; }
    .post-main { padding: 18px 16px 22px; }
    .post-title { font-size: 23px; }
}

/* =========================================================
   TRANG DANH MỤC: bộ lọc cột trái + lưới sản phẩm bên phải
   ========================================================= */
.ks-cat-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ks-cat-aside {
    flex: 0 0 232px;
    width: 232px;
    /* cuộn xuống vẫn nhìn thấy bộ lọc */
    position: sticky;
    top: 12px;
}

/* Cột phải phải cho phép co lại, nếu không lưới sẽ đẩy tràn ra ngoài */
.ks-cat-layout .ks-product-wrap { flex: 1; min-width: 0; }

/* Bớt 232px cho sidebar -> 5 sản phẩm/hàng thành chật. Đổi về 4/hàng. */
.ks-cat-layout .ks-product-list.grid-5 .product { width: calc(25% - 10px); }

@media (max-width: 1199px) {
    .ks-cat-layout .ks-product-list.grid-5 .product { width: calc(33.333% - 10px); }
}

/* Màn hẹp: bộ lọc về lại dạng ngang, nằm trên lưới */
@media (max-width: 991px) {
    .ks-cat-layout { flex-direction: column; }
    .ks-cat-aside { flex: none; width: 100%; position: static; }
    .ks-cat-layout .ks-product-list.grid-5 .product { width: calc(50% - 10px); }
}

/* --- Giới thiệu danh mục (trên lưới sản phẩm) --- */
.ks-cat-intro {
    background: #fff;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 16px;
}
/* Danh mục không có mô tả: chỉ còn mỗi H1 -> thu gọn cho khỏi trống trải */
.ks-cat-intro--bare { padding: 12px 22px; margin-bottom: 12px; }
.ks-cat-intro--bare .ks-cat-intro__title { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.ks-cat-intro__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--brand);
    padding-bottom: 9px;
    border-bottom: 1px solid #edeff2;
}

.ks-cat-intro__body {
    color: #4a5162;
    font-size: 14.5px;
    line-height: 1.75;
}
.ks-cat-intro__body :is(p, ul, ol) { margin-bottom: 10px; }
.ks-cat-intro__body :is(p, ul, ol):last-child { margin-bottom: 0; }
.ks-cat-intro__body :is(h2, h3, h4) {
    font-size: 16px;
    font-weight: 700;
    color: #23293a;
    margin: 14px 0 7px;
}
.ks-cat-intro__body img { max-width: 100%; height: auto; border-radius: 6px; }
.ks-cat-intro__body a { color: var(--brand); text-decoration: underline; }

/* Thu gọn: cắt còn ~4 dòng, kèm dải mờ ở đáy cho biết còn nội dung bên dưới */
.ks-cat-intro__body.is-clamped {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}
.ks-cat-intro__body.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.ks-cat-intro__more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px auto 0;
    padding: 5px 16px;
    border: 1px solid #dfe3e9;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ks-cat-intro__more:hover { border-color: var(--brand); }
.ks-cat-intro__more i { transition: transform .18s ease; }
.ks-cat-intro__more.is-open i { transform: rotate(180deg); }

/* --- Dropdown "Xếp theo" ---
   Theme dựa vào class .dropdown-menu của Bootstrap 5 để ẩn/hiện, nhưng trang chỉ nạp
   JS Bootstrap 3 -> không bao giờ mở. Giờ tự lo cả ẩn/hiện lẫn vị trí. */
.ks-sort-cate .ks-dropdown__cta { display: flex; align-items: center; gap: 8px; }
.ks-sort-cate .ks-dropdown__cta i { font-size: 12px; color: #8b929e; transition: transform .18s ease; }
.ks-sort-cate .ks-dropdown.is-open .ks-dropdown__cta i { transform: rotate(180deg); }

.ks-sort-cate .ks-dropdown__content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;                 /* mở về bên trái, tránh tràn ra khỏi khung */
    z-index: 60;
    background: #fff;
    border: 1px solid #e6e9ee;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}
.ks-sort-cate .ks-dropdown.is-open .ks-dropdown__content { display: block; }

.ks-sort-cate .ks-dropdown__item a { padding: 10px 14px; font-size: 13.5px; }
.ks-sort-cate .ks-dropdown__item a:hover { border-color: var(--brand); }
.ks-sort-cate .ks-dropdown__item a.active {
    background: #eef1f8;
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
}

/* --- Khung bộ lọc --- */
.ks-filter {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    overflow: hidden;
}

.ks-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ks-filter__head i { margin-right: 5px; }

.ks-filter__clear {
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .75);
    text-decoration: underline;
}
.ks-filter__clear:hover { color: #fff; }

.ks-filter__group { padding: 12px 14px; }
.ks-filter__group + .ks-filter__group { border-top: 1px solid #eef0f3; }

.ks-filter__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #2d3546;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ks-filter__list { list-style: none; margin: 0; padding: 0; }

/* --- Một dòng lựa chọn --- */
.ks-filter__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13.5px;
    color: #444b58;
}

/* Ẩn input thật, vẽ ô tick riêng để đồng nhất trên mọi trình duyệt */
.ks-filter__opt input { position: absolute; opacity: 0; pointer-events: none; }

.ks-filter__box {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd0d8;
    border-radius: 3px;
    background: #fff;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
}
.ks-filter__box--radius,
.ks-filter__box--radio { border-radius: 50%; }

/* Dấu tick (checkbox) */
.ks-filter__opt input:checked + .ks-filter__box {
    background: var(--brand);
    border-color: var(--brand);
}
.ks-filter__opt input:checked + .ks-filter__box::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Chấm tròn (radio) — đè lên dấu tick ở trên */
.ks-filter__opt input:checked + .ks-filter__box--radio::after {
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.ks-filter__text { flex: 1; min-width: 0; }
.ks-filter__opt:hover .ks-filter__text { color: var(--brand); }
.ks-filter__opt input:checked ~ .ks-filter__text { color: var(--brand); font-weight: 600; }

.ks-filter__count {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 12px;
    color: #a3a9b4;
}

/* Lựa chọn không có sản phẩm nào */
.ks-filter__opt.is-disabled { cursor: not-allowed; color: #b7bcc5; }
.ks-filter__opt.is-disabled:hover .ks-filter__text { color: #b7bcc5; }
.ks-filter__opt.is-disabled .ks-filter__box { background: #f2f3f5; border-color: #e5e8ec; }

/* --- Nút áp dụng --- */
.ks-filter__apply {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 9px 0;
    border: none;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
/* Có JS -> tự lọc khi tick, nút này thành thừa.
   Không có JS thì nút vẫn hiện và form submit bình thường. */
.ks-filter.is-auto .ks-filter__apply { display: none; }

.ks-filter__empty { padding: 54px 0; text-align: center; color: #8b929e; }
.ks-filter__empty a { color: var(--brand); font-weight: 600; }

/* =========================================================
   GỢI Ý TÌM KIẾM (autocomplete) ở ô search header
   ========================================================= */
/* Neo dropdown vào ô search */
.ks-header-search { position: relative; }

.ks-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;               /* phải cao hơn slider/banner ngay bên dưới */
    max-height: 460px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
    overflow-x: hidden;
}
.ks-suggest[hidden] { display: none; }

/* Nhãn nhóm: "Danh mục" / "Sản phẩm" */
.ks-suggest__group {
    padding: 9px 14px 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #9aa1ae;
    background: #f7f8fa;
}

/* Dòng danh mục */
.ks-suggest__cat {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.ks-suggest__cat i { color: var(--brand); font-size: 13px; }

/* Dòng sản phẩm */
.ks-suggest__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    color: #333;
    text-decoration: none;
    border-top: 1px solid #f2f3f5;
}
.ks-suggest__item img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 46px;
    background: #f6f6f6;
    border-radius: 6px;
}
.ks-suggest__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ks-suggest__name {
    font-size: 14px;
    line-height: 19px;
    /* tên sản phẩm dài -> cắt 2 dòng, không cho vỡ layout */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ks-suggest__cat-name { font-size: 12px; color: #98a0ad; }

.ks-suggest__price {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--price-red);      /* giá vẫn giữ màu đỏ */
    white-space: nowrap;
}
.ks-suggest__price del {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #b0b6c0;
}

/* Phần khớp từ khoá */
.ks-suggest b { color: var(--brand); font-weight: 700; }

/* Hover + di chuyển bằng phím mũi tên dùng chung một kiểu */
.ks-suggest__item:hover, .ks-suggest__item.is-active,
.ks-suggest__cat:hover,  .ks-suggest__cat.is-active,
.ks-suggest__all:hover,  .ks-suggest__all.is-active {
    background: #eef1f8;
    color: var(--brand);
}

/* Dòng cuối: xem tất cả kết quả */
.ks-suggest__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px;
    border-top: 1px solid #e9ebef;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.ks-suggest__loading,
.ks-suggest__empty {
    padding: 18px 16px;
    text-align: center;
    font-size: 14px;
    color: #8b929e;
}
.ks-suggest__empty small { color: #aab0ba; }

/* Tin/video cuối cùng cần margin-bottom, nếu không đáy khối float chạm sát nút.
   Không dùng :last-child được vì con cuối của .ks-news là <a.readmore-link>,
   nên dùng :last-of-type (chỉ xét các thẻ <div>). */
.ks-news .news-item:last-of-type,
.ks-news.type-2 .news-item:last-of-type {
    margin-bottom: 19px;
}

/* H1 ẩn cho SEO — vẫn nằm trong DOM cho công cụ tìm kiếm, không chiếm chỗ trực quan.
   Không dùng display:none (Google bỏ qua nội dung ẩn hẳn). */
.visually-hidden-seo {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   MOBILE / TABLET
   Theme gốc chỉ có bản PC (thư mục Content/pc/), responsive.css của nó
   không đụng tới một lớp layout nào — toàn bộ phần dưới đây là bổ sung.
   Lưu ý: .col-8 / .col-9 của Bootstrap KHÔNG có breakpoint, chúng giữ
   nguyên tỉ lệ ở mọi bề rộng, nên phải ghi đè thủ công.
   ========================================================= */

/* --- Hamburger + drawer + thanh nav dưới: chỉ tồn tại trên mobile --- */
.ks-burger,
.ks-drawer,
.ks-drawer-backdrop,
.ks-bottomnav { display: none; }

.ks-drawer__menu,
.ks-drawer__links { list-style: none; margin: 0; padding: 0; }

@media (max-width: 991px) {

    /* Chặn tràn ngang: một phần tử lỡ rộng quá sẽ kéo cả trang trượt ngang */
    html, body { overflow-x: hidden; max-width: 100%; }

    /* ---------- Header: 2 hàng ----------
       Hàng 1:  [≡]  logo  ..........  [giỏ hàng]
       Hàng 2:  [  ô tìm kiếm chiếm hết chiều ngang  ]

       Ô tìm kiếm (.w58p) bị chôn trong .col-9 > .row, nên nó chỉ chiếm phần còn
       lại sau logo. "display: contents" gỡ hai lớp bọc đó khỏi cây bố cục, để
       .w58p / .w42p thành con TRỰC TIẾP của hàng ngoài cùng — có vậy ô tìm kiếm
       mới xuống được hàng riêng và trải hết chiều ngang. */
    #ks-header-top .container > .row {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 10px;
    }
    #ks-header-top .col-9,
    #ks-header-top .col-9 > .row { display: contents; }

    #ks-header-top .col-3 {
        order: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        width: auto;
        flex: 0 0 auto;
        padding-right: 0;
    }
    .ks-logo img { max-height: 34px; width: auto; }

    #ks-header-top .w42p { order: 2; flex: 1 1 auto; width: auto; }
    #ks-header-top .w58p { order: 3; flex: 0 0 100%; width: 100%; }

    /* Chỉ giữ giỏ hàng; showroom và "gọi mua hàng" đã có trong drawer + thanh nav dưới */
    .ks-list-action .ks-showroom,
    .ks-list-action li:not(.ks-cart) { display: none; }
    .ks-list-action { justify-content: flex-end; margin: 0; }

    /* Giỏ hàng: chỉ còn icon + số lượng, bỏ chữ và bỏ popup (không hợp trên mobile) */
    .ks-list-action .ks-cart > a { font-size: 0; padding: 0; }
    .ks-list-action .ks-cart .ks-icon { font-size: 22px; }
    .ks-list-action .ks-cart .droplist-box { display: none !important; }

    /* Ô tìm kiếm: bo tròn, cao thoáng tay */
    .ks-header-search input[type="search"] {
        height: 42px;
        border-radius: 999px;
        padding-left: 16px;
        font-size: 14px;
    }
    .ks-header-search button {
        border-radius: 0 999px 999px 0;
        width: 46px;
    }

    .ks-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        padding: 0 8px;
        border: none;
        border-radius: 6px;
        background: rgba(255, 255, 255, .12);
        cursor: pointer;
    }
    .ks-burger span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: #fff;
    }

    /* ---------- Drawer ---------- */
    .ks-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(0, 0, 0, .45);
    }
    .ks-drawer-backdrop[hidden] { display: none; }

    .ks-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        width: 82%;
        max-width: 320px;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    .ks-drawer.is-open { transform: translateX(0); }

    .ks-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: var(--brand);
        color: #fff;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 14px;
    }
    .ks-drawer__close {
        border: none;
        background: transparent;
        color: #fff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    .ks-drawer__body { flex: 1; overflow-y: auto; padding-bottom: 20px; }

    .ks-drawer__row {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f0f2f5;
    }
    .ks-drawer__row a {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        color: #38404f;
        font-size: 14.5px;
        text-decoration: none;
    }
    .ks-drawer__row a:hover { color: var(--brand); }

    .ks-drawer__toggle {
        flex: 0 0 46px;
        height: 46px;
        border: none;
        border-left: 1px solid #f0f2f5;
        background: transparent;
        color: #8b929e;
        cursor: pointer;
    }
    .ks-drawer__menu li.is-open .ks-drawer__toggle i { transform: rotate(180deg); }
    .ks-drawer__toggle i { transition: transform .2s ease; }

    /* Danh mục con: đóng sẵn, bấm mũi tên mới mở */
    .ks-drawer__sub { display: none; list-style: none; margin: 0; padding: 0; background: #f7f9fc; }
    .ks-drawer__menu li.is-open .ks-drawer__sub { display: block; }
    .ks-drawer__sub a {
        display: block;
        padding: 10px 16px 10px 46px;
        color: #5b6270;
        font-size: 13.5px;
        text-decoration: none;
        border-bottom: 1px solid #eef1f5;
    }

    .ks-drawer__links { margin-top: 10px; border-top: 1px solid #f0f2f5; }
    .ks-drawer__links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        color: #38404f;
        text-decoration: none;
        border-bottom: 1px solid #f0f2f5;
    }

    .ks-drawer__hotline {
        display: block;
        margin: 14px 16px 0;
        padding: 11px;
        border-radius: 8px;
        background: var(--brand);
        color: #fff;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }
    .ks-drawer__hotline:hover { color: #fff; }

    /* ---------- Thanh menu danh mục + dịch vụ (chỉ dành cho PC) ---------- */
    #ks-header-bottom { display: none; }

    /* ---------- Trang chủ ---------- */
    /* Cột trống 20% dành cho menu PC -> bỏ hẳn trên mobile */
    #ks-slider-banner .w20p { display: none; }
    .w20p, .w80p { width: 100%; flex: 0 0 100%; }

    /* Slider + 2 banner nhỏ: xếp chồng, tràn hết chiều ngang */
    #ks-slider-banner .col-8,
    #ks-slider-banner .col-4 { width: 100%; flex: 0 0 100%; }
    #ks-slider-banner .col-4 { margin-top: 12px; }
    .ks-adv-banner-wrap { display: flex; gap: 12px; }
    .ks-adv-banner { flex: 1; margin-bottom: 0 !important; }
    .ks-adv-banner img { width: 100%; height: auto; }

    /* Tin tức (col-9) + Video (col-3): xếp chồng */
    .ks-news .news-item,
    .ks-news .news-item-1 { float: none; width: 100%; margin-left: 0; }
    .ks-news .news-item-1 .name a { font-size: 16px; }

    /* ---------- Tiêu đề băng đỏ (TIN TỨC, TOP SẢN PHẨM BÁN CHẠY...) ----------
       Theme cố định height:65px + font-size:36px. Tiêu đề dài xuống 2 dòng là
       tràn ra ngoài băng. Bản mobile của chính theme dùng 46px / 18px. */
    .ks-heading,
    .ks-heading > div {
        height: auto;
        min-height: 46px;
    }
    .ks-heading.type-text > div {
        font-size: 18px;
        line-height: 1.25;
        margin: 0;
        padding: 12px 14px;
        text-align: center;
        /* Viền chữ 3px của bản PC quá dày ở cỡ chữ nhỏ -> làm chữ dính bết */
        filter: none;
        text-shadow:
            1px 0 var(--main-color), -1px 0 var(--main-color),
            0 1px var(--main-color), 0 -1px var(--main-color),
            1px 1px var(--main-color), -1px -1px var(--main-color),
            1px -1px var(--main-color), -1px 1px var(--main-color);
    }

    /* ---------- Lưới sản phẩm ---------- */
    /* Theme để 5 sản phẩm/hàng ở MỌI bề rộng -> trên điện thoại mỗi thẻ chỉ còn ~65px */
    .ks-product-list.grid-5 .product { width: calc(33.333% - 10px); }

    /* ---------- Footer ---------- */
    .footer-brands { flex-wrap: wrap; justify-content: center; gap: 18px; }

    /* Khối cuối chân trang. Theme dùng:
         .footer-end-wrap { padding: 12px 72px }      -> mất 144px chiều ngang
         .foot_company / .foot_payment { float:left; width:38% }
       float + width cố định nên "flex-direction: column" KHÔNG có tác dụng:
       cột chỉ còn ~97px, chữ xuống 2 từ mỗi dòng. Phải gỡ float và trả width về 100%. */
    .footer-end-wrap {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }
    .foot_company,
    .foot_payment,
    .foot_ship_robin {
        float: none;
        width: 100%;
        margin-bottom: 18px;
    }
    .foot_ship_robin { margin-bottom: 0; }
    .foot_company p { margin: 0; }

    /* Icon thanh toán/chứng nhận: table-cell không bao giờ xuống dòng -> tràn ngang.
       Đổi sang flex có wrap. */
    .foot_icons ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 0;
    }
    .foot_icons ul li {
        display: inline-flex;
        padding: 0;
    }

    /* ---------- Thanh điều hướng dưới đáy ---------- */
    .ks-bottomnav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1080;              /* dưới drawer (1100) và nền mờ (1090) */
        background: #fff;
        border-top: 1px solid #e6e9ee;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
        /* chừa chỗ cho thanh home của iPhone */
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .ks-bottomnav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 7px 2px 6px;
        border: none;
        background: transparent;
        color: #6b7280;
        font-size: 11px;
        line-height: 1.2;
        text-decoration: none;
        cursor: pointer;
    }
    .ks-bottomnav__item i { font-size: 18px; }
    .ks-bottomnav__item.is-active { color: var(--brand); font-weight: 600; }
    .ks-bottomnav__call { color: var(--price-red); }

    /* Số lượng trong giỏ */
    .ks-bottomnav__icon { position: relative; display: inline-flex; }
    .ks-bottomnav__badge {
        position: absolute;
        top: -6px;
        left: 11px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--price-red);
        color: #fff;
        font-style: normal;
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    /* Thanh nav che mất đáy trang -> đẩy nội dung lên tương ứng */
    body { padding-bottom: 62px; }

    /* ---------- Nút nổi (Zalo / Messenger / hotline) ---------- */
    /* Thanh nav dưới đã có "Gọi ngay" + "Zalo", và cụm nút nổi nằm chồng lên nó
       ở góc trái dưới -> ẩn hẳn trên mobile thay vì để hai thứ đè nhau. */
    .hotline-scroll-section,
    a.ms,
    a.zl { display: none !important; }
}

/* Các cột .col-1 … .col-11 của Bootstrap KHÔNG có breakpoint — chúng giữ nguyên
   tỉ lệ kể cả trên điện thoại. Dưới 992px cho tất cả xếp chồng (trừ header, đã
   xử lý riêng ở trên với độ ưu tiên cao hơn).
   Không đụng .col-md-* / .col-lg-* vì các lớp đó vốn đã responsive. */
@media (max-width: 991px) {
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 767px) {
    /* 2 sản phẩm/hàng là mức đọc được trên điện thoại */
    .ks-product-list.grid-5 .product { width: calc(50% - 10px); }
    .ks-cat-layout .ks-product-list.grid-5 .product { width: calc(50% - 10px); }

    .ks-adv-banner-wrap { flex-direction: column; }

    /* Bảng dài trong bài viết / thông số: cho cuộn ngang thay vì đẩy vỡ trang */
    .pdp-box table, .post-body table { display: block; overflow-x: auto; }

    .post-title { font-size: 21px; }
    .ks-cat-intro { padding: 14px 16px; }
    .ks-cat-intro__title { font-size: 18px; }

    /* Gợi ý tìm kiếm: bám hết chiều ngang màn hình */
    .ks-suggest { max-height: 60vh; }
    .ks-suggest__price { font-size: 13px; }

    /* Phân trang nhiều số -> cho xuống dòng thay vì tràn */
    .pagination { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .ks-logo img { max-height: 32px; }
    .ks-list-action .ks-cart a { font-size: 0; }        /* chỉ còn icon giỏ hàng */
    .ks-list-action .ks-cart .ks-icon { font-size: 20px; }
    .ks-suggest__item img { width: 38px; height: 38px; flex: 0 0 38px; }
}
