/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* Nút hiện số điện thoại */
.product-phone .button {
    background: #c00 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.product-phone .button:hover {
    background: #a00 !important;
}

/* Số điện thoại khi hiện ra */
#phone-number {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

/* Box thông số kỹ thuật */
.product-specifications {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}
.product-specifications h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #c00;
    padding-left: 10px;
}
.product-specifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-specifications li {
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}
.product-specifications li:last-child {
    border-bottom: none;
}
.product-specifications strong {
    color: #111;
    margin-right: 6px;
}

/* ====== Nút hiện số ====== */
.product-phone .button {
    background: #d32f2f !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.product-phone .button:hover {
    background: #b71c1c !important;
}
#phone-number {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

/* ====== Box thông số kỹ thuật ====== */
.product-specifications {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.product-specifications h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}
.product-specifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-specifications li {
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}
.product-specifications li:last-child {
    border-bottom: none;
}
.product-specifications strong {
    color: #111;
}

/* ====== Mô tả chi tiết ====== */
.product-description {
    margin-top: 40px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.product-description h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}

/* ====== Sản phẩm liên quan ====== */
.related-products {
    margin-top: 50px;
}
.related-products h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    text-transform: uppercase;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.products .car-grid {
    display: grid !important;
    grid-template-columns: repeat(4,1fr) !important;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sản phẩm / 1 hàng */
    gap: 20px;
}

.car-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    text-align: center;
}

.car-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.car-thumbnail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.car-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.car-price {
    font-size: 16px;
    color: #e63946;
    font-weight: bold;
    margin-bottom: 10px;
}
.car-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.car-meta li {
    font-size: 14px;
    margin: 3px 0;
}
.btn-detail {
    display: inline-block;
    padding: 5px 15px;
    background: #c32026;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.btn-detail:hover {
    background: #9d150f;
    color: #fff;
}
