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

html,
body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(to bottom, #2d2d35, #000);
    color: #f5f5f7;
}

.shop-nav {
    min-height: 60px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to bottom, #86efac, #22c55e);
}

.brand img {
    height: 44px;
}

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

.shop-actions a,
.shop-actions button,
.category-button,
.view-button {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255,255,255,0.14);
    text-decoration: none;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover,
a:hover,
.product-card:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.04);
}

button:active,
a:active,
.product-card:active {
    transform: scale(0.96);
}

.shop-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 14px 34px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 14px;
    align-items: start;
}

.category-list {
    position: sticky;
    top: 12px;
    height: fit-content;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.category-button {
    text-align: left;
    color: #d4d4d8;
    background: rgba(255,255,255,0.06);
}

.category-button.active {
    color: #fff;
    background: rgba(34,197,94,0.2);
}

.shop-head {
    margin-bottom: 14px;
}

.shop-head h1 {
    font-size: 26px;
}

.shop-head p {
    color: #a1a1aa;
    font-size: 13px;
}

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

.product-grid.show-all-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: rgba(34,197,94,0.26);
    box-shadow: 0 18px 44px rgba(0,0,0,0.38);
}

.product-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(255,255,255,0.04)), #202128;
    background-size: cover;
    background-position: center;
}

.product-image.logo-fallback {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #050505;
}

.product-body {
    padding: 13px;
}

.product-card.is-text-only {
    border-left: 3px solid rgba(34,197,94,0.72);
}

.product-card.is-text-only .product-body {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(34,197,94,0.12);
    color: #86efac;
    font-size: 12px;
    font-weight: 900;
}

.product-body h2 {
    margin-bottom: 5px;
    font-size: 17px;
}

.product-body p {
    margin-bottom: 12px;
    color: #a1a1aa;
    font-size: 13px;
}

.price-row {
    display: flex;
    gap: 10px;
    color: #86efac;
    font-weight: 900;
    margin-bottom: 12px;
}

.view-button {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 50px 16px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
    text-align: center;
    color: #a1a1aa;
}

@media (max-width: 760px) {
    .shop-shell {
        grid-template-columns: 1fr;
    }

    .category-list {
        position: sticky;
        top: 8px;
        z-index: 10;
        flex-direction: row;
        overflow-x: auto;
        box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    }

    .category-button {
        white-space: nowrap;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}
