/*
Theme Name: My Market Stall
Theme URI: https://example.invalid/my-market-stall
Author: My Market Stall
Description: A friendly block theme for local market sellers. Pairs with My Market Stall Local and WooCommerce.
Version: 0.6.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: my-market-stall
License: GPL-2.0-or-later
*/
.mms-hero{border-radius:22px;overflow:hidden}.mms-pill{display:inline-block;border:1px solid #d6c6b4;border-radius:50px;padding:.3rem .85rem}.wp-block-button__link{transition:transform .15s ease}.wp-block-button__link:hover{transform:translateY(-2px)}
.mms-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:1.25rem}.mms-product{border:1px solid #e5ded3;background:white;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.mms-product img{width:100%;height:210px;object-fit:cover}.mms-product-body{padding:1rem;flex:1;display:flex;flex-direction:column;gap:.55rem}.mms-product h3{font-size:1.08rem;margin:0}.mms-product .mms-price{font-weight:750;color:#3a5545}.mms-product a.mms-btn,.mms-btn{background:#365745;border:0;border-radius:9px;color:white;padding:.7rem 1rem;text-decoration:none;display:inline-block;cursor:pointer;font-size:1rem}.mms-product .mms-btn{margin-top:auto;text-align:center}.mms-muted{color:#6d6963}.mms-status{font-size:.79rem;color:#7b4c22;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.mms-panel{max-width:920px;margin:2rem auto}.mms-panel form{display:grid;gap:1rem}.mms-panel label{font-weight:650;display:block;margin-bottom:.3rem}.mms-panel input:not([type=hidden]),.mms-panel textarea,.mms-panel select{font:inherit;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #b9b1a7;border-radius:8px;padding:.75rem;background:#fff}.mms-panel input[type=file]{padding:.55rem}.mms-panel table{border-collapse:collapse;width:100%}.mms-panel td,.mms-panel th{padding:.75rem;border-bottom:1px solid #e3ddd6;text-align:left}.mms-notice{background:#f0f7ec;border-left:4px solid #365745;padding:.9rem}.mms-error{background:#fff0ec;border-color:#a73a2b}.mms-section{border:1px solid #ded6cb;background:#fffdf9;padding:1.25rem;border-radius:14px;margin:1rem 0}.mms-hidden-field{position:absolute;left:-9999px}.mms-links{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.mms-links a{font-weight:600}
@media(max-width:640px){.mms-panel table{display:block;overflow-x:auto}.mms-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.mms-product img{height:135px}.mms-product-body{padding:.7rem}.mms-product .mms-btn{font-size:.84rem;padding:.55rem .3rem}}

/* v0.2 storefront refresh — identity comes from WordPress General settings. */
.mms-site-header{background:#fffaf3;padding:13px clamp(15px,3vw,45px);box-shadow:0 1px 5px #18291615}
.mms-header-inner{max-width:1450px!important;gap:20px}
.mms-brand{gap:12px!important}
.mms-brand .wp-block-site-title{font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:clamp(1.35rem,2.4vw,2.15rem);margin:0;line-height:1.12}
.mms-brand .wp-block-site-title a{color:#1f4326;text-decoration:none}
.mms-brand .wp-block-site-tagline{margin:3px 0 0;color:#4e5244;font-size:.78rem}
.mms-site-header .wp-block-navigation-item__content{color:#1f4326;text-decoration:none}
.mms-welcome{min-height:310px;background-color:#304826;background-image:linear-gradient(90deg,transparent 0%,#213b23ad 36%,#203e24aa 64%,transparent 100%),var(--mms-hero-image);background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;color:#fff;text-align:center;padding:36px min(36%,410px);box-sizing:border-box}
.mms-welcome-copy{min-width:340px;max-width:700px;text-shadow:0 2px 8px #111b13b0}
.mms-welcome-intro{display:block;font:italic 1.65rem Georgia,serif}
.mms-welcome h1{font:italic 700 clamp(2.1rem,4.3vw,4.2rem)/1.05 Georgia,serif;color:#fff;margin:.25rem 0 .8rem;overflow-wrap:anywhere}
.mms-welcome p{font-size:clamp(1rem,1.4vw,1.25rem);margin:.6rem 0 0;line-height:1.4;color:#fff}
.mms-shop-section{padding:36px 20px 65px}
.mms-featured-title{font:italic 700 clamp(1.7rem,3vw,2.7rem) Georgia,serif;color:#1e4629;margin:0 0 28px}
.mms-product{border:1px solid #e9e4d9;box-shadow:0 2px 7px #152a1312;background:#fffdf9}
.mms-product .mms-price{color:#23492d}
.mms-product .mms-btn{background:#2d542f}
.mms-product .mms-btn:hover{background:#1c3a1e}
.mms-seller-shell{max-width:900px;margin:0 auto;padding:18px}
.mms-seller-shell .mms-panel{margin:0 auto}
.mms-seller-shell .mms-section{box-shadow:0 3px 15px #1112}
.mms-inventory-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.mms-inventory-actions button{font:inherit;border:0;background:#2d542f;color:#fff;padding:8px 11px;border-radius:7px;cursor:pointer}
.mms-inventory-actions button[disabled]{opacity:.45}
@media(max-width:800px){.mms-welcome{padding:34px 20px;background-position:center}.mms-welcome-copy{min-width:0;background:#213a26b8;padding:22px;border-radius:12px}.mms-welcome h1{font-size:clamp(2rem,8vw,3.4rem)}.mms-header-inner{align-items:center!important}.mms-brand .wp-block-site-title{font-size:1.35rem}}
@media(max-width:540px){.mms-welcome{min-height:270px}.mms-welcome-intro{font-size:1.2rem}.mms-welcome-copy{padding:18px}.mms-brand .wp-block-site-logo img{max-width:44px}.mms-brand .wp-block-site-tagline{font-size:.7rem}.mms-shop-section{padding:24px 12px}.mms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v0.3 storefront proportions and safe default store navigation. */
body{overflow-x:clip}
.mms-site-header{padding:10px clamp(14px,3vw,46px);background:#fffbf5}
.mms-site-header .mms-header-inner{width:100%;max-width:1500px!important;margin:0 auto!important;display:flex;justify-content:space-between;align-items:center;column-gap:24px;row-gap:10px}
.mms-site-header .wp-block-shortcode{margin:0!important}
.mms-brand-link{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none!important;color:#244527}
.mms-header-awning,.mms-header-logo{width:65px;height:56px;object-fit:contain;flex-shrink:0}
.mms-brand-words{display:flex;flex-direction:column;min-width:0}
.mms-brand-name{font:italic 700 clamp(1.25rem,2.3vw,2.1rem)/1.13 Georgia,serif;color:#214329}
.mms-brand-tagline{font-size:clamp(.65rem,.85vw,.8rem);line-height:1.35;color:#565a4a;margin-top:2px}
.mms-nav{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(12px,2.5vw,37px)}
.mms-nav a{text-decoration:none;color:#213c25;font-weight:600;font-size:.95rem;white-space:nowrap}
.mms-nav a:hover,.mms-nav a:focus-visible{text-decoration:underline;text-underline-offset:5px}
.mms-nav-list{display:flex;align-items:center;gap:clamp(12px,2.5vw,37px);padding:0;margin:0;list-style:none}
.mms-hero-wrap,.mms-front-main,.mms-hero-wrap>.wp-block-shortcode{margin-block-start:0!important;margin-block-end:0!important;max-width:none!important;width:100%}
.mms-welcome{width:100%;min-height:0;height:clamp(215px,23vw,315px);padding:24px clamp(20px,5vw,60px);background-size:cover;background-position:center;background-repeat:no-repeat;box-sizing:border-box}
.mms-welcome-copy{width:min(46%,640px);max-width:none;min-width:0;text-align:center;padding:0;margin:0;overflow:visible}
.mms-welcome-intro{font-size:clamp(1rem,2.1vw,1.65rem);line-height:1.15}
.mms-welcome h1{font-size:clamp(1.7rem,3.35vw,3.25rem);line-height:1.05;overflow-wrap:normal;word-break:normal;hyphens:none;margin:.25rem 0 .5rem}
.mms-welcome p{font-size:clamp(.8rem,1.28vw,1.1rem);line-height:1.25;margin:.35rem 0 0}
.mms-front-main .mms-shop-section{padding:29px 22px 55px;margin-block-start:0}
.mms-front-main .mms-featured-title{font-size:clamp(1.6rem,2.7vw,2.4rem);margin-bottom:18px}
@media(max-width:850px){.mms-site-header .mms-header-inner{flex-wrap:wrap}.mms-nav{gap:14px}.mms-welcome{height:245px}.mms-welcome-copy{width:min(58%,520px);background:#1e352aba;padding:14px;border-radius:8px}.mms-welcome h1{font-size:clamp(1.6rem,4vw,2.4rem)}}
@media(max-width:560px){.mms-site-header{padding:10px 14px}.mms-header-awning,.mms-header-logo{width:47px;height:43px}.mms-brand-name{font-size:1.25rem}.mms-brand-tagline{font-size:.68rem}.mms-nav,.mms-nav-list{gap:15px}.mms-nav a{font-size:.85rem}.mms-welcome{height:238px;padding:14px;background-position:center}.mms-welcome-copy{width:min(90%,420px);padding:15px 13px;background:#1c322bd4}.mms-welcome h1{font-size:clamp(1.55rem,7vw,2.35rem)}.mms-welcome p{font-size:.83rem}.mms-front-main .mms-shop-section{padding:16px 12px 34px}.mms-front-main .mms-featured-title{margin-bottom:14px}}

/* v0.4: mobile-first storefront polish; WooCommerce inventory remains plugin-owned. */
.mms-site-header{padding:9px clamp(12px,2.8vw,44px)}
.mms-site-header .mms-header-inner{min-height:62px}
.mms-header-awning,.mms-header-logo{width:55px;height:52px}
.mms-brand-name{font-size:clamp(1.22rem,2.15vw,2rem);line-height:1.13}
.mms-brand-tagline{font-size:clamp(.7rem,.9vw,.83rem)}
.mms-welcome{height:clamp(210px,20vw,282px);min-height:0;background-image:linear-gradient(90deg,rgba(17,37,21,.05) 0%,rgba(18,36,23,.22) 24%,rgba(20,39,25,.34) 50%,rgba(18,36,23,.22) 76%,rgba(17,37,21,.05) 100%),var(--mms-hero-image);background-position:center center;background-size:cover;padding:20px clamp(16px,4vw,58px)}
.mms-welcome-copy{width:min(46%,660px);max-width:660px;background:transparent;text-shadow:0 2px 10px rgba(0,0,0,.62)}
.mms-welcome-intro{font-size:clamp(1.06rem,1.8vw,1.55rem)}
.mms-welcome h1{font-size:clamp(1.8rem,3vw,3.05rem);line-height:1.12;margin:.2rem 0 .35rem;overflow-wrap:break-word}
.mms-welcome p{font-size:clamp(.88rem,1.12vw,1.05rem);line-height:1.35;max-width:32rem;margin:.35rem auto 0}
.mms-front-main .mms-shop-section{padding:14px clamp(12px,3vw,44px) 44px}
.mms-front-main .mms-featured-title{font-size:clamp(1.6rem,2.45vw,2.25rem);margin:0 0 12px}
.mms-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.4vw,20px)}
.mms-product{min-width:0;border-radius:13px;overflow:hidden;box-shadow:0 3px 13px rgba(30,46,26,.08)}
.mms-product>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.mms-product>div[aria-hidden]{aspect-ratio:4/3!important;min-height:0}
.mms-product-body{gap:.35rem;padding:clamp(.7rem,1.15vw,1.05rem)}
.mms-product h3{font-size:clamp(.95rem,1.12vw,1.13rem);line-height:1.27}
.mms-product .mms-price{font-size:1.04rem}
.mms-product .mms-btn{font-size:.9rem;line-height:1.2;padding:.65rem .65rem;margin-top:.45rem}
@media(max-width:1050px){.mms-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .mms-welcome{height:220px;background-position:40% center}
 .mms-welcome-copy{width:min(83%,500px);padding:15px 18px;background:rgba(23,45,30,.58);border-radius:10px}
 .mms-welcome h1{font-size:clamp(1.65rem,5.7vw,2.45rem)}
 .mms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mms-site-header .mms-header-inner{flex-wrap:wrap}
}
@media(max-width:520px){
 .mms-site-header{padding:8px 12px}
 .mms-header-awning,.mms-header-logo{width:42px;height:40px}
 .mms-brand-link{gap:8px}
 .mms-brand-name{font-size:clamp(1rem,4.8vw,1.3rem)}
 .mms-brand-tagline{font-size:.67rem}
 .mms-nav a{font-size:.83rem}
 .mms-welcome{height:205px;padding:10px;background-position:35% center}
 .mms-welcome-copy{width:min(95%,390px);padding:13px 11px;background:rgba(22,42,27,.65)}
 .mms-welcome-intro{font-size:1.05rem}
 .mms-welcome h1{font-size:clamp(1.55rem,6.5vw,2.1rem)}
 .mms-welcome p{font-size:.78rem}
 .mms-front-main .mms-shop-section{padding:19px 10px 35px}
 .mms-front-main .mms-featured-title{font-size:1.65rem;margin-bottom:12px}
 .mms-grid{gap:9px}
 .mms-product-body{padding:9px;gap:.3rem}
 .mms-product h3{font-size:.91rem;line-height:1.25}
 .mms-product .mms-price{font-size:.96rem}
 .mms-product .mms-btn{padding:10px 6px;font-size:.8rem}
}
@media(max-width:350px){.mms-grid{grid-template-columns:1fr}.mms-site-header .mms-header-inner{gap:4px}.mms-nav{margin-left:auto}}

/* v0.5: coordinated product-card and detail-page presentation. */
.mms-front-main .mms-featured-title{font-size:clamp(1.5rem,2.35vw,2.2rem);text-align:center;margin:0 0 18px}
.mms-shop-section .wp-block-shortcode{width:100%}
.mms-grid{max-width:1240px;margin:0 auto;gap:clamp(12px,1.6vw,23px)}
.mms-product{background:#fffefa;border:1px solid #e9dfd2;box-shadow:0 3px 14px rgba(40,49,35,.08);transition:box-shadow .15s ease}
.mms-product:hover{box-shadow:0 6px 22px rgba(40,49,35,.13)}
.mms-product-image{display:block;aspect-ratio:4/3;background:#ede4d5;overflow:hidden;text-decoration:none}
.mms-product-image>img{display:block;width:100%;height:100%;object-fit:cover}
.mms-product-image:focus-visible,.mms-product a:focus-visible{outline:3px solid #a36534;outline-offset:-3px}
.mms-image-placeholder{aspect-ratio:4/3;background:linear-gradient(135deg,#f5eddf,#e6d9c5);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;color:#68624f;font-size:.8rem;text-align:center}
.mms-placeholder-icon{font:normal 3rem/1 Georgia,serif;color:#927859;opacity:.85}
.mms-product-body{display:flex;gap:.55rem;flex:1;padding:clamp(12px,1.15vw,17px)}
.mms-product h3{font-size:clamp(1rem,1.2vw,1.17rem);line-height:1.3}
.mms-product h3 a{text-decoration:none;color:#302b25}
.mms-product h3 a:hover{text-decoration:underline}
.mms-product .mms-price{font-weight:750;color:#1f4a2e;font-size:1.1rem}
.mms-product-meta{display:flex;align-items:center;min-height:1.4rem}
.mms-product-badge{display:inline-block;background:#e4efd7;color:#24472a;border-radius:999px;font-weight:700;font-size:.72rem;line-height:1.3;padding:.23rem .65rem}
.mms-product-badge.is-unavailable{background:#f0e4d8;color:#7d4d2a}
.mms-product .mms-btn{display:block;margin-top:auto;padding:.7rem .55rem;font-weight:650;text-align:center}
.mms-detail{width:min(1120px,100%);max-width:1120px;margin:0 auto;padding:clamp(4px,1vw,16px) 0 32px;box-sizing:border-box}
.mms-detail-back{display:inline-block;margin:0 0 20px;color:#31583c;font-weight:650;text-decoration:none}
.mms-detail-back:hover{text-decoration:underline}
.mms-detail-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4.5vw,60px);align-items:start}
.mms-detail-gallery{min-width:0}
.mms-detail-main-image{display:flex;align-items:center;justify-content:center;width:100%;min-height:220px;max-height:650px;border-radius:16px;overflow:hidden;background:#f0e9df;border:1px solid #e8dfd2;box-sizing:border-box}
.mms-detail-photo{display:block;width:100%;height:auto;max-height:650px;object-fit:contain}
.mms-detail-no-photo .mms-image-placeholder{width:100%;min-height:290px}
.mms-detail-thumbnails{display:flex;flex-wrap:wrap;gap:10px;margin-top:13px}
.mms-detail-thumbnails a{display:block;width:75px;height:75px;border:1px solid #ded5c8;border-radius:8px;overflow:hidden;background:white}
.mms-detail-thumbnails a:focus-visible{outline:3px solid #31583c;outline-offset:2px}
.mms-detail-thumbnails img{width:100%;height:100%;object-fit:cover}
.mms-detail-info{min-width:0;background:#fffefa;padding:clamp(20px,2.8vw,36px);border-radius:16px;border:1px solid #e8dfd2;box-shadow:0 4px 16px rgba(27,34,22,.06)}
.mms-detail-name{font:700 clamp(1.7rem,2.7vw,2.6rem)/1.12 Georgia,serif;color:#283d2b;margin:0 0 12px;overflow-wrap:break-word}
.mms-detail-price{font-size:clamp(1.4rem,2.1vw,1.85rem);font-weight:750;color:#245034;margin:0 0 14px}
.mms-detail-status{display:inline-flex;border-radius:999px;background:#e4efd7;color:#24472a;padding:5px 13px;font-size:.78rem;font-weight:750;letter-spacing:.02em;margin:0 0 16px}
.mms-detail-status.is-unavailable{background:#f0e4d8;color:#7d4d2a}
.mms-detail-description{line-height:1.6;color:#4e4a42;margin:0 0 18px}
.mms-detail-description p{margin:.2rem 0 .9rem}
.mms-detail-inquiry{border-top:1px solid #e7ded3;padding-top:18px;margin-top:18px}
.mms-detail-inquiry h2{font:700 1.2rem Georgia,serif;color:#25482d;margin:0 0 6px}
.mms-detail-inquiry>p{font-size:.92rem;color:#5a5b54;margin:.25rem 0 1rem}
.mms-detail-inquiry form{display:grid;gap:12px}
.mms-detail-inquiry form p{margin:0}
.mms-detail-inquiry label{display:block;font-size:.85rem;font-weight:650;color:#373d31}
.mms-detail-inquiry input,.mms-detail-inquiry textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #c9c6bc;background:#fff;border-radius:8px;padding:11px;font:inherit;margin-top:5px}
.mms-detail-inquiry .mms-btn{width:100%;font-weight:700;min-height:44px}
.mms-detail-unavailable{padding:12px 15px;border-radius:8px;background:#f5ece5;color:#80502c}
.mms-detail-buy{display:block;text-align:center;margin:10px 0}
/* Restrict the existing centre-overlay to a subtle gradient on mobile. */
@media(max-width:760px){
 .mms-detail-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .mms-detail-info{padding:20px}
 .mms-detail-main-image{max-height:520px}
 .mms-welcome-copy{background:rgba(20,38,25,.22);box-shadow:none}
}
@media(max-width:520px){
 .mms-site-header .mms-header-inner{flex-wrap:nowrap;gap:8px}
 .mms-brand-link{min-width:0;flex:1}
 .mms-brand-words{min-width:0}
 .mms-brand-name{font-size:clamp(.95rem,4vw,1.17rem);line-height:1.13;overflow-wrap:break-word}
 .mms-brand-tagline{font-size:.64rem}
 .mms-nav{flex-shrink:0}
 .mms-welcome{height:205px}
 .mms-welcome-copy{background:rgba(19,41,28,.22);width:100%;max-width:340px;padding:10px 8px;text-shadow:0 2px 8px rgba(7,19,12,.82)}
 .mms-welcome h1{font-size:clamp(1.4rem,5.7vw,1.95rem);line-height:1.12}
 .mms-welcome p{font-size:.8rem}
 .mms-detail{padding:0 0 20px}
 .mms-detail-back{margin-bottom:12px}
 .mms-detail-main-image{max-height:420px}
 .mms-detail-info{padding:17px}
 .mms-detail-name{font-size:1.75rem}
 .mms-detail-thumbnails a{width:64px;height:64px}
 .mms-product-body{padding:10px;gap:.42rem}
 .mms-product h3{font-size:.91rem}
 .mms-product .mms-btn{font-size:.78rem;min-height:42px;padding:10px 5px}
}
@media(max-width:360px){.mms-grid{grid-template-columns:1fr}.mms-product h3{font-size:1.08rem}}
.mms-detail-thumbnails a[aria-current="true"]{outline:3px solid #31583c;outline-offset:2px}

/* v0.6 — live merchant chalkboard, chalk texture and mobile announcement. */
.mms-welcome{position:relative;isolation:isolate}
.mms-welcome-copy{position:relative;z-index:1}
.mms-chalkboard{position:absolute;z-index:2;top:14%;right:calc(5.2% + 40px);width:20.8%;height:67%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;text-align:left;padding:0 14px 0 20px;pointer-events:none;transform:rotate(-.6deg)}
.mms-chalkboard-text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:.26em;width:100%;min-width:0;max-width:100%;color:#edece0;font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;font-style:italic;font-weight:600;font-size:clamp(.8rem,1.15vw,1.4rem);line-height:1.3;letter-spacing:.008em;text-align:left;text-shadow:0 0 .65px #fff,1px 1px 1px #f9f8ed55,-1px 0 1px #f9f8ed44,0 0 6px #f4f0dc22;opacity:.95}
.mms-chalk-line{display:block;width:100%;overflow-wrap:break-word;word-break:normal;transform:rotate(-.35deg)}
.mms-chalk-line:nth-child(even){transform:rotate(.35deg)}
.mms-mobile-announcement{display:none}
@media(max-width:1100px){
 .mms-chalkboard{display:none}
 .mms-mobile-announcement{display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;padding:10px 16px;background:#304b35;color:#fff7e6;font-size:.88rem;line-height:1.4}
 .mms-mobile-announcement-icon{font-size:1.2rem;opacity:.85;flex-shrink:0}
}
@media(max-width:520px){.mms-mobile-announcement{font-size:.77rem;padding:9px 12px}}
