/* MessageCard Boutique v2.2 — category and product-list presentation only.
   Requires v2.0 theme, retains Zen Cart's core product listing, sorting, pagination and buy-now logic. */
body.tpl_messagecard:has(.mc22-catalog) #mainWrapper,
body.tpl_messagecard:has(.mc22-catalog) #contentMainWrapper { width:100%!important;max-width:none!important;margin:0!important;padding:0!important; }
body.tpl_messagecard:has(.mc22-catalog) #contentMainWrapper>div:has(> .mc22-catalog) { width:100%!important;float:none!important;max-width:none!important;padding:0!important;margin:0!important;min-width:0!important; }
body.tpl_messagecard:has(.mc22-catalog) #contentMainWrapper>div:not(:has(.mc22-catalog)) { display:none!important; }
body.tpl_messagecard .mc22-catalog {
 --mc22-ink:#43342f;--mc22-rose:#a76f64;--mc22-edge:#e9ddd5;--mc22-milk:#fbf8f5;
 font-family:var(--mc2-body,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif);
 box-sizing:border-box;width:100%!important;max-width:none!important;margin:0 auto!important;padding:0!important;
 font-size:14px;line-height:1.85;color:var(--mc22-ink);background:#fff;
}
body.tpl_messagecard .mc22-catalog *,body.tpl_messagecard .mc22-catalog *::before,body.tpl_messagecard .mc22-catalog *::after {box-sizing:border-box}
body.tpl_messagecard .mc22-catalog a {color:#745045;text-decoration:none}
body.tpl_messagecard .mc22-catalog a:hover {color:#9d6657}
body.tpl_messagecard:has(.mc22-catalog) #navBreadCrumb {max-width:1270px;padding:14px 24px!important;margin:0 auto!important;font-size:11px;color:#84756e}
body.tpl_messagecard .mc22-kicker {font:700 11px/1.7 Georgia,serif;letter-spacing:.24em;color:#b58878;padding:0;margin:0 0 8px}
body.tpl_messagecard .mc22-catalog-hero {
 min-height:275px;padding:66px max(30px,calc((100vw - 1210px)/2)) 55px!important;
 background:linear-gradient(90deg,#f7f0ea 0%,#f8f1ec 43%,rgba(248,241,235,.9) 62%,rgba(248,241,235,.2) 100%),url('../images/v20/hero_cards.webp') center right/auto 100% no-repeat,#f8f0ea;
 display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
}
body.tpl_messagecard .mc22-catalog-hero h1 {margin:0 0 7px;padding:0;font:500 clamp(29px,3.7vw,44px)/1.5 var(--mc2-serif,'Yu Mincho',serif);color:#774a40;letter-spacing:.055em}
body.tpl_messagecard .mc22-hero-lead,body.tpl_messagecard .mc22-hero-lead p {padding:0!important;margin:0!important;color:#6d5e58;font-size:13px;line-height:1.9;max-width:580px}
body.tpl_messagecard .mc22-nav {max-width:1300px;padding:64px 30px 60px;margin:0 auto}
body.tpl_messagecard .mc22-nav-head{text-align:center;margin:0 0 27px}
body.tpl_messagecard .mc22-nav-head h2,body.tpl_messagecard .mc22-results-heading h2 {font:500 clamp(23px,2.5vw,31px)/1.5 var(--mc2-serif,'Yu Mincho',serif);letter-spacing:.06em;margin:0;color:#362b29}
body.tpl_messagecard .mc22-nav-head p{margin:5px 0 0;padding:0;font-size:12px;color:#8b7d75}
body.tpl_messagecard .mc22-nav-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:stretch}
body.tpl_messagecard .mc22-nav-item{display:block;min-width:0;background:#f8f2ef;border:1px solid #eee2da;border-radius:11px;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
body.tpl_messagecard .mc22-nav-item:hover{transform:translateY(-3px);box-shadow:0 11px 20px rgba(79,54,42,.13)}
body.tpl_messagecard .mc22-nav-item.is-current{border:2px solid #b98274;background:#fff8f4}
body.tpl_messagecard .mc22-nav-art{display:flex;width:100%;height:133px;background:#f2e5df;align-items:center;justify-content:center;overflow:hidden}
body.tpl_messagecard .mc22-nav-art img{width:100%;height:100%;object-fit:cover;display:block}
body.tpl_messagecard .mc22-nav-art .mc22-all-symbol{font:normal 50px/1 Georgia,serif;color:#c49486}
body.tpl_messagecard .mc22-nav-all .mc22-nav-art{background:linear-gradient(135deg,#f1ddd5,#f3ede5)}
body.tpl_messagecard .mc22-nav-label{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;padding:9px 11px;color:#4c3b35;font:600 13px/1.6 var(--mc2-serif,'Yu Mincho',serif)}
body.tpl_messagecard .mc22-nav-label span{font:18px/1 Georgia,serif;color:#b98576}
body.tpl_messagecard .mc22-empty-category-note{text-align:center;font-size:12px;margin:17px 0 0;color:#82736d}
body.tpl_messagecard .mc22-catalog-results{background:#faf7f4;padding:64px max(26px,calc((100vw - 1250px)/2)) 88px;margin:0!important;min-height:250px;overflow:visible}
body.tpl_messagecard .mc22-results-heading{display:flex;justify-content:space-between;align-items:end;gap:22px;margin-bottom:29px}
body.tpl_messagecard .mc22-results-heading>div:first-child{min-width:220px}
body.tpl_messagecard .mc22-catalog #filter-wrapper {margin:0!important;padding:0!important;border:none!important;background:none!important;float:none!important;display:flex!important;align-items:center;justify-content:flex-end;gap:9px;min-height:40px;color:#76645e}
body.tpl_messagecard .mc22-catalog #filter-wrapper form{display:inline-flex!important;align-items:center;gap:5px;flex-wrap:wrap}
body.tpl_messagecard .mc22-catalog #filter-wrapper label{float:none!important;margin:0!important;padding:0;font-size:12px;width:auto!important}
body.tpl_messagecard .mc22-catalog #filter-wrapper select{width:auto!important;max-width:230px!important;height:38px!important;min-width:115px;margin:0!important;padding:4px 26px 4px 12px;border:1px solid #d9c6bc;border-radius:6px;background:white;color:#594941;font-size:12px}
body.tpl_messagecard .mc22-category-banner{text-align:center;margin:0 auto;max-width:1240px;padding:0 26px 35px}
body.tpl_messagecard .mc22-category-banner img{height:auto;max-width:100%;max-height:280px;object-fit:cover;border-radius:12px}
/* Zen Cart's stock tpl_modules_product_listing + fluid/columnar markup. */
body.tpl_messagecard .mc22-catalog #productListing {width:100%!important;float:none!important;margin:0!important;padding:0!important;background:transparent!important;clear:both}
body.tpl_messagecard .mc22-catalog #productListing .row {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;column-gap:19px;row-gap:25px;float:none!important;margin:0!important;width:100%!important;justify-content:stretch!important;align-items:stretch!important}
body.tpl_messagecard .mc22-catalog #productListing .row::before,body.tpl_messagecard .mc22-catalog #productListing .row::after{display:none!important}
body.tpl_messagecard .mc22-catalog #productListing .centerBoxContentsProducts{
 background:white!important;width:100%!important;min-width:0!important;max-width:none!important;
 border:1px solid #eddfd6;border-radius:12px;box-shadow:0 3px 15px rgba(66,43,34,.045);
 overflow:hidden;display:flex!important;float:none!important;flex-direction:column;align-items:stretch;justify-content:flex-start;
 margin:0!important;padding:14px!important;text-align:left!important;font-size:13px;color:#966459;line-height:1.8;
}
body.tpl_messagecard .mc22-catalog #productListing .centerBoxContentsProducts > br{display:none!important}
body.tpl_messagecard .mc22-catalog #productListing .centerBoxContentsProducts a.product_listing_image_link{
 display:flex!important;justify-content:center;align-items:center;width:100%!important;max-width:none!important;height:205px;
 background:#f8f3ef;border-radius:8px;overflow:hidden;margin:0 0 13px;text-decoration:none
}
body.tpl_messagecard .mc22-catalog #productListing .listingProductImage{width:100%!important;height:100%!important;max-height:100%!important;max-width:100%!important;object-fit:contain;float:none!important;display:block!important;margin:0!important;border:none!important;transition:transform .2s ease}
body.tpl_messagecard .mc22-catalog #productListing a.product_listing_image_link:hover img{transform:scale(1.045)}
body.tpl_messagecard .mc22-catalog #productListing .itemTitle{font:600 14px/1.65 var(--mc2-serif,'Yu Mincho',serif);margin:2px 0 10px!important;padding:0!important;color:#493832;text-align:left!important}
body.tpl_messagecard .mc22-catalog #productListing .itemTitle a{color:inherit}
body.tpl_messagecard .mc22-catalog #productListing .listingDescription {color:#82746d;font:12px/1.7 var(--mc2-body,sans-serif);margin-bottom:8px}
body.tpl_messagecard .mc22-catalog #productListing .moreinfoLink,
body.tpl_messagecard .mc22-catalog #productListing a.list-more{display:block!important;float:none!important;width:100%!important;margin:12px auto 0!important;padding:9px 11px!important;border-radius:40px;border:1px solid #be988a;color:#775448!important;background:white;text-align:center;text-decoration:none;font-weight:650;font-size:12px;line-height:1.5}
body.tpl_messagecard .mc22-catalog #productListing .moreinfoLink:hover{background:#f5ebe5}
body.tpl_messagecard .mc22-catalog #productListing input[type=text],body.tpl_messagecard .mc22-catalog #productListing input[type=number]{max-width:75px!important;min-width:0!important;text-align:center}
body.tpl_messagecard .mc22-catalog #productListing input[type=image],body.tpl_messagecard .mc22-catalog #productListing .listingBuyNowButton{width:auto!important;max-width:95%!important;height:auto!important;max-height:48px;display:inline-block;margin:9px 0 4px;cursor:pointer}
body.tpl_messagecard .mc22-catalog #productListing form{display:block!important;margin:8px 0}
body.tpl_messagecard .mc22-catalog #productListing .prod-list-wrap {display:flex!important;align-items:center!important;justify-content:space-between;gap:18px;padding:22px 0 24px!important;margin:0!important;background:transparent!important;min-height:0!important}
body.tpl_messagecard .mc22-catalog #productListing .navSplitPagesLinks,body.tpl_messagecard .mc22-catalog #productListing .navSplitPagesResult{float:none!important;width:auto!important;text-align:left!important;min-width:0;font-size:12px;color:#766861}
body.tpl_messagecard .mc22-catalog #productListing .navSplitPagesLinks a{display:inline-block;border:1px solid #dfc8bc;background:#fff;border-radius:6px;padding:4px 8px;text-decoration:none;color:#8a5d4e;margin:2px}
body.tpl_messagecard .mc22-catalog #productListing .navSplitPagesLinks a:hover{background:#f1e3dc}
/* Native subcategory grid. */
body.tpl_messagecard .mc22-catalog .categoryListBoxContents{float:none!important;display:inline-block!important;min-width:160px;margin:8px!important;padding:14px!important;border:1px solid #ecdfd8;border-radius:12px;background:#fff;vertical-align:top;max-width:300px;color:#5f483f;font:600 14px/1.8 var(--mc2-serif,'Yu Mincho',serif)}
body.tpl_messagecard .mc22-catalog .categoryListBoxContents a{display:block;color:#5a453c}
body.tpl_messagecard .mc22-catalog .categoryListBoxContents img{max-width:100%!important;height:auto;object-fit:contain;border-radius:8px;background:#f6eeea}
body.tpl_messagecard .mc22-catalog #indexCategoriesMainContent{max-width:1200px;margin:25px auto;padding:20px}
body.tpl_messagecard .mc22-catalog .greeting{max-width:1200px;margin:15px auto}
body.tpl_messagecard .mc22-catalog a:focus-visible,body.tpl_messagecard .mc22-catalog select:focus-visible{outline:3px solid #be897d;outline-offset:3px}
@media(max-width:1100px){
 body.tpl_messagecard .mc22-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.tpl_messagecard .mc22-nav-art{height:154px}
 body.tpl_messagecard .mc22-catalog #productListing .row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:740px){
 body.tpl_messagecard .mc22-catalog-hero{min-height:210px;padding:47px 22px 41px!important;background:linear-gradient(90deg,#f8f0ea 0%,rgba(248,241,235,.93) 72%,rgba(248,241,235,.66) 100%),url('../images/v20/hero_cards.webp') center right/auto 100% no-repeat,#f8f0ea}
 body.tpl_messagecard .mc22-catalog-hero h1{font-size:30px}
 body.tpl_messagecard .mc22-nav{padding:46px 17px}
 body.tpl_messagecard .mc22-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.tpl_messagecard .mc22-nav-art{height:124px}
 body.tpl_messagecard .mc22-nav-label{font-size:12px;padding:8px}
 body.tpl_messagecard .mc22-catalog-results{padding:46px 17px 65px}
 body.tpl_messagecard .mc22-results-heading{display:block;margin-bottom:24px}
 body.tpl_messagecard .mc22-catalog #filter-wrapper{justify-content:flex-start!important;flex-wrap:wrap!important;margin:18px 0 0!important}
 body.tpl_messagecard .mc22-catalog #productListing .row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
 body.tpl_messagecard .mc22-catalog #productListing .centerBoxContentsProducts{padding:9px!important;border-radius:9px;font-size:12px}
 body.tpl_messagecard .mc22-catalog #productListing .centerBoxContentsProducts a.product_listing_image_link{height:157px;margin-bottom:11px}
 body.tpl_messagecard .mc22-catalog #productListing .itemTitle{font-size:12px}
 body.tpl_messagecard .mc22-catalog #productListing .prod-list-wrap{display:block!important}
 body.tpl_messagecard .mc22-catalog #productListing .navSplitPagesLinks,body.tpl_messagecard .mc22-catalog #productListing .navSplitPagesResult{float:none!important;width:100%!important;text-align:left!important}
}
@media(max-width:370px){
 body.tpl_messagecard .mc22-catalog #productListing .row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.tpl_messagecard .mc22-catalog #productListing .centerBoxContentsProducts a.product_listing_image_link{height:135px}
 body.tpl_messagecard .mc22-nav-art{height:100px}
}
