/* General body and font styles */
body {
    font-family: 'Poppins', sans-serif; /* Sử dụng Poppins cho body */
    background-color: #E3DCD2;
    color: #4A3628;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Thêm khoảng cách cho phần nội dung dưới navbar */
#home {
    padding-top: 100px; /* Điều chỉnh khoảng cách tuỳ theo chiều cao của navbar */
}

/* Navigation styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #D9A078;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    transition: transform 0.3s;
    border-radius: 50%;
}

.logo:hover {
    transform: scale(1.1);
}

header h1 {
    font-size: 36px;
    color: #5C4033;
    font-family: 'Playfair Display', serif; /* Sử dụng Playfair Display cho header */
    letter-spacing: 1px;
}

/* Navigation menu */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin-right: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #5C4033;
    font-family: 'Poppins', sans-serif; /* Sử dụng Poppins cho các mục menu */
    font-weight: 600;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: #A1887F;
    color: #fff;
}

/* Button */
button {
    font-family: 'Poppins', sans-serif;
    background: #B53A2C;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: #9C2A1F; /* Darker red for Depth */
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Layout containers */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.product h3 {
    color: #5a4632; /* Màu nâu trầm cho tên sản phẩm */
    font-weight: bold;
}

.product p {
    color: #5a4632; /* Màu nâu trầm cho mô tả sản phẩm */
}

.product .price {
    color: red; /* Màu đỏ cho giá sản phẩm */
    font-weight: bold;
}


.product {
    background: #EADDC8;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    transition: transform 0.3s;
    flex: 1 1 280px;
    border: 10px solid #C2A489;
}

.product a {
    text-decoration: none;
}

.add-to-cart {
    background-color: #5a4632; /* Màu nâu trầm */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

.add-to-cart:hover {
    background-color: #453726; /* Màu tối hơn khi hover */
}


.product:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #E4A788;
    /* Màu hồng be */
    color: #5a3e36;
    /* Màu nâu nhẹ */
    text-align: center;
    padding: 20px;
    margin-top: 50px;
  }

  .social-icons {
    margin-top: 10px;
  }

  .social-icons a {
    color: #5a3e36;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .social-icons a:hover {
    color: #C27564;
    /* Nâu cam dịu hơn */
    transform: scale(1.1);
    transition: color 0.3s ease, transform 0.3s ease;
  }

/* Banner styles */
.banner {
    width: 100%;
    height: 300px;
    background: url('patisserie-banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-family: 'Dancing Script', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hamburger menu styles */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #5C4033;
    cursor: pointer;
}

/* Media Queries for responsiveness */

/* For devices with width 1024px or less (tablet and mobile) */
@media (max-width: 1024px) {
    /* Ẩn menu chính trên các màn hình nhỏ */
    #menuList {
        display: none;
    }

    /* Hiển thị nút hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hiển thị menu khi có class 'open' */
    #menuList.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #D7CCC8;
        padding: 10px 0;
    }

    /* Thiết kế lại các phần tử trong menu khi menu mở */
    nav ul {
        display: flex;
        gap: 20px;
    }

    .product-grid {
        gap: 20px;
    }

    .product {
        max-width: 45%;
        flex: 1 1 45%;
    }

    /* footer {
        padding: 18px;
    } */
}

/* For devices with width 768px or less (portrait tablet and mobile) */
@media (max-width: 768px) {
    header {
        font-size: 28px;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .container {
        padding: 20px;
    }

    .product-grid {
        gap: 20px;
        justify-content: center;
    }

    .product {
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* footer {
        padding: 15px;
    } */

    .logo {
        height: 40px;
    }

    header h1 {
        font-size: 26px;
    }
}

/* For devices with width 480px or less (mobile) */
@media (max-width: 480px) {
    header {
        font-size: 24px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 8px 10px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner {
        font-size: 28px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    nav ul li a {
        padding: 8px 12px;
    }
}

/* For devices with width 1024px or more (tablet and above) */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    #menuList {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
}

.fly-to-cart {
    transition: all 0.8s ease-out;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
    z-index: 1000;
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    z-index: 9999;
    animation: slide-in 0.5s ease;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

