/* Yogya Fresh — Phase 3C.1.1 Cart UX
   Visual-only redesign. No cart/stock/pricing/validation logic changes. */

/* ---------- Page shell ---------- */
body.woocommerce-cart{
    background:#ffffff;
}

body.woocommerce-cart .site-content{
    background:#ffffff;
}

body.woocommerce-cart .site-content > .col-full{
    max-width:1280px;
    margin:0 auto;
    padding-left:24px;
    padding-right:24px;
}

body.woocommerce-cart .content-area{
    width:100% !important;
    float:none !important;
    margin-right:0 !important;
}

body.woocommerce-cart .widget-area{
    display:none !important;
}

body.woocommerce-cart #primary{
    width:100% !important;
    max-width:none !important;
}

body.woocommerce-cart .entry-header{
    margin:0 0 24px;
    padding:32px 0 0;
}

body.woocommerce-cart .entry-title{
    margin:0;
    color:#0C447A;
    font-size:34px;
    line-height:1.15;
    font-weight:800;
    letter-spacing:-0.02em;
}

body.woocommerce-cart .entry-content{
    width:100%;
}

/* ---------- Woo notices ---------- */
body.woocommerce-cart .woocommerce-notices-wrapper{
    margin:0 0 18px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error{
    margin:0 0 12px;
    padding:14px 18px 14px 46px;
    border-radius:12px;
    border:1px solid #dfeaf2;
    background:#f7fbfe;
    color:#294c68;
    box-shadow:none;
}

body.woocommerce-cart .woocommerce-error{
    border-color:#f0d6d6;
    background:#fff8f8;
}

/* ---------- Cart table ---------- */
body.woocommerce-cart .woocommerce-cart-form{
    margin:0;
}

body.woocommerce-cart table.shop_table{
    width:100%;
    margin:0;
    border:1px solid #e5edf3;
    border-radius:16px;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    background:#fff;
    box-shadow:0 8px 26px rgba(12,68,122,.05);
}

body.woocommerce-cart table.shop_table thead th{
    padding:16px 18px;
    border:0;
    border-bottom:1px solid #e8eef3;
    background:#f6f9fc;
    color:#0C447A;
    font-size:12px;
    line-height:1.3;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}

body.woocommerce-cart table.shop_table tbody td{
    padding:20px 18px;
    border:0;
    border-bottom:1px solid #edf2f5;
    vertical-align:middle;
    background:#fff;
    color:#304c63;
}

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

/* Remove column */
body.woocommerce-cart .product-remove{
    width:44px;
    text-align:center;
}

body.woocommerce-cart .product-remove a.remove{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    margin:0;
    border-radius:50%;
    background:#f6f8fa;
    color:#8194a5 !important;
    font-size:18px;
    line-height:1;
    text-decoration:none;
    transition:.18s ease;
}

body.woocommerce-cart .product-remove a.remove:hover{
    background:#fff0f0;
    color:#b64545 !important;
}

/* Thumbnail */
body.woocommerce-cart .product-thumbnail{
    width:92px;
}

body.woocommerce-cart .product-thumbnail img{
    display:block;
    width:72px !important;
    height:72px !important;
    margin:0;
    object-fit:cover;
    border-radius:12px;
    border:1px solid #e7edf2;
    background:#fff;
}

/* Product name / meta */
body.woocommerce-cart .product-name{
    min-width:250px;
}

body.woocommerce-cart .product-name a{
    color:#0C447A;
    font-size:15px;
    line-height:1.45;
    font-weight:800;
    text-decoration:none;
}

body.woocommerce-cart .product-name a:hover{
    text-decoration:underline;
}

body.woocommerce-cart .product-name dl.variation,
body.woocommerce-cart .product-name .wc-item-meta{
    margin:7px 0 0;
    color:#6a7f91;
    font-size:12px;
    line-height:1.5;
}

body.woocommerce-cart .product-name dl.variation dt,
body.woocommerce-cart .product-name dl.variation dd{
    margin:0 4px 0 0;
    padding:0;
}

/* Price / subtotal */
body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal{
    color:#173e60;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
}

body.woocommerce-cart .product-subtotal{
    color:#0C447A;
}

/* ---------- Quantity ---------- */
body.woocommerce-cart .product-quantity{
    min-width:118px;
}

body.woocommerce-cart .product-quantity .quantity{
    display:inline-flex !important;
    align-items:center;
    width:auto;
    margin:0;
}

body.woocommerce-cart .product-quantity input.qty{
    display:block !important;
    width:74px !important;
    min-width:74px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 10px !important;
    border:1px solid #d8e2ea !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#173e60 !important;
    text-align:center !important;
    font-size:14px !important;
    font-weight:800 !important;
    box-sizing:border-box !important;
    box-shadow:none !important;
}

body.woocommerce-cart .yf-cart-fixed-qty{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:44px;
    padding:0 12px;
    border:1px solid #d8e2ea;
    border-radius:10px;
    background:#f7f9fb;
    color:#52697D;
    font-weight:800;
    box-sizing:border-box;
}

/* ---------- Cart actions ---------- */
body.woocommerce-cart table.shop_table td.actions{
    padding:16px 18px;
    background:#f9fbfd;
}

body.woocommerce-cart td.actions .coupon{
    display:flex;
    align-items:center;
    gap:8px;
    float:left;
}

body.woocommerce-cart td.actions .coupon label{
    display:none;
}

body.woocommerce-cart td.actions .coupon .input-text{
    width:210px !important;
    height:44px;
    margin:0 !important;
    padding:0 14px !important;
    border:1px solid #d8e2ea !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#304c63;
    box-sizing:border-box;
    box-shadow:none !important;
}

body.woocommerce-cart td.actions .button{
    min-height:44px;
    padding:0 18px !important;
    border:0 !important;
    border-radius:10px !important;
    background:#eaf2f8 !important;
    color:#0C447A !important;
    font-size:13px !important;
    font-weight:800 !important;
    box-shadow:none !important;
    transition:.18s ease;
}

body.woocommerce-cart td.actions .button:hover{
    background:#dfeaf3 !important;
}

body.woocommerce-cart td.actions button[name="update_cart"]{
    float:right;
}

body.woocommerce-cart td.actions button[name="update_cart"]:not(:disabled){
    background:#0C447A !important;
    color:#fff !important;
}

body.woocommerce-cart td.actions button[name="update_cart"]:disabled{
    opacity:.45;
}

/* ---------- Totals ---------- */
body.woocommerce-cart .cart-collaterals{
    display:flex;
    justify-content:flex-end;
    width:100%;
    margin-top:28px;
}

body.woocommerce-cart .cart-collaterals .cart_totals{
    float:none !important;
    width:100% !important;
    max-width:520px;
    margin:0 !important;
    padding:24px;
    border:1px solid #e4edf3;
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 30px rgba(12,68,122,.06);
}

body.woocommerce-cart .cart_totals h2{
    margin:0 0 18px;
    color:#0C447A;
    font-size:22px;
    line-height:1.25;
    font-weight:800;
}

body.woocommerce-cart .cart_totals table{
    width:100%;
    margin:0 0 18px;
    border:0;
    border-collapse:separate;
    border-spacing:0;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td{
    padding:14px 0;
    border:0;
    border-bottom:1px solid #edf2f5;
    background:transparent;
    font-size:14px;
}

body.woocommerce-cart .cart_totals table th{
    color:#52697D;
    font-weight:700;
}

body.woocommerce-cart .cart_totals table td{
    color:#173e60;
    text-align:right;
    font-weight:800;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td{
    padding-top:18px;
    border-bottom:0;
    color:#0C447A;
    font-size:18px;
    font-weight:900;
}

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

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:52px;
    margin:0;
    padding:0 20px;
    border-radius:12px;
    background:#1297db;
    color:#fff;
    font-size:15px;
    line-height:1.2;
    font-weight:900;
    text-decoration:none;
    box-shadow:none;
    transition:.18s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover{
    background:#0C447A;
    color:#fff;
}

/* ---------- Empty cart ---------- */
body.woocommerce-cart .cart-empty{
    margin:24px 0 14px;
    padding:28px;
    border:1px solid #e4edf3;
    border-radius:16px;
    background:#f8fbfd;
    color:#52697D;
}

body.woocommerce-cart .return-to-shop .button{
    min-height:46px;
    padding:0 20px;
    border-radius:10px;
    background:#1297db;
    color:#fff;
    font-weight:800;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
    body.woocommerce-cart .site-content > .col-full{
        padding-left:16px;
        padding-right:16px;
    }

    body.woocommerce-cart .entry-header{
        padding-top:22px;
    }

    body.woocommerce-cart .entry-title{
        font-size:28px;
    }

    body.woocommerce-cart table.shop_table{
        border-radius:14px;
    }

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

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

@media (max-width: 768px){
    body.woocommerce-cart table.shop_table_responsive{
        border:0;
        box-shadow:none;
        background:transparent;
    }

    body.woocommerce-cart table.shop_table_responsive thead{
        display:none;
    }

    body.woocommerce-cart table.shop_table_responsive tbody tr{
        display:block;
        margin:0 0 14px;
        padding:14px;
        border:1px solid #e4edf3;
        border-radius:14px;
        background:#fff;
        box-shadow:0 6px 20px rgba(12,68,122,.04);
    }

    body.woocommerce-cart table.shop_table_responsive tbody td{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
        width:100%;
        min-width:0;
        padding:10px 0;
        border:0;
        border-bottom:1px solid #edf2f5;
        text-align:right !important;
    }

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

    body.woocommerce-cart table.shop_table_responsive tbody td::before{
        color:#52697D;
        font-size:11px;
        font-weight:800;
        text-transform:uppercase;
        letter-spacing:.03em;
    }

    body.woocommerce-cart table.shop_table_responsive .product-remove,
    body.woocommerce-cart table.shop_table_responsive .product-thumbnail{
        display:flex;
        width:100%;
    }

    body.woocommerce-cart table.shop_table_responsive .product-thumbnail{
        justify-content:flex-start;
    }

    body.woocommerce-cart table.shop_table_responsive .product-name{
        min-width:0;
        align-items:flex-start;
    }

    body.woocommerce-cart table.shop_table_responsive .product-name a{
        text-align:right;
    }

    body.woocommerce-cart table.shop_table_responsive td.actions{
        display:block;
        margin-top:10px;
        padding:14px !important;
        border:1px solid #e4edf3 !important;
        border-radius:14px;
        background:#f9fbfd;
    }

    body.woocommerce-cart td.actions .coupon{
        display:grid;
        grid-template-columns:1fr auto;
        float:none;
        width:100%;
        margin-bottom:10px;
    }

    body.woocommerce-cart td.actions .coupon .input-text{
        width:100% !important;
    }

    body.woocommerce-cart td.actions button[name="update_cart"]{
        float:none;
        width:100%;
    }

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

@media (max-width: 480px){
    body.woocommerce-cart .site-content > .col-full{
        padding-left:12px;
        padding-right:12px;
    }

    body.woocommerce-cart .entry-title{
        font-size:25px;
    }

    body.woocommerce-cart .cart_totals h2{
        font-size:20px;
    }

    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{
        min-height:50px;
        font-size:14px;
    }
}
