html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* chiều cao tối thiểu toàn trang */
}

main {
    flex: 1; /* phần nội dung chính chiếm toàn bộ không gian còn lại */
}

/* Footer cố định ở đáy trang (khi nội dung ngắn) */
footer {
    margin-top: auto;
}

.shop-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.shop-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    width: 260px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #222;
}

.product-card p {
    font-size: 14px;
    color: #666;
    min-height: 50px;
}

.product-card strong {
    font-size: 16px;
    color: #c27c0e;
    display: block;
    margin-top: 10px;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 8px 15px;
    transition: background 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dropdown-menu {
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

main {
    padding-top: 60px;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.6); /* nền đen mờ */
    backdrop-filter: blur(6px);           /* làm mờ nền phía sau (nếu trình duyệt hỗ trợ) */
    -webkit-backdrop-filter: blur(6px);   /* hỗ trợ Safari */
    transition: background-color 0.3s ease;
    height: 60px;
}

.navbar a, .navbar .dropdown-toggle {
    color: white;
}

.nav-left {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand {
    margin-left: auto;
    margin-right: auto;
}

/* ----- MENU DROPDOWN DƯỚI NAVBAR ----- */
#menu {
    position: fixed;
    top: 56px; /* hoặc auto tính bằng JS như bạn có thể đang làm */
    left: 0;
    right: 0;
    background: #111;
    color: #fff;
    z-index: 1055;
    display: none;                 /* ẩn mặc định, toggle bằng JS */
    flex-direction: column;        /* xếp dọc */
    align-items: center;           /* căn giữa ngang */
    justify-content: center;       /* căn giữa dọc nếu cao */
    gap: 12px;                     /* khoảng cách giữa các link */
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

/* Khi menu hiển thị */
#menu.open {
    display: flex;
    opacity: 1;
}

/* Link trong menu */
#menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s ease;
}

/* Hover đẹp */
#menu a:hover {
    color: #ffcc66;
    text-shadow: 0 0 8px rgba(255,204,102,0.5);
}

.site-footer { background:#1f2428; }
.footer-logo { max-height:250px; width:auto; }
.site-footer a { color:#eaeaea; text-decoration:none; }
.site-footer a:hover { color:#ffffff; text-decoration:underline; }
.footer-nav .list-inline-item { margin:0 .75rem; }
.footer-social { display:inline-flex; align-items:center; }
.copyright { opacity:.8; }

/* Mobile: menu thành danh sách dọc cho dễ bấm */
@media (max-width: 991.98px) {
    .footer-nav .list-inline-item { display:block; margin:.25rem 0; }
}

/* Mobile friendly */
@media (max-width: 768px) {
    #menu {
        font-size: 1rem;
        gap: 10px;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .product-card {
        width: 90%;
    }
}
