/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    background: url('../images/image.png') no-repeat center center/cover; /* Cập nhật đường dẫn nếu cần */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 80px; /* Header height */
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content, .opening-hours {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 5rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.opening-hours {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-left: 3px solid var(--color-secondary);
}

.opening-hours h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.opening-hours ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

.opening-hours ul li span:first-child {
    font-weight: bold;
    margin-right: 2rem;
}

/* Container cho phép cuộn ngang */
.menu-scroll-container {
    overflow-x: auto; /* CHỈ HIỆN THANH CUỘN KHI CẦN */
    padding-bottom: 1.5rem; /* Tăng khoảng trống cho thanh cuộn */
    position: relative;
    z-index: 1;
}

/* Tùy chỉnh thanh cuộn */
.menu-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.menu-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.menu-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--color-light);
    border-radius: 4px;
}

/* THAY ĐỔI CHÍNH NẰM Ở ĐÂY */
.menu-categories {
    display: grid;
    /* Tạo lưới có 6 cột bằng nhau */
    grid-template-columns: repeat(6, 1fr); 
    grid-auto-flow: column; /* Các mục mới sẽ tạo cột mới */
    gap: 2rem;
    min-width: max-content; /* Đảm bảo container đủ rộng để chứa tất cả các mục */
}

/* Phong cách cho các mục menu */
.category {
    background-color: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    width: 180px; /* Chiều rộng cố định cho mỗi mục */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category:hover, .category.active {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--color-light);
    transform: translateY(-10px);
}

/* .category img {
    height: 100px;
    margin-bottom: 1rem;
    object-fit: contain;
} */

/* Tìm và thay thế quy tắc .category img cũ bằng đoạn này */
.category .menu-icon {
    height: 100px;
    width: 100px;
    margin-bottom: 1rem;
    color: var(--color-light); /* Màu của icon */
}

/* Các quy tắc CSS khác cho #menu giữ nguyên */

.category span {
    color: var(--color-light);
    font-weight: normal;
    font-style: italic;
    font-size: 1rem;
}

/* Thanh indicator */
.menu-indicator-bar {
    /* Thanh này có thể không cần thiết nữa khi đã có scrollbar, 
       nhưng bạn có thể giữ lại nếu muốn */
    display: none; /* Tạm thời ẩn đi để giao diện gọn hơn */
}

/* --- Takeaway & About Sections (Homepage) --- */
#takeaway {
    background: url('../images/takeaway-bg.jpg') no-repeat center center/cover; /* Cập nhật đường dẫn nếu cần */
    text-align: center;
    position: relative;
}

#takeaway::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

#takeaway h2, #takeaway p, #takeaway .btn {
    position: relative;
    z-index: 2;
}

#takeaway p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#about {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/image2.png') no-repeat center center/cover; /* Cập nhật đường dẫn nếu cần */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    padding: 3rem;
    max-width: 800px;
    text-align: center;
}

.about-content h2 {
    color: var(--color-dark);
}

.about-content p {
    font-size: 1.1rem;
}

.btn.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.btn.btn-dark:hover {
    background-color: transparent;
    color: var(--color-dark);
}

/* --- Gallery Section --- */
/* --- Gallery Section --- */
#gallery {
    padding: 6rem 5%;
    background-color: var(--color-dark);
}

#gallery h2 {
    color: var(--color-light);
    font-size: 2.8rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-scroll-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    /* THAY ĐỔI CHÍNH: Tạo lưới 5 cột bằng nhau */
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem; /* Giảm khoảng cách giữa các ảnh */
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    
    /* THAY ĐỔI CHÍNH: Đặt tỷ lệ ảnh dọc (cao hơn rộng) */
    aspect-ratio: 3 / 4; 
    object-fit: cover;
    
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- Responsive cho Gallery --- */
@media (max-width: 768px) {
    .gallery-scroll-container {
        overflow-x: auto; /* Bật cuộn ngang */
        padding-bottom: 1rem; /* Thêm khoảng trống cho thanh cuộn */
    }

    /* Tùy chỉnh thanh cuộn cho đẹp hơn */
    .gallery-scroll-container::-webkit-scrollbar {
        height: 6px;
    }
    .gallery-scroll-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    .gallery-scroll-container::-webkit-scrollbar-thumb {
        background-color: var(--color-secondary);
        border-radius: 3px;
    }

    .gallery-grid {
        /* Thiết lập các cột để cuộn ngang */
        grid-template-columns: repeat(5, 250px); /* Mỗi ảnh rộng 250px */
        grid-auto-flow: column;
    }
}

@media (max-width: 576px) {
    /* Trên màn hình rất nhỏ, có thể muốn ảnh nhỏ hơn nữa */
    .gallery-grid {
        grid-template-columns: repeat(5, 200px);
    }
}

/* --- Responsive (Homepage) --- */
@media (max-width: 992px) {
    #hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px; /* Thêm padding trên */
        padding-bottom: 4rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }

    .opening-hours {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        border-left: none; /* Bỏ border trái */
        border-top: 3px solid var(--color-secondary); /* Thêm border trên */
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .about-content {
        padding: 2rem;
    }
}