﻿/* ========================== */
/* RESET + CẤU TRÚC CHUNG */
/* ========================== */
body {
    font-family: Arial, sans-serif;
    padding-right: 15px;
    padding-bottom: 40px;
    background-color: #fff;
}

/* ========================== */
/* KHUNG SẢN PHẨM */
/* ========================== */

.row > [class*="col-"] {
    display: flex;
    justify-content: center;
    align-items: stretch; /* 👈 giúp tất cả card bằng chiều cao */
}

/* Card chính */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: #2a313b;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    height: 100%; /* 👈 để card chiếm đủ chiều cao của cột */
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/* ========================== */
/* ẢNH MÓN ĂN */
/* ========================== */
.product-image-container {
    flex: 0 0 240px; /* cố định vùng ảnh */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 đổi từ contain → cover để không bị viền trắng */
    transition: transform 0.3s ease-in-out;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ========================== */
/* PHẦN DƯỚI: CHI TIẾT */
/* ========================== */
.product-details {
    flex: 1; /* 👈 giúp phần dưới tự lấp đầy chiều cao còn lại */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #2a313b;
    color: #ffffff;
    padding: 25px 20px 20px;
    border-radius: 0 0 15px 15px;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    min-height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.product-description {
    font-size: 14px;
    color: #cccccc;
    text-align: center;
    margin: 10px 0;
    line-height: 1.4;
    min-height: 45px;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

.add-to-cart-btn {
    background-color: #FFD700;
    color: #2a313b;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

    .add-to-cart-btn:hover {
        background-color: #e6c200;
    }

/* ============================= */
/* FIX CHIỀU CAO SLIDER QUẢNG CÁO */
/* ============================= */
#carousel1 {
    width: 100%;
    height: 420px; /* chiều cao cố định */
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

    /* Ảnh trong slider giãn đều & luôn fill khung */
    #carousel1 .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* giữ tỉ lệ, tự cắt ảnh cho vừa khung */
        object-position: center center; /* canh giữa ảnh */
        transition: transform 0.5s ease;
    }

    /* Hiệu ứng mượt khi chuyển slide */
    #carousel1 .carousel-item.active img {
        transform: scale(1.02);
    }

    /* Giữ chữ trong slider không bị lệch */
    #carousel1 .carousel-caption {
        bottom: 20px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.4);
        padding: 6px 12px;
        border-radius: 6px;
    }

/* Responsive cho slider */
@media (max-width: 768px) {
    #carousel1 {
        height: 250px;
    }

        #carousel1 .carousel-item img {
            height: 250px;
        }
}
/* ========================== */
/* FOOTER LK RESTAURANT - NỀN ĐEN, CHỮ TRẮNG (ĐÃ SỬA LỖI ALIGNMENT) */
/* ========================== */
.footer-lk {
    background-color: #000;
    color: #fff;
    padding: 50px 20px 30px;
    border-top: 3px solid #FFD700;
    font-size: 15px;
    line-height: 1.7;
}

/* Bố cục widget mới (BUỘC XẾP DỌC) */
.footer-widget {
    margin-bottom: 30px;
    display: flex; /* Dùng flex */
    flex-direction: column; /* Xếp chồng theo chiều dọc */
    align-items: center; /* Căn giữa trên mobile (mặc định) */
}

/* Icon to (giống layout mẫu) */
.footer-widget-icon {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 15px;
    min-height: 35px; /* Giữ chiều cao cho cột 4 */
    display: flex;
    justify-content: center; /* Căn giữa icon */
}

    /* GHI ĐÈ CSS CŨ: Bỏ margin-right cho icon trong khối này */
    .footer-widget-icon i {
        margin-right: 0 !important;
        color: #FFD700;
    }

/* Tiêu đề */
.footer-lk .footer-title {
    color: #FFD700;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center; /* Căn giữa tiêu đề */
}

/* Text bên trong widget */
.footer-widget-text {
    text-align: center; /* Căn giữa text */
}

    .footer-widget-text p {
        color: #ddd;
        margin-bottom: 8px;
    }

        .footer-widget-text p strong {
            color: #f1f1f1;
        }

/* Style cho icon social (hình tròn) */
.footer-lk .footer-social {
    display: flex; /* Xếp các icon social ngang hàng */
    justify-content: center;
}

    .footer-lk .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #FFD700;
        color: #FFD700;
        border-radius: 50%;
        margin-right: 10px;
        font-size: 16px;
        transition: all 0.3s ease;
        text-decoration: none;
    }
        /* GHI ĐÈ CSS CŨ: Icon social không cần margin-right chung */
        .footer-lk .footer-social a i {
            margin-right: 0 !important;
        }

        .footer-lk .footer-social a:last-child {
            margin-right: 0; /* Bỏ margin cho icon cuối */
        }

        .footer-lk .footer-social a:hover {
            background-color: #FFD700;
            color: #000;
        }

/* Đường phân cách */
.footer-lk .footer-line {
    border-top: 1px solid #333;
    margin: 30px 0 15px;
}

/* Bản quyền */
.footer-lk .footer-copy {
    color: #bbb;
    font-size: 14px;
    margin: 0;
}

/* Liên kết */
.footer-lk .footer-link {
    color: #FFD700;
    text-decoration: underline;
}

    .footer-lk .footer-link:hover {
        color: #fff;
    }

/* Responsive footer (Căn trái trên Desktop) */
@media (min-width: 768px) {
    .footer-widget {
        align-items: flex-start; /* Căn trái trên desktop */
    }

    .footer-widget-icon {
        justify-content: flex-start; /* Căn trái icon */
    }

    .footer-lk .footer-title {
        text-align: left; /* Căn trái tiêu đề */
    }

    .footer-widget-text {
        text-align: left; /* Căn trái text */
    }

    .footer-lk .footer-social {
        justify-content: flex-start; /* Căn trái icon social */
    }

    .footer-widget.footer-social-widget {
        /* Căn trái cột "Theo dõi" trên desktop */
        align-items: flex-start;
    }
}

.pagination-container {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    border-radius: 8px;
}

    .pagination li {
        margin: 0 4px;
    }

        .pagination li a,
        .pagination li span {
            color: #333;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            padding: 6px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            text-decoration: none;
        }

            .pagination li a:hover {
                background-color: #007bff;
                color: white;
                border-color: #007bff;
            }

        .pagination li.active span {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }

        .pagination li.disabled span {
            color: #ccc;
            cursor: not-allowed;
            background-color: #f5f5f5;
        }

.add-to-cart-btn {
    background-color: #c19a6b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .add-to-cart-btn:hover {
        background-color: #b1875b;
        transform: scale(1.1);
        color: #fff;
    }
