/* ========== Product Grid ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-grid-item {
    text-align: center;
}

.product-grid-item .img-wrap {
    overflow: hidden;
    margin-bottom: 15px;
}

.product-grid-item .img-wrap img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-grid-item .img-wrap:hover img {
    transform: scale(1.05);
}

.product-grid-item h3 {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 8px;
}

.product-grid-item h3 a {
    color: #222;
    text-decoration: none;
}

.product-grid-item h3 a:hover {
    color: #1a8b5e;
}

.product-grid-item .product-price {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
}

.product-grid-item .product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.product-grid-item .btn-quote {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #1a8b5e;
    color: #1a8b5e;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.product-grid-item .btn-quote:hover {
    background: #1a8b5e;
    color: #fff;
}

.product-grid-item .btn-test-drive {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #ccc;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.product-grid-item .btn-test-drive:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}

/* ========== Responsive ========== */
@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    /* Slider: ẩn thông số kỹ thuật trên tablet */
    .slider.home7 .specifications-wrap {
        display: none !important;
    }

    .slider.home7 .heading h1 {
        font-size: 24px !important;
    }

    .slider.home7 .heading p {
        font-size: 13px !important;
    }
}

@media (max-width: 767px) {

    /* Slider: thu gọn heading trên mobile */

    .slider.home7 .heading p br {
        display: none;
    }

    .slider.home7 .reserve {
        font-size: 13px !important;
    }

    .slider.home7 .po-content {
        padding: 10px 0;
    }
}

@media (max-width: 575px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .product-grid-item h3 {
        font-size: 13px;
    }

    .product-grid-item .product-price {
        font-size: 13px;
    }

    .product-grid-item .product-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .product-grid-item .btn-quote,
    .product-grid-item .btn-test-drive {
        font-size: 11px;
        padding: 6px 12px;
        width: 100%;
        text-align: center;
    }

    /* Slider: mobile nhỏ */
}

/* ========== Lexus Car Detailed Pages Styling ========== */
:root {
    --lx-accent: #2c5282;
    --lx-dark: #1a1a1a;
    --lx-light-bg: #ffffff;
    --lx-card-bg: #ffffff;
    --lx-gray: #f8f9fa;
    --lx-text: #333333;
    --lx-text-muted: #666666;
    --lx-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.content-car {
    color: var(--lx-text);
    line-height: 1.7;
    max-width: 1440px;
    margin: 0 auto;
    background: var(--lx-light-bg);
}

/* Section Headings */
.lx-section-title {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.lx-section-title h2 {
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--lx-dark);
    margin-bottom: 20px;
    margin-top: 0;
}

.lx-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--lx-accent);
    margin: 15px auto 0;
}

/* Top Introduction */
.lx-intro-text {
    font-size: 1.25rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 80px;
    color: var(--lx-text-muted);
    font-weight: 300;
}

/* Variants Grid */
.lx-variants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.variant-card {
    background: var(--lx-card-bg);
    border-radius: 16px;
    padding: 20px;
    transition: var(--lx-transition);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.variant-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--lx-accent);
}

.variant-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--lx-dark);
}

.variant-card .price {
    font-size: 18px;
    color: #df3811;
    font-weight: 600;
    margin-bottom: 30px;
}

.variant-card img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    transition: var(--lx-transition);
}

.variant-card:hover img {
    transform: scale(1.03);
}

.variant-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: auto;
}

.meta-item span {
    display: block;
}

.meta-value {
    font-weight: 700;
    font-size: 20px;
    color: var(--lx-dark);
}

.meta-label {
    font-size: 11px;
    color: var(--lx-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technical Specs Table */
.lx-specs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
    background: var(--lx-gray);
    color: var(--lx-text);
    padding: 70px;
    border-radius: 24px;
    margin-bottom: 100px;
    border: 1px solid #eaeaea;
}

.spec-box h3 {
    color: var(--lx-dark);
    font-size: 24px;
    border-bottom: 3px solid var(--lx-accent);
    padding-bottom: 12px;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-label {
    color: var(--lx-text-muted);
    font-weight: 400;
}

.spec-value {
    font-weight: 600;
    text-align: right;
    color: var(--lx-dark);
}

/* Detailed Content Sections - Bố cục dọc phóng khoáng */
.lx-detail-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-bottom: 120px;
    text-align: center;
}

.detail-img {
    width: 100%;
    max-width: 1280px;
    /* Ảnh siêu lớn */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-img img {
    width: 100%;
    display: block;
    transition: var(--lx-transition);
}

.detail-img:hover img {
    transform: scale(1.02);
}

.detail-text {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.detail-text h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    margin-top: 0;
    color: var(--lx-dark);
    letter-spacing: 1px;
}

.detail-text p {
    font-size: 1.25rem;
    color: var(--lx-text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

/* Color Swatches */
.lx-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 100px;
}

.color-item {
    cursor: pointer;
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid #ddd;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: var(--lx-transition);
}

.color-item:hover .color-circle {
    transform: scale(1.15);
    border-color: var(--lx-accent);
    box-shadow: 0 0 0 4px var(--lx-accent), 0 15px 35px rgba(44, 82, 130, 0.2);
}

.color-name {
    font-size: 14px;
    color: var(--lx-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .lx-specs-container {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .lx-section-title h2 {
        font-size: 30px;
    }

    .img-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .meta-value {
        font-size: 18px;
    }

    .detail-text h3 {
        font-size: 28px;
    }
}

/* Contact Promo Section */
.lx-contact-promo {
    text-align: center;
    margin: 10px auto;
    padding: 10px 5px;
    /* background: #288ad6; */
    border-radius: 20px;
    /* color: #fff; */
    border: 1px solid #ddd;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* width: 300px; */
}

.lx-contact-promo p {
    font-size: 1.2rem;
    margin-bottom: 10px !important;
    font-weight: 400;
    color: #000;
    text-align: center !important;
}

.lx-contact-promo .phone-number {
    font-size: 3rem;
    font-weight: 500;
    color: red;
    display: block;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--lx-transition);
}

.lx-contact-promo .phone-number:hover {
    transform: scale(1.05);
    color: red;
}

@media (max-width: 600px) {
    .lx-contact-promo .phone-number {
        font-size: 2rem;
    }
}

.content-car {
    color: #e0e0e0;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

.content-car h1,
.content-car h2,
.content-car h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-car h2 {
    padding-left: 15px;
    font-size: 24px;
}

.content-car p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Table Styling as Cards */
.spec-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
}

.spec-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #d4af37;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.spec-label {
    color: #999;
    font-weight: 500;
}

.spec-value {
    font-weight: 600;
    text-align: right;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.color-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .content-car h2 {
        font-size: 20px;
    }

    .img-style {
        min-height: 140px;
    }

    .spec-group {
        grid-template-columns: 1fr;
    }
}

/* ========== Lexus ES Color & Promo Section ========== */
.lx-color-promo-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 10px;
    background: #fff;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
}

.lx-car-preview {
    flex: 1;
    min-width: 350px;
    text-align: center;
}

.lx-main-car-img-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-main-car-img {
    width: 100%;
    height: auto;
    max-width: 800px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lx-color-selector {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch-item {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-swatch-item:hover,
.color-swatch-item.active {
    border-color: #2c5282;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-swatch-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2c5282;
    border-radius: 50%;
}

.lx-price-display {
    margin-top: 25px;
    text-align: center;
}

.lx-price-display .price-label {
    font-size: 22px;
    font-weight: 700;
    color: #e31b23;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lx-promo-box-container {
    flex: 0 0 450px;
    /* Thẻ bên phải fix width dể cân đối */
    max-width: 100%;
}

.lx-promo-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.lx-promo-box .promo-header {
    text-align: center;
    margin-bottom: 25px;
}

.lx-promo-box .promo-sub {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.lx-promo-box .promo-title {
    font-size: 36px;
    font-weight: 800;
    color: #e31b23;
    margin: 0;
    line-height: 1.2;
}

.lx-promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.lx-promo-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    font-weight: 400;
}

.lx-promo-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
    font-weight: bold;
}

.lx-promo-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.lx-btn-blue {
    background: #0068ff;
    color: #fff;
}

.lx-btn-blue:hover {
    background: #0068ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lx-btn-dark {
    background: #333;
    color: #fff;
}

.lx-btn-dark:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lx-btn i {
    font-size: 16px;
}

/* Icons via CSS masks or similar - fallback to simple icons if FontAwesome is not available */
.lx-btn::before {
    font-family: Arial, sans-serif;
    display: inline-block;
}

/* Responsive */
@media (max-width: 1200px) {
    .lx-promo-box-container {
        flex: 0 0 400px;
    }
}

@media (max-width: 991px) {
    .lx-color-promo-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    .lx-promo-box-container {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lx-promo-btns {
        grid-template-columns: 1fr;
    }

    .lx-promo-box {
        padding: 25px 20px;
    }

    .lx-promo-title {
        font-size: 30px;
    }

    .lx-main-car-img-container {
        min-height: 250px;
    }
}