/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navbar */
nav {
    background-color: #2563eb;
    color: white;
    padding: 16px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 24px;
    font-weight: bold;
}

nav .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 16px;
}

nav .nav-links a:hover {
    text-decoration: underline;
}

/* Products Section */
#products {
    padding: 64px 0;
}

#products h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

#products h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: left;
}

.product-card img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-card p {
    color: #4b5563;
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
}

.product-card button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
}

.product-card button:hover {
    background-color: #1d4ed8;
}

/* Cart Section */
#cart {
    background-color: #e5e7eb;
    padding: 64px 0;
}

#cart h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 48px;
}

#cart .cart-items {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

#cart .cart-items p {
    color: #4b5563;
}

#cart .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#cart .cart-item button {
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
}

#cart .cart-item button:hover {
    text-decoration: underline;
}

#cart .cart-total {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 16px;
}

#cart .checkout-btn {
    display: block;
    margin: 24px auto 0;
    background-color: #2563eb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#cart .checkout-btn:hover {
    background-color: #1d4ed8;
}

/* Contact Section */
#contact {
    padding: 64px 0;
    text-align: center;
}

#contact h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.contact-title-image {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 16px auto;
    border-radius: 8px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #111827;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

/* Footer */
footer {
    background-color: #2563eb;
    color: white;
    padding: 16px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .contact-title-image {
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    nav .container {
        flex-direction: column;
        gap: 16px;
    }

    nav .nav-links {
        display: flex;
        gap: 16px;
    }

    #products h2, #cart h2, #contact h2 {
        font-size: 28px;
    }

    #products h3 {
        font-size: 20px;
    }

    .contact-form {
        padding: 16px;
    }

    .contact-title-image {
        max-width: 250px;
    }
}
/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px), print {
    /* Tablet Viewport: Show tab-desk class, hide mobile class */
    .tab-desk {
        display: block;
    }

    .mobile, .mobile-tablet {
        display: none;
    }

    /* Tablet Viewport: Style rules for nav area */
    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.25em;
    }

    nav li a {
        padding: 0.5em;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    aside {
        grid-column: 1 / span 2;
    }
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 1000px), print {
    /* Desktop Viewport: Show desktop class, hide mobile-tablet class */
    .desktop {
        display: block;
    }

    .mobile-tablet {
        display: none;
    }

    /* Desktop Viewport: Style rules for nav area */
    nav li {
        font-size: 1.5em;
    }

    nav li a {
        padding: 0.5em 1.5em;
    }

    nav li a:hover {
        color: #2a1f14;
        background-color: #f6eee4;
        opacity: 0.5;
    }

    /* Desktop Viewport: Style rules for main content */
    #info ul {
        margin-left: 5%;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }

    /* style rules for table */
    table {
        border: 1px solid #2a1f14;
        border-collapse: collapse;
        margin: 0 auto;
    }

    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%;
    }

    th, td {
        border: 1px solid #2a1f14;
        padding: 1%;
    }

    th {
        background-color: #2a1f14;
        color: #fff;
        font-size: 1.15em;
    }

    tr:nth-child(odd) {
        background-color: #deccba;
    }
}

/* Media Query for Large Desktop Viewports */
@media screen and (min-width: 1921px) {
    body {
        background: linear-gradient(#f6eee4, #78593a);
    }

    #wrapper {
        width: 1920px;
        margin: 0 auto;
    }

    main {
        background-color: #f6eee4;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }
}

/* Media Query for Print */
@media print {
    body {
        background-color: white;
        color: black;
    }
}
/* Hero Section Styles */
.hero-section {
    position: relative; /* Rất quan trọng: Để các phần tử con có position: absolute có thể định vị tương đối với nó */
    height: 24rem; /* Chiều cao của phần Hero */
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo hình ảnh phủ kín không gian mà không bị méo */
    object-position: center;
}

.hero-overlay {
    position: absolute; /* Rất quan trọng: Để lớp phủ này nằm đè lên hình ảnh */
    inset: 0; /* top:0, right:0, bottom:0, left:0 - Đảm bảo lớp phủ chiếm toàn bộ không gian của .hero-section */
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%); /* Tạo hiệu ứng tối dần từ dưới lên */
    display: flex; /* Sử dụng Flexbox để căn giữa nội dung chữ */
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang */
    text-align: center;
    padding: 1rem;
}

.hero-content {
    color: white; /* Màu chữ trắng để nổi bật trên nền tối */
    /* Các style khác cho chữ như font-size, font-weight, text-shadow */
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.625;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}