.sr-store-detail-modal,
.sr-store-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    place-items: center;
    padding: 24px;
}

.sr-store-detail-modal.is-open,
.sr-store-auth-modal.is-open {
    display: grid;
}

.sr-store-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .82);
    backdrop-filter: blur(12px);
}

.sr-store-detail-dialog,
.sr-store-auth-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(74, 222, 128, .30);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, .98),
            rgba(2, 6, 23, .98)
        );
    box-shadow:
        0 40px 140px rgba(0, 0, 0, .68);
}

.sr-store-auth-dialog {
    width: min(560px, 100%);
    padding: 34px;
}

.sr-store-auth-dialog h2 {
    margin-top: 18px;
}

.sr-store-modal-close {
    position: sticky;
    float: right;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 44px;
    height: 44px;
    margin: 14px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 14px;
    background: rgba(2, 6, 23, .76);
    color: #f8fafc;
    font-size: 28px;
    cursor: pointer;
}

.sr-store-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(360px, .9fr)
        minmax(0, 1.1fr);
    gap: 30px;
    padding: 0 34px 34px;
}

.sr-store-detail-media {
    min-width: 0;
}

.sr-store-gallery-main {
    height: 430px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 22px;
    background: #020617;
}

.sr-store-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sr-store-gallery-thumbs {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.sr-store-gallery-item {
    overflow: hidden;
    height: 70px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    background: #020617;
    cursor: pointer;
}

.sr-store-gallery-item.is-active {
    border-color: #4ade80;
}

.sr-store-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sr-store-detail-content {
    min-width: 0;
}

.sr-store-detail-content h2 {
    margin: 16px 0;
    font-size: clamp(34px, 4vw, 52px);
}

.sr-store-detail-summary {
    white-space: pre-line;
}

.sr-store-detail-section {
    margin-top: 26px;
}

.sr-store-detail-section h3 {
    margin-bottom: 12px;
    color: #f8fafc;
}

.sr-store-feature-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-store-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 13px;
    background: rgba(2, 6, 23, .34);
    color: #cbd5e1;
}

.sr-store-feature-list span {
    color: #4ade80;
    font-weight: 1000;
}

.sr-store-info-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.sr-store-info-grid article {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(2, 6, 23, .38);
}

.sr-store-info-grid span {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
}

.sr-store-info-grid strong {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

.sr-store-video {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000;
}

.sr-store-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.sr-store-detail-purchase {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    padding: 18px;
    border: 1px solid rgba(74, 222, 128, .24);
    border-radius: 18px;
    background: rgba(2, 6, 23, .92);
    backdrop-filter: blur(10px);
}

.sr-store-detail-purchase span {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}

.sr-store-detail-purchase strong {
    color: #f8fafc;
    font-size: 22px;
}

.sr-store-auth-actions {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

body.sr-store-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .sr-store-hero,
    .sr-store-detail-layout {
        grid-template-columns: 1fr;
    }

    .sr-store-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .sr-store-hero {
        padding: 26px;
    }

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

    .sr-store-detail-modal,
    .sr-store-auth-modal {
        padding: 10px;
    }

    .sr-store-detail-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 20px;
    }

    .sr-store-detail-layout {
        padding: 0 18px 22px;
    }

    .sr-store-gallery-main {
        height: 280px;
    }

    .sr-store-info-grid,
    .sr-store-auth-actions {
        grid-template-columns: 1fr;
    }

    .sr-store-detail-purchase {
        align-items: stretch;
        flex-direction: column;
    }

    .sr-store-detail-purchase a,
    .sr-store-detail-purchase button {
        width: 100%;
    }
}
