/* curren-storefront — cart page, same language as the checkout (shares checkout.css). */
body.woocommerce-cart { background: #F6F4EF; }
body.woocommerce-cart .site-content, body.woocommerce-cart #content { background: #F6F4EF; }
body.woocommerce-cart .page-header,
body.woocommerce-cart .mf-page-header,
body.woocommerce-cart .entry-header { display: none !important; }

/* div.woocommerce is the grid: steps + notices across, form left, summary right */
body.woocommerce-cart .woocommerce:has(> .csf-cart__form) { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 0 40px; align-items: start; margin-bottom: 64px; font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; color: #141414; }
body.woocommerce-cart .woocommerce:has(> .csf-cart__form) > .csf-steps,
body.woocommerce-cart .woocommerce:has(> .csf-cart__form) > .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce:has(> .csf-cart__form) > .woocommerce-message,
body.woocommerce-cart .woocommerce:has(> .csf-cart__form) > .woocommerce-error,
body.woocommerce-cart .woocommerce:has(> .csf-cart__form) > .woocommerce-info { grid-column: 1 / -1; }
body.woocommerce-cart .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
.csf-steps { font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; }

.csf-cart__form { margin: 0; }
.csf-cart__card, .csf-cart__summary { box-sizing: border-box; padding: 28px; border-radius: 14px; background: #fff; border: 1px solid #E4E0D6; }
.csf-cart__summary { border: 1.5px solid #141414; display: flex; flex-direction: column; gap: 14px; }
.csf-cart__h2 { font-family: inherit !important; font-size: 22px !important; font-weight: 700 !important; margin: 0 0 6px !important; color: #141414 !important; line-height: 1.3 !important; text-transform: none !important; letter-spacing: 0 !important; }
.csf-cart__h2 span { font-size: 16px; font-weight: 500; color: #5E5A52; }
.csf-cart__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; width: auto !important; float: none !important; }
.csf-cart__side .cart_totals { width: auto !important; float: none !important; }

/* items */
.csf-cart__list { list-style: none; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.csf-cart__item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info qty line" "thumb info remove remove"; gap: 6px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #EEEAE0; margin: 0; }
.csf-cart__item:last-child { border-bottom: 0; }
.csf-cart__thumb { grid-area: thumb; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #EFECE4; display: block; }
.csf-cart__thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; }
.csf-cart__info { grid-area: info; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.csf-cart__name { font-size: 17px; font-weight: 700; color: #141414 !important; text-decoration: none !important; line-height: 1.3; }
.csf-cart__name:hover { color: #B3121B !important; }
.csf-cart__info small { font-size: 13.5px; color: #5E5A52; }
.csf-cart__unit { font-size: 15px; font-weight: 600; }
.csf-cart__unit small { font-weight: 400; }
.csf-cart__note { color: #B3121B !important; }
.csf-cart__qty { grid-area: qty; justify-self: end; }
.csf-cart__line { grid-area: line; min-width: 90px; text-align: right; font-size: 18px; font-weight: 700; }
.csf-cart__item .product-remove { grid-area: remove; justify-self: end; }
.csf-cart__remove { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: auto !important; padding: 4px 0 !important; font-size: 14px !important; line-height: 1.4 !important; color: #5E5A52 !important; text-decoration: none !important; background: none !important; border: 0 !important; border-radius: 0 !important; text-indent: 0 !important; }
.csf-cart__remove:hover { color: #9B2C2C !important; }
.csf-cart__remove::before, .csf-cart__remove::after { display: none !important; }

/* quantity stepper (Martfury's qty box, restyled) */
.csf-cart__qty .quantity { display: inline-flex; align-items: center; margin: 0 !important; float: none !important; }
.csf-cart__qty .quantity label { display: none; }
.csf-cart__qty .qty-box { display: inline-flex !important; align-items: center; height: 44px; border: 1px solid #D6D1C4; border-radius: 8px; overflow: hidden; background: #fff; }
.csf-cart__qty .qty-box .decrease,
.csf-cart__qty .qty-box .increase { position: static !important; width: 40px !important; height: 44px !important; display: flex !important; align-items: center; justify-content: center; cursor: pointer; color: #141414; font-size: 13px; }
.csf-cart__qty .qty-box .decrease:hover,
.csf-cart__qty .qty-box .increase:hover { background: #F6F4EF; }
.csf-cart__qty input.qty { width: 44px !important; height: 44px !important; border: 0 !important; border-left: 1px solid #EEEAE0 !important; border-right: 1px solid #EEEAE0 !important; padding: 0 !important; text-align: center; font-family: inherit; font-size: 16px; font-weight: 600; background: #fff !important; -moz-appearance: textfield; }
.csf-cart__qty input.qty::-webkit-inner-spin-button, .csf-cart__qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.csf-cart__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 4px; border-top: 1px solid #EEEAE0; }
.csf-cart__continue { font-size: 15px; font-weight: 600; color: #B3121B !important; text-decoration: none !important; }
/* quantity changes update on their own (cart.js); the button stays only as a no-JS fallback */
.csf-cart__update { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); padding: 0 !important; border: 0 !important; }
.csf-cart__form.is-updating { opacity: .6; pointer-events: none; transition: opacity .15s; }

/* summary */
.csf-cart__summary .csf-sum__rows { margin-top: 4px; }
.csf-cart__ship > span:first-child { display: flex; flex-direction: column; }
.csf-cart__ship small { font-size: 12.5px; color: #5E5A52; }
.csf-cart__ship-list { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; }
.csf-sum__total small { font-size: 13px; font-weight: 400; color: #5E5A52; }
.csf-cart__proceed { padding: 0 !important; margin: 0 !important; }
.csf-cart__proceed .checkout-button { min-height: 58px; font-size: 19px !important; font-weight: 700; border-radius: 8px !important; background: #E6212C !important; color: #fff !important; margin: 0 !important; padding: 0 20px !important; }
.csf-cart__proceed .checkout-button:hover { background: #C4161F !important; }
.csf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 8px; font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; font-weight: 700; font-size: 17px; text-decoration: none !important; border: 0; cursor: pointer; line-height: 1.2; box-sizing: border-box; }
.csf-btn--accent { background: #E6212C; color: #fff !important; }
.csf-btn--accent:hover { background: #C4161F; }
.csf-btn--outline { background: #fff; color: #141414 !important; border: 1.5px solid #141414; font-weight: 600; }
.csf-btn--block { display: flex; width: 100%; }

/* empty cart */
.csf-cart-empty { max-width: 560px; margin: 48px auto 72px; padding: 48px 32px; border-radius: 14px; background: #fff; border: 1px solid #E4E0D6; text-align: center; font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; }
.csf-cart-empty h2 { font-family: inherit !important; font-size: 26px !important; font-weight: 700 !important; margin: 16px 0 8px !important; color: #141414 !important; }
.csf-cart-empty p { margin: 0 0 24px; font-size: 16px; color: #5E5A52; }
.csf-cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
body.woocommerce-cart .return-to-shop, body.woocommerce-cart .cart-empty.woocommerce-info { display: none !important; }

@media (max-width: 991px) {
	body.woocommerce-cart .woocommerce:has(> .csf-cart__form) { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0 110px; }
	body.woocommerce-cart .woocommerce:has(> .csf-cart__form) > .csf-steps { display: none; }
	.csf-cart__card, .csf-cart__summary { padding: 18px 16px; border-radius: 12px; }
	.csf-cart__h2 { font-size: 19px !important; }
	.csf-cart__side { position: static; }
	.csf-cart__item { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty line" "remove remove remove"; gap: 8px 12px; padding: 16px 0; }
	.csf-cart__thumb { width: 72px; height: 72px; }
	.csf-cart__name { font-size: 15px; }
	.csf-cart__qty { justify-self: start; }
	.csf-cart__line { font-size: 16px; min-width: 0; }
	.csf-cart__item .product-remove { justify-self: start; }
	.csf-co__trust { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px; font-size: 13px; }
	/* checkout bar fixed to the bottom of the screen */
	body.woocommerce-cart .csf-cart__proceed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; display: flex; align-items: stretch; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; background: #fff; border-top: 1px solid #E4E0D6; box-shadow: 0 -2px 12px rgba(17, 18, 20, .06); }
	body.woocommerce-cart .csf-cart__proceed .csf-co__bar-total { display: flex; flex-direction: column; justify-content: center; flex: 0 0 auto; }
	body.woocommerce-cart .csf-cart__proceed .csf-co__bar-total span { font-size: 11.5px; color: #5E5A52; }
	body.woocommerce-cart .csf-cart__proceed .csf-co__bar-total strong { font-size: 19px; line-height: 1.2; }
	body.woocommerce-cart .csf-cart__proceed .checkout-button { flex: 1 1 auto; width: auto; min-height: 56px; font-size: 17px !important; }
	body.woocommerce-cart .mf-navigation-mobile { display: none !important; }
	.csf-cart-empty { margin: 24px 0 48px; padding: 36px 20px; }
}

/* Martfury's mobile "Your Cart Items" heading — the card has its own */
body.woocommerce-cart h2.cart-title { display: none !important; }
/* "মুছুন" in the muted grey of the design, not the theme's red */
body.woocommerce-cart .csf-cart__item .product-remove a.csf-cart__remove { color: #5E5A52 !important; }
body.woocommerce-cart .csf-cart__item .product-remove a.csf-cart__remove:hover { color: #9B2C2C !important; }

/* WooCommerce notices (e.g. "… কার্টে যোগ হয়েছে") in the store's style */
.single-product .woocommerce-message,
.woocommerce-cart .woocommerce-message { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border: 1px solid #CFE3D6 !important; border-left: 4px solid #1E6B45 !important; border-radius: 10px; background: #F1F8F3 !important; color: #1C3B2A !important; font-family: 'Hind Siliguri', sans-serif; font-size: 15px; padding: 14px 18px 14px 54px !important; }
.single-product .woocommerce-message::before,
.woocommerce-cart .woocommerce-message::before { color: #1E6B45 !important; }
.single-product .woocommerce-message .button,
.woocommerce-cart .woocommerce-message .button,
.woocommerce-cart .woocommerce-message a.restore-item { order: 2; float: none !important; margin: 0 !important; background: #fff !important; color: #141414 !important; border: 1.5px solid #141414 !important; border-radius: 8px !important; font-family: inherit; font-weight: 600; padding: 8px 16px !important; line-height: 1.3; text-decoration: none !important; }

/* breadcrumb in the brand palette (Martfury ships cyan links) */
.breadcrumbs, .breadcrumbs span { color: #141414; }
.breadcrumbs a { color: #5E5A52 !important; }
.breadcrumbs a:hover { color: #B3121B !important; }
.breadcrumbs .breadcrumb_last, .breadcrumbs span:last-child > span { color: #141414 !important; }

