:root {
    --bg-dark: #0b0f17;
    --card-bg: #131b2e;
    --card-border: #1e293b;
    --accent: #00f2fe;
    --accent-hover: #38ef7d;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar for Windows Desktop */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 90px; /* Offset for mobile bottom nav */
}

#app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    background: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.logo i {
    color: var(--accent);
    font-style: normal;
}

.cartb {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cartb:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    padding: 0.75rem;
    z-index: 90;
}

.nav > div {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.nav button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.nav button.on, .nav button:hover {
    color: var(--bg-dark);
    background: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Grids & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: left;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.cat:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.cat .g {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cat span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Product Cards */
.prod {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.prod-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.prod .r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.m {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(0.99);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.btn.ghost:hover {
    border-color: var(--accent);
}

.btn.w {
    width: auto;
    padding: 0.75rem 2rem;
}

.btn.full {
    width: 100%;
}

/* Tabs & Chips */
.tabs, .chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 1rem 0;
}

.tab, .chip {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.tab.on, .chip.on {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    font-weight: 600;
}

/* Cart & Checkout Lines */
.line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty button {
    background: var(--card-border);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.tot {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Inputs & Payment Selector */
label {
    display: block;
    margin: 1rem 0 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

.pay {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.pay.sel {
    border-color: var(--accent);
    background: rgba(0, 242, 254, 0.05);
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
}

.pay.sel .dot {
    border-color: var(--accent);
    background: var(--accent);
}

.note {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
    z-index: 200;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.back {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}

.done {
    text-align: center;
    padding: 3rem 1rem;
}

.done .big {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Desktop Grid Adjustments */
@media (min-width: 650px) {
    .hero {
        padding: 4rem 2rem;
    }
    .hero h2 {
        font-size: 2.4rem;
    }
    .shop-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}