/* Minha Mart side cart and Buy now button. */
.mmc-sc[hidden]{display:none}
.mmc-sc{position:fixed;inset:0;z-index:9999}
.mmc-sc-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.mmc-sc-panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;display:flex;flex-direction:column;box-shadow:-8px 0 30px rgba(0,0,0,.18);color:var(--mm-text,#1E2420)}
.mmc-sc-head{display:flex;justify-content:space-between;align-items:center;padding:.9rem 1.1rem;border-bottom:1px solid var(--mm-line,#DDE4DC)}
.mmc-sc-head h2{margin:0;font:700 1.25rem var(--mm-font-head,inherit);color:var(--mm-primary-dark,#06582F)}
.mmc-sc-x{border:0;background:none;font-size:2rem;line-height:1;cursor:pointer;color:inherit;width:44px;height:44px}
.mmc-sc-msg{margin:0;padding:0 1.1rem;font-size:.92rem}
.mmc-sc-msg.is-error,.mmc-sc-msg.is-ok{padding:.6rem 1.1rem}
.mmc-sc-msg.is-error{background:#FDECEA;color:#8A1C13}
.mmc-sc-msg.is-ok{background:var(--mm-primary-tint,#E8F3EE);color:var(--mm-primary-dark,#06582F)}
.mmc-sc-body{flex:1;overflow:auto;padding:1rem 1.1rem}
.mmc-sc.is-busy .mmc-sc-body{opacity:.55;pointer-events:none}
.mmc-sc-items{list-style:none;margin:0;padding:0}
.mmc-sc-item{display:flex;gap:.8rem;padding:.8rem 0;border-bottom:1px solid var(--mm-line,#DDE4DC)}
.mmc-sc-thumb{flex:none;width:64px}
.mmc-sc-thumb img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.mmc-sc-info{flex:1;min-width:0}
.mmc-sc-name a,.mmc-sc-name{font-weight:600;color:inherit;text-decoration:none}
.mmc-sc-info dl.variation{margin:.2rem 0;font-size:.85rem;color:var(--mm-muted,#5C665F)}
.mmc-sc-line{display:flex;justify-content:space-between;align-items:center;margin-top:.4rem}
.mmc-sc-qty{display:inline-flex;align-items:center;border:1px solid var(--mm-line,#DDE4DC);border-radius:999px}
.mmc-sc-qty button{width:32px;height:32px;border:0;background:none;font-size:1.1rem;cursor:pointer}
.mmc-sc-qty span{min-width:1.6em;text-align:center}
.mmc-sc-price{font-weight:700;color:var(--mm-primary,#087443)}
.mmc-sc-remove{border:0;background:none;padding:0;margin-top:.3rem;font-size:.85rem;color:#B3261E;cursor:pointer;text-decoration:underline}
.mmc-sc-coupon{display:flex;gap:.5rem;margin:1rem 0}
.mmc-sc-coupon input{flex:1;min-width:0;border:2px solid var(--mm-line,#DDE4DC);border-radius:999px;padding:.5em 1em;font:inherit}
.mmc-sc-coupon button{border:0;background:var(--mm-primary,#087443);color:#fff;border-radius:999px;padding:0 1.2em;cursor:pointer}
.mmc-sc-totals{margin:0}
.mmc-sc-totals>div{display:flex;justify-content:space-between;gap:1rem;padding:.3rem 0}
.mmc-sc-totals dt,.mmc-sc-totals dd{margin:0}
.mmc-sc-note{font-size:.85rem;color:var(--mm-muted,#5C665F);text-align:right}
.mmc-sc-discount dd{color:var(--mm-primary,#087443)}
.mmc-sc-total{border-top:1px solid var(--mm-line,#DDE4DC);margin-top:.3rem;padding-top:.6rem!important;font-weight:700;font-size:1.1rem}
.mmc-sc-actions{display:flex;gap:.6rem;margin-top:1rem}
.mmc-sc-btn{flex:1;display:inline-block;text-align:center;border:0;border-radius:var(--mm-btn-radius,999px);padding:.75em 1em;background:var(--mm-secondary,#F58220);color:#1E1408;font:600 1rem var(--mm-font-body,inherit);cursor:pointer;text-decoration:none}
.mmc-sc-btn:hover{background:var(--mm-secondary-dark,#C4670F);color:#fff}
.mmc-sc-btn.is-ghost{background:#fff;box-shadow:inset 0 0 0 2px var(--mm-primary,#087443);color:var(--mm-primary,#087443)}
.mmc-sc-empty{text-align:center;padding:2rem 0}
body.mmc-sc-lock{overflow:hidden}

/* Buy now button on product pages */
.mmc-buy-now{background:var(--mm-primary,#087443)!important;color:#fff!important}
.mmc-buy-now:hover{background:var(--mm-primary-dark,#06582F)!important}
.woocommerce-variation-add-to-cart-disabled .mmc-buy-now{opacity:.5;pointer-events:none}

/* Product page: quantity, Add to cart and Buy now in one row with space between them */
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form),
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0}
.woocommerce div.product form.cart .quantity{margin:0;float:none}
.woocommerce div.product form.cart .quantity .qty{height:48px;width:5em;margin:0}
.woocommerce div.product form.cart .button{float:none;margin:0!important;min-height:48px;padding-inline:1.8em}

/* Stock text */
.woocommerce div.product p.stock.mmc-low-stock{color:#B3261E;font-weight:700}
.mm-stock.is-low{display:block;font-size:.8rem;font-weight:700;color:#B3261E;margin-bottom:.3rem}

/* Floating cart bag (right side) */
.mmc-fab{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:9980;display:flex;flex-direction:column;align-items:center;gap:.15rem;min-width:84px;padding:.7rem .6rem;border:0;border-radius:14px 0 0 14px;background:var(--mm-primary,#087443);color:#fff;font:700 .9rem var(--mm-font-body,inherit);line-height:1.2;cursor:pointer;box-shadow:-4px 4px 16px rgba(0,0,0,.22)}
.mmc-fab:hover{background:var(--mm-primary-dark,#06582F)}
.mmc-fab:focus-visible{outline:3px solid var(--mm-secondary,#F58220);outline-offset:2px}
.mmc-fab svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mmc-fab-total{font-weight:600;font-size:.85rem}
.mmc-fab.is-bump{animation:mmc-bump .5s}
@keyframes mmc-bump{0%,100%{transform:translateY(-50%) scale(1)}40%{transform:translateY(-50%) scale(1.1)}}
body.mmc-sc-lock .mmc-fab{display:none}
@media (max-width:720px){.mmc-fab{display:none}}
@media (prefers-reduced-motion:reduce){.mmc-fab.is-bump{animation:none}}
