:root {
    --store-bg: #07120d;
    --store-panel: #0d2118;
    --store-panel-soft: #112a1f;
    --store-border: #294b38;
    --store-text: #f0f9f3;
    --store-muted: #a9c0b1;
    --store-accent: #57f28f;
    --store-accent-dark: #062012;
    --store-danger: #ffb2b2;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(87, 242, 143, 0.10),
            transparent 34rem
        ),
        var(--store-bg);
    color: var(--store-text);
    font: 15px/1.6 system-ui, -apple-system, sans-serif;
}

a {
    color: inherit;
}

.storefront-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 14px max(18px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid var(--store-border);
    background: rgba(7, 18, 13, 0.92);
    backdrop-filter: blur(18px);
}

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

.storefront-brand {
    text-decoration: none;
    font-weight: 900;
}

.storefront-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--store-accent);
    color: var(--store-accent-dark);
    font-weight: 1000;
}

.storefront-nav a {
    color: var(--store-muted);
    text-decoration: none;
    font-weight: 750;
}

.storefront-nav a:hover {
    color: var(--store-accent);
}

.storefront-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 90px;
}

.store-cover {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(87, 242, 143, 0.28),
            rgba(11, 40, 27, 0.92)
        );
    background-position: center;
    background-size: cover;
}

.store-cover::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(7, 18, 13, 0.96),
            rgba(7, 18, 13, 0.12)
        );
    content: "";
}

.store-identity {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 28px;
    left: 30px;
    display: flex;
    align-items: end;
    gap: 20px;
}

.store-logo,
.store-logo-placeholder {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    background: var(--store-panel);
}

.store-logo {
    object-fit: cover;
}

.store-logo-placeholder {
    display: grid;
    place-items: center;
    color: var(--store-accent);
    font-size: 42px;
    font-weight: 1000;
}

.store-heading {
    min-width: 0;
}

.store-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.store-heading p {
    margin: 10px 0 0;
    color: #d5e7db;
}

.store-info-grid,
.store-product-grid,
.public-store-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.store-info-card,
.store-panel,
.product-card,
.public-store-card,
.empty-store {
    border: 1px solid var(--store-border);
    border-radius: 20px;
    background: rgba(13, 33, 24, 0.90);
}

.store-info-card {
    padding: 18px;
}

.store-info-card span,
.product-label {
    display: block;
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-panel {
    margin-top: 22px;
    padding: 24px;
}

.store-panel h2 {
    margin-top: 0;
}

.store-description {
    color: #d4e5da;
    white-space: normal;
}

.product-card {
    padding: 19px;
}

.product-card h3 {
    margin: 8px 0;
}

.product-price {
    color: var(--store-accent);
    font-size: 1.35rem;
    font-weight: 950;
}

.product-meta {
    color: var(--store-muted);
}

.empty-store {
    margin-top: 22px;
    padding: 44px 24px;
    text-align: center;
}

.empty-store strong {
    display: block;
    font-size: 1.35rem;
}

.empty-store p {
    margin-bottom: 0;
    color: var(--store-muted);
}

.public-store-card {
    overflow: hidden;
}

.public-store-cover {
    display: grid;
    min-height: 150px;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(87, 242, 143, 0.24),
            rgba(11, 40, 27, 0.94)
        );
    background-position: center;
    background-size: cover;
}

.public-store-body {
    padding: 19px;
}

.public-store-body h2 {
    margin: 0 0 7px;
}

.public-store-body p {
    color: var(--store-muted);
}

.store-button {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 11px;
    background: var(--store-accent);
    color: var(--store-accent-dark);
    text-decoration: none;
    font-weight: 900;
}

.store-eyebrow {
    margin: 0;
    color: var(--store-accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.store-page-title {
    margin: 5px 0 8px;
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.store-page-intro {
    max-width: 700px;
    color: var(--store-muted);
}

.store-unavailable {
    width: min(760px, calc(100% - 32px));
    margin: 100px auto;
    padding: 36px;
    border: 1px solid var(--store-border);
    border-radius: 24px;
    background: var(--store-panel);
    text-align: center;
}

.store-unavailable h1 {
    margin-top: 0;
}

.storefront-footer {
    padding: 30px 18px;
    border-top: 1px solid var(--store-border);
    color: var(--store-muted);
    text-align: center;
}

@media (max-width: 820px) {
    .store-info-grid,
    .store-product-grid,
    .public-store-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .storefront-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-cover {
        min-height: 390px;
    }

    .store-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-logo,
    .store-logo-placeholder {
        width: 92px;
        height: 92px;
    }

    .store-info-grid,
    .store-product-grid,
    .public-store-grid {
        grid-template-columns: 1fr;
    }
}
