:root {
    --nav-height: 70px;
    --top-bar-height: 50px;
    --primary-color: #ff4757;
    --background-color: #faf9f6;
    --text-color: #333;
    --slide-radius: 24px;
}

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

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu;
    background-color: var(--background-color);
    padding-top: var(--top-bar-height);
    min-height: 100vh;
}

/* Add top bar styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: #fff8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 390px;
    margin: 0 auto;
}

.top-bar img {
    height: 40px;
    width: 50%;
    object-fit: contain;
}

/* Signature Dish */
.signature-dish {
    width: 100%;
    padding: 10px;
    padding-bottom: 0px;
}

.signature-dish img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.menu-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 10px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 3D Model Viewer */
.model-container {
    width: 100%;
    height: 300px;
    padding: 10px;
    margin-bottom: 20px;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Featured Slider Styles */
.featured-slider {
    padding: 25px 15px 25px 15px;
    overflow-x: hidden;
}

.slider-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--slide-radius);
}

/* Category Slider Styles */
.category-slider {
    padding: 0 15px 25px 15px;
}

.category-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category {
    padding: 12px 24px;
    background: white;
    border-radius: 20px;
    white-space: nowrap;
    color: var(--text-color);
    font-weight: 500;
}

.category.active {
    background: #000;
    color: white;
}

/* Food List Styles */
.food-list {
    padding: 0 15px 15px 15px;
}

.food-item {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.food-item a {
    display: block;
    line-height: 0;
}

.food-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

.food-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.food-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.food-ingredients {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.food-price {
    font-weight: 600;
    font-size: 16px;
}

.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.ar-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    padding: 0 10px;
}

.ar-button {
    background: #f0f0f0;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ar-button:hover {
    background: #e5e5e5;
}

.ar-button svg {
    width: 20px;
    height: 20px;
}

.ar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
}

model-viewer {
    width: 100%;
    height: 100%;
}

#content {
    padding-top: 10px;
    max-width: 390px;
    margin: 0 auto;
    background-color: #fff8e8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Desktop styles for iPhone-like container */
@media screen and (min-width: 391px) {
    body {
        background-color: #f5f5f5;
    }

    #content,
    .top-bar {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        background-color: #fff8e8;
    }
}

/* Mobile styles */
@media screen and (max-width: 390px) {

    #content,
    .top-bar {
        max-width: 100%;
    }
}