* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f4f4f4; }

#container { width: 1000px; margin: 0 auto; background: #fff; border: 1px solid #ccc; }

/* Menu */
#menu { background: #504b4b; height: 50px; }
#hmenu { display: flex; list-style: none; height: 100%; align-items: center; }
#hmenu li { flex: 1; text-align: center; }
#hmenu li a { color: #fff; text-decoration: none; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 5px; }
#hmenu li a img { width: 18px; }
.devider { width: 1px !important; height: 25px; background: rgba(255,255,255,0.2); flex: none !important; }

/* Layout */
#main { display: flex; padding: 10px; gap: 10px; }
#left, #right { width: 200px; }
#content { flex: 1; }

/* Title & Sidebar */
.title { background: #504b4b; color: #fff; padding: 10px; text-align: center; font-weight: bold; border-radius: 8px 8px 0 0; }
.categories { list-style: none; border: 1px solid #ddd; margin-bottom: 10px; }
.categories li { padding: 8px 10px; border-bottom: 1px solid #eee; }
.categories li a { text-decoration: none; color: #333; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.categories li img { width: 14px; }
.lmenu1 { background: #f9f2f2; }
.lmenu2 { background: #ffffff; }

/* Khối nội dung giữa */
.big_box_mid { background: #fff5f5; border: 1px solid #eee; border-radius: 10px; padding: 15px; }
.main-title { text-align: center; margin-bottom: 20px; font-size: 16px; }

/* Sản phẩm */
.product-grid { display: flex; gap: 10px; }
.product { flex: 1; background: transparent; text-align: center; }
.pro-name { color: #c00; font-weight: bold; font-size: 14px; height: 35px; margin-bottom: 5px; }
.product img { width: 130px; height: 160px; border: 1px solid #ddd; background: #fff; }

/* Phần Giá và Nút (Quan trọng nhất) */
.pro-footer { 
    display: flex; 
    justify-content: space-between; /* Đẩy giá sang trái, nút sang phải */
    align-items: center; 
    margin-top: 10px; 
    padding: 0 5px;
}
.price { color: red; font-weight: bold; font-size: 14px; }
.buy-btn { 
    background: #444; 
    color: #fff !important; 
    text-decoration: none; 
    font-size: 11px; 
    padding: 4px 6px; 
    border-radius: 3px; 
}
/* Khung chứa marquee */
.box_content_khuyenmai {
    border: 1px solid #ccc;
    border-top: none;
    height: 200px;
    overflow: hidden;
    background: #fff;
    text-align: center; /* Căn giữa nội dung bên trong */
}

/* Từng item trong marquee */
.sale-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee; /* Đường kẻ mờ ngăn cách các sp */
}

.sale-item img {
    width: 80%;       /* Ảnh chiếm 80% chiều ngang khung sidebar */
    height: auto;     /* Giữ đúng tỉ lệ ảnh, không bị méo */
    display: block;   /* Loại bỏ khoảng trống thừa */
    margin: 0 auto 5px; /* Căn giữa ảnh và cách chữ bên dưới 5px */
    border: 1px solid #f0f0f0;
}

.sale-item p {
    color: red;
    font-weight: bold;
    font-size: 13px;
    margin: 0;
}
/* Footer */
#footer { text-align: center; padding: 20px; border-top: 1px solid #eee; font-size: 12px; color: #666; line-height: 1.6; }
.ad-box img { width: 100%; height: auto; }