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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

.header {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
}

.categories {
    display: flex;
    overflow-x: auto;
    background: white;
    border-bottom: 1px solid #eee;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.category-btn.active {
    border-bottom-color: #4a5568;
    color: #4a5568;
    font-weight: bold;
}

.menu-section {
    padding: 20px;
    display: none;
}

.menu-section.active {
    display: block;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.section-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-info {
    flex: 1;
    margin-right: 15px;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.item-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.item-pieces {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.item-special {
    background: #ff6b35;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 3px;
    display: inline-block;
}

.item-price {
    font-weight: bold;
    color: #4a5568;
    margin-right: 10px;
    font-size: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    font-size: 14px;
}

.cart-summary {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: white;
    border-top: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cart-items {
    margin-bottom: 15px;
    max-height: 120px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    background: #4a5568;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #2d3748;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.order-form {
    display: none;
    padding: 20px;
    background: white;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary {
    background: #4a5568;
    color: white;
}

.btn-primary:hover {
    background: #2d3748;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.hidden {
    display: none;
}

.success-message {
    background: #48bb78;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-content {
    padding-bottom: 120px;
}

.no-items {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

.admin-link {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-decoration: none;
}

.admin-link:hover {
    color: white;
}