/* Trang Ô tô — lineup VinFast style */

.vf-oto-wrap {
    --vf-blue: #1464f4;
    --vf-text: #151515;
    --vf-muted: #6b7280;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--vf-text);
    background: #fff;
    padding: 48px 0 80px;
    min-height: 50vh;
}
.vf-oto-wrap *,
.vf-oto-wrap *::before,
.vf-oto-wrap *::after {
    box-sizing: border-box;
}
/* Khớp container Bricks (1440) — override align-items:flex-start của .brxe-container */
.vf-oto-wrap > .brxe-container.vf-oto-container {
    width: 100%;
    max-width: var(--width-container, 1440px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    align-items: stretch;
}
.vf-oto-wrap .vf-oto-header,
.vf-oto-wrap .vf-oto-tabs,
.vf-oto-wrap .vf-oto-panel,
.vf-oto-wrap .vf-oto-grid {
    width: 100%;
}
.vf-oto-header {
    text-align: center;
    margin-bottom: 28px;
}
.vf-oto-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Tabs */
.vf-oto-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
    margin-bottom: 48px;
    border: 0;
}
.vf-oto-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 4px 12px;
    margin: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vf-text);
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.vf-oto-tab:hover {
    color: var(--vf-blue);
}
.vf-oto-tab.is-active {
    color: var(--vf-blue);
    border-bottom-color: var(--vf-blue);
}

/* Panels */
.vf-oto-panel {
    display: none;
}
.vf-oto-panel.is-active {
    display: block;
    animation: vfOtoFade .28s ease;
}
@keyframes vfOtoFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Vehicle grid */
.vf-oto-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 28px;
    align-items: end;
    justify-items: stretch;
}
.vf-oto-card {
    width: 100%;
    margin: 0;
    text-align: center;
}
.vf-oto-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.vf-oto-card__media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 140px;
}
.vf-oto-card__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    transition: transform .35s ease;
}
.vf-oto-card__link:hover .vf-oto-card__media img {
    transform: scale(1.06) translateY(-4px);
}
.vf-oto-card__name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vf-text);
}
.vf-oto-card__link:hover .vf-oto-card__name {
    color: var(--vf-blue);
}

.vf-oto-empty {
    text-align: center;
    color: var(--vf-muted);
    padding: 40px 16px;
    margin: 0;
}

@media (max-width: 1100px) {
    .vf-oto-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .vf-oto-wrap {
        padding: 32px 0 56px;
    }
    .vf-oto-tabs {
        gap: 4px 20px;
        margin-bottom: 32px;
    }
    .vf-oto-tab {
        font-size: 13px;
        letter-spacing: 0.04em;
    }
    .vf-oto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }
    .vf-oto-card__media img {
        max-height: 120px;
    }
}
@media (max-width: 420px) {
    .vf-oto-grid {
        grid-template-columns: 1fr;
    }
}
