.store-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 74%, rgba(91, 34, 150, 0.42), transparent 20rem),
        radial-gradient(circle at 84% 18%, rgba(255, 146, 120, 0.12), transparent 26rem),
        radial-gradient(circle at 50% 100%, rgba(42, 17, 82, 0.82), transparent 34rem),
        linear-gradient(180deg, #080510 0%, #0e0719 58%, #190c31 100%);
}

.store-shell {
    position: relative;
    width: min(1450px, calc(100% - clamp(36px, 7vw, 132px)));
    margin: -10px auto 0;
    padding: clamp(72px, 7vw, 112px) 0 180px;
}

.store-shell::before {
    content: "";
    position: absolute;
    left: -12vw;
    right: -12vw;
    top: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 146, 120, 0.08), transparent 32%),
        radial-gradient(ellipse at 78% 44%, rgba(195, 66, 255, 0.17), transparent 38%);
}

.store-hero {
    display: grid;
    justify-items: center;
    text-align: center;
}

.store-hero__eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-family: var(--font-pixel);
    font-size: clamp(0.68rem, 0.8vw, 0.9rem);
    line-height: 1.5;
    text-shadow: 0 0 16px rgba(255, 146, 120, 0.38);
}

.store-hero h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: clamp(3.2rem, 5.4vw, 6.1rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 255, 255, 0.08);
}

.store-hero p:not(.store-hero__eyebrow) {
    max-width: 770px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.08rem, 1.25vw, 1.34rem);
    font-weight: 700;
    line-height: 1.42;
}

.store-tabs {
    width: fit-content;
    margin: 36px auto 0;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 146, 120, 0.12);
    border-radius: 12px;
    background: rgba(10, 6, 18, 0.56);
    box-shadow: inset 0 0 26px rgba(195, 66, 255, 0.08), 0 18px 48px rgba(0, 0, 0, 0.22);
}

.store-tab {
    min-width: 126px;
    min-height: 48px;
    padding: 0 18px;
    border: 2px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: rgba(255, 255, 255, 0.38);
    font-size: clamp(1.15rem, 1.55vw, 1.85rem);
    font-weight: 800;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.38);
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.store-tab:hover {
    color: rgba(255, 255, 255, 0.78);
}

.store-tab.is-active {
    border-color: #a96a61;
    background:
        linear-gradient(180deg, #8f514f 0%, #6e3943 54%, #4a2534 100%);
    color: var(--accent);
    box-shadow:
        inset 3px 3px 0 rgba(255, 194, 172, 0.16),
        inset -3px -3px 0 rgba(20, 8, 18, 0.52),
        0 5px 0 #241020,
        0 0 22px rgba(255, 146, 120, 0.14);
    transform: translateY(-2px);
}

.store-note {
    width: min(1080px, 100%);
    min-height: 86px;
    margin: 28px auto 54px;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid rgba(255, 146, 120, 0.12);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0, rgba(255, 146, 120, 0.12), transparent 16rem),
        rgba(20, 12, 37, 0.92);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.2vw, 1.26rem);
    font-weight: 700;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.store-note strong {
    color: #fff;
}

.store-note a {
    color: var(--accent);
    font-weight: 900;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 3vw, 58px);
}

.product-card {
    position: relative;
    min-height: 438px;
    padding: 34px clamp(26px, 2.2vw, 42px) 30px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(24, 13, 46, 0.96), rgba(16, 9, 31, 0.98)),
        #120b21;
    box-shadow: inset 0 0 0 1px rgba(255, 146, 120, 0.04), 0 24px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 19%, rgba(255, 146, 120, 0.16), transparent 11rem),
        radial-gradient(circle at 88% 80%, rgba(195, 66, 255, 0.14), transparent 13rem);
    transition: opacity 180ms ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 146, 120, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 146, 120, 0.08), 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 32px rgba(195, 66, 255, 0.08);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card[hidden] {
    display: none;
}

.product-card__badge {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 146, 120, 0.22);
    border-radius: 6px;
    color: var(--accent);
    font-family: var(--font-pixel);
    font-size: 0.58rem;
    line-height: 1.4;
    background: rgba(255, 146, 120, 0.08);
}

.product-card__icon {
    position: relative;
    z-index: 1;
    width: 142px;
    height: 118px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.product-card__icon span,
.product-card__icon::before,
.product-card__icon::after {
    content: "";
    position: absolute;
    display: block;
}

.product-card__icon--crown span {
    width: 116px;
    height: 66px;
    bottom: 10px;
    background: #ffbd6e;
    box-shadow: inset 0 -18px 0 #d17444, 0 0 28px rgba(255, 189, 110, 0.34);
    clip-path: polygon(0 100%, 0 30%, 18% 46%, 30% 0, 50% 48%, 70% 0, 82% 46%, 100% 30%, 100% 100%);
}

.product-card__icon--crown::before {
    width: 72px;
    height: 14px;
    bottom: 2px;
    background: #ffd08b;
}

.product-card__icon--key span {
    width: 104px;
    height: 22px;
    background: #9cff77;
    box-shadow: 0 0 26px rgba(156, 255, 119, 0.28);
}

.product-card__icon--key::before {
    left: 12px;
    width: 52px;
    height: 52px;
    border: 13px solid #9cff77;
    border-radius: 50%;
}

.product-card__icon--key::after {
    right: 18px;
    width: 18px;
    height: 42px;
    background: #9cff77;
    box-shadow: 24px 16px 0 #9cff77;
}

.product-card__icon--case span {
    width: 110px;
    height: 74px;
    bottom: 10px;
    background: #7c45d9;
    box-shadow: inset 0 -18px 0 #43258f, 0 0 28px rgba(124, 69, 217, 0.34);
}

.product-card__icon--case::before {
    width: 54px;
    height: 28px;
    top: 12px;
    border: 10px solid #b66cff;
    border-bottom: 0;
}

.product-card__icon--case::after {
    width: 18px;
    height: 28px;
    background: #ffbd6e;
}

.product-card__icon--gem span {
    width: 88px;
    height: 106px;
    background: linear-gradient(135deg, #a6f6ff 0%, #bf62ff 62%, #7b39d8 100%);
    clip-path: polygon(50% 0, 100% 26%, 74% 100%, 26% 100%, 0 26%);
    box-shadow: 0 0 34px rgba(191, 98, 255, 0.42);
}

.product-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: clamp(1rem, 1.18vw, 1.35rem);
    font-weight: 400;
    line-height: 1.42;
    text-align: center;
}

.product-card ul {
    position: relative;
    z-index: 1;
    min-height: 84px;
    margin: 22px 0 24px;
    padding: 20px 0 0;
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.22;
    list-style: none;
}

.product-card li {
    position: relative;
    padding-left: 18px;
}

.product-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: #9cff77;
    box-shadow: 0 0 12px rgba(156, 255, 119, 0.45);
}

.product-card__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.product-card__bottom p {
    margin: 0;
    color: #65d977;
    font-size: clamp(2rem, 2.2vw, 2.7rem);
    font-weight: 500;
    line-height: 1;
}

.product-card__bottom p span {
    font-size: 0.72em;
}

.product-card__actions {
    display: grid;
    gap: 10px;
}

.product-card__actions button,
.product-card__actions a {
    min-width: 122px;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid transparent;
    border-radius: 2px;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.product-card__actions button::before,
.product-card__actions a::before {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 5px;
    height: 3px;
    background: rgba(255, 255, 255, 0.26);
}

.product-card__actions button {
    border-color: #6bdc72;
    background:
        linear-gradient(180deg, #34c94c 0%, #20983a 52%, #146c2d 100%);
    box-shadow:
        inset 4px 4px 0 rgba(190, 255, 192, 0.18),
        inset -4px -4px 0 rgba(0, 44, 14, 0.46),
        0 6px 0 #0a3e1d,
        0 0 18px rgba(36, 167, 60, 0.18);
}

.product-card__actions a {
    border-color: #846cff;
    background:
        linear-gradient(180deg, #6249d9 0%, #432bb0 54%, #2c1b82 100%);
    box-shadow:
        inset 4px 4px 0 rgba(210, 197, 255, 0.16),
        inset -4px -4px 0 rgba(16, 8, 58, 0.5),
        0 6px 0 #17104e,
        0 0 18px rgba(73, 48, 188, 0.2);
}

.product-card__actions button:hover,
.product-card__actions a:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.product-card__actions button:active,
.product-card__actions a:active {
    transform: translateY(4px);
}

.product-card__actions button:active {
    box-shadow:
        inset 4px 4px 0 rgba(190, 255, 192, 0.12),
        inset -4px -4px 0 rgba(0, 44, 14, 0.56),
        0 2px 0 #0a3e1d,
        0 0 12px rgba(36, 167, 60, 0.14);
}

.product-card__actions a:active {
    box-shadow:
        inset 4px 4px 0 rgba(210, 197, 255, 0.12),
        inset -4px -4px 0 rgba(16, 8, 58, 0.58),
        0 2px 0 #17104e,
        0 0 12px rgba(73, 48, 188, 0.16);
}

.store-page .site-footer {
    margin-top: -110px;
}

@media (max-width: 1180px) {
    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html,
    body,
    .store-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    .store-shell {
        width: 100vw;
        margin-right: 0;
        margin-left: 0;
        padding-right: 14px;
        padding-left: 14px;
        padding-top: 42px;
        overflow: hidden;
    }

    .store-hero p:not(.store-hero__eyebrow) {
        justify-self: center;
        width: min(100%, 286px);
        max-width: 286px;
        min-width: 0;
        font-size: 0.88rem;
        overflow-wrap: break-word;
    }

    .store-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .store-tabs::-webkit-scrollbar {
        display: none;
    }

    .store-tab {
        flex: 0 0 auto;
        min-width: 112px;
        font-size: 1.08rem;
    }

    .store-note {
        align-items: flex-start;
        flex-direction: column;
        width: min(100%, 286px);
        margin-right: auto;
        margin-left: auto;
        border-radius: 18px;
    }

    .store-note > * {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
    }

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

    .product-card {
        min-height: 420px;
        border-radius: 24px;
    }

    .product-card__bottom {
        align-items: stretch;
        flex-direction: column;
    }

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

/* First-screen balance: keep products and prices visible sooner. */
@media (min-width: 1181px) {
    .store-shell {
        padding-top: clamp(38px, 4.2vw, 70px);
        padding-bottom: 160px;
    }

    .store-hero h1 {
        font-size: clamp(3rem, 4.7vw, 5.2rem);
    }

    .store-hero p:not(.store-hero__eyebrow) {
        margin-top: 18px;
        max-width: 720px;
    }

    .store-tabs {
        margin-top: 28px;
    }

    .store-note {
        min-height: 76px;
        margin: 22px auto 38px;
        padding: 16px 24px;
    }

    .product-card {
        min-height: 390px;
        padding-top: 28px;
        padding-bottom: 26px;
        border-radius: 28px;
    }

    .product-card__badge {
        margin-bottom: 10px;
    }

    .product-card__icon {
        width: 126px;
        height: 96px;
        margin-bottom: 12px;
        transform: scale(0.88);
    }

    .product-card ul {
        min-height: 74px;
        margin: 18px 0 20px;
        padding-top: 16px;
    }
}
