* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff;
}

/* HEADER */
#header {
    border-bottom: 1px solid #eee;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 50px;
    background: #f8f8f8;
}

.search input {
    padding: 5px;
}

.search button {
    padding: 6px 10px;
    background: #ff5ca8;
    border: none;
    color: #fff;
}

.logo {
    text-align: center;
    padding: 20px 0;
}

.logo h1 {
    color: #ff5ca8;
    font-size: 40px;
}

.menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background: #fff;
}

.menu ul li {
    margin: 0 15px;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    padding: 15px 0;
    display: block;
}

/* BANNER */
#banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    background: #fde6ec;
    padding: 60px 80px;
}

.banner-text {
    flex: 1; /* chữ chiếm 50% */
}

.banner-image {
    flex: 1; /* hình chiếm 50% */
    display: flex;
    justify-content: center;
}

.banner-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    object-fit: cover;

    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.banner-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}

.banner-text ul {
    padding-left: 30px;
}

.banner-text li {
    font-size: 18px;
    margin-bottom: 10px;
}


/* PRODUCTS */
#products {
    text-align: center;
    padding: 50px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-item {
    border: 1px solid #eee;
    padding: 20px;
}

.product-img {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.price {
    color: red;
    font-weight: bold;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    #banner {
        flex-direction: column;
        text-align: center;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .banner-text,
    .banner-image {
        max-width: 100%;
    }

    .banner-image img {
        max-height: 300px;
    }
}
