/*
Theme Name: MX Online Market Green
Theme URI: https://mxonlinemarket.com/
Author: MX Online Market
Description: A lightweight, mobile-first marketplace theme for MX Online Market. Designed for local buying and selling with WooCommerce/Dokan compatibility.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mx-online-market
*/
:root{--mx-primary:#0B5D3B;--mx-dark:#15171c;--mx-orange:#ff9800;--mx-bg:#f4f5f7;--mx-card:#fff;--mx-text:#24262b;--mx-muted:#70757d;--mx-radius:14px;--mx-shadow:0 4px 18px rgba(20,25,35,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--mx-bg);color:var(--mx-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.mx-container{width:min(1180px,calc(100% - 28px));margin:auto}
.mx-top{background:var(--mx-dark);color:#fff;font-size:13px}.mx-top .mx-container{display:flex;justify-content:space-between;align-items:center;padding:8px 0}.mx-top a{opacity:.9}
.mx-header{background:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(0,0,0,.05)}.mx-header-row{display:flex;align-items:center;gap:18px;padding:14px 0}.mx-logo{display:flex;align-items:center;gap:9px;font-weight:900;font-size:25px;white-space:nowrap}.mx-logo-mark{width:39px;height:39px;border-radius:11px;background:linear-gradient(135deg,var(--mx-primary),#138A5B);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 5px 12px rgba(233,30,99,.25)}
.mx-search{display:flex;flex:1;max-width:680px;background:#f1f2f4;border-radius:999px;overflow:hidden;height:48px}.mx-search input{flex:1;border:0;background:transparent;padding:0 18px;font-size:15px;outline:0}.mx-search button{border:0;background:var(--mx-primary);color:#fff;padding:0 23px;font-weight:800;cursor:pointer}.mx-actions{display:flex;gap:15px;align-items:center}.mx-action{font-size:13px;font-weight:700;text-align:center}.mx-action span{display:block;font-size:21px}
.mx-nav{background:#fff;border-top:1px solid #eee}.mx-nav .mx-container{display:flex;gap:25px;align-items:center;overflow:auto}.mx-nav a{padding:11px 0;font-size:14px;font-weight:700;white-space:nowrap}.mx-nav a:hover{color:var(--mx-primary)}
.mx-hero{padding:18px 0}.mx-hero-grid{display:grid;grid-template-columns:1.7fr .9fr;gap:15px}.mx-banner{min-height:290px;border-radius:18px;background:linear-gradient(120deg,#064B32,#0B6B43 55%,#19A463);color:#fff;padding:38px;display:flex;align-items:center;overflow:hidden;position:relative}.mx-banner:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-90px;top:-80px;background:rgba(255,255,255,.12)}.mx-banner h1{font-size:clamp(30px,5vw,52px);line-height:1.02;margin:0 0 13px;max-width:600px}.mx-banner p{font-size:17px;max-width:550px;margin:0 0 23px}.mx-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:#fff;color:#064B32;padding:12px 19px;font-weight:900;cursor:pointer}.mx-btn.primary{background:var(--mx-primary);color:#fff}.mx-side{display:grid;gap:15px}.mx-side-card{background:#fff;border-radius:18px;padding:22px;box-shadow:var(--mx-shadow);display:flex;flex-direction:column;justify-content:center}.mx-side-card strong{font-size:21px}.mx-side-card p{color:var(--mx-muted);margin:5px 0 14px}
.mx-section{margin:18px 0}.mx-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.mx-section-head h2{margin:0;font-size:22px}.mx-see{color:var(--mx-primary);font-weight:800;font-size:14px}
.mx-strip{background:var(--mx-primary);border-radius:18px;padding:18px}.mx-strip .mx-section-head{color:#fff}.mx-strip .mx-see{color:#fff}.mx-products{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.mx-product{background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 2px 9px rgba(0,0,0,.06);min-width:0}.mx-product-img{aspect-ratio:1/1;background:#eef0f3;display:grid;place-items:center;overflow:hidden}.mx-product-img img{width:100%;height:100%;object-fit:cover}.mx-placeholder{font-size:38px;color:#b5bac2}.mx-product-body{padding:11px}.mx-product-title{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mx-price{font-size:17px;font-weight:900;margin-top:6px}.mx-old{text-decoration:line-through;color:#9aa0a8;font-size:12px;margin-left:5px}.mx-location{color:var(--mx-muted);font-size:12px;margin-top:5px}
.mx-cats{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.mx-cat{background:#fff;border-radius:14px;padding:13px 7px;text-align:center;box-shadow:var(--mx-shadow);font-weight:800;font-size:13px}.mx-cat-icon{width:54px;height:54px;border-radius:50%;background:#EAF7F0;margin:0 auto 7px;display:grid;place-items:center;font-size:25px}
.mx-location-box{background:#fff;border-radius:18px;padding:20px;box-shadow:var(--mx-shadow);display:flex;gap:15px;align-items:center}.mx-location-box select{flex:1;max-width:300px;padding:12px;border:1px solid #ddd;border-radius:9px;background:#fff}
.mx-seller{background:#fff;border-radius:14px;padding:15px;box-shadow:var(--mx-shadow)}.mx-seller-name{font-weight:900}.mx-seller-meta{font-size:13px;color:var(--mx-muted);margin:4px 0 10px}
.mx-footer{background:var(--mx-dark);color:#fff;margin-top:35px;padding:38px 0 20px}.mx-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:25px}.mx-footer h3{margin-top:0}.mx-footer p,.mx-footer a{color:#c8ccd2;font-size:14px}.mx-copy{border-top:1px solid #30343b;margin-top:25px;padding-top:15px;color:#9da3ac;font-size:13px}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;padding:12px;border-radius:14px}.woocommerce div.product{background:#fff;padding:18px;border-radius:16px}.woocommerce .button{background:var(--mx-primary)!important;color:#fff!important;border-radius:8px!important}
.mx-mobile-menu{display:none}
@media(max-width:900px){.mx-products{grid-template-columns:repeat(3,1fr)}.mx-cats{grid-template-columns:repeat(4,1fr)}.mx-hero-grid{grid-template-columns:1fr}.mx-side{grid-template-columns:1fr 1fr}.mx-footer-grid{grid-template-columns:1fr 1fr}.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.mx-top{display:none}.mx-header-row{gap:9px;padding:10px 0;flex-wrap:wrap}.mx-logo{font-size:20px}.mx-logo-mark{width:34px;height:34px}.mx-actions{margin-left:auto}.mx-action small{display:none}.mx-search{order:3;flex-basis:100%;height:44px}.mx-search button{padding:0 17px}.mx-nav{display:none}.mx-banner{min-height:300px;padding:26px}.mx-banner h1{font-size:35px}.mx-products{grid-template-columns:repeat(2,1fr)}.mx-cats{grid-template-columns:repeat(4,1fr);gap:7px}.mx-cat{font-size:11px;padding:9px 3px}.mx-cat-icon{width:45px;height:45px;font-size:20px}.mx-side{grid-template-columns:1fr}.mx-location-box{align-items:stretch;flex-direction:column}.mx-location-box select{max-width:none;width:100%}.mx-footer-grid{grid-template-columns:1fr}.mx-section-head h2{font-size:19px}}

/* Seller login / registration / dashboard */
.mx-sell-top{font-weight:800;color:#0b5d3b!important}
.mx-sell-nav{font-weight:800!important;color:#0b5d3b!important}
.mx-seller-portal{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;background:linear-gradient(135deg,#063b28,#0b5d3b);color:#fff;border-radius:22px;padding:24px;box-shadow:0 14px 35px rgba(6,75,50,.18)}
.mx-portal-icon{width:58px;height:58px;border-radius:16px;background:#19a463;color:#fff;display:grid;place-items:center;font-size:28px;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.mx-eyebrow{font-size:12px;font-weight:900;letter-spacing:.08em;color:#bff1d7}
.mx-portal-copy h2{margin:4px 0 7px;font-size:25px;color:#fff}
.mx-portal-copy p{margin:0;color:#e5f6ed;line-height:1.6}
.mx-portal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.mx-portal-actions .mx-btn{white-space:nowrap}
.mx-portal-actions .outline{background:#fff;color:#0b5d3b;border:1px solid #fff}
@media(max-width:760px){.mx-seller-portal{grid-template-columns:1fr;padding:20px}.mx-portal-actions{justify-content:flex-start}.mx-portal-actions .mx-btn{width:100%;text-align:center}.mx-sell-top{display:inline-block}.mx-sell-nav{font-weight:900!important}}

/* Buyer/seller chat */
.mx-chat-product-box{margin:18px 0;padding:16px;border:1px solid #dce9e2;background:#f5fbf7;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:15px}.mx-chat-product-box strong{display:block;font-size:17px}.mx-chat-product-box span{display:block;color:var(--mx-muted);font-size:13px;margin-top:3px}.mx-chat-page{padding:24px 0 40px;max-width:820px}.mx-chat-header{background:#fff;border-radius:16px;padding:16px 18px;box-shadow:var(--mx-shadow);display:flex;align-items:center;gap:20px}.mx-chat-header>a{color:var(--mx-primary);font-weight:800}.mx-chat-header div{display:flex;flex-direction:column}.mx-chat-header span{font-size:13px;color:var(--mx-muted);margin-top:2px}.mx-chat-notice{margin:12px 0;background:#eaf7f0;color:#184a35;border-left:4px solid var(--mx-primary);padding:13px 15px;border-radius:10px;font-size:14px}.mx-chat-messages{height:480px;overflow:auto;background:#eef4f0;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}.mx-chat-bubble{max-width:78%;padding:10px 13px;border-radius:14px;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.06);align-self:flex-start}.mx-chat-bubble.mine{align-self:flex-end;background:var(--mx-primary);color:#fff;border-bottom-right-radius:4px}.mx-chat-bubble.theirs{border-bottom-left-radius:4px}.mx-chat-bubble small{display:block;margin-top:4px;font-size:10px;opacity:.65}.mx-chat-empty,.mx-chat-loading{margin:auto;color:var(--mx-muted);text-align:center}.mx-chat-form{display:flex;gap:10px;margin-top:12px}.mx-chat-form textarea{flex:1;min-height:58px;max-height:160px;border:1px solid #d7ded9;border-radius:12px;padding:12px;font:inherit;resize:vertical}.mx-chat-form button{min-width:90px}.woocommerce .add_to_cart_button,.woocommerce .single_add_to_cart_button,.woocommerce a.button.product_type_simple,.woocommerce a.button.product_type_variable{display:none!important}.mx-logo-mark{box-shadow:0 5px 12px rgba(6,75,50,.25)}
@media(max-width:640px){.mx-chat-product-box{align-items:stretch;flex-direction:column}.mx-chat-product-box .mx-btn{width:100%}.mx-chat-header{align-items:flex-start;flex-direction:column;gap:8px}.mx-chat-messages{height:58vh}.mx-chat-form{align-items:stretch}.mx-chat-form button{min-width:82px}}
.mx-chat-inbox{margin-top:14px;display:grid;gap:10px}.mx-chat-thread{background:#fff;border-radius:13px;padding:15px;box-shadow:var(--mx-shadow);display:grid;grid-template-columns:1.5fr 1fr auto;gap:10px;align-items:center}.mx-chat-thread span,.mx-chat-thread small{color:var(--mx-muted);font-size:13px}.mx-chat-thread small{font-weight:800;color:var(--mx-primary)}
@media(max-width:640px){.mx-chat-thread{grid-template-columns:1fr}.mx-chat-thread small{justify-self:start}}
