:root {
    --primary: #FF6B00; /* Vibrant Orange */
    --primary-dark: #cc5500;
    --background: #121212;
    --surface: #1e1e1e;
    --text: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #2ecc71; /* Green for success */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--background);
    color: var(--text);
    height: 100vh;
    overflow-x: hidden;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 30px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Main Layout */
#app-container {
    padding: 20px;
    padding-bottom: 80px;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menu View */
.hero-banner {
    margin-bottom: 30px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), #ff9e42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.product-card {
    background: var(--surface);
    border-radius: 15px;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:active {
    transform: scale(0.98);
}

.product-emoji {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: bold;
    color: var(--primary);
}

.add-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.add-btn:hover {
    background: var(--primary);
}

/* Checkout View */
.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-items-list {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cart-item-info h4 {
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
}

.cart-summary {
    background: var(--surface);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: transform 0.2s;
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Success View */
.success-content {
    text-align: center;
    padding-top: 50px;
}

.check-animation {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.4);
}

.success-content h2 {
    margin-bottom: 10px;
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}
