:root {
    --bg: #080b12;
    --bg2: #111827;
    --card: #151922;
    --card2: #1f2937;
    --text: #fff8ed;
    --muted: #a8a29e;
    --accent: #c58b45;
    --accent2: #f3c27b;
    --border: rgba(255,255,255,0.08);
    --danger: #ef4444;
    --success: #22c55e;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(197,139,69,0.18), transparent 32%),
        linear-gradient(180deg, #0b0f19 0%, #05070d 100%);
    color: var(--text);
    padding-bottom: 150px;
}

.header {
    padding: 24px 16px 10px;
    text-align: center;
}

.logo-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.logo {
    max-width: 185px;
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
}

.header h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.header p {
    margin: 8px auto 0;
    max-width: 320px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
}

.category {
    padding: 6px 14px;
}

.category-title {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 18px 0 12px;
    padding: 10px 2px;
    background: linear-gradient(180deg, rgba(8,11,18,0.96), rgba(8,11,18,0.75));
    color: var(--accent2);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        linear-gradient(160deg, var(--card), var(--card2));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 15px;
    min-height: 126px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.20);
    cursor: pointer;
    transition: transform .08s ease, border-color .08s ease;
}

.product-card:active {
    transform: scale(0.97);
    border-color: rgba(243,194,123,0.45);
}

.product-card::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 12px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(243,194,123,0.15);
    color: var(--accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.product-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.product-name {
    min-height: 40px;
    padding-right: 26px;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 800;
}

.product-price {
    margin-top: 10px;
    color: var(--accent2);
    font-size: 15px;
    font-weight: 800;
}

.cart-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    background: rgba(2,6,23,0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

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

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}

.cart-item:last-child {
    border-bottom: 0;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-controls button {
    width: 31px;
    height: 31px;
    background: #1f2937;
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 900;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 17px;
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 15px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #111827;
    box-shadow: 0 10px 24px rgba(197,139,69,0.22);
}

.btn-disabled {
    background: #334155;
    color: #94a3b8;
}

.btn-back {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 12px;
}

.form-wrap {
    padding: 14px;
}

.form-card,
.success-box {
    background:
        linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}

.form-card h3 {
    margin-top: 0;
    font-size: 20px;
}

label {
    display: block;
    margin: 15px 0 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input, select, textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(2,6,23,0.78);
    color: white;
    border-radius: 15px;
    padding: 14px;
    font-size: 16px;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(243,194,123,0.65);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.success-box {
    margin: 22px 14px;
    text-align: center;
}

.success-box h1 {
    margin-top: 8px;
    font-size: 25px;
}

.success-box h2 {
    font-size: 31px;
    color: var(--accent2);
    margin: 8px 0 14px;
}

.status-pill {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    background: #334155;
    color: white;
}

.order-card {
    border: 1px solid rgba(255,255,255,0.08);
}

.status-new { border-left: 5px solid #f59e0b; }
.status-accepted { border-left: 5px solid #38bdf8; }
.status-preparing { border-left: 5px solid #a78bfa; }
.status-ready { border-left: 5px solid #22c55e; }
.status-completed { opacity: 0.65; }
.status-cancelled { opacity: 0.45; }

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.mini-btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 900;
    color: white;
    cursor: pointer;
}

.accept { background: #22c55e; }
.prepare { background: #8b5cf6; }
.ready { background: #0ea5e9; }
.done { background: #16a34a; }
.cancel { background: #ef4444; }

@media (min-width: 720px) {
    body {
        max-width: 620px;
        margin: 0 auto;
    }

    .cart-bar {
        left: 50%;
        right: auto;
        width: 590px;
        transform: translateX(-50%);
    }
}


.cancelled-box {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(239,68,68,0.3);
}

.cancelled-header {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    font-weight: 900;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.cancelled-body {
    background: #2a0d0d;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
}

.cancelled-box {
    margin: 20px auto;
    max-width: 360px;
}

.product-card.kafe {
    background: linear-gradient(160deg, #2a1b0f, #1b1209);
}

.product-card.cajevi {
    background: linear-gradient(160deg, #1c2a1f, #0e1a10);
}

.product-card.sokovi {
    background: linear-gradient(160deg, #102235, #0b1622);
}

.product-card.slatkisi {
    background: linear-gradient(160deg, #2a1020, #1a0a14);
}