* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*,
*::after,
*::before {
    box-sizing: border-box;
}
body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
        "Segoe UI Emoji";
    background: radial-gradient(1200px 800px at 70% -10%, #1f2937 0%, #0b1222 35%, #0f172a 70%);
    color: #e5e7eb;
    
}
body, html {
    height: 100%;
}
header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 18px;
}

.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 30px #22c55e30;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 520px;
}

.search {
    flex: 1;
    position: relative;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}
.search input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    background: linear-gradient(180deg, #0b1222, #0a0f1b);
    color: #e5e7eb;
    outline: none;
    box-shadow: inset 0 1px 0 #ffffff08, 0 8px 30px #00000030;
}
.counter {
    font-size: 13px;
    color: #94a3b8;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #1f2937;
    background: linear-gradient(180deg, #0e1526, #0a0f1b);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.name {
    font-weight: 700;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
}
.thumb {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    background: #0b1222;
    display: block;
}
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.skeleton {
    animation: pulse 1.2s ease-in-out infinite;
    background: linear-gradient(90deg, #0c1324, #0f172a, #0c1324);
    background-size: 200% 100%;
}
@keyframes pulse {
    0% {
        background-position-x: 0%;
    }
    50% {
        background-position-x: 100%;
    }
    100% {
        background-position-x: 0%;
    }
}

.body {
    padding: 12px 14px 14px;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00000099;
    border: 1px solid #ffffff20;
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

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

.price {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.add-btn {
    appearance: none;
    cursor: pointer;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: 700;
}

.empty,
.error,
.loading {
    color: #cbd5e1;
    padding: 24px;
    text-align: center;
    border: 1px dashed #334155;
    border-radius: 16px;
    background: #0b1222;
}
