/* Thiết lập chung */
/* RESET CƠ BẢN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* LOGO */
.logo img {
    height: 40px;
    display: block;
}

/* SEARCH BAR */
.search-bar {
    flex: 1;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    max-width: 420px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: #d70018;
    border: none;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
}

.search-bar button:hover {
    background: #b60014;
}

/* LOCATION PICKER */
.location-picker {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.location-picker .label {
    display: block;
    color: #777;
}

.location-picker .current-loc {
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-picker i {
    font-size: 12px;
}

/* NAV */
.header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.header-nav .nav-item i {
    font-size: 16px;
}

.header-nav .nav-item:hover {
    color: #d70018;
}

/* HOTLINE */
.header-nav .hotline {
    gap: 8px;
}

.header-nav .hotline i {
    font-size: 20px;
    color: #d70018;
}

.header-nav .hotline .text span {
    display: block;
    font-size: 12px;
    color: #666;
}

.header-nav .hotline .text strong {
    color: #d70018;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .search-bar {
        display: none;
    }

    .location-picker {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-nav span {
        display: none;
    }
}

/* Danh sách sản phẩm */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Hiển thị 3 sản phẩm trên mỗi hàng */
    gap: 20px; /* Khoảng cách giữa các sản phẩm */
    padding: 20px;
    grid-column: 1; /* Chỉ nằm ở cột đầu tiên */
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    text-align: center; /* Căn giữa nội dung trong sản phẩm */
}

.product-card img {
    max-width: 100%;
    height: auto;
}

/* Sidebar */
.sidebar {
    background-color: #199cff;
    color: #fff;
    padding: 10px;
    grid-column: 2; /* Chỉ nằm ở cột thứ hai */
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

/* Responsive - Chỉnh lại bố cục cho di động */
@media (max-width: 576px) {
    .product-list {
        grid-template-columns: 1fr; /* Hiển thị một sản phẩm trên mỗi hàng */
    }
    .product-card {
        width: 100%;
        margin-bottom: 20px;
    }
    .sidebar {
        grid-column: 1 / span 2; /* Trải đều qua hai cột */
    }
    .footer {
        grid-template-columns: 1fr; /* 1 cột xếp chồng lên nhau */
    }
}
/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    grid-column: 1 / span 2;
    display: grid;
}

.footer-item {
    padding: 10px;
}


/* Chỉnh layout footer cho máy tính */
@media (min-width: 768px) {
    .footer {
        grid-template-columns: repeat(3, 1fr); /* 3 cột trên máy tính */
    }
}

/* Nút bấm (Buttons) */
.button {
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
}

.button1 { border-radius: 2px; }
.button3 { border-radius: 8px; }
.button4 { border-radius: 12px; }
.button5 { border-radius: 50%; }
