/* =========================================================
   AUSACORP WHMCS ORDER FORM
   Premium storefront styling
   ========================================================= */

#order-standard_cart.ausacorp-order-form {
    background: transparent;
    color: #1f2937;
}


/* =========================================================
   PRODUCT GROUP HEADER
   ========================================================= */

#order-standard_cart .ausacorp-product-header {
    position: relative;
    margin: 0 0 32px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e5e7eb;
}

#order-standard_cart .ausacorp-product-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 72px;
    height: 3px;
    border-radius: 3px;
    background: #2f8f46;
}

#order-standard_cart .ausacorp-product-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.025em;
    color: #111827;
}

#order-standard_cart .ausacorp-product-tagline {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #667085;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

#order-standard_cart .ausacorp-products {
    margin-top: 28px;
    overflow: visible;
}

#order-standard_cart .row-eq-height {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
    padding-top: 16px;
    overflow: visible;
}

#order-standard_cart .row-eq-height > [class*="col-"] {
    position: relative;
    display: flex;
    margin-bottom: 24px;
    padding-left: 6px;
    padding-right: 6px;
}

#order-standard_cart .row-eq-height > [class*="col-"] > .ausacorp-product-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

#order-standard_cart .row-eq-height > [class*="col-"] {
    position: relative;
}

#order-standard_cart .ausacorp-recommended-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 10;

    transform: translateX(-50%);

    padding: 5px 14px;

    border-radius: 999px;

    background: #2f8f46;
    color: #ffffff;

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

    white-space: nowrap;

    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.12);
}

#order-standard_cart .ausacorp-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px rgba(16, 24, 40, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

#order-standard_cart .ausacorp-product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2f8f46;
    opacity: 0;
    transition: opacity 0.18s ease;
}

#order-standard_cart .ausacorp-product-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5df;
    box-shadow:
        0 4px 8px rgba(16, 24, 40, 0.05),
        0 18px 42px rgba(16, 24, 40, 0.10);
}

#order-standard_cart .ausacorp-product-card:hover::before {
    opacity: 1;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

#order-standard_cart .ausacorp-product-card-header {
    padding: 26px 16px 20px;
    background:
        linear-gradient(
            180deg,
            #fbfcfd 0%,
            #f7f9fa 100%
        );
    border-bottom: 1px solid #edf0f2;
}

#order-standard_cart .ausacorp-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

#order-standard_cart .ausacorp-product-name {
    display: block;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.015em;
    color: #101828;
}

#order-standard_cart .ausacorp-stock {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #d7eadb;
    border-radius: 999px;
    background: #f0f8f2;
    color: #27743a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}


/* =========================================================
   PRODUCT BODY
   ========================================================= */

/*
 * WHMCS standard_cart defaults .product-desc to 60% width.
 * This selector deliberately overrides that legacy split so
 * AUSACORP card content can use the full card width.
 */
#order-standard_cart .products .product div.product-desc.ausacorp-product-body {
    float: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

#order-standard_cart .ausacorp-product-body {
    flex: 1;
    padding: 24px 16px 20px;
    background: #fff;
}

#order-standard_cart .ausacorp-product-description {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
}

#order-standard_cart .ausacorp-product-description p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FEATURE LIST
   ========================================================= */

#order-standard_cart .ausacorp-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#order-standard_cart .ausacorp-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f4;
    font-size: 14px;
    line-height: 1.45;
    color: #344054;
}

#order-standard_cart .ausacorp-feature-list li:last-child {
    border-bottom: 0;
}

#order-standard_cart .ausacorp-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #edf7ef;
    color: #2f8f46;
    font-size: 10px;
}

#order-standard_cart .ausacorp-feature-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 1px;
}

#order-standard_cart .ausacorp-feature-list .feature-value {
    font-weight: 750;
    color: #101828;
}

#order-standard_cart .ausacorp-feature-list .feature-name {
    color: #475467;
}


/* =========================================================
   PRICING / FOOTER
   ========================================================= */

/*
 * WHMCS standard_cart also defaults product footer to 40%.
 * AUSACORP uses a full-width flex footer instead.
 */
#order-standard_cart .products .product footer.ausacorp-product-footer {
    float: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

#order-standard_cart .ausacorp-product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 16px 26px;
    border-top: 1px solid #edf0f2;
    background: #fbfcfd;
}

#order-standard_cart .ausacorp-product-pricing {
    margin: 0;
    text-align: left;
}

#order-standard_cart .ausacorp-price-label {
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 750;
    color: #98a2b3;
}

#order-standard_cart .ausacorp-price {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #101828;
}

#order-standard_cart .ausacorp-price-cycle {
    margin-top: 6px;
    font-size: 12px;
    color: #667085;
}

#order-standard_cart .ausacorp-setup-fee {
    margin-top: 5px;
    font-size: 11px;
    color: #98a2b3;
}


/* =========================================================
   CTA
   ========================================================= */

#order-standard_cart .ausacorp-order-action {
    flex: 0 0 auto;
}

#order-standard_cart .ausacorp-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 142px;
    padding: 12px 18px;
    border: 1px solid #181d22;
    border-radius: 9px;
    background: #20252b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.08);
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#order-standard_cart .ausacorp-order-button:hover,
#order-standard_cart .ausacorp-order-button:focus {
    transform: translateY(-1px);
    background: #111418;
    border-color: #111418;
    color: #ffffff;
    text-decoration: none;
    box-shadow:
        0 5px 12px rgba(16, 24, 40, 0.14);
}

#order-standard_cart .ausacorp-order-button i {
    font-size: 11px;
    transition: transform 0.15s ease;
}

#order-standard_cart .ausacorp-order-button:hover i {
    transform: translateX(2px);
}


/* =========================================================
   SIDEBAR / CATEGORY NAVIGATION
   ========================================================= */

#order-standard_cart .cart-sidebar {
    margin-bottom: 24px;
}

#order-standard_cart .cart-sidebar .list-group {
    overflow: hidden;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    box-shadow:
        0 4px 18px rgba(16, 24, 40, 0.04);
}

#order-standard_cart .cart-sidebar .list-group-item {
    padding: 12px 14px;
    border-left: 0;
    border-right: 0;
    border-color: #edf0f2;
    background: #ffffff;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

#order-standard_cart .cart-sidebar .list-group-item:first-child {
    border-top: 0;
}

#order-standard_cart .cart-sidebar .list-group-item:last-child {
    border-bottom: 0;
}

#order-standard_cart .cart-sidebar .list-group-item:hover {
    background: #f8fafb;
    color: #101828;
}

#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover,
#order-standard_cart .cart-sidebar .list-group-item.active:focus {
    background: #20252b;
    border-color: #20252b;
    color: #ffffff;
}


/* =========================================================
   COLLAPSED CATEGORY SELECTOR
   ========================================================= */

#order-standard_cart .categories-collapsed {
    margin-bottom: 24px;
}

#order-standard_cart .categories-collapsed select,
#order-standard_cart select.form-control {
    min-height: 42px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    #order-standard_cart .ausacorp-product-header {
        margin-bottom: 24px;
    }

    #order-standard_cart .ausacorp-product-header h1 {
        font-size: 28px;
    }

    #order-standard_cart .row-eq-height {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    #order-standard_cart .row-eq-height > [class*="col-"] {
        display: block;
        margin-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

    #order-standard_cart .ausacorp-product-card {
        height: auto;
    }

    #order-standard_cart .ausacorp-product-card-header {
        padding: 22px 20px 17px;
    }

    #order-standard_cart .ausacorp-product-body {
        padding: 20px;
    }

    #order-standard_cart .ausacorp-product-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    #order-standard_cart .ausacorp-product-pricing {
        text-align: center;
    }

    #order-standard_cart .ausacorp-order-action {
        width: 100%;
    }

    #order-standard_cart .ausacorp-order-button {
        width: 100%;
    }
}
