﻿/* Tạo nền sáng cho toàn bộ trang */
body {
    background: #f7f8fa;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Tiêu đề trang nổi bật với hiệu ứng gradient */
.title-page {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
    background: linear-gradient(90deg, #ff6f61, #6a11cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hiệu ứng hover và viền cho các sản phẩm */
.phone-section {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .phone-section:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        border-color: #ff6f61;
    }

/* Hình ảnh sản phẩm với bo tròn và hiệu ứng */
.phone-picture {
    max-width: 75%;
    height:auto;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
    margin-left:auto;
    margin-right:auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-section:hover .phone-picture {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 111, 97, 0.4);
}

/* Tiêu đề của mỗi sản phẩm */
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.phone-section:hover .card-title {
    color: #ff6f61;
}

/* Giá sản phẩm với kiểu chữ mềm mại và dễ nhìn */
.card-text {
    font-size: 1rem;
    color: #777;
    margin-bottom: 12px;
}

/* Nút bấm Xem chi tiết với hiệu ứng chuyển màu và phóng to khi hover */
.btn-primary-2 {
    background-color: #6a11cb;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: white;
    transition: background-color 0.2s, transform 0.2s;
}

    .btn-primary:hover {
        background-color: #ff6f61;
        transform: scale(1.05);
    }

/* Thêm không gian cho container */
.container {
    padding: 0 10px;
}

/* Cấu trúc layout của các sản phẩm */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 45%;
        margin: 8px;
    }
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 90%;
        margin: 8px;
    }
}
