/* Style 4 — Taco Metaco. Scoped so Pizzaro Styles 1–3 remain untouched. */
body.tmm-single-product-active .summary > .tmm-single-product { margin: 0; }
.tmm-single-product { max-width: 560px; color: #2d2b2d; }
.tmm-single-product__header { margin-bottom: 20px; }
body .tmm-single-product .product_title { margin: 0 0 12px; color: #2d2b2d; font-size: 32px; font-weight: 400; line-height: 1.2; }
body .tmm-single-product .product_title .food-type-icon { margin-left: 7px; font-size: 15px; vertical-align: top; }
body .tmm-single-product .tmm-single-product__price { margin: 0; color: #2d2b2d; font-size: 25px; line-height: 1.2; }
.tmm-single-product__description { margin: 0 0 18px; color: #71706c; font-size: 16px; font-style: italic; line-height: 1.7; }
.tmm-single-product__description p:last-child { margin-bottom: 0; }
.tmm-single-product .tmm-product-characteristics { margin: -7px 0 22px; color: #5e5c58; font-size: 13px; line-height: 1.55; }
.tmm-single-product__cart { border-top: 1px solid #e9e9e9; padding-top: 22px; }
.tmm-single-product__cart form.cart { margin: 0; }
.tmm-single-product__cart table.variations { width: 100%; margin: 0 0 12px; }
.tmm-single-product__cart table.variations th, .tmm-single-product__cart table.variations td { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.tmm-single-product__cart table.variations th { padding: 0 0 6px; color: #2d2b2d; font-size: 15px; }
.tmm-single-product__cart table.variations tr + tr th { padding-top: 10px; }
.tmm-single-product__cart table.variations select { width: 100%; min-height: 44px; border: 2px solid #f9f1db; border-radius: 999px; color: #2d2b2d; }
.tmm-single-product__cart .reset_variations { float: right; margin: 7px 0 4px; color: #71706c; font-size: 12px; }
.tmm-single-product__cart .reset_variations:hover, .tmm-single-product__cart .reset_variations:focus-visible { color: #c00a27; }
.tmm-single-product__cart .single_variation_wrap { clear: both; }
.tmm-single-product .tmm-product-suggestions { margin: 0 0 22px; padding: 22px 0 0; }
.tmm-single-product__order-summary { grid-column: auto; margin: 0; padding: 12px 14px; border: 0; border-radius: 0; background: #f5f5f5; font-family: inherit; }
.tmm-single-product__order-summary[hidden] { display: none !important; }
.tmm-single-product .quantity { display: inline-flex; align-items: center; gap: 8px; overflow: visible; height: 46px; border: 0; border-radius: 0; background: transparent; vertical-align: middle; }
.tmm-single-product .quantity .qty { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; text-align: center; }
.tmm-single-product__qty-button { display: grid; width: 44px; height: 44px; padding: 0; border: 1px solid #ccc; border-radius: 50%; background: #fff; color: #2d2b2d; place-items: center; font-family: inherit; font-size: 25px; font-weight: 400; line-height: 1; cursor: pointer; }
.tmm-single-product__qty-button:disabled { opacity: .4; cursor: not-allowed; }
.tmm-single-product .single_add_to_cart_button { min-height: 46px; margin-left: 12px; padding: 0 25px; border-radius: 999px; background: #c00a27; font-weight: 700; }
.tmm-single-product .single_add_to_cart_button::before { margin-right: 9px; content: 'h'; font-family: font-pizzaro; font-weight: 400; }
.tmm-single-product__notice { margin: 0 0 14px; padding: 11px 13px; border-radius: 7px; background: #f9f1db; color: #584b38; font-size: 14px; }
body.tmm-single-product-active .related.products { display: none; }
/* Override Pizzaro's more specific quantity/form rules within this style. */
body.tmm-single-product-active .tmm-single-product form.cart,
body.tmm-single-product-active .tmm-single-product .variations_button { display: flex; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 12px; }
body.tmm-single-product-active .tmm-single-product form.cart > :not(.quantity):not(.single_add_to_cart_button),
body.tmm-single-product-active .tmm-single-product .variations_button > :not(.quantity):not(.single_add_to_cart_button) { flex-basis: 100%; width: 100%; }
body.tmm-single-product-active .tmm-single-product form.cart .quantity { display: inline-flex !important; flex: 0 0 auto; width: auto !important; height: 46px !important; min-height: 0 !important; aspect-ratio: auto; margin: 0 !important; padding: 0 !important; float: none; }
body.tmm-single-product-active .tmm-single-product form.cart .quantity input.qty { display: block; flex: 0 0 32px; width: 32px !important; min-width: 0; height: 44px; margin: 0; padding: 0 !important; border: 0; border-radius: 0; font-size: 18px; font-weight: 400; text-align: center; appearance: textfield; }
body.tmm-single-product-active .tmm-single-product form.cart .quantity input.qty::-webkit-inner-spin-button,
body.tmm-single-product-active .tmm-single-product form.cart .quantity input.qty::-webkit-outer-spin-button { appearance: none; margin: 0; }
body.tmm-single-product-active .tmm-single-product form.cart .tmm-single-product__qty-button { flex: 0 0 44px; width: 44px; min-width: 0; height: 44px; margin: 0; padding: 0; font-weight: 400; }
body.tmm-single-product-active .tmm-single-product form.cart .single_add_to_cart_button { display: inline-flex; flex: 1 1 200px; align-items: center; justify-content: center; float: none; height: 46px; min-height: 46px; margin: 0 !important; padding: 0 20px; background: #c00a27; color: #fff; line-height: 1.2; }
body.tmm-single-product-active .tmm-single-product form.cart .single_add_to_cart_button:not(:disabled):not(.disabled) { opacity: 1; }
body.tmm-single-product-active .tmm-single-product form.cart .single_add_to_cart_button:disabled,
body.tmm-single-product-active .tmm-single-product form.cart .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
/* Match the menu's View cart color, replacing rather than squeezing the CTA. */
body.tmm-single-product-active .tmm-single-product--cart-added .tmm-single-product__purchase-actions .single_add_to_cart_button { display: none !important; }
body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-actions > .added_to_cart.wc-forward { display: inline-flex !important; box-sizing: border-box; flex: 1 1 0; align-items: center; justify-content: center; position: static !important; float: none; transform: none !important; width: auto !important; min-width: 0; height: 46px; min-height: 46px; margin: 0 !important; padding: 0 20px !important; border: 0; border-radius: 999px; background: #f5f5f5 !important; color: #2b2b2b !important; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-actions > .added_to_cart.wc-forward::before,
body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-actions > .added_to_cart.wc-forward::after { display: none; }
body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-actions > .added_to_cart.wc-forward:focus-visible { outline: 2px solid #c00a27; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
 body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-actions > .added_to_cart.wc-forward:hover { background: #e9e9e9 !important; }
}
@media (max-width: 767px) {
 body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-actions > .added_to_cart.wc-forward { padding: 0 8px !important; font-size: clamp(11px,3.2vw,14px); }
}
@media (min-width: 992px) {
 body.tmm-single-product-active, body.tmm-single-product-active #page { overflow-x: clip; overflow-y: visible; }
 body.tmm-single-product-active .single-product-wrapper { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; width: 100%; }
 body.tmm-single-product-active .single-product-wrapper::before,
 body.tmm-single-product-active .single-product-wrapper::after { display: none; }
 body.tmm-single-product-active .single-product-wrapper > .summary,
 body.tmm-single-product-active .single-product-wrapper > .product-images-wrapper { float: none; width: 100%; min-width: 0; }
 body.tmm-single-product-active .product-images-wrapper { position: sticky !important; top: 28px; align-self: start; }
 body.tmm-single-product-active.admin-bar .product-images-wrapper { top: 60px; }
 body.tmm-single-product-active .product-images-wrapper .flex-viewport { max-height: calc(100vh - 200px); }
 body.tmm-single-product-active .product-images-wrapper .woocommerce-product-gallery__image img { max-height: calc(100vh - 200px); object-fit: contain; }
 body.tmm-single-product-active .product-images-wrapper .flex-control-thumbs img { max-height: 70px; width: auto; margin: auto; object-fit: contain; }
}
/* Fixed purchase footer: native form controls stay in their original form. */
body.tmm-single-product-active #page { padding-bottom: calc(var(--tmm-single-bar-height, 0px) + var(--tmm-single-nav-height, 0px)); }
/* #page already reserves both fixed bars; don't reserve Pizzaro's nav twice. */
@media (max-width: 767px) {
 body.tmm-single-product-active #colophon { margin-bottom: 0 !important; }
 body.tmm-single-product-active #colophon + .footer-map { margin-top: 0 !important; margin-bottom: 0 !important; }
}
body.tmm-single-product-active .tmm-single-product .tmm-single-product__purchase-bar { position: fixed; z-index: 999; right: 0; bottom: var(--tmm-single-nav-height, 0px); left: 0; width: auto !important; margin: 0; border-top: 1px solid #e9e9e9; background: #fff; box-shadow: 0 -8px 22px rgba(0,0,0,.06); }
.tmm-single-product__purchase-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,420px); align-items: center; gap: 24px; max-width: 1200px; margin: auto; padding: 14px 24px max(14px, env(safe-area-inset-bottom)); }
.tmm-single-product__purchase-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tmm-single-product__purchase-bar:not(.has-summary) .tmm-single-product__purchase-actions { grid-column: 2; }
body.tmm-single-product-active .tmm-single-product form.cart .tmm-single-product__purchase-actions .single_add_to_cart_button { flex: 1 1 0; min-width: 0; font-family: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; }
@media (max-width: 767px) {
 .tmm-single-product__purchase-inner { grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; }
 .tmm-single-product__order-summary { padding: 12px 16px; }
 .tmm-single-product__purchase-bar:not(.has-summary) .tmm-single-product__purchase-actions { grid-column: 1; }
 .tmm-single-product__purchase-actions { gap: 8px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #fff; }
 .tmm-single-product__purchase-bar.has-summary .tmm-single-product__purchase-actions { border-top: 1px solid #ededed; }
 body.tmm-single-product-active .tmm-single-product form.cart .tmm-single-product__purchase-actions .single_add_to_cart_button { padding: 0 8px; font-size: clamp(11px,3.2vw,14px); letter-spacing: -.1px; }
}
@media (max-width: 767px) { body .tmm-single-product .product_title { font-size: 27px; } .tmm-single-product__cart .quantity { margin-bottom: 12px; } .tmm-single-product .single_add_to_cart_button { width: 100%; margin: 0; } }
/* Match the modal rhythm rather than stacking Pizzaro's form margins. */
body.tmm-single-product-active .tmm-single-product form.cart { gap: 0; margin: 0 !important; padding: 0 !important; }
body.tmm-single-product-active .tmm-single-product form.cart::before,
body.tmm-single-product-active .tmm-single-product form.cart::after { display: none; }
body.tmm-single-product-active .tmm-single-product__cart--simple { border-top: 0; padding-top: 0; }
body.tmm-single-product-active .tmm-single-product table.variations { margin: 0 0 8px !important; }
body.tmm-single-product-active .tmm-single-product table.variations tr + tr th { padding-top: 6px; }
body.tmm-single-product-active .tmm-single-product table.variations select { min-height: 42px; }
body.tmm-single-product-active .tmm-single-product .single_variation { margin: 0; }
body.tmm-single-product-active .tmm-single-product .single_variation .price { margin: 0 0 24px !important; }
body.tmm-single-product-active .product-images-wrapper { margin-bottom: 0 !important; }
body.tmm-single-product-active .product-images-wrapper .woocommerce-product-gallery { margin-bottom: 0 !important; }
body.tmm-single-product-active .product-images-wrapper .flex-viewport { margin-bottom: 12px !important; }
@media (max-width: 991px) {
 body.tmm-single-product-active .product-images-wrapper { margin-bottom: 24px !important; }
}
@media (max-width: 767px) {
 body.tmm-single-product-active .tmm-single-product form.cart { gap: 0; }
 body.tmm-single-product-active .tmm-single-product .variations_button { gap: 8px; }
 body.tmm-single-product-active .tmm-single-product form.cart .quantity { gap: 2px; height: 46px !important; }
 body.tmm-single-product-active .tmm-single-product form.cart .quantity input.qty { flex-basis: 20px; width: 20px !important; }
 body.tmm-single-product-active .tmm-single-product form.cart .tmm-single-product__qty-button { flex-basis: 36px; width: 36px; height: 36px; }
 body.tmm-single-product-active .tmm-single-product form.cart .single_add_to_cart_button { flex: 1 1 0; width: auto; min-width: 0; padding: 0 8px; font-size: clamp(11px, 3.2vw, 14px); white-space: nowrap; }
 body.tmm-single-product-active .tmm-single-product form.cart .single_add_to_cart_button::before { margin-right: 5px; }
}
