/*
 * DNSHE Standard Cart modern overrides.
 * Scoped to #order-standard_cart to avoid affecting other WHMCS pages.
 */

#order-standard_cart.dnshe-standard-cart{
    margin:0;
    padding:8px 0 40px;
    color:#0F1F3D;
    font-family:Inter,system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
}
#order-standard_cart .dnshe-cart-layout{
    display:flex;
    align-items:flex-start;
}
#order-standard_cart .dnshe-cart-main,
#order-standard_cart .dnshe-cart-sidebar{
    min-width:0;
}
#order-standard_cart .dnshe-cart-hero{
    margin:0 0 18px;
    padding:22px 24px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    border:1px solid #E6EDF5;
    border-radius:16px;
    background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,246,255,.86));
    box-shadow:0 2px 10px rgba(15,23,42,.05);
}
#order-standard_cart .dnshe-cart-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:0 0 10px;
    color:#2563EB;
    font-size:12px;
    font-weight:900;
}
#order-standard_cart .dnshe-cart-hero h1{
    margin:0;
    color:#0F1F3D;
    font-size:30px;
    font-weight:900;
    line-height:1.22;
    letter-spacing:0;
}
#order-standard_cart .dnshe-cart-hero p{
    max-width:760px;
    margin:10px 0 0;
    color:#64748B;
    font-size:13px;
    font-weight:650;
    line-height:1.6;
}
#order-standard_cart .dnshe-cart-alert{
    margin:0 0 16px;
    border-radius:12px;
}
#order-standard_cart .dnshe-cart-sidebar .panel{
    overflow:hidden;
    margin:0 0 14px;
    border:1px solid #E6EDF5;
    border-radius:14px;
    background:#FFFFFF;
    box-shadow:0 2px 10px rgba(15,23,42,.05);
}
#order-standard_cart .dnshe-cart-sidebar .panel-heading{
    padding:14px 16px;
    border:0;
    background:#FFFFFF;
}
#order-standard_cart .dnshe-cart-sidebar .panel-title{
    display:flex;
    align-items:center;
    margin:0;
    color:#0F1F3D;
    font-size:15px;
    font-weight:900;
    line-height:1.3;
}
#order-standard_cart .dnshe-cart-sidebar .panel-title>i:first-child{
    width:22px;
    color:#2563EB;
    font-size:15px;
}
#order-standard_cart .dnshe-cart-sidebar .panel-minimise{
    margin-left:auto;
    color:#94A3B8;
    font-size:13px;
}
#order-standard_cart .dnshe-cart-sidebar .list-group{
    padding:0 10px 12px;
    border:0;
}
#order-standard_cart .dnshe-cart-sidebar .list-group-item{
    min-height:40px;
    margin:4px 0;
    padding:10px 12px;
    display:flex;
    align-items:center;
    gap:8px;
    border:0;
    border-radius:11px;
    background:transparent;
    color:#334155;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
#order-standard_cart .dnshe-cart-sidebar .list-group-item i{
    width:18px;
    color:#64748B;
    text-align:center;
}
#order-standard_cart .dnshe-cart-sidebar .list-group-item:hover,
#order-standard_cart .dnshe-cart-sidebar .list-group-item:focus{
    background:#EFF6FF;
    color:#2563EB;
    transform:translateX(2px);
}
#order-standard_cart .dnshe-cart-sidebar .list-group-item:hover i,
#order-standard_cart .dnshe-cart-sidebar .list-group-item:focus i{
    color:#2563EB;
}
#order-standard_cart .dnshe-cart-sidebar .list-group-item.active,
#order-standard_cart .dnshe-cart-sidebar .list-group-item.active:hover,
#order-standard_cart .dnshe-cart-sidebar .list-group-item.active:focus{
    background:linear-gradient(135deg,#2563EB,#14B8A6);
    box-shadow:0 12px 24px rgba(37,99,235,.18);
    color:#FFFFFF;
}
#order-standard_cart .dnshe-cart-sidebar .list-group-item.active i{
    color:#FFFFFF;
}
#order-standard_cart .dnshe-cart-sidebar .badge{
    margin-left:auto;
    background:#EFF6FF;
    color:#2563EB;
}
#order-standard_cart .categories-collapsed{
    margin:0 0 16px;
    padding:12px;
    border:1px solid #E6EDF5;
    border-radius:14px;
    background:#FFFFFF;
    box-shadow:0 2px 10px rgba(15,23,42,.05);
}
#order-standard_cart .categories-collapsed .form-control{
    height:42px;
    border:1px solid #DDE7F3;
    border-radius:12px;
    background:#F8FBFF;
    color:#0F1F3D;
    font-size:13px;
    font-weight:800;
}
#order-standard_cart .dnshe-products{
    margin:0;
}
#order-standard_cart .dnshe-products-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}
#order-standard_cart .dnshe-product-card{
    min-height:340px;
    padding:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #E6EDF5;
    border-radius:16px;
    background:#FFFFFF;
    box-shadow:0 2px 10px rgba(15,23,42,.05);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
#order-standard_cart .dnshe-product-card:hover{
    border-color:#D7E5F7;
    box-shadow:0 14px 30px rgba(15,23,42,.08);
    transform:translateY(-2px);
}
#order-standard_cart .dnshe-product-header{
    position:relative;
    padding:20px 20px 16px;
    margin:0;
    border:0;
    border-bottom:1px solid #EEF2F7;
    background:linear-gradient(135deg,#F8FBFF,#FFFFFF);
}
#order-standard_cart .dnshe-product-title{
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    align-items:center;
    gap:13px;
}
#order-standard_cart .dnshe-product-icon{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:#EFF6FF;
    color:#2563EB;
    font-size:18px;
}
#order-standard_cart .dnshe-product-title span[id$="-name"]{
    display:block;
    overflow:hidden;
    color:#0F1F3D;
    font-size:17px;
    font-weight:900;
    line-height:1.38;
    text-overflow:ellipsis;
}
#order-standard_cart .dnshe-product-title .qty{
    display:inline-flex;
    margin-top:7px;
    padding:4px 8px;
    border-radius:999px;
    background:#ECFDF5;
    color:#15803D;
    font-size:11px;
    font-style:normal;
    font-weight:900;
    line-height:1;
}
#order-standard_cart .dnshe-product-desc{
    width:auto;
    float:none;
    flex:1;
    padding:18px 20px;
    color:#334155;
    font-size:13px;
    font-weight:650;
    line-height:1.65;
}
#order-standard_cart .dnshe-product-desc p{
    margin:0;
}
#order-standard_cart .dnshe-product-features{
    margin:14px 0 0;
    padding:0;
    display:grid;
    gap:8px;
    list-style:none;
}
#order-standard_cart .dnshe-product-features li{
    display:flex;
    align-items:flex-start;
    gap:8px;
    color:#64748B;
    font-size:12px;
    font-weight:750;
    line-height:1.45;
}
#order-standard_cart .dnshe-product-features i{
    margin-top:2px;
    color:#14B8A6;
    font-size:12px;
}
#order-standard_cart .dnshe-product-features .feature-value{
    color:#0F1F3D;
    font-weight:900;
}
#order-standard_cart .dnshe-product-footer{
    width:auto;
    float:none;
    margin:0;
    padding:18px 20px 20px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    border-top:1px solid #EEF2F7;
    background:#FFFFFF;
    text-align:left;
}
#order-standard_cart .dnshe-product-pricing{
    margin:0;
}
#order-standard_cart .dnshe-product-pricing small,
#order-standard_cart .dnshe-product-pricing em{
    display:block;
    margin-top:5px;
    color:#8A94A6;
    font-size:12px;
    font-style:normal;
    font-weight:800;
    line-height:1.35;
}
#order-standard_cart .dnshe-product-pricing small:first-child{
    margin-top:0;
    color:#64748B;
}
#order-standard_cart .dnshe-product-pricing .price{
    display:block;
    color:#0F1F3D;
    font-size:30px;
    font-weight:900;
    line-height:1.1;
    letter-spacing:0;
}
#order-standard_cart .dnshe-order-button,
#order-standard_cart .dnshe-order-button.btn-success{
    height:44px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:12px;
    background:linear-gradient(135deg,#2563EB,#14B8A6);
    box-shadow:0 12px 24px rgba(37,99,235,.20);
    color:#FFFFFF!important;
    font-size:13px;
    font-weight:900;
    text-decoration:none!important;
    white-space:nowrap;
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
#order-standard_cart .dnshe-order-button:hover,
#order-standard_cart .dnshe-order-button:focus{
    color:#FFFFFF!important;
    filter:saturate(1.06);
    box-shadow:0 16px 30px rgba(37,99,235,.26);
    transform:translateY(-1px);
}
#order-standard_cart .dnshe-cart-empty{
    min-height:220px;
    padding:34px 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    border:1px dashed #DDE7F3;
    border-radius:16px;
    background:#F8FBFF;
    color:#64748B;
    text-align:center;
}
#order-standard_cart .dnshe-cart-empty i{
    width:52px;
    height:52px;
    margin-bottom:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#EFF6FF;
    color:#3B82F6;
    font-size:22px;
}
#order-standard_cart .dnshe-cart-empty strong{
    color:#0F1F3D;
    font-size:15px;
    font-weight:900;
}
@media (max-width:1199px){
    #order-standard_cart .dnshe-product-footer{
        grid-template-columns:1fr;
        align-items:stretch;
    }
    #order-standard_cart .dnshe-order-button{
        width:100%;
    }
}
@media (max-width:991px){
    #order-standard_cart .dnshe-cart-layout{
        display:block;
    }
    #order-standard_cart .dnshe-products-grid{
        grid-template-columns:1fr;
    }
}
@media (max-width:767px){
    #order-standard_cart.dnshe-standard-cart{
        padding-top:0;
    }
    #order-standard_cart .dnshe-cart-hero{
        padding:18px;
        border-radius:14px;
    }
    #order-standard_cart .dnshe-cart-hero h1{
        font-size:24px;
    }
    #order-standard_cart .dnshe-product-card{
        min-height:0;
        border-radius:14px;
    }
    #order-standard_cart .dnshe-product-header,
    #order-standard_cart .dnshe-product-desc,
    #order-standard_cart .dnshe-product-footer{
        padding-left:16px;
        padding-right:16px;
    }
    #order-standard_cart .dnshe-product-pricing .price{
        font-size:26px;
    }
}

/* Stronger selectors to neutralize legacy Standard Cart product rules. */
#order-standard_cart .products .product.dnshe-product-card{
    min-height:340px;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    border:1px solid #E6EDF5!important;
    border-radius:16px!important;
    background:#FFFFFF!important;
}
#order-standard_cart .products .product.dnshe-product-card header.dnshe-product-header{
    padding:20px 20px 16px!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid #EEF2F7!important;
    background:linear-gradient(135deg,#F8FBFF,#FFFFFF)!important;
}
#order-standard_cart .products .product.dnshe-product-card header.dnshe-product-header .dnshe-product-icon{
    width:48px!important;
    height:48px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:15px!important;
    background:#EFF6FF!important;
    color:#2563EB!important;
    font-size:18px!important;
}
#order-standard_cart .products .product.dnshe-product-card div.product-desc.dnshe-product-desc{
    width:auto!important;
    float:none!important;
    flex:1!important;
    padding:18px 20px!important;
    color:#334155!important;
    font-size:13px!important;
    font-weight:650!important;
    line-height:1.65!important;
}
#order-standard_cart .products .product.dnshe-product-card footer.dnshe-product-footer{
    width:auto!important;
    float:none!important;
    margin:0!important;
    padding:18px 20px 20px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:14px!important;
    border-top:1px solid #EEF2F7!important;
    background:#FFFFFF!important;
    text-align:left!important;
}
#order-standard_cart .products .product.dnshe-product-card div.product-pricing.dnshe-product-pricing{
    margin:0!important;
}
#order-standard_cart .products .product.dnshe-product-card div.product-pricing.dnshe-product-pricing span.price{
    display:block!important;
    color:#0F1F3D!important;
    font-size:30px!important;
    font-weight:900!important;
    line-height:1.1!important;
    letter-spacing:0!important;
}
@media (max-width:1199px){
    #order-standard_cart .products .product.dnshe-product-card footer.dnshe-product-footer{
        grid-template-columns:1fr!important;
        align-items:stretch!important;
    }
}
