/* ==========================================================
   StarHost Store Overrides
   File: starhost-order.css
   Version: 2.0.0

   Purpose:
   Independent StarHost product cards
   DO NOT EDIT style.css
   ========================================================== */

#nuhostcartcustom .price-table-container {
    max-width: 1440px;
    margin: 0 auto;
}

.starhost-products-grid {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    margin: 0 auto;
}

.starhost-product-item {
    width: 100%;
}

.starhost-product-card {
    direction: rtl;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 640px;
    padding: 34px 28px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15,76,129,.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.starhost-product-card:hover {
    transform: translateY(-6px);
    border-color: #39A2DB;
    box-shadow: 0 28px 70px rgba(15,76,129,.14);
}

.starhost-product-card.is-featured {
    border-color: #0F4C81;
}

.starhost-product-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0F4C81, #39A2DB);
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(15,76,129,.25);
}

.starhost-product-header {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e8eef5;
}

.starhost-product-icon {
    color: #1F8A70;
    font-size: 28px;
    margin-bottom: 10px;
}

.starhost-product-title {
    direction: ltr;
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #0F4C81;
    text-align: center;
}

.starhost-product-title small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #64748B;
}

.starhost-product-price {
    text-align: center;
    color: #64748B;
    font-size: 13px;
}

.starhost-product-price strong {
    display: block;
    margin-bottom: 4px;
    font-size: 21px;
    line-height: 1.2;
    color: #111827;
}

.starhost-product-body {
    flex: 1;
}

.starhost-product-features {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: right;
}

.starhost-product-features li {
    font-size: 14px;
    line-height: 1.9;
    color: #334155;
}

.starhost-product-footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.starhost-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0F4C81, #1F8A70);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(15,76,129,.20);
    transition: transform .25s ease, box-shadow .25s ease;
}

.starhost-product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15,76,129,.28);
}

.starhost-product-button.is-disabled {
    background: #ef4444;
}

.starhost-product-setup {
    display: block;
    margin-top: 10px;
    color: #64748B;
}

/* ==========================================================
   PHASE 6.1
   Grid Width Fix
   ----------------------------------------------------------
   Force StarHost product grid to use full available width
   ========================================================== */

#nuhostcartcustom,
#nuhostcartcustom .main-container,
#nuhostcartcustom .price-table-container {

    width: 100%;

    max-width: 1440px;

}

.starhost-products-grid {

    width: 100%;

    grid-template-columns: repeat(auto-fit, minmax(300px, 320px));

}

/* ==========================================================
   PHASE 6.2
   Main Store Content Width Fix
   ----------------------------------------------------------
   Fix Bootstrap legacy col-xs layout inside WHMCS Twenty-One
   ========================================================== */

.row-product-selection > .col-xs-12 {

    width: 100% !important;

    max-width: 100% !important;

    flex: 0 0 100% !important;

}

#nuhostcartcustom {

    width: 100% !important;

}

.starhost-products-grid {

    max-width: 1380px;

    margin-right: auto;

    margin-left: auto;

}

/* ==========================================================
   PHASE 6.3
   Desktop Grid 4 Columns
   ----------------------------------------------------------
   Fit 4 hosting plans in one row on desktop
   ========================================================== */

@media (min-width: 1200px) {

    .starhost-products-grid {

        grid-template-columns: repeat(4, 280px);

        gap: 28px;

        max-width: 1210px;

    }

    .starhost-product-card {

        min-height: 650px;

        padding: 32px 24px;

    }

}

/* ==========================================================
   PHASE 6.4
   Included Features Section
   ----------------------------------------------------------
   Separate included features block from product grid
   ========================================================== */

.includes-features {

    max-width: 900px;

    margin: 56px auto 0;

    text-align: center;

    clear: both;

}

.includes-features .head-area {

    margin-bottom: 16px;

}

.includes-features .list-features {

    display: inline-block;

    text-align: right;

    margin: 0 auto;

}

/* ==========================================================
   PHASE 6.5
   Product Card Visual Polish
   ----------------------------------------------------------
   Improve spacing, typography, and CTA consistency
   ========================================================== */

.starhost-product-card {

    min-height: 720px;

}

.starhost-product-header {

    min-height: 185px;

}

.starhost-product-body {

    min-height: 360px;

}

.starhost-product-price strong {

    font-size: 22px;

}

.starhost-product-features li {

    margin-bottom: 3px;

}

.starhost-product-button {

    min-width: 150px;

    height: 42px;

    font-size: 13px;

}

/* ==========================================================
   PHASE 6.6
   Responsive Product Grid
   ----------------------------------------------------------
   Desktop / Tablet / Mobile layout for StarHost store cards
   ========================================================== */

@media (max-width: 1199px) {

    .starhost-products-grid {

        grid-template-columns: repeat(2, minmax(280px, 320px));

        gap: 28px;

    }

}

@media (max-width: 767px) {

    .starhost-products-grid {

        grid-template-columns: 1fr;

        max-width: 360px;

        gap: 24px;

    }

    .starhost-product-card {

        min-height: auto;

        padding: 30px 24px;

    }

    .starhost-product-header,
    .starhost-product-body {

        min-height: auto;

    }

    .starhost-product-button {

        width: 100%;

    }

}

