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

html,
body {
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
}

body {
    overflow: hidden;
}

.site-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
}

.banner-frame {
    width: 100%;
    height: 40px;
    border: 0;
    z-index: 51;
    flex-shrink: 0;
}

.header-frame {
    width: 100%;
    height: 60px;
    border: 0;
    z-index: 50;
    flex-shrink: 0;
}

.page-scroll {
    height: calc(100vh - 100px);
    width: 100vw;
    overflow: auto;
    background: #000;
}

.hero-center {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.star-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 50%, #000 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
}

.hero-content h1 span {
    color: #facc15;
}

.hero-content p {
    margin-top: 12px;
    color: #d1d5db;
    font-size: 0.95rem;
}

.bounce-arrow {
    position: absolute;
    bottom: 48px;
    left: 50%;
    z-index: 2;
    color: #fff;
    pointer-events: none;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(-25%); }
    50% { transform: translateX(-50%) translateY(0); }
}

.store-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 112px;
}

.store-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.store-heading-row h2 {
    color: #facc15;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.store-heading-row p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.store-status,
.empty-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #9ca3af;
    background: rgba(17, 24, 39, 0.35);
    border: 1px solid #1f2937;
    border-radius: 12px;
    text-align: center;
}

.store-status[hidden] {
    display: none;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(250, 204, 21, 0.18);
    border-top-color: #facc15;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.store-card {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #fff;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #1f2937;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.store-card:not(:disabled):hover,
.store-card:not(:disabled):focus-visible {
    transform: translateY(-4px);
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(31, 41, 55, 0.55);
    box-shadow: 0 10px 28px rgba(250, 204, 21, 0.08);
    outline: none;
}

.store-card:disabled {
    opacity: 0.7;
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #050505;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.25s ease;
}

.store-card:not(:disabled):hover .card-image {
    transform: scale(1.04);
}

.store-card:disabled .card-image {
    filter: grayscale(1) blur(2px);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #facc15;
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.coming-soon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.coming-soon span {
    padding: 9px 14px;
    border-radius: 999px;
    background: #facc15;
    color: #000;
    font-size: 0.85rem;
    font-weight: 800;
}

.card-content {
    min-height: 122px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.store-card:not(:disabled):hover .card-title {
    color: #facc15;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-price {
    color: #4ade80;
    font-size: 1.05rem;
    font-weight: 700;
}

.store-card:disabled .card-price {
    color: #6b7280;
}

.card-details {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.store-card:not(:disabled):hover .card-details {
    color: #facc15;
}

.footer-frame {
    width: 100%;
    height: 60px;
    border: 0;
    background: transparent;
    display: block;
}

.store-modal[hidden] {
    display: none;
}

.store-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(7px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: 90vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: auto;
    border: 1px solid #1f2937;
    border-radius: 16px;
    background: #0b0b0b;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    color: #d1d5db;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: #fff;
    border-color: rgba(250, 204, 21, 0.45);
    outline: none;
}

.modal-gallery {
    padding: 24px;
    background: rgba(0, 0, 0, 0.32);
}

.modal-main-image-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: #050505;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail-button {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    padding: 0 !important;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #050505;
    cursor: pointer;
}

.thumbnail-button:hover,
.thumbnail-button.is-active,
.thumbnail-button:focus-visible {
    border-color: #facc15;
    outline: none;
}

.thumbnail-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.modal-details > .category-badge {
    margin-bottom: 14px;
}

.modal-details h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
}

.modal-price {
    margin-top: 8px;
    color: #4ade80;
    font-size: 1.7rem;
    font-weight: 700;
}

.modal-description {
    margin-top: 22px;
    color: #d1d5db;
    line-height: 1.65;
}

.option-section {
    margin-top: 24px;
}

.option-section h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.option-list,
.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-button {
    min-width: 48px;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #d1d5db;
    cursor: pointer;
}

.option-button:hover,
.option-button.is-active,
.option-button:focus-visible {
    border-color: #facc15;
    color: #facc15;
    outline: none;
}

.color-button {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.color-button:hover,
.color-button.is-active,
.color-button:focus-visible {
    border-color: #facc15;
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.18);
}

.modal-spacer {
    flex: 1;
    min-height: 32px;
}

.checkout-placeholder {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
}

.checkout-note {
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.8rem;
    text-align: center;
}

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

@media (max-width: 780px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.75rem;
    }

    .store-section {
        padding: 56px 18px 88px;
    }

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

    .modal-dialog {
        grid-template-columns: 1fr;
    }

    .modal-gallery,
    .modal-details {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .store-grid {
        grid-template-columns: 1fr;
    }

    .store-modal {
        padding: 10px;
    }

    .modal-dialog {
        max-height: 94vh;
        border-radius: 12px;
    }
}
