* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Colors */
    --primary-color: #3b141c;
    --secondary-color: #f3961c;
    --white-color: #fff;
    --dark-color: #252525;
    --light-color: #faf4f5;
    --medium-gray-color: #ccc;
    /* Font Sizes */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    /* Border Radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;
    /* Site Max Width */
    --site-max-width: 1300px;
}

ul { list-style: none; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
html { scroll-behavior: smooth; }
img { width: 100%; }

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 5px;
    display: block;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* Navbar */
header {
    position: fixed;
    width: 100%;
    z-index: 5;
    background: var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-logo .logo-text {
    color: var(--white-color);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-menu .nav-link {
    padding: 10px 18px;
    background: var(--secondary-color);
    color: var(--white-color);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.nav-menu .nav-link:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

#menu-open-button, #menu-close-button {
    display: none;
    font-size: var(--font-size-l);
    color: var(--white-color);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-icon i {
    color: var(--white-color);
    font-size: var(--font-size-l);
}

.cart-icon .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: var(--white-color);
    border-radius: var(--border-radius-circle);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-semibold);
}

/* Cart Section */
.cart-section {
    padding: 120px 0;
    background: var(--light-color);
}

.cart-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    background: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius-s);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: calc(100% / 3 - 20px);
    flex-wrap: nowrap;
}

.order-item .order-photo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 15px;
}

.order-item .order-name {
    flex: 1;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

.order-item .order-price {
    font-size: var(--font-size-m);
    color: var(--secondary-color);
    margin-right: 15px;
    flex: 0 0 auto;
    min-width: 80px;
    white-space: nowrap;
    text-align: right;
}

.order-item .order-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item .order-action .increase-item,
.order-item .order-action .decrease-item {
    padding: 5px 10px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius-s);
    font-size: var(--font-size-n);
    transition: 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.order-item .order-action .increase-item:hover,
.order-item .order-action .decrease-item:hover {
    background: var(--secondary-color);
}

.order-item .order-action .quantity {
    font-size: var(--font-size-m);
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.cart-actions {
    margin-top: 30px;
    text-align: center;
}

.cart-total {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cart-clear, .cart-checkout {
    padding: 10px 26px;
    margin: 0 10px;
    border-radius: var(--border-radius-m);
    font-size: var(--font-size-n);
    transition: 0.3s ease;
}

.cart-clear {
    background: var(--primary-color);
    color: var(--white-color);
}

.cart-clear:hover {
    background: var(--secondary-color);
}

.cart-checkout {
    background: var(--secondary-color);
    color: var(--white-color);
}

.cart-checkout:hover {
    background: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--primary-color);
    display: flex;
    align-items: center;
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    color: var(--white-color);
    gap: 30px;
}

.hero-details .title {
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
    font-family: 'Miniver', sans-serif;
}

.hero-details .subtitle {
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.hero-details .description {
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

.hero-details .buttons {
    display: flex;
    gap: 23px;
}

.hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-m);
    background: var(--secondary-color);
    font-weight: var(--font-weight-medium);
}

.hero-details .button:hover {
    color: var(--white-color);
    border-color: var(--white-color);
    background: transparent;
}

.hero-details .contact-us:hover {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.hero-image-wrapper {
    max-width: 500px;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--light-color);
}

.about-section .section-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.about-image-wrapper .about-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--border-radius-circle);
}

.about-details {
    max-width: 50%;
}

.about-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-s);
}

.social-link-list {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.social-link-list .social-link {
    color: var(--primary-color);
    font-size: var(--font-size-l);
    transition: 0.2s ease;
}

.social-link-list .social-link:hover {
    color: var(--secondary-color);
}

/* Menu Section */
.menu-section {
    color: var(--white-color);
    background: var(--dark-color);
    padding: 50px 0 100px;
}

.category-title {
    font-size: var(--font-size-l);
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.menu-item {
    text-align: center;
    background: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius-s);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item .menu-image {
    max-width: 150px;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 10px;
}

.menu-item .name {
    margin: 10px 0;
    font-size: var(--font-size-l);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.menu-item .price {
    color: var(--secondary-color);
    font-size: var(--font-size-m);
    margin-bottom: 10px;
}

.menu-item .text {
    font-size: var(--font-size-s);
    color: #666;
    margin-bottom: 15px;
}

.menu-item .add-to-cart {
    padding: 8px 20px;
    background: var(--secondary-color);
    color: var(--white-color);
    border-radius: var(--border-radius-m);
    font-size: var(--font-size-n);
    transition: 0.3s ease;
}

.menu-item .add-to-cart:hover {
    background: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
    padding: 50px 0 100px;
}

.gallery-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-s);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.3);
}

/* Contact Section */
.contact-section {
    padding: 50px 0 100px;
    background: var(--light-color);
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.contact-info-list {
    flex: 1;
}

.contact-info-list .contact-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.contact-info-list .contact-info i {
    font-size: var(--font-size-m);
}

.map-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-s);
    margin-bottom: 20px;
}

.map-wrapper .map {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.contact-form {
    max-width: 50%;
}

.contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    outline: none;
    margin-bottom: 16px;
    border-radius: var(--border-radius-s);
    background: var(--white-color);
    border: 1px solid var(--medium-gray-color);
}

.contact-form .form-input:focus {
    border-color: var(--secondary-color);
}

.contact-form textarea.form-input {
    height: 100px;
    padding: 12px;
    resize: vertical;
}

.contact-form select.form-input {
    height: 50px;
    padding: 0 12px;
}

.contact-form .submit-button {
    padding: 10px 26px;
    margin-top: 10px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: var(--primary-color);
    border-radius: var(--border-radius-m);
    border: 1px solid var(--primary-color);
    transition: 0.3s ease;
}

.contact-form .submit-button:hover {
    color: var(--primary-color);
    background: transparent;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: var(--font-size-n);
    color: var(--primary-color);
}

.contact-form label input[type="checkbox"] {
    margin-right: 8px;
}

.contact-form p {
    margin-top: 15px;
    font-size: var(--font-size-n);
    color: var(--primary-color);
}

.contact-form p a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form p a:hover {
    color: var(--primary-color);
}

/* Login and Signup Sections */
.login-section, .signup-section {
    padding: 120px 0;
    background: var(--light-color);
}

.login-form, .signup-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Footer Section */
.footer-section {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0 20px;
    font-size: var(--font-size-s);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1 1 250px;
}

.footer-logo {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.footer-desc {
    line-height: 1.6;
}

.footer-center h4,
.footer-right h4 {
    margin-bottom: 10px;
    font-size: var(--font-size-m);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--white-color);
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 30px;
    font-size: var(--font-size-s);
}

.footer-bottom a {
    color: var(--secondary-color);
    margin: 0 5px;
}

.social-link-list {
    display: flex;
    gap: 15px;
}

.social-link {
    font-size: var(--font-size-l);
    color: var(--white-color);
    transition: 0.3s;
}

.social-link:hover {
    color: var(--secondary-color);
}

/* Grid System for Mobile */
@media only screen and (max-width: 768px) {
    .col-s-1 { width: 8.33%; }
    .col-s-2 { width: 16.66%; }
    .col-s-3 { width: 25%; }
    .col-s-4 { width: 33.33%; }
    .col-s-5 { width: 41.66%; }
    .col-s-6 { width: 50%; }
    .col-s-7 { width: 58.33%; }
    .col-s-8 { width: 66.66%; }
    .col-s-9 { width: 75%; }
    .col-s-10 { width: 83.33%; }
    .col-s-11 { width: 91.66%; }
    .col-s-12 { width: 100%; }

    body.show-mobile-menu header::before {
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }

    #menu-open-button, #menu-close-button {
        display: block;
    }

    #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    body.show-mobile-menu .nav-menu {
        display: flex;
        left: 0;
    }

    .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .hero-section .section-content {
        flex-direction: column-reverse;
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
    }

    .hero-details .subtitle,
    .hero-details .description,
    .about-details,
    .contact-form,
    .login-form,
    .signup-form {
        max-width: 100%;
    }

    .hero-details .buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .about-section .section-content {
        gap: 70px;
        flex-direction: column;
    }

    .about-image-wrapper {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-image-wrapper .about-image {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }

    .menu-list .menu-item {
        width: calc(100% / 2 - 15px); /* 2 cột trên tablet */
    }

    .gallery-list .gallery-item {
        width: calc(100% / 2 - 10px);
    }

    .contact-section .section-content {
        flex-direction: column-reverse;
    }

    .contact-info-list,
    .contact-form {
        max-width: 100%;
    }

    .map-wrapper {
        max-width: 100%;
        height: 200px;
    }

    .map-wrapper .map {
        height: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: 1 1 100%;
    }

    .order-item {
        width: calc(100% / 2 - 15px);
    }

    .order-item .order-price {
        min-width: 70px;
        font-size: var(--font-size-s);
    }
}

/* Grid System for Tablet */
@media only screen and (max-width: 1024px) {
    .col-m-1 { width: 8.33%; }
    .col-m-2 { width: 16.66%; }
    .col-m-3 { width: 25%; }
    .col-m-4 { width: 33.33%; }
    .col-m-5 { width: 41.66%; }
    .col-m-6 { width: 50%; }
    .col-m-7 { width: 58.33%; }
    .col-m-8 { width: 66.66%; }
    .col-m-9 { width: 75%; }
    .col-m-10 { width: 83.33%; }
    .col-m-11 { width: 91.66%; }
    .col-m-12 { width: 100%; }
}

/* Grid System for Laptop/PC */
@media only screen and (min-width: 1025px) {
    .col-x-1 { width: 8.33%; }
    .col-x-2 { width: 16.66%; }
    .col-x-3 { width: 25%; }
    .col-x-4 { width: 33.33%; }
    .col-x-5 { width: 41.66%; }
    .col-x-6 { width: 50%; }
    .col-x-7 { width: 58.33%; }
    .col-x-8 { width: 66.66%; }
    .col-x-9 { width: 75%; }
    .col-x-10 { width: 83.33%; }
    .col-x-11 { width: 91.66%; }
    .col-x-12 { width: 100%; }

    .gallery-list {
        justify-content: space-around;
    }

    .gallery-item {
        width: calc(100% / 3 - 20px);
        flex-grow: 0;
    }

    .menu-list .menu-item {
        width: calc(100% / 3 - 20px);
    }
}

/* Mobile Adjustments */
@media only screen and (max-width: 640px) {
    .menu-list .menu-item,
    .gallery-list .gallery-item,
    .order-item {
        width: 100%; /* 1 cột trên mobile */
    }

    .footer-section .section-content {
        flex-direction: column;
        gap: 20px;
    }

    .order-item .order-price {
        min-width: 60px;
        font-size: var(--font-size-s);
    }
}