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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 672px;
    margin: 0 auto;
}

/* Restaurant Header */
.restaurant-header {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
}

.header-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-logo {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.header-content {
    padding: 24px;
}

.restaurant-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #111827;
}

.restaurant-info {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.restaurant-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.category-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.pill.active {
    background-color: #8B4247;
    color: white;
}

.pill:not(.active) {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.pill:hover {
    transform: scale(1.05);
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #8B4247;
    box-shadow: 0 0 0 3px rgba(139, 66, 71, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Item Detail */
.item-detail-container {
    padding: 16px;
}

.item-modal {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.item-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

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

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
    text-decoration: none;
    color: #111827;
}

.close-button:hover {
    background: #f3f4f6;
    transform: scale(1.1) rotate(90deg);
}

.item-content {
    padding: 24px;
}

.item-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #111827;
}

.item-description {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 14px;
}

.item-full-description {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 14px;
}

.item-full-description p {
    margin-bottom: 12px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    background-color: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 9999px;
}

.tag-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.item-price-section {
    margin-bottom: 24px;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.addon-item:first-child {
    border-top: none;
}

.addon-item:hover {
    background-color: #f9fafb;
}

.addon-item.main-price {
    font-weight: 600;
    padding: 16px 0;
    border-top: 2px solid #e5e7eb;
}

.addon-name {
    color: #374151;
    font-size: 16px;
}

.addon-price {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.addon-price .currency {
    font-size: 14px;
    margin-right: 4px;
}

.item-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-label {
    font-size: 14px;
    color: #6b7280;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Search Results */
.search-results {
    display: none;
    padding: 16px;
    background: white;
    border-radius: 24px;
    margin: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

.search-result-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.search-result-item p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.search-result-item .price {
    font-size: 16px;
    font-weight: 600;
    color: #8B4247;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 640px) {
    .restaurant-info {
        flex-direction: column;
        gap: 8px;
    }

    .item-name {
        font-size: 24px;
    }

    .item-image-container {
        height: 240px;
    }

    .addon-price {
        font-size: 18px;
    }
}

