:root {
    --color-bg: #2C2E35;
    --color-text: #F5F6F6;
    --color-primary: #DD892B;
    --color-secondary: #BE3F1D;
    --color-accent: #4F421C;
    --color-white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --font-alt: 'Montserrat Alternates', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-alt);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.logo {
    max-width: 250px;
    margin: 40px auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 137, 43, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Menu Page Styles */
.menu-header {
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
    z-index: 100;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.menu-nav {
    display: flex;
    justify-content: flex-start;
    /* Changed from center to allow scrolling from start */
    gap: 15px;
    overflow-x: auto;
    padding: 10px 40px;
    /* Added padding for arrows */
    white-space: nowrap;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
    width: 100%;
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg);
    border: 1px solid var(--color-accent);
    color: var(--color-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden by default, shown via JS */
    pointer-events: none;
}

.scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.scroll-arrow.left {
    left: 0;
}

.scroll-arrow.right {
    right: 0;
}

.menu-nav a {
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.menu-nav a:hover,
.menu-nav a.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.menu-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-section h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.menu-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    padding-right: 15px;
}

.item-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Table Styles */
.espetos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
}

.espetos-table th,
.espetos-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.espetos-table th {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.espetos-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.espetos-table td:not(:first-child) {
    text-align: right;
    color: var(--color-primary);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--color-accent);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    z-index: 99;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-nav {
        justify-content: flex-start;
    }

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

    .logo {
        max-width: 180px;
    }

    .menu-section h2 {
        font-size: 1.5rem;
    }
}