:root {
    --brand: #0e3a2f;
    /* điểm nhấn (xanh đậm/Skoda vibe) */
    --ink: #111827;
    /* chữ chính */
    --muted: #64748b;
    /* chữ phụ */
    --bg: #f8fafc;
    /* nền tổng thể */
    --card: #ffffff;
    /* nền thẻ */
    --radius: 14px;
    --shadow: 0 10px 24px rgba(0, 0, 0, .06);
    --shadow-lg: 0 14px 28px rgba(0, 0, 0, .10);
}

.item_skodadanang {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;

    border: 1px solid rgba(0, 0, 0, .04);
    isolation: isolate;
}

.item_skodadanang img {
    width: 100%;
    height: 100%;
}

.box_xemercedes {
    background: var(--bg);

    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
}
.button_info a:hover {
    color: #fff;
}
/* ===== Title ===== */
.box_xemercedes .title_xe {
    text-align: center;
    margin-bottom: 32px;
}

.box_xemercedes .title_xe h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .2px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.box_xemercedes .title_xe h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 3px;
    border-radius: 2px;
    /* vệt bạc giống showroom */
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 50%, #cbd5e1 100%);
}

/* ===== Grid container ===== */
.list_mer .list_mer_xe {
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 1 hàng 3 xe trên desktop */
    gap: 28px;
}

/* ===== Card item ===== */
.item_product {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, .04);
    isolation: isolate;
    /* cho overlay nằm đúng stacking context */
}

.item_product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, .08);
}

/* ===== Image block with showroom gradient overlay ===== */
.item_product_img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    /* ổn định layout, tránh nhảy khi lazy-load */

    /* nền fallback khi chưa có ảnh */
}

.item_product_img a {
    display: block;
    height: 100%;
}

.item_product_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

/* Overlay gradient ánh bạc-đen khi hover (nhẹ, sang) */
.item_product_img::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .0;
    background:
        linear-gradient(12deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 40%, rgba(255, 255, 255, .06) 100%),
        radial-gradient(120% 120% at 80% 0%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 60%);
    transition: opacity .35s ease;
    mix-blend-mode: multiply;
}

.item_product:hover .item_product_img::before {
    opacity: .85;
}

.item_product:hover .item_product_img img {
    transform: scale(1.06);
}

/* ===== Info area ===== */
.item_product_info {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.name_xe {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 2px 0 4px;
}

/* Giá công bố */
.giacongbo {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0px;
    color: #b90e0e;
    padding-bottom: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.giacongbo img {
    width: 21px;
    margin-right: 10px;
}

.giacongbo strong {
    color: #333;
}

/* Thông số tóm tắt */
.price {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    min-height: 40px;
    /* giữ chiều cao đều nhau */
}

/* ===== Actions ===== */
.button_info {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.button_info button {
    flex: 1;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 0;
    transition: background .25s ease, transform .12s ease;
    background: var(--brand);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.button_info button:hover {
    background: #125842;
}

.button_info button:active {
    transform: translateY(1px);
}

.button_info a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button_info i {
    font-size: 14px;
}

/* Nút phụ kiểu outline bạc (nếu muốn dùng khác màu) */
.button_info button:nth-child(2) {
    background: transparent;
    color: #111;
    border: 1px solid rgba(148, 163, 184, .6);
}

.button_info button:nth-child(2):hover {
    background: rgba(148, 163, 184, .08);
}

/* ===== Badges (tuỳ chọn) ===== */
.item_product .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .28);
}

/* ===== Accessibility: tôn trọng giảm chuyển động ===== */
@media (prefers-reduced-motion: reduce) {

    .item_product,
    .item_product_img img,
    .item_product_img::before {
        transition: none !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .list_mer .list_mer_xe {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .list_mer .list_mer_xe {
        gap: 15px;
    }

    .list_mer_xe {
        padding: 0 0px !important;
    }

    .giacongbo {
        font-size: 14px;
    }


    .box_xemercedes .title_xe h2 {
        font-size: 24px;
    }

    .list_mer .container {
        gap: 20px;
    }

    .item_product_info {
        padding: 14px 14px 16px;
    }

    .name_xe {
        font-size: 17px;
    }

    .button_info button {
        font-size: 13px;
        padding: 9px 0;
    }
}

@media (max-width: 560px) {
    .name_xe {
        font-size: 13px;
    }

    .item_product_info {
        gap: 0px;
    }

    .button_info button a {
        font-size: 10px;
    }
   
}

@media (max-width: 420px) {
    .giacongbo {
        font-size: 13px;
    }

    .list_mer .container {
        grid-template-columns: 1fr;
    }

    .name_xe {
        font-size: 16px;
    }
}