/* Container chính */
.custom-buy-box {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 30px;
    background: var(--color-white);
    margin-bottom: 35px;
}

/* Giá */
.cbb-price-row {
    margin-bottom: 25px;
}

.cbb-current-price {
    color: var(--color-chinh);
    font-size: 27px;
    font-weight: bold;
    margin: 10px 0px;
}

/* Bảng thông số kỹ thuật (1 cột như ảnh mẫu) */
.cbb-specs-container {
    border: 1px solid #eef2f7;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 50px;
    margin-top: 20px;
}

.cbb-specs-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cbb-specs-list li {
    display: flex;
    border-bottom: 1px solid #eef2f7;
    margin: 0 !important;
}

.cbb-specs-list li:last-child {
    border-bottom: none;
}

.spec-label {
    width: 35%;
    background-color: #f1f7ff;
    padding: 12px 15px;
    color: #4e5d78;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #eef2f7;
}

.spec-value {
    width: 65%;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
    background: var(--color-white);
}

.cbb-specs-list li:first-child .spec-value {
    color: #003399;
    font-weight: bold;
}

/* Nút bấm */
.cbb-button-group {
    display: flex;
    gap: 10px;
}

.btn-primary-orange {
    flex: 1;
    background: var(--color-chinh) !important;
    color: var(--color-white) !important;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    border: none;
    font-size: 15px;
    text-transform: uppercase;
}

.btn-outline-blue {
    flex: 1;
    background: var(--color-white) !important;
    color: #0068ff !important;
    border: 1px solid #0068ff !important;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
}

/* CHÍNH SÁCH BẢO HÀNH (GRID 2x2) */
.cbb-extra-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.cbb-info-card {
    width: calc(50% - 5px);
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 15px;
    background: var(--color-white);
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-sizing: border-box;
}

.cbb-short-description {
    color: var(--color-black);
    width: 100% !important;
}

.cbb-short-description table {
    width: 100% !important;
}

.cbb-info-icon {
    font-size: 22px;
    color: var(--color-chinh);
    margin-right: 12px;
    width: 25px;
    text-align: center;
}

.cbb-info-content {
    display: flex;
    flex-direction: column;
}

.cbb-info-label {
    font-size: 15px;
    color: var(--color-chinh);
    text-transform: uppercase;
    font-weight: bold;
}

.cbb-info-value {
    font-size: 15px;
    color: var(--color-black);
    font-weight: 100;
}

/* 1. Sửa lỗi hàng chứa Số lượng và Nút bấm */
.cbb-quantity-row {
    display: flex !important;
    align-items: stretch !important; /* Đảm bảo chiều cao bằng nhau */
    gap: 10px !important;
    margin-bottom: 15px !important;
}

/* 2. Ép ô số lượng Flatsome về đúng kích thước */
.cbb-quantity-row .ux-quantity.quantity {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important; /* Cao bằng nút bấm */
}

/* Căn chỉnh các nút + - và ô số bên trong */
.cbb-quantity-row .ux-quantity input.minus,
.cbb-quantity-row .ux-quantity input.plus,
.cbb-quantity-row .ux-quantity input.qty {
    height: 48px !important; /* Độ cao chuẩn cho nút bấm */
    margin: 0 !important;
    border: 1px solid #ddd !important;
}

/* 3. Sửa nút THÊM VÀO GIỎ */
.cbb-quantity-row .btn-primary-orange {
    flex: 1 !important; /* Chiếm hết phần còn lại */
    height: 48px !important; /* Khớp chiều cao với ô số lượng */
    margin: 0 !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
}

/* 4. Sửa nút MUA NGAY (Trông như link trong ảnh bạn gửi) */
.cbb-buy-now-row {
    width: 100% !important;
    margin-top: 10px !important;
}

.cbb-buy-now-row .btn-buy-now {
    display: block !important;
    width: 100% !important;
    background-color: #f1f1f1 !important; /* Màu nền nhẹ hoặc thay bằng màu đỏ tùy bạn */
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 12px !important;
    text-align: center !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.3s;
}

.cbb-buy-now-row .btn-buy-now:hover {
    background-color: #d70018 !important; /* Khi rê chuột vào thì hiện màu đỏ */
    color: #fff !important;
    border-color: #d70018 !important;
}

/* 5. Tối ưu Table thông số (Nếu có) */
.cbb-short-description ul {
    margin-left: 1.5em !important;
    margin-top: 10px !important;
}

.cbb-short-description li {
    margin-bottom: 5px !important;
}

/* Mobile */
@media (max-width: 600px) {
    .cbb-quantity-row {
        flex-wrap: nowrap !important; /* Giữ 1 hàng ngang trên mobile */
    }
    
    .cbb-quantity-row .ux-quantity.quantity {
        width: 120px !important; /* Cố định độ rộng ô số lượng trên mobile */
    }
}
/* Mobile */
@media (max-width: 600px) {
    .cbb-button-group {
        flex-direction: column;
    }

    .cbb-info-card {
        width: 100%;
    }

    /* Mobile rớt thành 1 cột cho dễ nhìn */
    .custom-buy-box {
        padding: 5px;
    }

    .cbb-current-price {
        font-size: 25px;
    }
}