/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    background: #f0f0f0;
    color: #333;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header { width: 100%; background: #fff; border-bottom: 2px solid #4CAF50; }
.header img { width: 100%; max-height: 160px; object-fit: cover; }

/* ===== MENU ===== */
.menu {
    background: #fff;
    padding: 8px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.menu a { color: #0066cc; padding: 2px 4px; }
.menu a:hover { text-decoration: underline; color: #4CAF50; }

.search { margin-left: auto; display: flex; gap: 4px; }
.search input {
    border: 1px solid #ccc; padding: 4px 8px;
    font-size: 13px; width: 180px; outline: none;
}
.search button {
    background: #e0e0e0; border: 1px solid #bbb;
    padding: 4px 10px; cursor: pointer; font-size: 13px;
}
.search button:hover { background: #4CAF50; color: #fff; border-color: #4CAF50; }

/* ===== CONTAINER*/
.container {
    display: flex;
    flex-direction: row;          
    max-width: 1100px;
    margin: 12px auto;
    gap: 12px;
    padding: 0 10px;
    align-items: flex-start;
}

/* ===== SIDEBAR (BÊN TRÁI) ===== */
.sidebar {
    width: 180px;
    min-width: 180px;
    background: #fff;
    border: 1px solid #ddd;
    order: 1;                     
}

.category { border-bottom: 1px solid rgba(255,255,255,0.3); }
.category:last-child { border-bottom: none; }

.category a {
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    background: #4CAF50;
    color: #fff;
    transition: background 0.2s;
}
.category a:hover, .category.active a { background: #2e7d32; }

/* ===== PRODUCTS  ===== */
.products {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
    order: 2;                     
}

/* ===== PRODUCT CARD ===== */
.product {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 190px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-3px);
    border-color: #4CAF50;
}
.product img { width: 160px; height: 130px; object-fit: contain; margin-bottom: 8px; }
.product h4 { font-size: 13px; font-weight: 600; color: #222; margin-bottom: 6px; min-height: 36px; line-height: 1.3; }
.product .price { color: #e53935; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.product .old { color: #999; font-size: 12px; text-decoration: line-through; }

/* ===== FOOTER ===== */
.footer {
    background: #333; color: #fff;
    text-align: center; padding: 14px;
    margin-top: 20px; font-size: 14px; letter-spacing: 1px;
}