/* Casa Floresta · 2026-11 premium catalogue components
   Only product cards, featured carousel and enquiry basket. Never changes header geometry,
   Hero image slider, category cards or WooCommerce payment processing. */
:is(.mpcf-home,.mpcfp-market) .mpcf-header-tools .cf-basket-trigger{
  position:relative;display:grid;place-items:center;flex:0 0 38px;
  box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;
  padding:0!important;margin:0!important;border:0!important;border-radius:50%;
  background:transparent!important;color:#17452b!important;cursor:pointer;
  transition:color .2s ease,background-color .2s ease!important;
}
:is(.mpcf-home,.mpcfp-market) .cf-basket-trigger:hover,
:is(.mpcf-home,.mpcfp-market) .cf-basket-trigger:focus-visible{color:#26812e!important;background:#eef5ee!important}
:is(.mpcf-home,.mpcfp-market) .cf-basket-trigger svg{display:block;width:21px;height:21px;flex:none}
:is(.mpcf-home,.mpcfp-market) .cf-basket-badge{position:absolute;top:-2px;right:-3px;min-width:17px;height:17px;display:grid;place-items:center;
  padding:0 3px;background:#2d9133;color:#fff;font:700 10px/1 Arial,Helvetica,sans-serif;border:2px solid #fff;border-radius:20px}
[hidden].cf-basket-overlay,[hidden].cf-basket-empty,[hidden].cf-basket-items,[hidden].cf-basket-whatsapp,[hidden].cf-basket-clear,
.cf-basket-badge[hidden]{display:none!important}
/* Featured slider is fully laid out by CSS before first paint. Without JS, native swipe still works. */
.mpcf-home .cf-featured-carousel{position:relative;min-width:0}
.mpcf-home .cf-featured-controls{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin:0 0 16px}
.mpcf-home .cf-featured-position{font:700 12px Arial,Helvetica,sans-serif;color:#65816b;letter-spacing:.035em;margin-right:7px;font-variant-numeric:tabular-nums}
.mpcf-home .cf-featured-arrow{width:38px;height:38px;min-width:38px;display:grid;place-items:center;border-radius:50%;
  border:1px solid #d7e5d8;background:#fff;color:#17452b;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.mpcf-home .cf-featured-arrow:hover:not(:disabled){border-color:#226f34;color:#fff;background:#226f34}
.mpcf-home .cf-featured-arrow:disabled{opacity:.28;cursor:default}
.mpcf-home .cf-featured-arrow svg{display:block}
.mpcf-home .mpcf-featured-grid{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;
  gap:18px!important;align-items:stretch;overflow-x:auto;overflow-y:hidden;max-width:100%;
  scroll-snap-type:x mandatory;scroll-padding-inline:3px;overscroll-behavior-inline:contain;
  scrollbar-width:none;padding:3px 3px 18px;margin:0!important;-webkit-overflow-scrolling:touch}
.mpcf-home .mpcf-featured-grid::-webkit-scrollbar{display:none}
.mpcf-home .mpcf-featured-grid:focus-visible{outline:2px solid #2b8d38;outline-offset:2px}
.mpcf-home .mpcf-featured-grid>.mpcf-product{flex:0 0 clamp(220px,29%,352px)!important;scroll-snap-align:start;
  min-width:0;max-width:calc(100% - 6px);height:auto}
.mpcf-home .cf-featured-progress{height:3px;width:100%;background:#dfeadf;border-radius:5px;overflow:hidden}
.mpcf-home .cf-featured-progress>span{display:block;background:#319130;height:100%;width:20%;border-radius:5px;transition:width .2s ease}
/* Shared product-media overlay and subtle e-commerce hover. Never targets divisões. */
:is(.mpcf-home,.mpcfp-market) .cf-product-media{position:relative;min-width:0;overflow:hidden;background:#f5f5f0}
.mpcf-home .mpcf-product .cf-product-media .mpcf-product-image{width:100%;display:block;overflow:hidden}
.mpcfp-market .mpcfp-product-card .cf-product-media>.mpcfp-product-image{display:block;width:100%;}
:is(.mpcf-home,.mpcfp-market) .cf-product-media img{transition:transform .4s cubic-bezier(.2,.7,.2,1)!important}
:is(.mpcf-home,.mpcfp-market) :is(.mpcf-product,.mpcfp-product-card){border-radius:9px!important;overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important}
:is(.mpcf-home,.mpcfp-market) :is(.mpcf-product,.mpcfp-product-card):hover{transform:translateY(-3px)!important;
  box-shadow:0 12px 28px rgba(21,66,35,.105)!important;border-color:#c0d7be!important}
:is(.mpcf-home,.mpcfp-market) :is(.mpcf-product,.mpcfp-product-card):hover .cf-product-media img{transform:scale(1.035)!important}
:is(.mpcf-home,.mpcfp-market) .cf-card-cart{position:absolute;z-index:3;top:12px;right:12px;
  width:43px;height:43px;display:grid;place-items:center;padding:0!important;
  background:rgba(255,255,255,.97)!important;color:#17452b!important;border:1px solid #d9e7d7!important;
  border-radius:50%!important;box-shadow:0 3px 13px rgba(12,37,18,.12);cursor:pointer;
  opacity:0;transform:translateY(6px);transition:opacity .2s ease,transform .2s ease,background-color .2s ease,color .2s ease!important}
:is(.mpcf-home,.mpcfp-market) .cf-card-cart svg{display:block;width:20px;height:20px;pointer-events:none}
:is(.mpcf-home,.mpcfp-market) .cf-product-media:hover .cf-card-cart,
:is(.mpcf-home,.mpcfp-market) .cf-product-media:focus-within .cf-card-cart{opacity:1;transform:none}
:is(.mpcf-home,.mpcfp-market) .cf-card-cart:hover,
:is(.mpcf-home,.mpcfp-market) .cf-card-cart:focus-visible{color:white!important;background:#258332!important;border-color:#258332!important;opacity:1;transform:none}
:is(.mpcf-home,.mpcfp-market) :is(.cf-card-cart,.cf-featured-arrow,.cf-basket-trigger):focus-visible{outline:3px solid #75b47c!important;outline-offset:3px}
/* Single product request list button stays alongside existing WhatsApp and custom-order actions. */
.mpcfp-commerce .cf-single-basket-action{display:inline-flex;align-items:center;gap:9px;color:#17452b;font:700 12px Arial,Helvetica,sans-serif}
.mpcfp-commerce .cf-single-basket-action .cf-card-cart{position:static;opacity:1;transform:none;background:#fff!important}
.mpcfp-commerce .cf-single-basket-action .cf-card-cart:hover{background:#258332!important}
/* Accessible request drawer: deliberately not WooCommerce checkout. */
body.cf-basket-open{overflow:hidden!important}
.cf-basket-overlay{position:fixed;z-index:100010;inset:0;display:flex;align-items:stretch;justify-content:flex-end;
  background:rgba(7,33,16,.62);animation:cf-overlay-in .18s ease both}
.cf-basket-panel{box-sizing:border-box;width:min(455px,100%);height:100%;display:flex;flex-direction:column;
  padding:clamp(22px,4vw,34px);background:#fff;color:#163b29;box-shadow:-12px 0 32px rgba(0,0,0,.12);
  font-family:Arial,Helvetica,sans-serif;overflow-y:auto;animation:cf-panel-in .24s ease both}
.cf-basket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #e5eae3;padding-bottom:20px}
.cf-basket-eyebrow{display:block;margin:0 0 10px;color:#2b8d37;letter-spacing:.17em;font-size:10px;font-weight:800}
.cf-basket-head h2{font:800 clamp(24px,3vw,29px)/1.15 Arial,Helvetica,sans-serif;color:#173e29;margin:0}
.cf-basket-close{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:50%;border:1px solid #dce6dc;background:#f6faf5;color:#204d31;
  cursor:pointer;font:300 29px/1 Arial,Helvetica,sans-serif}
.cf-basket-close:hover,.cf-basket-close:focus-visible{background:#e5f0e4}
.cf-basket-help{font-size:13px;line-height:1.6;color:#617168;margin:20px 0 12px}
.cf-basket-items{padding:0;margin:10px 0 20px;list-style:none;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.cf-basket-item{border:1px solid #e4eae3;border-radius:8px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.cf-basket-item-info{min-width:0}.cf-basket-item-info a{color:#164229!important;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none!important}
.cf-basket-item-info small{display:block;color:#778278;font-size:11px;margin-top:4px}
.cf-basket-remove,.cf-basket-clear{border:0;background:none;color:#526e59;cursor:pointer;font:700 12px Arial,Helvetica,sans-serif;text-decoration:underline}
.cf-basket-remove:hover,.cf-basket-clear:hover{color:#1f8b33}
.cf-basket-empty{border:1px dashed #c7d8c9;border-radius:8px;padding:20px;color:#637669;font-size:14px;line-height:1.5}
.cf-basket-foot{display:flex;flex-direction:column;gap:13px;margin-top:auto;padding-top:18px;border-top:1px solid #e4ebe3}
.cf-basket-whatsapp{display:flex;align-items:center;justify-content:center;text-align:center;padding:15px 20px;border-radius:6px;
  background:#268c30;color:white!important;font:700 14px Arial,Helvetica,sans-serif;text-decoration:none!important}
.cf-basket-whatsapp:hover,.cf-basket-whatsapp:focus-visible{background:#196b25;color:white!important}
.cf-basket-clear{align-self:center;padding:7px 12px}
@keyframes cf-overlay-in{from{opacity:0}to{opacity:1}}
@keyframes cf-panel-in{from{transform:translateX(16px);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(max-width:1000px){.mpcf-home .mpcf-featured-grid>.mpcf-product{flex-basis:clamp(210px,37%,320px)!important}}
@media(max-width:700px){.mpcf-home .mpcf-featured-grid>.mpcf-product{flex-basis:78%!important}
  :is(.mpcf-home,.mpcfp-market) .cf-card-cart{opacity:1;transform:none;width:40px;height:40px;top:9px;right:9px}
  :is(.mpcf-home,.mpcfp-market) .mpcf-header-tools .cf-basket-trigger{width:35px;height:35px;min-width:35px;min-height:35px;flex-basis:35px}
}
@media(max-width:380px){.mpcf-home .mpcf-featured-grid>.mpcf-product{flex-basis:86%!important}
  :is(.mpcf-home,.mpcfp-market) .mpcf-brand .mpcf-official-logo{max-width:130px!important}
  :is(.mpcf-home,.mpcfp-market) .mpcf-header-tools{gap:0!important}
}
@media(prefers-reduced-motion:reduce){.cf-basket-overlay,.cf-basket-panel{animation:none}
 :is(.mpcf-home,.mpcfp-market) :is(.mpcf-product,.mpcfp-product-card,.cf-card-cart,.cf-featured-arrow,.cf-basket-trigger) {transition:none!important}
 :is(.mpcf-home,.mpcfp-market) .cf-product-media img{transition:none!important}
 .mpcf-home .mpcf-featured-grid{scroll-behavior:auto!important}
}


/* Casa Floresta: strict green cart controls (override Astra/WooCommerce/global button hovers). */
body .cf-basket-overlay .cf-basket-panel button.cf-basket-close {
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  flex:0 0 42px!important;inline-size:42px!important;block-size:42px!important;
  min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;
  aspect-ratio:1/1!important;margin:0!important;padding:0!important;
  border:1px solid #d6e6d8!important;border-radius:50%!important;
  background:#f3f8f2!important;color:#205833!important;
  box-shadow:none!important;filter:none!important;transform:none!important;
  cursor:pointer!important;line-height:1!important;appearance:none!important;
}
body .cf-basket-overlay .cf-basket-panel button.cf-basket-close:hover,
body .cf-basket-overlay .cf-basket-panel button.cf-basket-close:focus-visible {
  background:#e3f1e2!important;border-color:#8dbf91!important;color:#16682a!important;
  box-shadow:none!important;transform:none!important;
}
.cf-basket-close svg{display:block!important;inline-size:19px!important;block-size:19px!important;pointer-events:none}
body .cf-basket-overlay .cf-basket-panel button.cf-basket-clear,
body .cf-basket-overlay .cf-basket-panel button.cf-basket-remove{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;min-height:34px;padding:7px 10px!important;
  border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;
  color:#476d52!important;text-decoration:underline!important;text-underline-offset:3px;
  font:700 12px/1.3 Arial,Helvetica,sans-serif!important;
  box-shadow:none!important;filter:none!important;transform:none!important;cursor:pointer!important;
}
body .cf-basket-overlay .cf-basket-panel button.cf-basket-clear:hover,
body .cf-basket-overlay .cf-basket-panel button.cf-basket-clear:focus-visible,
body .cf-basket-overlay .cf-basket-panel button.cf-basket-remove:hover,
body .cf-basket-overlay .cf-basket-panel button.cf-basket-remove:focus-visible{
  background:#eaf4e9!important;border-color:#d2e5d2!important;color:#1e7335!important;
  box-shadow:none!important;transform:none!important;
}
body .cf-basket-overlay .cf-basket-panel :is(.cf-basket-clear,.cf-basket-close,.cf-basket-remove):focus-visible{
  outline:2px solid #29933b!important;outline-offset:3px!important;
}
.cf-basket-item{display:grid!important;grid-template-columns:68px minmax(0,1fr) auto!important;
  align-items:center!important;column-gap:12px!important;padding:12px!important;min-width:0}
.cf-basket-thumb{box-sizing:border-box;display:block;overflow:hidden;position:relative;
  inline-size:68px;block-size:68px;min-inline-size:68px;border-radius:6px;
  border:1px solid #e5eae1;background:#f0f5ed}
.cf-basket-thumb-image{display:block;inline-size:100%!important;block-size:100%!important;
  object-fit:cover!important;object-position:center;background:#f0f5ed;border-radius:0!important}
.cf-basket-thumb--empty:before{content:'';position:absolute;inset:23px;border:1.6px solid #9db8a0;border-radius:4px}
.cf-basket-thumb--empty:after{content:'';position:absolute;inline-size:12px;block-size:12px;
  top:27px;left:27px;border-radius:50%;background:#b2cbb4}
.cf-basket-item-info{min-width:0;overflow-wrap:anywhere}
.cf-basket-item-info a{display:block!important;font-size:13px!important;line-height:1.4!important}
.cf-basket-item .cf-basket-remove{flex-shrink:0}
@media(max-width:430px){
  .cf-basket-item{grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important;padding:10px!important}
  .cf-basket-thumb{inline-size:58px;block-size:58px;min-inline-size:58px}
  .cf-basket-item .cf-basket-remove{grid-column:2;justify-self:start}
}

/* Hidden remains authoritative despite theme and button-reset display rules. */
body .cf-basket-overlay .cf-basket-panel button.cf-basket-clear[hidden],
body .cf-basket-overlay .cf-basket-panel button.cf-basket-remove[hidden]{display:none!important}

/* 0.5.2: catalog returns to the approved compact 0.4.8 cards. Only price shade and order badge change. */
.mpcfp-market .mpcfp-product-card .mpcfp-price,.mpcfp-market .mpcfp-product-card .mpcfp-price .amount{color:#2f854f!important}
.mpcfp-market .mpcfp-product-card .cf-made-to-order{display:inline-flex;align-self:flex-start;margin:2px 0 3px;padding:3px 6px;border:1px solid #d9e9d6;background:#f1f7ee;border-radius:3px;font:600 10px/1.35 Arial,Helvetica,sans-serif;color:#397c4a}

/* Preserve the approved contact icon alignment after removing the experimental card CSS. */
.mpcfp-market .cf-footer-contact{display:flex!important;gap:9px!important;align-items:flex-start!important;min-width:0;margin-bottom:11px!important;line-height:1.5!important;color:inherit!important}
.mpcfp-market .cf-footer-contact .cf-contact-icon{flex:0 0 16px;display:block!important;width:16px!important;height:16px!important;margin-top:2px;color:#d0e8d4}
.mpcfp-market .cf-footer-contact span{min-width:0;overflow-wrap:anywhere}
.mpcfp-market .mpcf-utility-contacts .cf-contact-icon{display:inline-block!important;width:14px!important;height:14px!important;flex:none;vertical-align:middle}
.mpcfp-market .mpcf-utility-contacts a.cf-utility-phone{display:inline-flex!important;align-items:center;gap:7px;white-space:nowrap}

/* Single-product price uses the same restrained light green as the cards. */
.mpcfp-commerce-product div.product .summary .price,.mpcfp-commerce-product div.product .summary .price .amount{color:#2f854f!important}

/* v0.5.3 — Catalogue-only UI polish. Home remains untouched. */
.mpcfp-market .mpcfp-product-card a.mpcfp-product-link{
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
  width:100%;min-height:39px;margin-top:auto;padding:9px 12px;
  background:#eef6ed!important;border:1px solid #d2e5d1!important;border-radius:6px;
  color:#246b39!important;text-decoration:none!important;
  font-weight:700;line-height:1.35;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
.mpcfp-market .mpcfp-product-card a.mpcfp-product-link:hover{
  background:#dceedd!important;border-color:#a6cbaa!important;color:#19592c!important;
}
.mpcfp-market .mpcfp-product-card a.mpcfp-product-link:focus-visible{
  outline:2px solid #268c3c;outline-offset:3px;
}
.mpcfp-market .mpcfp-layout-switch{display:flex;align-items:center;gap:5px}
.mpcfp-market .mpcfp-layout-switch button{
  box-sizing:border-box;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;width:40px;height:40px;min-width:40px;min-height:40px;
  padding:0!important;margin:0!important;line-height:0!important;font-size:0!important;
  text-align:center;vertical-align:middle;
}
.mpcfp-market .mpcfp-layout-switch button svg{
  display:block;flex:none;width:18px;height:18px;max-width:none;max-height:none;
  margin:0;transform:none;stroke:currentColor;
}
.mpcfp-market .mpcfp-layout-switch button:focus-visible{
  outline:2px solid #268c3c;outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
  .mpcfp-market .mpcfp-product-card a.mpcfp-product-link{transition:none}
}
