/* ===== Archive Xe ===== */
.xd-xe-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.xd-xe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.xd-xe-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}
.xd-xe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
}

/* Ảnh đại diện */
.xd-xe-card-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f2f2f2;
}
.xd-xe-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.xd-xe-card:hover .xd-xe-card-thumb img { transform: scale(1.04); }
.xd-xe-card-no-thumb {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

/* Nội dung */
.xd-xe-card-body {
    padding: 14px 16px 18px;
}
.xd-xe-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #111;
}
.xd-xe-card-gia,
.xd-xe-card-gop {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.6;
}
.xd-xe-label {
    color: #777;
    white-space: nowrap;
    margin-right: 6px;
}
.xd-xe-card-gia .xd-xe-value {
    font-weight: 700;
    color: #c0392b;
    font-size: 14px;
}
.xd-xe-card-gop .xd-xe-value {
    font-weight: 600;
    color: #1a6fc4;
    font-size: 13px;
}
.xd-xe-thang {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
}

/* Phân trang */
.xd-xe-pagination {
    margin-top: 40px;
    text-align: center;
}
.xd-xe-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 0 3px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background .2s, color .2s;
}
.xd-xe-pagination .page-numbers.current,
.xd-xe-pagination .page-numbers:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}
.xd-xe-pagination .page-numbers.prev,
.xd-xe-pagination .page-numbers.next { width: auto; padding: 0 14px; }

/* Mobile: 2 cột */
@media (max-width: 767px) {
    .xd-xe-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .xd-xe-card-title { font-size: 14px; }
    .xd-xe-archive-wrap { padding: 16px 12px 32px; }
}
