:root {
    --bg: #10a7a7;
    --card: #0b1220;
    --muted: #9aa6b2;
    --accent: #ffb86b;
    --accent-2: #ffd54a;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 12px;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    --max-width: 1100px;
    --gap: 18px;
    --text: #e6eef8;
    --success: #2dd4bf;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue';
    background: var(--card);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px
}

header {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    display: grid;
    place-items: center;
    color: #081220;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(255, 184, 90, 0.08)
}

h1 {
    font-size: 18px;
    margin: 0
}

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

.search {
    background: var(--glass);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02)
}

.search input {
    background: transparent;
    border: 0;
    color: var(--text);
    outline: none;
    width: 220px
}

.cart-btn {
    background: linear-gradient(135deg, #0f172a, #071028);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center
}

.badge {
    background: var(--accent-2);
    color: #081220;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700
}

main {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    gap: var(--gap)
}

.products {
    flex: 1;
    background: var(--bg);
    padding: 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    min-height: 520px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px
}

.card {
    background: linear-gradient(180deg, #fff, #fff);
    color: #081220;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.12);
    transition: transform .12s ease, box-shadow .12s ease
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.15)
}

.img {
    height: 140px;
    border-radius: 8px;
    background-size: cover;
    background-position: center
}

.title {
    font-weight: 700;
    font-size: 14px
}

.desc {
    font-size: 13px;
    color: var(--muted)
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.price {
    font-weight: 800
}

.add-btn {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    color: #081220;
    font-weight: 700;
    cursor: pointer
}

.cart {
    width: 320px;
    max-height: 520px;
    background: var(--bg);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    position: relative
}

.cart h3 {
    margin: 0 0 8px 0
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding-right: 6px;
    max-height: 360px
}

.cart-item {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 10px
}

.ci-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center
}

.ci-title {
    font-weight: 700;
    font-size: 13px
}

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

.qty button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer
}

.totals {
    margin-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.04);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.checkout {
    background: linear-gradient(90deg, var(--success), #10b981);
    border: 0;
    padding: 10px;
    border-radius: 10px;
    color: #052019;
    font-weight: 800;
    cursor: pointer
}

.empty {
    color: var(--muted);
    padding: 20px;
    text-align: center;
    border-radius: 10px
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #0b1220;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

/* 7) Responsive */
@media (max-width:1000px) {
    main {
        flex-direction: column
    }

    .cart {
        width: 100%
    }
}