/* Thiết lập tổng quan, reset lề và box-sizing tránh vỡ layout */
* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    font-family: Arial, sans-serif;
}

/* TOP HEADER */
#top {
    width: 100%;
    height: 48px;
    background-color: #E8590C;
}

#top-content {
    width: 80%;
    margin: 0px auto;
}

#top-left {
    width: 70%;
    height: 48px;
    background-color: #E8590C;
    float: left;
    line-height: 48px;
    color: white;
}

#top-right {
    width: 30%;
    height: 48px;
    background-color: #E8590C;
    float: right;
    line-height: 48px;
    color: white;
    text-align: right;
}

#top-right a {
    color: white;
}

/* BANNER HEADER */
#header {
    width: 100%;
    height: 200px;
    background-color: white;
}

#banner {
    width: 80%;
    margin: 0px auto;
}

#banner img {
    width: 100%;
    height: 200px;
}

/* MENU ĐIỀU HƯỚNG (NAVIGATION) */
#menu {
    width: 100%;
    height: 60px;
    background-color: #E8590C;
}

#menu-content {
    width: 80%;
    margin: 0px auto;
    display: flex;
    align-items: center;
}

#logo {
    height: 48px;
    margin-right: 20px;
    background: white;
    border-radius: 4px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.footer-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 6px;
}

#menu ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#menu ul li {
    float: left;
    line-height: 60px;
    width: 150px;
    text-align: center;
}

#menu ul li.menu-title {
    width: 200px;
}

#menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

#menu ul li.menu-title a {
    font-size: 18px;
}

/* PHẦN THÂN TRANG (MAIN) */
#main {
    width: 80%;
    margin: 20px auto;
    overflow: hidden; /* Clear float */
}

/* Thanh danh mục bên trái */
#left {
    width: 23%;
    float: left;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#left ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#left ul li.sidebar-item {
    line-height: 45px;
    border-bottom: 1px solid #ddd;
}

#left ul li.sidebar-item:last-child {
    border-bottom: none;
}

#left ul li.sidebar-item a {
    color: #333;
    text-decoration: none;
    display: block;
    padding-left: 20px;
    font-weight: 500;
}

/* Khu vực hiển thị sản phẩm bên phải */
#right {
    width: 75%;
    float: right;
}

#right .cate {
    width: 100%;
    height: 40px;
    background-color: #E8590C;
    line-height: 40px;
    color: white;
    padding-left: 15px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

#right .list-product {
    width: 100%;
    margin-top: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Tự động xuống hàng nếu nhiều sản phẩm */
}

/* Thiết lập từng ô sản phẩm */
.product {
    width: calc(33.33% - 14px); /* Chia đều 3 cột và trừ đi khoảng cách gap */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    background: white;
}

.product img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border: none;
    outline: none;
}

.product h3 {
    font-size: 15px;
    margin: 10px 0;
    height: 40px;
    overflow: hidden; /* Cắt bớt nếu tên quá dài gây lệch khung */
    color: #333;
}

.product .price {
    color: red;
    font-weight: bold;
    margin: 5px 0;
}

.product .btn-buy {
    background-color: #E8590C;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

/* FOOTER CHÂN TRANG */
#footer {
    width: 100%;
    background-color: #E8590C;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

#footer-content {
    width: 80%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col.col-large {
    flex: 1.5; /* Cột thông tin cửa hàng rộng hơn một chút */
}

#footer h3 {
    margin: 0 0 15px 0;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-col.col-large h3 {
    font-size: 16px;
}

#footer p {
    margin: 5px 0;
    font-size: 14px;
}

#footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

#footer ul li a {
    color: white;
    text-decoration: none;
}