/* ============================================================
   STARRYMC STORE HOMEPAGE
   Stars + Lunaris Orbit
   ============================================================ */
.generic-check { display: none; }

/* ------------------------------------------------------------
   MAIN HOMEPAGE LAYOUT
   ------------------------------------------------------------ */

.page-index.starry-store-home .starry-store-content {
    display: block;
}

.page-index.starry-store-home .starry-store-main {
    width: 100%;
    max-width: 100%;
}

.page-index.starry-store-home .starry-store-section {
    width: 100%;
    margin-bottom: 48px;
}


/* ------------------------------------------------------------
   SECTION HEADERS
   ------------------------------------------------------------ */

.starry-section-heading {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 28px;
    padding: 22px 24px;

    background: var(--color-brighter-bg);
    border-radius: 5px;
}

.starry-section-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: var(--color-primary);
    color: #fff;

    font-size: 26px;
}

.starry-section-heading-text {
    min-width: 0;
}

.starry-section-heading-text h1 {
    margin: 0;
    line-height: 1.1;

    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;

    color: #ffffff;
}

.starry-section-heading-text p {
    margin: 6px 0 0;

    font-size: 14px;
    line-height: 1.5;

    color: #f9fcff;
}


/* ------------------------------------------------------------
   PRODUCT GRIDS
   ------------------------------------------------------------ */

.starry-product-grid {
    display: grid !important;
    width: 100%;
    gap: 24px;
}

/* Six Star packages = two clean rows of three. */
.starry-stars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Three Orbit options = one clean row of three. */
.starry-orbit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}


/*
 * Override any width/flex rules inherited from the original
 * store-products-images layout.
 */
.starry-product-grid > .store-product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}


/* ------------------------------------------------------------
   PACKAGE CARDS
   ------------------------------------------------------------ */

.starry-product-grid .store-product {
    height: 100%;
}

.starry-product-grid .store-product .image-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.starry-product-grid .store-product .image {
    transition: transform 0.2s ease;
}

.starry-product-grid .store-product:hover .image {
    transform: scale(0.96);
}


/* ------------------------------------------------------------
   STARS
   ------------------------------------------------------------ */

.starry-stars-section .starry-section-icon {
    background: var(--color-primary);
}


/* ------------------------------------------------------------
   ORBIT
   ------------------------------------------------------------ */

.starry-orbit-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.starry-orbit-icon {
    position: relative;
}

.starry-realm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border-radius: 8px;

    background: #1e4f76;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.starry-realm-badge i {
    color: var(--color-primary);
}

.starry-orbit-notice {
    display: inline-block;

    margin-top: 9px;
    padding: 4px 8px;

    border-radius: 8px;

    background: #1e4f76;
    color: #f9fcff;

    font-size: 11px;
    font-weight: 600;
}


/* ------------------------------------------------------------
   SECTION SEPARATOR
   ------------------------------------------------------------ */

.starry-store-separator {
    display: flex;
    align-items: center;
    gap: 16px;

    width: 100%;
    margin: 12px 0 48px;
}

.starry-store-separator-line {
    height: 2px;
    flex: 1;

    border-radius: 999px;

    background: #1e4f76;
}

.starry-store-separator-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--color-primary);
    color: #ffffff;

    font-size: 17px;
}


/* ------------------------------------------------------------
   EXISTING HOMEPAGE DESCRIPTION
   ------------------------------------------------------------ */

.starry-store-description {
    margin-top: 48px;
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 960px) {

    .starry-stars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .starry-orbit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /*
     * Orbit has three packages.
     * Let the third option use the available width cleanly.
     */
    .starry-orbit-grid > .store-product:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    .starry-section-heading {
        align-items: flex-start;
        padding: 18px;
        gap: 14px;
    }

    .starry-section-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;

        font-size: 21px;
    }

    .starry-section-heading-text h1 {
        font-size: 22px;
    }

    .starry-section-heading-text p {
        font-size: 13px;
    }

    .starry-stars-grid,
    .starry-orbit-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .starry-orbit-grid > .store-product:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .starry-store-separator {
        margin: 6px 0 36px;
    }

}


/* ------------------------------------------------------------
   VERY SMALL MOBILE
   ------------------------------------------------------------ */

@media (max-width: 400px) {

    .starry-section-heading {
        padding: 15px;
    }

    .starry-section-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;

        font-size: 18px;
    }

    .starry-section-heading-text h1 {
        font-size: 19px;
    }

    .starry-orbit-title-row {
        gap: 8px;
    }

}


/* Stars / Orbit title + realm badge on the same line */
.starry-section-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.starry-section-title-row h2 {
    margin: 0;
    width: auto;
}

.starry-section-title-row .starry-realm-badge {
    margin: 0;
    width: auto;
    flex: 0 0 auto;
}