/*=================Trang chủ=================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Header */
header {
    background: #c7d20a;
    text-align: center;
    padding: 20px;
    color: white;
}

/* Menu */
nav {
    background: #f4a582;
    text-align: center;
    padding: 10px;
}

nav a {
    margin: 0 15px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover{
    color: black;
}
/* Layout chính */
.container {
    display: flex;
}

/* Danh sách sản phẩm */
.products {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: #eee;
}

.card:hover{
    background-color: #e6e6e6;
}
/* Card sản phẩm */
.card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    border-radius: 6px;
}

.card h3 {
    margin: 10px 0 5px;
}

.card p {
    font-size: 14px;
    color: #555;
}

.card span {
    display: block;
    margin: 8px 0;
    font-weight: bold;
}

.card button {
    background: #1fa36b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.card button:hover {
    background: #085032;
}

/* Sidebar */
.sidebar {
    flex: 1;
    background: #2c8ed6;
    color: white;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: #333;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

/*=================Sản phẩm=================*/

/* Danh sách toàn bộ sản phẩm */
.all-products {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mỗi dòng sản phẩm */
.product-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

/* Bỏ gạch ở sản phẩm cuối */
.product-row:last-child {
    border-bottom: none;
}

/* Ảnh bên trái */
.product-row img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

/* Nội dung bên phải */
.product-row .info {
    flex: 1;
}

.product-row h3 {
    margin-bottom: 8px;
}

.product-row p {
    color: #555;
    margin-bottom: 8px;
}

.product-row span {
    font-weight: bold;
    color: #e74c3c;
}

/* Nút xem chi tiết */
.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #1fa36b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.view-btn:hover {
    background: #168a59;
}

/*=================Liên Hệ=================*/
/* ====== TRANG LIÊN HỆ ====== */

.contact-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

.contact-container h2 {
    margin-bottom: 10px;
}

.contact-container p {
    color: #666;
    margin-bottom: 20px;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-form label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1fa36b;
}

/* Nút gửi */
.contact-form button {
    margin-top: 15px;
    padding: 12px;
    background: #1fa36b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #168a59;
}

@media (max-width: 768px) {

    header h1 {
        font-size: 22px;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .products {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
