.category-title,
.welcome-msg p {
    font-family: 'Playfair Display', serif
}

.btn-outline,
.info-badge,
.item-name {
    text-transform: uppercase
}

*,
.cart-item-actions button {
    -webkit-tap-highlight-color: transparent
}

#main-footer,
.hero {
    background-color: #1a1a1a
}

:root {
    --bg-color: #FDFBF7;
    --text-color: #1A2C42;
    --accent-color: #8B4513;
    --highlight-color: #d4af37;
    --success-color: #25D366;
    --card-bg: #ffffff;
    --nav-bg: rgba(253, 251, 247, 0.98);
    --overlay-dark: rgba(0, 0, 0, 0.1)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Playfair, sans-serif;
    padding-bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a2c42' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh
}

#menu-container,
.menu-section,
main {
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2
}

.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden
}

.hero-video,
.hero::after {
    position: absolute;
    height: 100%;
    left: 0;
    width: 100%;
    top: 0
}

.hero-video {
    object-fit: cover;
    background-image: url('../img/capa_uxtzzj_c_scale\,w_419.webp');
    background-size: cover;
    background-position: center;
    z-index: 1
}

.hero::after {
    content: '';
    background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .3) 100%);
    z-index: 2
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.hero-logo {
    width: 280px;
    max-width: 80%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
    transition: transform .5s
}

#page-loader,
.menu-item {
    height: 100%;
    display: flex
}

.welcome-msg p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .9);
    font-style: italic;
    font-weight: 300
}

.info-badge {
    position: absolute;
    bottom: 30px;
    z-index: 3;
    background-color: rgba(26, 26, 26, .85);
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .5)
}

.nav-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 20px -10px rgba(0, 0, 0, .1);
    padding: 10px 0
}

.nav-sticky-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(253, 251, 247, 0) 0, var(--nav-bg) 90%);
    pointer-events: none;
    z-index: 101
}

.nav-container {
    display: flex;
    overflow-x: auto;
    padding: 5px 15px;
    gap: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
}

.nav-container::-webkit-scrollbar {
    display: none
}

.cat-btn {
    white-space: nowrap;
    background: 0 0;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: .95rem;
    cursor: pointer;
    transition: .3s cubic-bezier(.25, .8, .25, 1)
}

.cat-btn.active {
    background: var(--text-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 44, 66, .3)
}

.menu-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 15px
}

.category-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px
}

.category-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1/-1
}

.item-price,
.menu-item {
    font-family: Lato, serif
}

.item-name,
.item-price {
    font-weight: 800;
    color: var(--text-color)
}

.category-title::after,
.category-title::before {
    content: "";
    height: 2px;
    background: var(--accent-color);
    flex-grow: 1;
    margin: 0 20px;
    opacity: .2;
    border-radius: 2px
}

.menu-item {
    background: var(--card-bg);
    padding: 22px;
    margin-bottom: 18px;
    min-height: 120px;
    border-radius: 12px;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, .07);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .03);
    flex-direction: column;
    justify-content: center
}

.menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent-color);
    opacity: .7;
    border-radius: 12px 0 0 12px
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px
}

.item-name {
    font-size: 1.1rem;
    letter-spacing: .5px;
    width: 70%;
    line-height: 1.2
}

.item-price {
    font-size: 1.2rem;
    text-align: right;
    white-space: nowrap
}

.item-desc {
    font-size: .95rem;
    color: #555;
    line-height: 1.5;
    font-style: italic;
    font-family: 'Playfair Display', serif
}

.item-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9
}

.cart-footer,
.cart-modal-container {
    display: none;
    position: fixed;
    left: 0
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: .8rem;
    cursor: pointer;
    transition: .3s
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1)
}

.btn-outline,
.cat-btn,
.checkout-btn,
.secondary-btn,
.toggle-btn,
button {
    font-family: Lato, sans-serif;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity .5s, visibility .5s
}

.loader-hidden {
    opacity: 0;
    visibility: hidden
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b6b;
    border-radius: 50%;
    animation: 1s linear infinite spin;
    margin-bottom: 15px
}

.cart-item,
.cart-items {
    border-bottom: 1px solid #eee
}

.cart-footer,
.cart-modal {
    animation: .3s ease-out slideUp;
    width: 100%
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.cart-footer {
    bottom: 0;
    background-color: var(--text-color);
    color: #fff;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .2)
}

.cart-footer button {
    background-color: var(--success-color);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: #000;
    font-weight: 700;
    cursor: pointer
}

.cart-modal-container {
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end
}

.cart-modal {
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 30px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, .2)
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px
}

.cart-header button {
    background: 0 0;
    border: none;
    font-size: 1.5rem;
    cursor: pointer
}

.cart-items {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0
}

.cart-item-info {
    flex: 1;
    padding-right: 10px
}

.cart-item-info h3 {
    font-size: .9rem;
    margin-bottom: 5px
}

.checkout-form label {
    display: block;
    margin-top: 10px;
    font-size: .9rem;
    font-weight: 700
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px
}

.checkout-btn {
    width: 100%;
    background-color: var(--success-color);
    color: rgba(0, 0, 0, .9);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: pointer
}

.secondary-btn,
.toggle-btn {
    padding: 12px;
    cursor: pointer
}

.secondary-btn {
    width: 100%;
    background: 0 0;
    border: 2px solid #eee;
    color: #666;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px
}

.delivery-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px
}

.toggle-btn {
    flex: 1;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px
}

.toggle-btn.active {
    background-color: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    box-shadow: 0 4px 6px rgba(255, 107, 107, .2)
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1px
}

.cart-item-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .2s;
    user-select: none
}

.cart-item-actions button:active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: scale(.9)
}

.cart-item-actions span {
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
    text-align: center
}

.hidden {
    display: none !important
}

.input-error {
    border: 1px solid #f44 !important;
    background-color: #fff8f8 !important;
    animation: .3s ease-in-out shake
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-5px)
    }

    75% {
        transform: translateX(5px)
    }
}

.error-feedback {
    color: #d32f2f;
    font-size: .9rem;
    text-align: center;
    margin-top: 10px;
    display: none
}

.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    z-index: 1500;
    transition: transform .3s, opacity .3s
}

.whatsapp-fab:hover {
    transform: scale(1.1)
}

.cart-footer.show~.whatsapp-fab {
    bottom: 90px
}

#main-footer {
    color: #fff;
    padding: 50px 20px 30px;
    margin-top: 60px;
    text-align: center;
    border-top: 4px solid var(--accent-color)
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color .3s
}

.footer-social a:hover {
    color: var(--highlight-color)
}

.footer-social svg {
    stroke: var(--highlight-color)
}

.footer-divider {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, .2)
}

.footer-info p {
    margin: 5px 0;
    font-size: .95rem;
    color: #f5f5f5;
    line-height: 1.6
}

.footer-info .address-link {
    text-decoration: none;
    color: #f5f5f5;
    transition: color .2s
}

.footer-info .address-link:hover {
    color: #fff;
    text-decoration: underline
}

.footer-info .hours {
    font-size: .9rem;
    color: var(--highlight-color);
    margin-top: 10px;
    font-style: normal
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding-top: 20px;
    font-size: .8rem;
    color: d1d1d1
}

@media (max-width:768px) {
    .whatsapp-fab.fab-hidden {
        transform: scale(0);
        opacity: 0;
        pointer-events: none
    }
}

@media (hover:hover) and (pointer:fine) {
    .menu-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, .1);
        border-color: rgba(139, 69, 19, .3)
    }

    .menu-item:hover::before {
        width: 6px;
        opacity: 1
    }

    .cat-btn:hover {
        background-color: rgba(139, 69, 19, .08);
        border-color: var(--accent-color);
        transform: translateY(-2px);
        color: var(--accent-color)
    }

    .cat-btn.active:hover {
        background-color: var(--text-color);
        color: #fff;
        transform: none;
        border-color: var(--text-color)
    }

    .hero-logo:hover {
        transform: scale(1.02)
    }
}

@media (min-width:768px) {
    .footer-content {
        flex-direction: row;
        justify-content: center;
        gap: 60px
    }

    .footer-divider {
        width: 1px;
        height: 40px
    }

    .hero {
        height: 85vh
    }

    .hero-video {
        background-image: url('../img/capa_uxtzzj_c_scale\,w_896.webp')
    }

    .welcome-msg p {
        font-size: 1.4rem
    }

    .hero-logo {
        width: 350px
    }

    .cart-modal-container {
        align-items: center
    }

    .cart-modal {
        width: 450px;
        max-width: 90%;
        border-radius: 15px;
        padding-bottom: 20px;
        animation: .3s ease-out fadeIn
    }

    @keyframes fadeIn {
        from {
            transform: scale(.9);
            opacity: 0
        }

        to {
            transform: scale(1);
            opacity: 1
        }
    }

    .menu-container {
        max-width: 90%;
        padding: 30px 0
    }

    .category-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start
    }

    .nav-container {
        justify-content: flex-start
    }
}

@media (min-width:1200px) {
    .hero-video {
        background-image: url('../img/capa_uxtzzj_c_scale\,w_1205.webp')
    }

    html {
        font-size: 16px
    }

    .hero {
        height: 80vh
    }

    .hero-logo {
        width: 400px
    }

    .menu-container {
        max-width: 1200px;
        padding: 50px 40px
    }

    .category-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px
    }

    .category-title {
        font-size: 2.2rem;
        margin-bottom: 40px
    }
}

@media (min-width:1501px) {
    .nav-container {
        justify-content: center;
        padding-left: 0;
        padding-right: 0
    }

    .menu-container {
        max-width: 1400px
    }

    .hero-logo {
        width: 450px
    }
}

@media (min-width:2501px) {
    html {
        font-size: 24px
    }

    .menu-container {
        max-width: 2800px;
        width: 80%
    }

    .category-section {
        gap: 50px
    }

    .hero-logo {
        width: 600px
    }
}