@import "../../assets/css/breakpoints.css";

/* ── CSS VARIABLES (tại :root để dùng được ngoài .xm-main) ─── */
:root {
    --xm-red:        var(--color-red-600);
    --xm-red-dark:   var(--color-red-700);
    --xm-dark:       #121415;
    --xm-gray:       #6a6868;
    --xm-light:      #F1F5FA;
    --xm-radius:     12px;
    --xm-shadow:     0 4px 24px rgba(0,0,0,.10);
    --xm-shadow-sm:  0 2px 10px rgba(0,0,0,.07);
    --xm-tr:         .28s ease;
}

/* ── BREADCRUMB (fallback .xm-breadcrumb + silo_breadcrumb output) ── */
.xm-breadcrumb,
.silo-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 9px 0;
}

/* silo_breadcrumb() output: <nav class="silo-breadcrumb"><ol><li>…
   Không có .container bên trong nên cần mô phỏng container bằng CSS */
.silo-breadcrumb { display: block; }
.silo-breadcrumb ol {
    display: flex; flex-wrap: wrap; align-items: center;
    list-style: none; margin: 0 auto; gap: 0;
    font-size: .82rem;
    /* Mô phỏng Bootstrap container */
    max-width: 1320px;
    padding-left:  max(12px, calc((100vw - 1320px) / 2 + 12px));
    padding-right: max(12px, calc((100vw - 1320px) / 2 + 12px));
    padding-top: 0; padding-bottom: 0;
}
.silo-breadcrumb li {
    display: inline-flex; align-items: center;
    color: var(--xm-dark); font-weight: 600;
}
.silo-breadcrumb li a {
    color: var(--xm-gray); font-weight: 400;
    text-decoration: none !important;
    transition: color var(--xm-tr);
}
.silo-breadcrumb li a:hover { color: var(--xm-red); }
.silo-breadcrumb .bc-sep {
    color: #bbb; margin: 0 6px; font-size: .85rem;
    font-weight: 400; user-select: none;
}

/* Bootstrap breadcrumb fallback */
.xm-breadcrumb .breadcrumb {
    margin: 0; font-size: .82rem; gap: 0; padding-left: 12px;
}
.xm-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '›'; color: #bbb; padding: 0 6px; font-size: .9rem;
}
.xm-breadcrumb .breadcrumb-item a {
    color: var(--xm-gray); text-decoration: none !important;
    transition: color var(--xm-tr);
}
.xm-breadcrumb .breadcrumb-item a:hover { color: var(--xm-red); }
.xm-breadcrumb .breadcrumb-item.active { color: var(--xm-dark); font-weight: 600; }

/* ── SHARED BUTTONS ──────────────────────────────────────────── */
.xm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px;
    border-radius: 7px;
    font-weight: 700; font-size: .9rem; font-family: inherit;
    transition: all var(--xm-tr);
    white-space: nowrap; min-height: 48px;
    cursor: pointer; border: 2px solid transparent;
    text-decoration: none !important; line-height: 1.2;
}
.xm-btn i { font-size: .9em; }
.xm-btn--primary  { background: var(--xm-red);  color: #fff !important; border-color: var(--xm-red); }
.xm-btn--primary:hover  { background: var(--xm-red-dark); border-color: var(--xm-red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--primary-rgb), .35); }
.xm-btn--outline  { background: transparent; color: var(--xm-red) !important; border-color: var(--xm-red); }
.xm-btn--outline:hover  { background: var(--xm-red); color: #fff !important; }
.xm-btn--white    { background: #fff; color: var(--xm-red) !important; border-color: #fff; font-weight: 800; }
.xm-btn--white:hover    { background: #ffe8e8; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.xm-btn--outline-white  { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.65); }
.xm-btn--outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.xm-btn--outline-dark   { background: transparent; color: var(--xm-dark) !important; border-color: #d0d0d0; }
.xm-btn--outline-dark:hover  { background: var(--xm-dark); color: #fff !important; border-color: var(--xm-dark); }

/* ── SECTION SHARED ──────────────────────────────────────────── */
.xm-section { padding: 64px 0; }
.xm-section--gray { background: var(--xm-light); }
.xm-section--dark { background: var(--xm-dark); }
.xm-section-header { max-width: 700px; margin-inline: auto; }

.xm-section-title {
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 900; color: var(--xm-dark);
    line-height: 1.25; margin-bottom: 10px;
    position: relative; padding-bottom: 16px;
}
/* Centered underline (default) */
.xm-section-title::after {
    content: '';
    position: absolute; bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 48px; height: 3px;
    background: var(--xm-red); border-radius: 2px;
}
/* Left-aligned underline variant */
.xm-section-title--left { text-align: left; }
.xm-section-title--left::after { left: 0; transform: none; }

.xm-section-sub { color: var(--xm-gray); font-size: .93rem; line-height: 1.6; margin-bottom: 0; }

/* ── HERO ────────────────────────────────────────────────────── */
.xm-hero {
    position: relative;
    background: linear-gradient(155deg, #0c0c0c 0%, #1c0002 45%, #350408 100%);
    min-height: 500px;
    display: flex; align-items: center;
    overflow: hidden; padding: 64px 0 56px;
}
/* Decorative red glow circles */
.xm-hero::before,
.xm-hero::after {
    content: '';
    position: absolute; border-radius: 50%; pointer-events: none;
}
.xm-hero::before {
    width: 560px; height: 560px;
    right: -100px; top: -140px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .18) 0%, transparent 70%);
}
.xm-hero::after {
    width: 320px; height: 320px;
    left: -80px; bottom: -100px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .10) 0%, transparent 70%);
}
.xm-hero__inner  { position: relative; z-index: 1; }
.xm-hero__badge  {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .18);
    color: var(--color-red-600); font-size: .75rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.xm-hero__badge i { font-size: .7rem; }
.xm-hero__title  {
    font-size: clamp(1.55rem, 4vw, 2.75rem);
    font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 14px;
}
.xm-hero__title span { color: var(--color-red-600); }
.xm-hero__desc {
    color: rgba(255,255,255,.75); font-size: .97rem; line-height: 1.7;
    max-width: 540px; margin-bottom: 30px;
}
.xm-hero__ctas  { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.xm-hero__trust { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.xm-hero__trust-item {
    display: flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,.75); font-size: .82rem;
}
.xm-hero__trust-item i { color: var(--color-red-600); font-size: .85rem; }

/* Right visual panel */
.xm-hero__visual {
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.xm-hero__stat-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; padding: 16px 24px;
    color: #fff; min-width: 180px;
}
.xm-hero__stat-card strong {
    display: block; font-size: 1.7rem; font-weight: 900; color: var(--xm-gold); line-height: 1;
}
.xm-hero__stat-card span { font-size: .78rem; opacity: .75; margin-top: 3px; display: block; }

/* ── FILTER BAR ──────────────────────────────────────────────── */
.xm-filter {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    position: relative; z-index: 200;
    transition: box-shadow var(--xm-tr);
}
.xm-filter--sticky {
    position: sticky; top: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.xm-filter__track {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.xm-filter__track::-webkit-scrollbar { display: none; }
.xm-filter__list {
    display: flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 10px 0;
    white-space: nowrap; width: max-content; min-width: 100%;
}
.xm-filter__btn {
    padding: 7px 20px; min-height: 38px;
    border: 1.5px solid #e0e0e0; border-radius: 100px;
    background: transparent; font-family: inherit;
    font-size: .83rem; font-weight: 600; color: var(--xm-gray);
    cursor: pointer; transition: all var(--xm-tr); white-space: nowrap;
    letter-spacing: .2px;
}
.xm-filter__btn:hover  { border-color: var(--xm-red); color: var(--xm-red); }
.xm-filter__btn.active { background: var(--xm-red); border-color: var(--xm-red); color: #fff; }

/* ── CARD GRID ───────────────────────────────────────────────── */
.xm-card-wrap { display: flex; }
.xm-card {
    background: #fff; border-radius: var(--xm-radius);
    box-shadow: var(--xm-shadow-sm);
    border: 1px solid #f0f0f0;
    overflow: hidden; width: 100%;
    display: flex; flex-direction: column;
    transition: transform var(--xm-tr), box-shadow var(--xm-tr), border-color var(--xm-tr);
}
.xm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
    border-color: #e8e8e8;
}
.xm-card__img-link { display: block; overflow: hidden; background: #f7f7f7; }
.xm-card__fig { margin: 0; aspect-ratio: 16/9; overflow: hidden; }
.xm-card__img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
    display: block;
}
.xm-card:hover .xm-card__img { transform: scale(1.05); }
.xm-card__fig--placeholder {
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    background: var(--xm-light); color: #ccc; font-size: 3rem;
}
.xm-card__body  { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.xm-card__label {
    display: inline-block; font-size: .7rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--xm-red); margin-bottom: 6px;
}
.xm-card__name  {
    font-size: 1.12rem; font-weight: 800; color: var(--xm-dark); margin: 0 0 6px;
    line-height: 1.3;
}
.xm-card__name a { color: inherit; text-decoration: none !important; }
.xm-card__name a:hover { color: var(--xm-red); }
.xm-card__price {
    font-size: 1rem; font-weight: 700; color: var(--xm-red); margin: 0 0 16px;
}
.xm-card__price span { font-size: .8rem; font-weight: 500; color: var(--xm-gray); }
.xm-card__ctas  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.xm-card__btn {
    display: flex; align-items: center; justify-content: center;
    padding: 9px 6px; border-radius: 7px; gap: 5px;
    font-size: .8rem; font-weight: 700; font-family: inherit;
    text-decoration: none !important; transition: all var(--xm-tr);
    min-height: 42px; text-align: center; line-height: 1.2; cursor: pointer;
}
.xm-card__btn--outline {
    border: 1.5px solid #d0d0d0; color: var(--xm-dark) !important; background: transparent;
}
.xm-card__btn--outline:hover { border-color: var(--xm-dark); background: var(--xm-dark); color: #fff !important; }
.xm-card__btn--primary {
    border: 1.5px solid var(--xm-red); background: var(--xm-red); color: #fff !important;
}
.xm-card__btn--primary:hover { background: var(--xm-red-dark); border-color: var(--xm-red-dark); }

/* ── ƯU ĐÃI SECTION ─────────────────────────────────────────── */
.xm-promo__box {
    background: linear-gradient(130deg, var(--xm-red) 0%, #8c000e 100%);
    border-radius: 16px; padding: 48px 44px;
    color: #fff; position: relative; overflow: hidden;
}
.xm-promo__box::before {
    content: ''; position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 65%);
    pointer-events: none; border-radius: 50%;
}
.xm-promo__eyebrow {
    font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    color: var(--xm-gold); margin-bottom: 10px; opacity: .9;
}
.xm-promo__title {
    font-size: clamp(1.25rem, 2.8vw, 1.85rem);
    font-weight: 900; margin-bottom: 22px; line-height: 1.3;
}
.xm-promo__list { list-style: none; padding: 0; margin-bottom: 22px; display: flex; flex-direction: column; gap: 11px; }
.xm-promo__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; line-height: 1.5; }
.xm-promo__list i { color: var(--xm-gold); flex-shrink: 0; margin-top: 3px; }
.xm-promo__urgency {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.2);
    padding: 8px 18px; border-radius: 100px;
    font-size: .82rem; font-weight: 600; margin-bottom: 26px;
}
.xm-promo__badge {
    width: 170px; height: 170px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(4px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin: 0 auto;
}
.xm-promo__badge-pct {
    font-size: 4rem; font-weight: 900; color: var(--xm-gold); line-height: 1;
}
.xm-promo__badge-label { font-size: .8rem; font-weight: 600; text-align: center; opacity: .85; margin-top: 4px; }

/* ── LEAD FORM ───────────────────────────────────────────────── */
.xm-lead__box {
    background: #fff; border-radius: 16px;
    box-shadow: var(--xm-shadow); padding: 44px 40px; text-align: center;
    border: 1px solid #f0f0f0;
}
.xm-lead__title {
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 900; color: var(--xm-dark); margin-bottom: 6px;
}
.xm-lead__sub { color: var(--xm-gray); margin-bottom: 28px; font-size: .92rem; }
.xm-lead__input {
    border: 1.5px solid #e4e4e4 !important;
    border-radius: 8px !important; height: 50px !important;
    font-size: .9rem !important; font-family: inherit !important;
    transition: border-color var(--xm-tr) !important;
    padding: 0 14px !important;
}
.xm-lead__input:focus { border-color: var(--xm-red) !important; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .08) !important; }
.form-select.xm-lead__input { padding-right: 36px !important; cursor: pointer; }

/* ── BẢNG GIÁ ────────────────────────────────────────────────── */
.xm-table-wrap { border-radius: var(--xm-radius); overflow: hidden; box-shadow: var(--xm-shadow-sm); border: 1px solid #ececec; }
.xm-table { margin: 0; }
.xm-table thead th {
    background: var(--xm-dark); color: #fff; font-weight: 700;
    padding: 14px 18px; font-size: .85rem; border: none; white-space: nowrap;
}
.xm-table thead th:first-child { padding-left: 24px; }
.xm-table tbody td { padding: 13px 18px; vertical-align: middle; border-color: #f5f5f5; font-size: .9rem; }
.xm-table tbody td:first-child { padding-left: 24px; }
.xm-table tbody tr:hover { background: #fef8f8; }
.xm-table__name a { color: var(--xm-dark); font-weight: 700; text-decoration: none !important; transition: color var(--xm-tr); }
.xm-table__name a:hover { color: var(--xm-red); }
.xm-table__price { font-weight: 700; color: var(--xm-red); white-space: nowrap; }
.xm-table__link {
    color: var(--xm-red); font-weight: 600; font-size: .85rem;
    text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px;
    transition: gap var(--xm-tr);
}
.xm-table__link:hover { gap: 8px; color: var(--xm-red-dark); }
.xm-badge-loai {
    display: inline-block; font-size: .72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
    background: var(--xm-light); color: var(--xm-gray); border: 1px solid #e0e0e0;
}

/* ── LÝ DO CHỌN ──────────────────────────────────────────────── */
.xm-reason-card {
    background: #fff; border-radius: var(--xm-radius);
    padding: 30px 22px 26px; text-align: center;
    box-shadow: var(--xm-shadow-sm); border: 1px solid #f0f0f0;
    height: 100%;
    transition: transform var(--xm-tr), box-shadow var(--xm-tr);
}
.xm-reason-card:hover { transform: translateY(-5px); box-shadow: var(--xm-shadow); }
.xm-reason-card__icon {
    width: 62px; height: 62px; border-radius: 16px;
    background: linear-gradient(135deg, #fff0f1, #ffe0e2);
    margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    color: var(--xm-red); font-size: 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), .15);
}
.xm-reason-card__title { font-size: .97rem; font-weight: 800; color: var(--xm-dark); margin-bottom: 8px; }
.xm-reason-card__desc  { font-size: .83rem; color: var(--xm-gray); margin: 0; line-height: 1.65; }

/* ── TRUST STRIP ─────────────────────────────────────────────── */
.xm-trust {
    background: var(--xm-dark);
    border-top: 3px solid var(--xm-red);
    padding: 0;
}
.xm-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.xm-trust__item {
    padding: 32px 16px; text-align: center;
    border-right: 1px solid rgba(255,255,255,.07);
    position: relative;
}
.xm-trust__item:last-child { border-right: none; }
.xm-trust__num {
    display: block; font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 900; color: var(--xm-gold); line-height: 1; margin-bottom: 6px;
}
.xm-trust__label { font-size: .8rem; color: rgba(255,255,255,.6); letter-spacing: .3px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.xm-accordion-wrap { max-width: 800px; margin: 0 auto; }
.xm-accordion { display: flex; flex-direction: column; gap: 8px; }
.xm-accordion__item {
    border: 1.5px solid #ececec !important;
    border-radius: 10px !important; overflow: hidden;
    background: #fff; box-shadow: var(--xm-shadow-sm);
}
.xm-accordion__btn {
    font-weight: 700; font-size: .92rem; color: var(--xm-dark);
    background: #fff; padding: 18px 20px; border: none;
    box-shadow: none !important; line-height: 1.4;
}
.xm-accordion__btn:not(.collapsed) {
    color: var(--xm-red); background: #fff9f9;
}
.xm-accordion__btn::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236a6868'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    flex-shrink: 0; width: 18px; height: 18px;
}
.xm-accordion__btn:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ec1c2c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.xm-accordion__body {
    padding: 4px 20px 20px;
    color: var(--xm-gray); font-size: .9rem; line-height: 1.75;
    background: #fff9f9; border-top: 1px solid #f5e8e8;
}

/* ── RELATED LINKS ───────────────────────────────────────────── */
.xm-related-link {
    display: flex; align-items: center; gap: 9px;
    background: #fff; border-radius: 9px; padding: 11px 15px;
    font-size: .82rem; font-weight: 600; color: var(--xm-dark) !important;
    text-decoration: none !important;
    border: 1.5px solid #ececec;
    transition: all var(--xm-tr);
    box-shadow: var(--xm-shadow-sm);
}
.xm-related-link:hover {
    background: var(--xm-red); color: #fff !important;
    border-color: var(--xm-red);
    transform: translateY(-2px); box-shadow: 0 4px 16px rgba(var(--primary-rgb), .25);
}
.xm-related-link i { color: var(--xm-red); flex-shrink: 0; font-size: .9rem; transition: color var(--xm-tr); }
.xm-related-link:hover i { color: #fff; }

/* ── FINAL CTA ───────────────────────────────────────────────── */
.xm-final-cta {
    background: linear-gradient(150deg, #0c0c0c 0%, #1e0003 60%, #2e0005 100%);
    padding: 80px 0; position: relative; overflow: hidden;
    border-top: 3px solid var(--xm-red);
}
.xm-final-cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(var(--primary-rgb), .12) 0%, transparent 70%);
}
.xm-final-cta__inner { position: relative; z-index: 1; }
.xm-final-cta__title {
    font-size: clamp(1.4rem, 3.5vw, 2.3rem);
    font-weight: 900; color: #fff; margin-bottom: 12px; line-height: 1.25;
}
.xm-final-cta__title span { color: var(--xm-gold); }
.xm-final-cta__sub { color: rgba(255,255,255,.7); font-size: .97rem; max-width: 580px; margin: 0 auto 36px; line-height: 1.7; }
.xm-final-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }
.xm-final-cta__meta {
    color: rgba(255,255,255,.45); font-size: .8rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
}
.xm-final-cta__meta i { color: var(--xm-gold); }

/* ── QUOTE POPUP (shared with product detail page) ──────────── */
.qp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

.qp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 920px;
  max-width: 95%;
  background: #fff;
  border-radius: var(--xm-radius);
  z-index: 1000;
  overflow: hidden;
  font-family: system-ui;
}

.qp-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10;
  color: var(--xm-dark);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.qp-close:hover {
  background: var(--xm-light);
}

.qp-container {
  display: flex;
}

.qp-left {
  width: 40%;
  background: var(--xm-light);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qp-car {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.qp-left-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.qp-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  max-width: 100%;
}
.qp-trust-badge i {
  font-size: 22px;
  color: var(--xm-red);
  flex-shrink: 0;
}
.qp-trust-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}
.qp-trust-badge__text span:first-child {
  font-size: 10px;
  font-weight: 700;
  color: var(--xm-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.qp-trust-badge__text span:last-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--xm-dark);
}

.qp-benefits {
  margin-top: 16px;
  font-size: 14px;
  color: var(--xm-dark);
  text-align: left;
  list-style: none;
  padding: 0;
}
.qp-benefits li {
  padding: 6px 0;
  line-height: 1.5;
}
.qp-benefits li i {
  color: var(--xm-red);
  margin-right: 6px;
  width: 18px;
  text-align: center;
}

.qp-right {
  width: 60%;
  padding: 32px;
}

.qp-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--xm-dark);
  margin: 0 0 10px;
  line-height: 1.3;
  text-align: center;
}

.qp-title span {
  color: var(--xm-red);
}

.qp-sub {
  margin: 0 0 20px;
  color: var(--xm-gray);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.qp-field-row {
  display: flex;
  gap: 10px;
}
.qp-field-row .qp-field {
  flex: 1;
  min-width: 0;
}

.qp-field input,
.qp-field select {
  width: 100%;
  height: 48px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  font-size: 14px;
  color: var(--xm-dark);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.qp-field input:focus,
.qp-field select:focus {
  border-color: var(--xm-red);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .08);
}

.qp-btn {
  width: 100%;
  height: 52px;
  background: var(--xm-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.qp-btn:hover {
  background: var(--xm-red-dark);
  transform: translateY(-1px);
}

.qp-trust {
  margin-top: 14px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--xm-gray);
  gap: 8px;
  flex-wrap: wrap;
}
.qp-trust span i {
  color: var(--xm-red);
  margin-right: 4px;
}

.qp-privacy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--xm-gray);
  line-height: 1.4;
}
.qp-privacy i {
  font-size: 12px;
  color: var(--xm-gray);
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* Popup mobile */
@media (max-width: 768px) {
  .qp-container {
    flex-direction: column;
  }

  .qp-left {
    display: flex;
    width: 100%;
    padding: 16px 20px 8px;
    flex-direction: column;
    align-items: center;
  }

  .qp-left-img-wrap {
    width: 100%;
    max-width: none;
    margin-top: -4px;
  }

  .qp-car {
    width: 100%;
  }

  .qp-trust-badge {
    width: 100%;
    margin-bottom: 8px;
  }

  .qp-benefits {
    display: none;
  }

  .qp-field-row {
    flex-direction: column;
    gap: 0;
  }

  .qp-right {
    width: 100%;
    padding: 12px 20px 24px;
  }

  .qp-modal {
    max-width: 98%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .qp-title {
    font-size: 19px;
  }

  .qp-field input,
  .qp-field select {
    font-size: 16px;
  }

  .xm-lead__input {
    font-size: 16px !important;
  }
}

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (--bp-lt-lg) {
    .xm-section { padding: 52px 0; }
    .xm-hero { min-height: auto; padding: 52px 0 44px; }
    .xm-promo__box { padding: 32px 24px; }
}
@media (--bp-lt-md) {
    #xeGrid,
    .section-products .row { --bs-gutter-x: 0.75rem; }
    .xm-section { padding: 44px 0; }
    .xm-hero { padding: 44px 0 36px; }
    .xm-hero__ctas { width: 100%; }
    .xm-hero__ctas .xm-btn { flex: 1 1 calc(50% - 6px); }
    .xm-trust__grid { grid-template-columns: repeat(2, 1fr); }
    .xm-trust__item { border-bottom: 1px solid rgba(255,255,255,.07); }
    .xm-trust__item:nth-child(2) { border-right: none; }
    .xm-trust__item:nth-child(3),
    .xm-trust__item:nth-child(4) { border-bottom: none; }
    .xm-trust__item:nth-child(4) { border-right: none; }
    .xm-lead__box { padding: 28px 20px; }
    .xm-promo__box { padding: 28px 20px; }
    .xm-final-cta { padding: 52px 0; }
    .xm-final-cta__btns .xm-btn { flex: 1 1 100%; }
}
@media (--bp-lt-sm) {
    .xm-hero__ctas .xm-btn { flex: 1 1 100%; }
    .xm-card__ctas { grid-template-columns: 1fr 1fr; }
    .xm-trust__num { font-size: 1.6rem; }
}
@media (--bp-lt-phone) {
    .xm-card__ctas { grid-template-columns: 1fr; }
    .xm-card__body  { padding: 10px 10px 12px; }
    .xm-card__label { font-size: .65rem; margin-bottom: 3px; }
    .xm-card__name  { font-size: .88rem; margin-bottom: 4px; }
    .xm-card__price { font-size: .82rem; margin-bottom: 10px; }
}

/* Gutter giữa 2 cột car grid — standard media query (không dùng PostCSS token)
   để hoạt động cả khi CSS được serve thô (fallback ViteHelper). */
@media (max-width: 767.98px) {
    #xeGrid,
    .section-products .row { --bs-gutter-x: 0.5rem; }
}
