/* ==========================================================
   CENCRAFT — WOOCOMMERCE CART
========================================================== */


/* ==========================================================
   PAGE
========================================================== */

body.woocommerce-cart .cc-woocommerce {
    width: 100%;
    max-width: none;

    padding: 0;
}


/* ==========================================================
   CART HERO
========================================================== */

body.woocommerce-cart .cc-woocommerce::before {
    content: "YOUR CART";

    display: block;

    width: min(1240px, calc(100% - 48px));

    margin: 0 auto;
    padding-top: 70px;

    color: #35d7eb;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
}

body.woocommerce-cart .woocommerce {
    width: min(1240px, calc(100% - 48px));

    margin: 0 auto;
    padding: 14px 0 100px;
}

body.woocommerce-cart .woocommerce::before {
    content: "Ready to checkout?";

    display: block;

    margin-bottom: 10px;

    color: #f4f7fb;

    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

body.woocommerce-cart .woocommerce::after {
    content: "";

    display: block;
    clear: both;
}


/* ==========================================================
   NOTICE
========================================================== */

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
    margin: 30px 0 !important;
    padding: 18px 22px 18px 52px !important;

    color: #dce5ef !important;
    background: rgba(10, 28, 43, 0.92) !important;

    border: 1px solid rgba(18, 217, 239, 0.25) !important;
    border-radius: 12px;

    box-shadow: none;
}

body.woocommerce-cart .woocommerce-message::before {
    color: #35d7eb;
}


/* ==========================================================
   CART LAYOUT
========================================================== */

body.woocommerce-cart form.woocommerce-cart-form {
    float: left;

    width: calc(67% - 20px);
}

body.woocommerce-cart .cart-collaterals {
    float: right;

    width: calc(33% - 20px);
}


/* ==========================================================
   CART TABLE / CARD
========================================================== */

body.woocommerce-cart table.shop_table {
    margin: 0;

    overflow: hidden;

    color: #dce5ef;
    background:
        linear-gradient(
            145deg,
            rgba(10, 29, 44, 0.96),
            rgba(7, 22, 36, 0.96)
        );

    border: 1px solid rgba(18, 217, 239, 0.22);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
}

body.woocommerce-cart table.shop_table th {
    padding: 20px 18px;

    color: #f4f7fb;
    background: rgba(8, 25, 40, 0.72);

    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);

    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.woocommerce-cart table.shop_table td {
    padding: 22px 18px;

    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);

    vertical-align: middle;
}

body.woocommerce-cart table.shop_table tr:last-child td {
    border-bottom: 0;
}


/* ==========================================================
   PRODUCT IMAGE
========================================================== */

body.woocommerce-cart td.product-thumbnail {
    width: 92px;
}

body.woocommerce-cart td.product-thumbnail img {
    width: 72px;
    height: 72px;

    object-fit: cover;

    background: #f4f6f7;

    border-radius: 10px;
}


/* ==========================================================
   PRODUCT NAME
========================================================== */

body.woocommerce-cart td.product-name a {
    color: #f4f7fb;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;
}

body.woocommerce-cart td.product-name a:hover {
    color: #35d7eb;
}


/* ==========================================================
   PRICE
========================================================== */

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
    color: #dce5ef;

    font-weight: 600;
}

body.woocommerce-cart td.product-subtotal {
    color: #35d7eb;

    font-weight: 700;
}


/* ==========================================================
   REMOVE PRODUCT
========================================================== */

body.woocommerce-cart a.remove {
    display: flex;

    width: 32px;
    height: 32px;

    align-items: center;
    justify-content: center;

    color: #ff6575 !important;
    background: rgba(255, 78, 98, 0.08);

    border: 1px solid rgba(255, 78, 98, 0.18);
    border-radius: 8px;

    font-size: 20px;
    line-height: 1;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-cart a.remove:hover {
    color: #fff !important;
    background: #e84e60;

    border-color: #e84e60;

    transform: scale(1.05);
}


/* ==========================================================
   QUANTITY
========================================================== */

body.woocommerce-cart .quantity .qty {
    width: 72px;
    min-height: 44px;

    padding: 8px;

    color: #f4f7fb;
    background: #0b1928;

    border: 1px solid #26384c;
    border-radius: 8px;

    text-align: center;
    font: inherit;

    outline: none;
}

body.woocommerce-cart .quantity .qty:focus {
    border-color: #35d7eb;

    box-shadow:
        0 0 0 3px rgba(53, 215, 235, 0.08);
}


/* ==========================================================
   CART ACTIONS
========================================================== */

body.woocommerce-cart td.actions {
    padding: 18px !important;

    background: rgba(4, 15, 26, 0.3);
}

body.woocommerce-cart .actions .coupon {
    display: flex;

    gap: 10px;
}

body.woocommerce-cart .actions .coupon #coupon_code {
    width: 180px !important;
    min-height: 44px;

    padding: 0 14px;

    color: #e4ebf3;
    background: #0b1928;

    border: 1px solid #26384c;
    border-radius: 8px;

    outline: none;
}

body.woocommerce-cart .actions .coupon #coupon_code:focus {
    border-color: #35d7eb;
}

body.woocommerce-cart .actions button.button {
    min-height: 44px;

    padding: 0 18px;

    color: #041019;
    background: #22cfe6;

    border: 1px solid #22cfe6;
    border-radius: 8px;

    font-weight: 800;

    cursor: pointer;
}

body.woocommerce-cart .actions button.button:hover {
    color: #041019;
    background: #4cddf0;

    border-color: #4cddf0;
}

body.woocommerce-cart .actions button.button:disabled,
body.woocommerce-cart .actions button.button:disabled[disabled] {
    color: #718195;
    background: #132335;

    border-color: #26384c;

    opacity: 1;
}


/* ==========================================================
   CART TOTALS
========================================================== */

body.woocommerce-cart .cart-collaterals .cart_totals {
    float: none;

    width: 100%;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 29, 44, 0.98),
            rgba(7, 22, 36, 0.98)
        );

    border: 1px solid rgba(18, 217, 239, 0.24);
    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.14);
}

body.woocommerce-cart .cart_totals h2 {
    margin: 0 0 22px;

    color: #f4f7fb;

    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}


/* ==========================================================
   TOTALS TABLE
========================================================== */

body.woocommerce-cart .cart_totals table.shop_table {
    margin-bottom: 20px;

    background: rgba(4, 16, 27, 0.3);

    border-color: rgba(255,255,255,0.07);
    border-radius: 10px;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 16px 14px;

    background: transparent;

    border-bottom: 1px solid rgba(255,255,255,0.07);

    text-transform: none;
    letter-spacing: normal;
}

body.woocommerce-cart .cart_totals table.shop_table tr:last-child th,
body.woocommerce-cart .cart_totals table.shop_table tr:last-child td {
    border-bottom: 0;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
    color: #f4f7fb;

    font-size: 17px;
}

body.woocommerce-cart .cart_totals .order-total strong {
    color: #35d7eb;
}


/* ==========================================================
   CHECKOUT BUTTON
========================================================== */

body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex;

    width: 100%;
    min-height: 54px;

    margin: 0;
    padding: 0 22px;

    align-items: center;
    justify-content: center;

    color: #041019 !important;
    background: #22cfe6 !important;

    border: 1px solid #22cfe6;
    border-radius: 9px;

    font-size: 16px;
    font-weight: 800;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(34, 207, 230, 0.12);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    color: #041019 !important;
    background: #4cddf0 !important;

    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(34, 207, 230, 0.18);
}


/* ==========================================================
   EMPTY CART
========================================================== */

body.woocommerce-cart .cart-empty {
    margin-top: 35px !important;

    text-align: center;
}

body.woocommerce-cart .return-to-shop {
    margin-top: 25px;

    text-align: center;
}

body.woocommerce-cart .return-to-shop .button {
    display: inline-flex;

    min-height: 48px;

    align-items: center;

    padding: 0 24px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {

    body.woocommerce-cart form.woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        float: none;

        width: 100%;
    }

    body.woocommerce-cart .cart-collaterals {
        margin-top: 30px;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        max-width: none;
    }
}


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

@media (max-width: 768px) {

    body.woocommerce-cart .cc-woocommerce::before,
    body.woocommerce-cart .woocommerce {
        width: min(100% - 30px, 1240px);
    }

    body.woocommerce-cart .cc-woocommerce::before {
        padding-top: 45px;
    }

    body.woocommerce-cart .woocommerce {
        padding-bottom: 70px;
    }

    body.woocommerce-cart table.shop_table {
        background: transparent;

        border: 0;
        border-radius: 0;
    }

    body.woocommerce-cart table.shop_table_responsive tr {
        margin-bottom: 16px;
        padding: 18px;

        background:
            linear-gradient(
                145deg,
                rgba(10, 29, 44, 0.96),
                rgba(7, 22, 36, 0.96)
            );

        border: 1px solid rgba(18, 217, 239, 0.2);
        border-radius: 14px;
    }

    body.woocommerce-cart table.shop_table_responsive tr td {
        padding: 12px 0;

        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    body.woocommerce-cart table.shop_table_responsive tr td:last-child {
        border-bottom: 0;
    }

    body.woocommerce-cart td.product-thumbnail {
        display: block !important;

        width: 100%;

        text-align: center !important;
    }

    body.woocommerce-cart td.product-thumbnail::before {
        display: none;
    }

    body.woocommerce-cart td.product-thumbnail img {
        width: 100px;
        height: 100px;
    }

    body.woocommerce-cart td.actions {
        padding: 18px !important;
    }

    body.woocommerce-cart .actions .coupon {
        float: none !important;

        width: 100%;

        margin-bottom: 12px;
    }

    body.woocommerce-cart .actions .coupon #coupon_code {
        flex: 1;

        width: auto !important;
    }

    body.woocommerce-cart td.actions > button.button {
        width: 100%;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 22px;
    }
}


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

@media (max-width: 480px) {

    body.woocommerce-cart .actions .coupon {
        flex-direction: column;
    }

    body.woocommerce-cart .actions .coupon #coupon_code,
    body.woocommerce-cart .actions .coupon button {
        width: 100% !important;
    }
}