
/* ==========================================
   Shiny Gallery - Cart
   ========================================== */

:root {
    --shlly-pink: #f467b1;
    --shlly-pink-dark: #ed2997;
    --shlly-purple: #5840c9;
    --shlly-text: #222;
    --shlly-border: #eeeeee;
}

/* Background */

body.woocommerce-cart {
    background-color: #fff;
    background-image: url('https://shainygallery.ir/wp-content/uploads/2022/10/Layer-10-copy-2-1.png');
    background-repeat: repeat;
    background-position: center top;
    background-attachment: fixed;
}

/* Main Cart */

.woocommerce-cart .shlly-cart-form,
.woocommerce-cart .shlly-cart-collaterals {
    direction: rtl;
}

.woocommerce-cart .woocommerce {
    width: 100%;
}

.woocommerce-cart .woocommerce-notices-wrapper {
    max-width: 1150px;
    margin: 20px auto;
}

.woocommerce-cart .shlly-cart-form {
    max-width: 1150px;
    margin: 35px auto 0;
    padding: 15px;
    background: rgba(255,255,255,.96);
    border: 1px dotted var(--shlly-pink);
}

/* Table Wrapper */

.shlly-cart-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Cart Table */

.shlly-cart-table {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse !important;
    border: none !important;
    background: #fff;
}

.shlly-cart-table thead {
    background: var(--shlly-pink);
    color: #fff;
}

.shlly-cart-table th {
    padding: 16px 10px !important;
    border: none !important;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center !important;
}

.shlly-cart-table td {
    padding: 15px 10px !important;
    border-bottom: 1px solid var(--shlly-border) !important;
    border-top: none !important;
    color: var(--shlly-text);
    font-size: 13px;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Product Image */

.shlly-cart-table .product-thumbnail img {
    width: 85px !important;
    height: 85px !important;
    max-width: none !important;
    object-fit: cover;
    margin: 0 auto !important;
    border: 1px solid #f3f3f3;
}

/* Product Name */

.shlly-cart-table .product-name {
    min-width: 170px;
    font-weight: 600;
}

.shlly-cart-table .product-name a {
    color: #222;
    line-height: 1.9;
}

.shlly-cart-table .product-name a:hover {
    color: var(--shlly-pink-dark);
}

.shlly-cart-table .product-name dl.variation {
    margin-top: 8px;
    font-size: 11px;
}

/* Price */

.shlly-cart-table .product-price,
.shlly-cart-table .product-subtotal {
    white-space: nowrap;
    font-weight: 700;
}

.shlly-cart-table .product-subtotal {
    color: var(--shlly-pink-dark);
}

/* Quantity */

.shlly-cart-table .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shlly-cart-table .quantity input.qty {
    width: 65px;
    height: 40px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-size: 13px;
    text-align: center;
}

.shlly-cart-table .shlly-single-quantity {
    font-weight: 700;
}

/* Remove */

.shlly-cart-table .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff0f5;
    color: #e44b81 !important;
    font-size: 20px;
    transition: .2s;
}

.shlly-cart-table .product-remove a.remove:hover {
    background: #e44b81;
    color: #fff !important;
}

/* Cart Actions */

.shlly-cart-table .actions {
    padding: 20px 10px !important;
    text-align: left !important;
}

.shlly-cart-table .actions .coupon {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    float: right !important;
}

.shlly-cart-table .actions .coupon label {
    color: #333;
    font-size: 12px;
}

.shlly-cart-table .actions .coupon input {
    width: 170px !important;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 12px;
}

.shlly-cart-table .actions button,
.shlly-cart-table .actions .button {
    min-height: 40px;
    padding: 9px 16px !important;
    border: none !important;
    border-radius: 2px;
    background: var(--shlly-pink);
    color: #fff !important;
    font-size: 12px;
    transition: .2s;
}

.shlly-cart-table .actions button:hover,
.shlly-cart-table .actions .button:hover {
    background: var(--shlly-pink-dark);
    color: #fff !important;
}

.shlly-cart-table .actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Cart Totals */

.woocommerce-cart .shlly-cart-collaterals {
    max-width: 1150px;
    margin: 25px auto 60px;
    display: flex;
    justify-content: flex-start;
}

.shlly-cart-totals {
    width: 380px;
    max-width: 100%;
    padding: 20px;
    background: var(--shlly-pink);
    color: #fff;
}

.shlly-cart-totals h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.shlly-cart-totals table {
    width: 100%;
    border: none !important;
    border-collapse: collapse;
}

.shlly-cart-totals table th,
.shlly-cart-totals table td {
    padding: 13px 5px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.25) !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px;
    text-align: right;
}

.shlly-cart-totals table td {
    text-align: left;
    font-weight: 700;
}

.shlly-cart-totals .woocommerce-shipping-destination,
.shlly-cart-totals .woocommerce-shipping-calculator {
    color: #fff;
    font-size: 11px;
}

.shlly-cart-totals .woocommerce-shipping-calculator a {
    color: #fff;
    text-decoration: underline;
}

.shlly-cart-totals .woocommerce-shipping-methods {
    padding: 0;
    list-style: none;
}

.shlly-cart-totals .woocommerce-shipping-methods label {
    color: #fff;
    font-size: 11px;
}

/* Checkout Button */

.shlly-cart-totals .wc-proceed-to-checkout {
    padding: 20px 0 0;
}

.shlly-cart-totals .checkout-button {
    display: block;
    width: 100%;
    padding: 14px 15px !important;
    border: 1px solid #fff !important;
    border-radius: 3px !important;
    background: var(--shlly-purple) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    text-align: center;
    transition: .2s;
}

.shlly-cart-totals .checkout-button:hover {
    background: #fff !important;
    color: var(--shlly-purple) !important;
}

/* Continue Shopping */

.shlly-back-to-shop {
    display: block;
    margin-top: 15px;
    color: #fff !important;
    font-size: 12px;
    text-align: center;
}

/* Empty Cart */

.shlly-cart-empty {
    max-width: 750px;
    margin: 60px auto;
    padding: 60px 20px;
    background: rgba(255,255,255,.96);
    text-align: center;
}

.shlly-cart-empty-icon {
    margin-bottom: 15px;
    color: var(--shlly-pink);
    font-size: 65px;
}

.shlly-cart-empty h2 {
    color: #222;
    font-size: 21px;
    font-weight: 800;
}

.shlly-cart-empty p {
    margin: 15px 0 25px;
    color: #777;
    font-size: 13px;
}

.shlly-continue-shopping {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 3px;
    background: var(--shlly-pink-dark);
    color: #fff !important;
    font-size: 13px;
}

/* Cross Sells */

.woocommerce-cart .cross-sells {
    max-width: 1150px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255,255,255,.95);
}

.woocommerce-cart .cross-sells h2 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 800;
}

.woocommerce-cart .cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.woocommerce-cart .cross-sells ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Notices */

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info {
    border-top-color: var(--shlly-pink);
    background: #fff;
    font-size: 13px;
}

/* Tablet */

@media (max-width: 800px) {

    .woocommerce-cart .shlly-cart-form {
        margin: 20px 10px 0;
    }

    .woocommerce-cart .shlly-cart-collaterals {
        margin: 20px 10px 40px;
    }

    .shlly-cart-totals {
        width: 100%;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .woocommerce-cart .shlly-cart-form {
        padding: 8px;
    }

    .shlly-cart-table {
        min-width: 650px;
    }

    .shlly-cart-table th,
    .shlly-cart-table td {
        padding: 10px 7px !important;
        font-size: 11px;
    }

    .shlly-cart-table .product-thumbnail img {
        width: 60px !important;
        height: 60px !important;
    }

    .shlly-cart-table .actions {
        text-align: right !important;
    }

    .shlly-cart-table .actions .coupon {
        display: flex;
        width: 100%;
        margin-bottom: 15px;
    }

    .shlly-cart-table .actions .coupon input {
        flex: 1;
        min-width: 100px;
    }

    .shlly-cart-table .actions button[name="update_cart"] {
        width: 100%;
    }

    .woocommerce-cart .shlly-cart-collaterals {
        display: block;
    }

    .shlly-cart-totals {
        width: 100%;
        padding: 15px;
    }

    .woocommerce-cart .cross-sells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}
