/**
 * Xe Tải VP - Trucks Showcase Page Styles
 * Phong cách giao diện đẳng cấp cho Trang Danh Mục & Showroom Xe Tải Vĩnh Phúc.
 */

/* ==========================================================================
   1. HERO BANNER XE TẢI (xetai_trucks_hero)
   ========================================================================== */
.xetai-trucks-hero {
    position: relative;
    background: linear-gradient(135deg, #001e3d 0%, #003366 50%, #001830 100%);
    color: #ffffff;
    padding: 70px 0 65px 0;
    overflow: hidden;
}

.xetai-trucks-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.xetai-trucks-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.xetai-trucks-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.xetai-trucks-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(211, 47, 47, 0.18);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff8a80;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.xetai-trucks-hero-title {
    font-size: 36px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin: 0 0 16px 0 !important;
    text-transform: uppercase;
}

.xetai-trucks-hero-title span {
    color: #ff5252;
}

.xetai-trucks-hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 28px 0;
}

.xetai-trucks-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.xetai-hero-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.xetai-hero-stat-num {
    font-size: 22px;
    font-weight: 900;
    color: #ff5252;
    line-height: 1.2;
}

.xetai-hero-stat-lbl {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.xetai-trucks-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.xetai-btn-hero-primary {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xetai-btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(211, 47, 47, 0.6);
    color: #ffffff !important;
}

.xetai-btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xetai-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.xetai-trucks-hero-img-wrap {
    text-align: center;
    position: relative;
}

.xetai-trucks-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   2. THƯƠNG HIỆU PHÂN PHỐI (xetai_trucks_brands)
   ========================================================================== */
.xetai-brands-section {
    padding: 60px 0 50px 0;
    background: #f8fafc;
}

.xetai-section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px auto;
}

.xetai-section-tag {
    display: inline-block;
    color: #D32F2F;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.xetai-section-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #00254D !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase;
    line-height: 1.3 !important;
}

.xetai-section-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.xetai-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xetai-brand-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.xetai-brand-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D32F2F, #00488F);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xetai-brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 37, 77, 0.12);
    border-color: #cbd5e1;
}

.xetai-brand-card:hover::before {
    opacity: 1;
}

.xetai-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.xetai-brand-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #00254D !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.xetai-brand-payload {
    background: #fef2f2;
    color: #D32F2F;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #fee2e2;
    white-space: nowrap;
}

.xetai-brand-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.xetai-brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    color: #00488F;
}

.xetai-brand-footer .brand-arrow {
    color: #D32F2F;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.xetai-brand-card:hover .brand-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   3. SHOWROOM LƯỚI SẢN PHẨM XE TẢI (xetai_trucks_grid)
   ========================================================================== */
.xetai-showcase-section {
    padding: 60px 0 65px 0;
    background: #ffffff;
}

.xetai-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.xetai-truck-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.xetai-truck-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 30, 61, 0.12);
    border-color: #cbd5e1;
}

.xetai-truck-thumb {
    position: relative;
    padding-top: 62%;
    background: #f8fafc;
    overflow: hidden;
}

.xetai-truck-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.xetai-truck-card:hover .xetai-truck-thumb img {
    transform: scale(1.05);
}

.xetai-truck-badge-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0, 37, 77, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xetai-truck-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.xetai-truck-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #00254D !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.35 !important;
    min-height: 44px;
}

.xetai-truck-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.xetai-truck-title a:hover {
    color: #D32F2F;
}

.xetai-truck-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12.5px;
    color: #475569;
}

.xetai-truck-specs-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.xetai-truck-specs-list li svg {
    width: 15px; height: 15px;
    color: #D32F2F;
    flex-shrink: 0;
}

.xetai-truck-price-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.xetai-truck-price-lbl {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.xetai-truck-price-val {
    font-size: 18px;
    font-weight: 900;
    color: #D32F2F;
}

.xetai-truck-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.xetai-btn-card-quote {
    background: #D32F2F;
    color: #ffffff !important;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.xetai-btn-card-quote:hover {
    background: #b71c1c;
    color: #ffffff !important;
}

.xetai-btn-card-loan {
    background: #f1f5f9;
    color: #00488f !important;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.xetai-btn-card-loan:hover {
    background: #00488f;
    color: #ffffff !important;
    border-color: #00488f;
}

/* ==========================================================================
   4. QUY CÁCH ĐÓNG THÙNG (xetai_trucks_body_types) - MẸ CON
   ========================================================================== */
.xetai-body-types-section {
    padding: 60px 0 65px 0;
    background: #f8fafc;
}

.xetai-body-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xetai-body-item-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.xetai-body-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 30, 61, 0.1);
    border-color: #cbd5e1;
}

.xetai-body-item-thumb {
    position: relative;
    padding-top: 55%;
    background: #e2e8f0;
    overflow: hidden;
}

.xetai-body-item-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.xetai-body-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.xetai-body-item-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #00254D !important;
    margin: 0 0 10px 0 !important;
}

.xetai-body-item-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.xetai-body-item-apps {
    font-size: 12.5px;
    color: #475569;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #D32F2F;
}

.xetai-body-item-apps strong {
    color: #00254D;
}

/* ==========================================================================
   5. LÝ DO CHỌN MUA XE (xetai_trucks_reasons)
   ========================================================================== */
.xetai-reasons-section {
    padding: 60px 0 65px 0;
    background: #ffffff;
}

.xetai-reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.xetai-reason-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.xetai-reason-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 30, 61, 0.1);
    border-color: #D32F2F;
}

.xetai-reason-icon-wrap {
    width: 60px; height: 60px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(211, 47, 47, 0.1);
    color: #D32F2F;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.xetai-reason-card:hover .xetai-reason-icon-wrap {
    background: #D32F2F;
    color: #ffffff;
    transform: scale(1.08);
}

.xetai-reason-icon-wrap svg {
    width: 28px; height: 28px;
}

.xetai-reason-title {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #00254D !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase;
}

.xetai-reason-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE CHO TOÀN TRANG
   ========================================================================== */
@media (max-width: 1024px) {
    .xetai-trucks-hero-inner {
        grid-template-columns: 1fr;
    }
    .xetai-brands-grid,
    .xetai-showcase-grid,
    .xetai-body-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .xetai-reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .xetai-trucks-hero {
        padding: 45px 0;
    }
    .xetai-trucks-hero-title {
        font-size: 26px !important;
    }
    .xetai-trucks-hero-stats {
        grid-template-columns: 1fr;
    }
    .xetai-brands-grid,
    .xetai-showcase-grid,
    .xetai-body-types-grid,
    .xetai-reasons-grid {
        grid-template-columns: 1fr;
    }
}
