:root {
    --background: #101114;
    --surface: #191a20;
    --surface-hover: #22232b;
    --text: #f5f5f7;
    --muted: #9698a5;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --border: #292a33;
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button {
    font: inherit;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

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

.brand-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #5b21b6);
    font-size: 24px;
    font-weight: 800;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
}

.brand h1 {
    font-size: 18px;
    line-height: 1.3;
}

.brand p {
    color: var(--muted);
    font-size: 12px;
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 17px;
}

#cart-count {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 28px 22px;
    border: 1px solid #44306d;
    border-radius: 24px;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.70)),
        url("medias/Banner.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 6vw, 34px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero > p:last-child {
    max-width: 300px;
    color: #c0bdcc;
    font-size: 14px;
}

.catalogue {
    padding-top: 32px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 21px;
}

.section-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.categories {
    display: flex;
    gap: 9px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    flex-shrink: 0;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.category:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.category.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #51416f;
}

.product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 0.85;
    background:
        radial-gradient(
            circle at 50% 40%,
            #383044,
            #222029 70%
        );
    font-size: 58px;
}

.product-info {
    padding: 13px;
}

.product-category {
    margin-bottom: 5px;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    overflow-wrap: anywhere;
    margin-bottom: 6px;
    font-size: 15px;
}

.product-description {
    min-height: 36px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
}

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

.product-price {
    font-size: 16px;
    font-weight: 800;
}

.add-button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-size: 23px;
    transition: background 0.2s;
}

.add-button:hover {
    background: #7545dc;
}

.empty-message {
    grid-column: 1 / -1;
    padding: 30px 10px;
    color: var(--muted);
    text-align: center;
}

footer {
    padding: 28px 20px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 360px) {
    .header {
        padding: 15px;
    }

    main {
        padding: 15px;
    }

    .products {
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .product-image {
        font-size: 45px;
    }
}
