/* 
    Smash Burger - Delivery Web App
    Dark Mode UI/UX Premium Design
*/

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1c1c1c;
    --primary: #f5b000;
    /* Yellow Neon */
    --primary-hover: #ffc42e;
    --text-main: #f0f0f0;
    --text-muted: #8c8c8c;
    --danger: #ff4747;
    --success: #1ee64d;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-primary:active {
    transform: scale(0.96);
    background-color: var(--primary-hover);
}

.hl {
    color: var(--primary);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top: 0;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.status-badge {
    background: rgba(30, 230, 77, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Hero Section */
.hero {
    margin: 20px;
    background: linear-gradient(135deg, #1f1c00 0%, #000000 100%);
    border: 1px solid rgba(245, 176, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.tag {
    background-color: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.hero h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.hero .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Categories */
.categories {
    display: flex;
    overflow-x: auto;
    padding: 0 20px;
    gap: 12px;
    margin-bottom: 30px;
    scrollbar-width: none;
    /* Firefox */
}

.categories::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.cat-btn {
    background-color: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    white-space: nowrap;
}

.cat-btn.active {
    background-color: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Menu Grid */
.menu-container {
    padding: 0 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.card-info {
    flex: 1;
}

.card-info h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info .price {
    font-weight: 600;
    color: var(--primary);
}

.btn-add {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.btn-add:active {
    background-color: var(--primary);
    color: #000;
}

/* Bottom Cart Bar */
.bottom-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--primary);
    color: #000;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(245, 176, 0, 0.3);
    cursor: pointer;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.bottom-cart-bar.visible {
    transform: translateY(0);
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: #000;
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

/* Cart Modal Overlay */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-modal-overlay.open .cart-modal-content {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header h3 {
    font-size: 1.5rem;
}

.btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info .item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-control {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
}

.cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.address-input,
.payment-method {
    margin-bottom: 16px;
}

.address-input label,
.payment-method label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.address-input input,
.payment-method select {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    outline: none;
}

.address-input input:focus {
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}