/* Reset cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Body */
body {
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
header {
    background-color: #0d6efd;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Menu */
nav {
    background-color: #222;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    display: block;
}

nav ul li:hover {
    color: #0d6efd;
}

/* Danh sách sản phẩm */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 30px;
    margin-right: 160px; /* chừa chỗ cho sidebar */
}

/* Thẻ sản phẩm */
.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Ảnh sản phẩm */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Tên sản phẩm */
.product-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* Giá */
.product-card p {
    font-size: 16px;
    color: #e63946;
    font-weight: bold;
    margin-bottom: 12px;
}

/* Nút mua */
.button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #df3e0d;
    width: auto;
    height: 40px;
}

/* Sidebar mạng xã hội */
.sidebar {
    position: fixed;
    top: 120px;
    right: 0;
    width: 140px;
    background-color: #222;
    padding: 15px;
    height: auto;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
}

.sidebar a:hover {
    color: #0d6efd;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .product-list {
        margin-right: 0;
    }

    .sidebar {
        position: static;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
}
