/* 1805 Mart v4.8.3 — Jumia-inspired customer journey surfaces.
   Presentation-only layer: WooCommerce remains responsible for cart, checkout,
   customer data, stock, prices, payment gateways and order state. */
:root{--mmt-market-ink:#282828;--mmt-market-muted:#757575;--mmt-market-line:#e8e8e8;--mmt-market-canvas:#f5f5f5;--mmt-market-card:#fff;--mmt-market-radius:4px}
body.woocommerce-cart,body.woocommerce-checkout,body.woocommerce-account,body.single-product{background:var(--mmt-market-canvas)}
body.woocommerce-cart .site-main,body.woocommerce-checkout .site-main,body.woocommerce-account .site-main{min-width:0}
/* Shared marketplace page frame */
.mmt-cart-wrap,.mmt-checkout-wrap,.mmt-dash-wrap{max-width:1180px!important;padding-left:16px!important;padding-right:16px!important;box-sizing:border-box}
.mmt-cart-wrap h1,.mmt-checkout-wrap h1{font-size:24px!important;line-height:1.2;color:var(--mmt-market-ink);font-weight:750!important;letter-spacing:-.35px;margin:10px 0 20px!important}
.mmt-cart-wrap h1 i,.mmt-checkout-wrap h1 i{font-size:20px}
/* Cart */
.mmt-cart-wrap .woocommerce{display:block}
.mmt-cart-wrap .woocommerce-cart-form,.mmt-cart-wrap .cart-collaterals .cart_totals{background:#fff;border:1px solid var(--mmt-market-line);border-radius:var(--mmt-market-radius);box-shadow:none}
.mmt-cart-wrap .woocommerce-cart-form{padding:18px}
.mmt-cart-wrap .cart-collaterals{margin-top:18px}
.mmt-cart-wrap .cart-collaterals .cart_totals{padding:20px;max-width:470px;margin-left:auto}
.mmt-cart-wrap .cart_totals h2{font-size:18px;font-weight:750;color:var(--mmt-market-ink);margin:0 0 14px}
.mmt-cart-wrap .shop_table{border:0!important;margin:0 0 12px!important;border-collapse:collapse!important}
.mmt-cart-wrap .shop_table thead th{background:#fafafa!important;color:#666!important;font-size:11px!important;letter-spacing:.045em;padding:12px 10px!important;border-bottom:1px solid var(--mmt-market-line)!important}
.mmt-cart-wrap .shop_table td{padding:14px 10px!important;border-bottom:1px solid #f0f0f0!important;color:#333}
.mmt-cart-wrap .shop_table tr:last-child td{border-bottom:0!important}
.mmt-cart-wrap .product-name a{font-size:14px;font-weight:650;color:#333;text-decoration:none}
.mmt-cart-wrap .product-name a:hover{color:var(--mc-primary,#e63946)}
.mmt-cart-wrap .product-thumbnail img{width:84px!important;height:84px!important;object-fit:contain!important;background:#fafafa;border-radius:3px;padding:4px}
.mmt-cart-wrap .product-remove a{width:28px;height:28px;line-height:26px;background:#f7f7f7;color:#777!important;font-size:18px!important;text-decoration:none}
.mmt-cart-wrap .quantity .qty{width:64px!important;min-height:38px;border:1px solid #ddd;border-radius:3px;padding:6px!important}
.mmt-cart-wrap .coupon{display:flex;gap:8px;flex-wrap:wrap}
.mmt-cart-wrap .coupon input.input-text{min-width:150px;padding:10px 12px;border:1px solid #ddd;border-radius:3px}
.mmt-cart-wrap .button,.mmt-checkout-wrap .button,.mmt-dash-wrap .button{border-radius:3px!important;box-shadow:none!important;text-shadow:none!important;font-weight:700!important}
.mmt-cart-wrap .wc-proceed-to-checkout{padding:12px 0 0!important}
.mmt-cart-wrap .wc-proceed-to-checkout a.checkout-button{background:var(--mc-primary,#e63946)!important;color:#fff!important;font-size:16px!important;padding:15px 18px!important;border-radius:3px!important;margin:0!important}
.mmt-cart-wrap .cart_totals table th{font-weight:600;color:#666}
.mmt-cart-wrap .cart_totals table td{font-weight:700;text-align:right}
.mmt-cart-wrap .shipping-calculator-button{color:var(--mc-primary,#e63946);font-weight:650}
.mmt-cart-wrap .return-to-shop .button{background:var(--mc-primary,#e63946)!important;color:#fff!important}
/* Checkout: clear two-column order flow, never interfere with gateway markup */
.mmt-checkout-wrap .woocommerce form.checkout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:22px;align-items:start}
.mmt-checkout-wrap #customer_details{grid-column:1;grid-row:1}
.mmt-checkout-wrap #order_review_heading,.mmt-checkout-wrap #order_review{grid-column:2}
.mmt-checkout-wrap #order_review_heading{margin:0!important;padding:17px 18px 0;background:#fff;border:1px solid var(--mmt-market-line);border-bottom:0;border-radius:4px 4px 0 0;font-size:18px!important;color:#282828}
.mmt-checkout-wrap #order_review{background:#fff;border:1px solid var(--mmt-market-line);border-top:0;border-radius:0 0 4px 4px;padding:14px 18px 18px}
.mmt-checkout-wrap #customer_details .col-1,.mmt-checkout-wrap #customer_details .col-2{float:none;width:100%;background:#fff;border:1px solid var(--mmt-market-line);border-radius:4px;padding:20px;margin:0 0 16px;box-sizing:border-box}
.mmt-checkout-wrap #customer_details .col-2{margin-top:16px}
.mmt-checkout-wrap #customer_details h3{font-size:17px;font-weight:750;color:#282828;margin:0 0 16px}
.mmt-checkout-wrap .woocommerce-billing-fields__field-wrapper,.mmt-checkout-wrap .woocommerce-shipping-fields__field-wrapper{display:flow-root}
.mmt-checkout-wrap .form-row{margin-bottom:13px!important}
.mmt-checkout-wrap .form-row label{font-size:12px!important;color:#555!important;font-weight:650!important;margin:0 0 6px!important}
.mmt-checkout-wrap .form-row input.input-text,.mmt-checkout-wrap .form-row select,.mmt-checkout-wrap .form-row textarea{min-height:43px;border:1px solid #d8d8d8!important;border-radius:3px!important;padding:10px 12px!important;font-size:14px!important;box-shadow:none!important}
.mmt-checkout-wrap .form-row input:focus,.mmt-checkout-wrap .form-row select:focus,.mmt-checkout-wrap .form-row textarea:focus{border-color:var(--mc-primary,#e63946)!important;outline:2px solid color-mix(in srgb,var(--mc-primary,#e63946) 12%,transparent)}
.mmt-checkout-wrap #order_review .shop_table{border:0!important;margin:0 0 14px!important}
.mmt-checkout-wrap #order_review .shop_table th,.mmt-checkout-wrap #order_review .shop_table td{padding:11px 0!important;background:transparent!important;border-bottom:1px solid #eee!important;font-size:13px!important}
.mmt-checkout-wrap #payment{border-radius:3px!important;box-shadow:none!important;background:#fafafa!important;padding:14px!important;border:1px solid #eee}
.mmt-checkout-wrap #payment .payment_methods li{display:block!important;padding:12px 0!important}
.mmt-checkout-wrap #payment .payment_methods label{font-size:13px!important;color:#333}
.mmt-checkout-wrap #payment .place-order{padding:12px 0 0!important}
.mmt-checkout-wrap #payment .place-order .button{min-height:50px!important;border-radius:3px!important;font-size:16px!important}
.mmt-checkout-wrap .woocommerce-privacy-policy-text{font-size:11px;color:#777;line-height:1.55}
/* Account / profile */
.mmt-dash-wrap{padding-top:22px!important}
.mmt-dash-hero{background:#fff!important;color:#282828!important;border:1px solid var(--mmt-market-line);border-radius:4px!important;padding:20px 22px!important;box-shadow:none!important}
.mmt-dash-hero:before,.mmt-dash-hero:after{display:none!important}
.mmt-dash-avatar{border:1px solid #eee!important;background:#f5f5f5!important;color:#555!important}
.mmt-dash-name{color:#282828!important;font-size:20px!important}
.mmt-dash-email{color:#777!important;opacity:1!important}
.mmt-dash-hero>a{background:#f5f5f5!important;border:1px solid #ddd!important;color:#444!important;backdrop-filter:none!important}
.mmt-dash-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.mmt-stat-card{border:1px solid var(--mmt-market-line)!important;border-left:3px solid var(--mc-primary,#e63946)!important;border-radius:4px!important;box-shadow:none!important;padding:15px!important}
.mmt-stat-icon{border-radius:3px!important}
.mmt-dash-layout{grid-template-columns:230px minmax(0,1fr)!important;gap:16px!important}
.mmt-dash-sidebar,.mmt-dash-main{border:1px solid var(--mmt-market-line);border-radius:4px!important;box-shadow:none!important;background:#fff}
.mmt-dash-nav a{padding:14px 16px!important;border-left-width:3px!important;border-bottom:1px solid #f3f3f3;font-size:13px!important}
.mmt-dash-nav a.active{background:#fff7f7!important}
.mmt-dash-main{padding:22px!important;min-width:0}
.mmt-sec-title{font-size:18px!important;color:#282828!important;border-bottom:1px solid #eee!important;padding-bottom:13px!important}
.mmt-orders-table{min-width:560px}
.mmt-orders-table th{background:#fafafa;padding:12px!important;color:#777!important}
.mmt-orders-table td{padding:13px 12px!important}
.mmt-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:3px;font-size:11px;font-weight:700;background:#f1f1f1;color:#555}
.mmt-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.mmt-dash-main .mmt-field input,.mmt-dash-main .mmt-field select,.mmt-dash-main .mmt-field textarea{border:1px solid #d8d8d8!important;border-radius:3px!important;min-height:43px}
.mmt-dash-main .mmt-submit{border-radius:3px!important;box-shadow:none!important}
.mmt-empty-state{padding:38px 18px;text-align:center;background:#fafafa;border:1px dashed #ddd;border-radius:4px}
/* Single product detail */
body.single-product .mc-container{max-width:1200px}
body.single-product .mc-product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:28px;background:#fff;border:1px solid var(--mmt-market-line);border-radius:4px;padding:22px;align-items:start}
body.single-product .mc-product-gallery__main{background:#fff;border:0;border-radius:3px;min-height:360px}
body.single-product .mc-product-gallery__main img{max-height:480px;object-fit:contain}
body.single-product .mc-product-gallery__thumbs{gap:8px;margin-top:12px}
body.single-product .mc-product-gallery__thumb{border:1px solid #e5e5e5;border-radius:3px;padding:4px;background:#fff}
body.single-product .mc-product-gallery__thumb.active{border:2px solid var(--mc-primary,#e63946)}
body.single-product .mc-product-info__title{font-size:22px;line-height:1.4;color:#282828;font-weight:650}
body.single-product .mc-product-info__price{font-size:27px;font-weight:800;color:#282828}
body.single-product .mc-product-info__original{font-size:14px;color:#999}
body.single-product .mc-product-info__stock{font-size:12px;font-weight:650}
body.single-product .mc-product-info__actions{display:flex;gap:10px;flex-wrap:wrap}
body.single-product .mc-btn--add-cart{min-height:48px;border-radius:3px!important;box-shadow:none!important;font-weight:750}
body.single-product .mc-btn--whatsapp{min-height:48px;border-radius:3px!important}
body.single-product .mc-product-info__qty .mc-qty-control{border:1px solid #ddd;border-radius:3px;min-height:42px;display:inline-flex;align-items:center}
body.single-product .mc-product-info__qty input{min-height:38px}
body.single-product .woocommerce-tabs,.mmt-product-description{background:#fff;border:1px solid var(--mmt-market-line);border-radius:4px;padding:20px;margin-top:20px}
/* Global WooCommerce notices and buttons */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:3px!important;box-shadow:none!important}
.woocommerce a.button:focus,.woocommerce button.button:focus,.woocommerce input.button:focus{outline:2px solid color-mix(in srgb,var(--mc-primary,#e63946) 35%,transparent);outline-offset:2px}
@media(max-width:900px){
 .mmt-checkout-wrap .woocommerce form.checkout{grid-template-columns:1fr;gap:14px}
 .mmt-checkout-wrap #customer_details,.mmt-checkout-wrap #order_review_heading,.mmt-checkout-wrap #order_review{grid-column:1}
 .mmt-checkout-wrap #customer_details{grid-row:auto}
 .mmt-dash-layout{grid-template-columns:1fr!important}
 .mmt-dash-sidebar{overflow-x:auto}
 .mmt-dash-nav{display:flex;min-width:max-content}
 .mmt-dash-nav a{border-left:0!important;border-bottom:3px solid transparent!important;white-space:nowrap}
 .mmt-dash-nav a.active{border-bottom-color:var(--mc-primary,#e63946)!important}
}
@media(max-width:640px){
 .mmt-cart-wrap,.mmt-checkout-wrap,.mmt-dash-wrap{padding-left:10px!important;padding-right:10px!important}
 .mmt-cart-wrap h1,.mmt-checkout-wrap h1{font-size:21px!important;margin:8px 0 14px!important}
 .mmt-cart-wrap .woocommerce-cart-form{padding:10px}
 .mmt-cart-wrap .shop_table thead{display:none}
 .mmt-cart-wrap .shop_table tr.cart_item{display:grid;grid-template-columns:72px minmax(0,1fr) 28px;gap:8px;padding:12px 0;border-bottom:1px solid #eee}
 .mmt-cart-wrap .shop_table tr.cart_item td{display:block!important;padding:3px!important;border:0!important;text-align:left!important}
 .mmt-cart-wrap .shop_table td.product-thumbnail{grid-column:1;grid-row:1 / span 4}
 .mmt-cart-wrap .shop_table td.product-name{grid-column:2;grid-row:1;font-size:13px}
 .mmt-cart-wrap .shop_table td.product-price{grid-column:2;grid-row:2;font-size:12px;color:#777}
 .mmt-cart-wrap .shop_table td.product-quantity{grid-column:2;grid-row:3}
 .mmt-cart-wrap .shop_table td.product-subtotal{grid-column:2;grid-row:4;font-weight:750;color:#282828}
 .mmt-cart-wrap .shop_table td.product-remove{grid-column:3;grid-row:1}
 .mmt-cart-wrap .shop_table td.product-thumbnail img{width:68px!important;height:68px!important}
 .mmt-cart-wrap .shop_table tr:not(.cart_item){display:block}
 .mmt-cart-wrap .shop_table tr:not(.cart_item) td{display:block!important;text-align:left!important}
 .mmt-cart-wrap .cart-collaterals .cart_totals{max-width:none;padding:15px}
 .mmt-cart-wrap .coupon{width:100%}
 .mmt-cart-wrap .coupon input.input-text{width:100%!important;flex:1}
 .mmt-cart-wrap .coupon button{width:100%}
 .mmt-checkout-wrap{padding-top:14px!important}
 .mmt-checkout-wrap #customer_details .col-1,.mmt-checkout-wrap #customer_details .col-2{padding:14px!important}
 .mmt-checkout-wrap #order_review{padding:12px!important}
 .mmt-dash-hero{padding:15px!important;gap:12px!important}
 .mmt-dash-avatar{width:54px!important;height:54px!important}
 .mmt-dash-name{font-size:17px!important}
 .mmt-dash-stats{grid-template-columns:1fr!important;gap:8px!important}
 .mmt-stat-card{padding:11px!important}
 .mmt-stat-val{font-size:19px!important}
 .mmt-dash-main{padding:14px!important}
 .mmt-profile-grid{grid-template-columns:1fr}
 body.single-product .mc-product-layout{grid-template-columns:1fr;gap:18px;padding:12px}
 body.single-product .mc-product-gallery__main{min-height:260px}
 body.single-product .mc-product-gallery__main img{max-height:340px}
 body.single-product .mc-product-info__title{font-size:19px}
 body.single-product .mc-product-info__price{font-size:24px}
 body.single-product .mc-product-info__actions>*{flex:1 1 100%;justify-content:center}
}
/* Header mini-cart drawer and its item controls */
.mc-cart-item{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:13px 0;border-bottom:1px solid #eee;align-items:start}
.mc-cart-item__image{width:76px;height:76px;background:#fafafa;border:1px solid #eee;border-radius:3px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mc-cart-item__image img{width:100%;height:100%;object-fit:contain}
.mc-cart-item__info{min-width:0}
.mc-cart-item__name{font-size:13px;font-weight:650;line-height:1.4;color:#333}
.mc-cart-item__price{font-size:14px;font-weight:800;color:#282828;margin:5px 0}
.mc-cart-item__qty{display:inline-flex;align-items:center;border:1px solid #ddd;border-radius:3px;overflow:hidden;margin-top:8px}
.mc-cart-item__qty .mc-qty-btn{width:30px;height:30px;background:#f7f7f7;border:0;color:#333;font-size:16px;cursor:pointer}
.mc-cart-item__qty .mc-qty-inp{width:38px;height:30px;border:0;text-align:center;font-size:12px;font-weight:700;background:#fff}
.mc-cart-item__remove{display:block;margin-top:7px;padding:0;border:0;background:none;color:#888;font-size:11px;cursor:pointer}
.mc-cart-item__remove:hover{color:#c62828}

/* v4.8.5: preserve the normal marketplace footer on checkout and account pages. */
body.woocommerce-checkout .site-footer,body.woocommerce-account .site-footer{display:block!important}
@media(max-width:640px){body.woocommerce-checkout .site-footer,body.woocommerce-account .site-footer{margin-top:24px}}
