/* 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}
/* Curated selection: one aligned toolbar, exactly four full cards on desktop.
   Flex sizing avoids the clipped fourth product from v0.5.0. */
.mpcf-home .cf-featured-carousel{position:relative;min-width:0;width:100%}
.mpcf-home .cf-featured-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;min-width:0;margin:0 0 18px}
.mpcf-home .cf-featured-toolbar .mpcf-product-filters{display:flex;align-items:center;flex:1 1 auto;flex-wrap:nowrap;gap:8px;min-width:0;min-height:44px;
  margin:0!important;padding:0!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity}
.mpcf-home .cf-featured-toolbar .mpcf-product-filters::-webkit-scrollbar{display:none}
.mpcf-home .cf-featured-toolbar .mpcf-product-filter{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start}
.mpcf-home .cf-featured-controls{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex:0 0 auto;min-height:44px;margin:0!important;white-space:nowrap}
.mpcf-home .cf-featured-position{font:700 12px Arial,Helvetica,sans-serif;color:#55705e;letter-spacing:.01em;margin-right:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.mpcf-home .cf-featured-arrow{box-sizing:border-box;width:42px;height:42px;min-width:42px;padding:0!important;display:grid;place-items:center;border-radius:50%!important;
  border:1px solid #cddfd0!important;background:#fff!important;color:#17452b!important;cursor:pointer;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease!important}
.mpcf-home .cf-featured-arrow:hover:not(:disabled){border-color:#226f34!important;color:#fff!important;background:#226f34!important}
.mpcf-home .cf-featured-arrow:disabled{opacity:.38;cursor:default;background:#f7f9f5!important}
.mpcf-home .cf-featured-arrow svg{display:block;pointer-events:none}
.mpcf-home .mpcf-featured-grid{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;
  gap:16px!important;align-items:stretch;overflow-x:auto;overflow-y:hidden;max-width:100%;
  scroll-snap-type:x mandatory;scroll-padding-inline:0;overscroll-behavior-inline:contain;
  scrollbar-width:none;padding:2px 0 14px!important;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{box-sizing:border-box;flex:0 0 calc((100% - 48px) / 4)!important;
  scroll-snap-align:start;min-width:0;max-width:none!important;height:auto}
.mpcf-home .mpcf-featured-grid--single>.mpcf-product{flex:0 0 min(100%,380px)!important;max-width:100%!important}
/* Fixed media proportions + flexible body keep shelf bottoms and CTA baseline aligned. */
.mpcf-home .mpcf-featured-grid>.mpcf-product .cf-product-media{flex:0 0 auto}
.mpcf-home .mpcf-featured-grid>.mpcf-product .mpcf-product-body{flex:1 1 auto;min-width:0}
/* 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:1100px){.mpcf-home .mpcf-featured-grid:not(.mpcf-featured-grid--single)>.mpcf-product{flex-basis:calc((100% - 32px) / 3)!important}}
@media(max-width:800px){
  .mpcf-home .mpcf-featured-grid:not(.mpcf-featured-grid--single)>.mpcf-product{flex-basis:calc((100% - 16px) / 2)!important}
  .mpcf-home .cf-featured-toolbar{gap:12px}
  .mpcf-home .cf-featured-position{margin-right:4px}
}
@media(max-width:600px){
  .mpcf-home .cf-featured-toolbar{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:13px}
  .mpcf-home .cf-featured-toolbar .mpcf-product-filters{width:100%;min-height:39px;flex-basis:auto}
  .mpcf-home .cf-featured-controls{align-self:flex-end;min-height:38px}
  .mpcf-home .cf-featured-arrow{width:38px;height:38px;min-width:38px}
  .mpcf-home .mpcf-featured-grid:not(.mpcf-featured-grid--single)>.mpcf-product{flex-basis:100%!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){
  :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}
