/* Existing standard_cart_SN rule preserved */
.domain-checker-bg {
    margin: 0;
    padding: 60px;
    background-repeat: no-repeat;
    background-position: -1610px -430px;
    background-image: url("../img/checker.png");
}

/* Sahara Net — Premium WHMCS product cards
   Append to: /templates/orderforms/standard_cart_SN/css/custom.css */

#order-standard_cart #products.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
    margin: 30px 0 40px !important;
}

#order-standard_cart #products .product {
    position: relative;
    float: none !important;
    width: auto !important;
    min-width: 0;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9e1eb !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(63, 27, 70, .08) !important;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

#order-standard_cart #products .product::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(226, 131, 48, .10);
    pointer-events: none;
    transition: transform .35s ease;
}

html[dir="rtl"] #order-standard_cart #products .product::before,
body.rtl #order-standard_cart #products .product::before {
    right: auto;
    left: -70px;
}

#order-standard_cart #products .product:hover {
    transform: translateY(-7px);
    border-color: rgba(132, 42, 130, .32) !important;
    box-shadow: 0 24px 55px rgba(63, 27, 70, .15) !important;
}

#order-standard_cart #products .product:hover::before {
    transform: scale(1.22);
}

#order-standard_cart #products .product > header {
    position: relative;
    z-index: 1;
    min-height: 78px;
    margin: 0 !important;
    padding: 24px 26px 19px !important;
    display: flex;
    align-items: center;
    border: 0 !important;
    border-bottom: 1px solid #eee7ef !important;
    background: linear-gradient(135deg, #faf7fb 0%, #fff 72%) !important;
    color: #3a203f !important;
}

#order-standard_cart #products .product > header span {
    position: relative;
    z-index: 1;
    font-size: 22px !important;
    line-height: 1.35;
    font-weight: 800 !important;
    color: #3a203f !important;
}

#order-standard_cart #products .product .product-desc {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 23px 26px 18px !important;
    color: #5f5863 !important;
    background: #fff !important;
}

#order-standard_cart #products .product .product-desc p {
    margin: 0 0 18px !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    color: #5f5863 !important;
}

#order-standard_cart #products .product .product-desc p strong {
    color: #60295f !important;
    font-weight: 800 !important;
}

#order-standard_cart #products .product .product-desc ul {
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid;
    gap: 0;
}

#order-standard_cart #products .product .product-desc li {
    position: relative;
    margin: 0 !important;
    padding: 9px 25px 9px 0 !important;
    border-bottom: 1px solid #f1edf2;
    font-size: 14px !important;
    line-height: 1.55;
    color: #625b66 !important;
}

#order-standard_cart #products .product .product-desc li::before {
    content: "\2713";
    position: absolute;
    top: 9px;
    right: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f8edf6;
    color: #842a82;
    font-family: Arial, sans-serif !important;
    font-size: 11px;
    font-weight: 900;
}

html:not([dir="rtl"]) #order-standard_cart #products .product .product-desc li {
    padding: 9px 0 9px 25px !important;
}

html:not([dir="rtl"]) #order-standard_cart #products .product .product-desc li::before {
    right: auto;
    left: 0;
}

#order-standard_cart #products .product .feature-value {
    color: #302534 !important;
    font-weight: 800 !important;
}

#order-standard_cart #products .product > footer {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    padding: 20px 24px 24px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 0 !important;
    border-top: 1px solid #eee7ef !important;
    background: linear-gradient(135deg, #fbf8fc, #f7f2f8) !important;
}

#order-standard_cart #products .product .product-pricing {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    text-align: start !important;
    font-size: 13px !important;
    line-height: 1.45;
    color: #827987 !important;
}

#order-standard_cart #products .product .product-pricing .price {
    display: inline-flex !important;
    align-items: center;
    margin: 3px 0;
    color: #60295f !important;
    font-size: 31px !important;
    line-height: 1.1;
    font-weight: 900 !important;
    letter-spacing: -.7px;
}

#order-standard_cart #products .product .product-pricing .price img {
    width: 21px !important;
    height: 21px !important;
}

#order-standard_cart #products .product .btn-order-now {
    float: none !important;
    min-width: 132px;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #e28330, #ef9c51) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(226, 131, 48, .25);
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

#order-standard_cart #products .product .btn-order-now:hover,
#order-standard_cart #products .product .btn-order-now:focus {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(226, 131, 48, .34);
}

#order-standard_cart #products .product .btn-order-now .fa,
#order-standard_cart #products .product .btn-order-now .fas {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
}

/* Give bundle products a stronger premium signal without changing their content. */
#order-standard_cart #products .product[id^="bundle"] {
    border-color: rgba(226, 131, 48, .40) !important;
}

#order-standard_cart #products .product[id^="bundle"] > header {
    background: linear-gradient(135deg, #fff8f1, #fff 72%) !important;
}

#order-standard_cart #products .product[id^="bundle"] > header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: #e28330;
}

html[dir="rtl"] #order-standard_cart #products .product[id^="bundle"] > header::after,
body.rtl #order-standard_cart #products .product[id^="bundle"] > header::after {
    right: auto;
    left: 0;
}

@media (max-width: 991px) {
    #order-standard_cart #products.products {
        grid-template-columns: 1fr;
        gap: 19px !important;
    }
}

/* Bootstrap clearfix pseudo-elements must not occupy grid cells. */
body #order-standard_cart #products.products > .row::before,
body #order-standard_cart #products.products > .row::after {
    content: none !important;
    display: none !important;
}

/* Final stable layout: keep WHMCS rows and make each row a two-card grid. */
body #order-standard_cart div#products.products,
body div#products.products {
    display: block !important;
}

body #order-standard_cart div#products.products > .row,
body div#products.products > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 24px !important;
    margin: 0 0 24px !important;
}

@media (max-width: 767px) {
    body #order-standard_cart div#products.products > .row,
    body div#products.products > .row {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-bottom: 18px !important;
    }
}

/* WHMCS legacy floats split the description and footer side-by-side. */
body #order-standard_cart #products .product > .product-desc,
body #order-standard_cart #products .product > footer {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    clear: both !important;
}

body #order-standard_cart #products > .row > .col-md-6 {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
}

@media (max-width: 991px) {
    body #order-standard_cart #products.products > .row {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

@media (max-width: 575px) {
    #order-standard_cart #products.products {
        margin-top: 20px !important;
        gap: 16px !important;
    }

    #order-standard_cart #products .product {
        border-radius: 16px !important;
    }

    #order-standard_cart #products .product > header {
        min-height: 67px;
        padding: 19px 18px 16px !important;
    }

    #order-standard_cart #products .product > header span {
        font-size: 20px !important;
    }

    #order-standard_cart #products .product .product-desc {
        padding: 19px 18px 13px !important;
    }

    #order-standard_cart #products .product .product-desc p {
        font-size: 14px !important;
        line-height: 1.75 !important;
    }

    #order-standard_cart #products .product > footer {
        grid-template-columns: 1fr;
        padding: 18px !important;
    }

    #order-standard_cart #products .product .product-pricing {
        text-align: center !important;
    }

    #order-standard_cart #products .product .product-pricing .price {
        font-size: 30px !important;
    }

    #order-standard_cart #products .product .btn-order-now {
        width: 100%;
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #order-standard_cart #products .product,
    #order-standard_cart #products .product::before,
    #order-standard_cart #products .product .btn-order-now {
        transition: none !important;
    }
}

