/*
Theme Name: Massa Benta
Theme URI: https://instagram.com/massabenta.fln
Author: Massa Benta artigianale
Description: Tema da Massa Benta — massas artesanais congeladas para celíacos e intolerantes à lactose. Banner com vídeo, cardápio integrado ao WooCommerce, seções de história, entrega e contato.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 8.0
License: GNU General Public License v2 or later
Text Domain: massabenta
*/


/* Fontes hospedadas no próprio tema (mais rápido e sem depender do Google) */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/jost-latin-600-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--mb-green: #1b4d3f;
	--mb-green-dark: #123529;
	--mb-cream: #fde3cd;
	--mb-cream-2: #fff5ea;
	--mb-paper: #fffaf4;
	--mb-gold: #b18454;
	--mb-gold-dark: #8a6337;
	--mb-orange: #b9551f;
	--mb-orange-hover: #9e4515;
	--mb-ink: #22302b;
	--mb-muted: #5d6a64;
	--mb-line: #ecdccb;
	--mb-radius: 18px;
	--mb-radius-sm: 10px;
	--mb-shadow: 0 10px 30px -12px rgba(27, 77, 63, .25);
	--mb-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--mb-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mb-topbar-h: 38px;
	--mb-header-h: 84px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mb-paper);
	color: var(--mb-ink);
	font-family: var(--mb-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--mb-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mb-orange); }
h1, h2, h3, h4 { font-family: var(--mb-serif); font-weight: 400; line-height: 1.12; color: var(--mb-green); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--mb-line); margin: 1.6rem 0; }
:focus-visible { outline: 3px solid var(--mb-gold); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; }

.mb-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mb-center { text-align: center; margin-top: 2.5rem; }
.mb-icon { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -.18em; flex-shrink: 0; }
.mb-icon svg { width: 100%; height: 100%; }

.mb-eyebrow {
	font-family: var(--mb-sans);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .78rem;
	font-weight: 600;
	color: var(--mb-gold-dark);
	margin-bottom: .8rem;
}
.mb-eyebrow--light { color: var(--mb-cream); opacity: .9; }

/* ------------------------------------------------------------------
   Botões (tema + WooCommerce)
------------------------------------------------------------------ */
.mb-btn,
.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button,
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--mb-sans);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	padding: .95em 1.7em;
	border-radius: 999px;
	border: 2px solid var(--mb-orange);
	background: var(--mb-orange);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.mb-btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wp-element-button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--mb-orange-hover);
	border-color: var(--mb-orange-hover);
	color: #fff;
	transform: translateY(-1px);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--mb-orange);
	border-color: var(--mb-orange);
	color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--mb-orange-hover); border-color: var(--mb-orange-hover); color: #fff; }
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] { opacity: .5; padding: .95em 1.7em; }

.mb-btn--small { padding: .6em 1.2em; font-size: .92rem; }
.mb-btn--ghost { background: transparent; border-color: rgba(253, 227, 205, .7); color: var(--mb-cream); }
.mb-btn--ghost:hover { background: var(--mb-cream); border-color: var(--mb-cream); color: var(--mb-green); }
.mb-btn--outline { background: transparent; border-color: var(--mb-green); color: var(--mb-green); }
.mb-btn--outline:hover { background: var(--mb-green); border-color: var(--mb-green); color: var(--mb-cream); }
.mb-btn--cream { background: var(--mb-cream); border-color: var(--mb-cream); color: var(--mb-green); }
.mb-btn--cream:hover { background: #fff; border-color: #fff; color: var(--mb-green); }
.mb-link { font-weight: 600; }

/* ------------------------------------------------------------------
   Topbar + cabeçalho
------------------------------------------------------------------ */
.mb-topbar {
	background: var(--mb-green-dark);
	color: var(--mb-cream);
	font-size: .85rem;
	height: var(--mb-topbar-h);
	display: flex;
	align-items: center;
	position: relative;
	z-index: 60;
}
.mb-topbar .mb-container { display: flex; justify-content: center; align-items: center; gap: .8rem; white-space: nowrap; overflow: hidden; }
.mb-topbar a { color: var(--mb-cream); text-decoration: none; }
.mb-topbar a:hover { color: #fff; }
.mb-topbar__sep { opacity: .5; }

.mb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--mb-header-h);
	background: rgba(255, 250, 244, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--mb-line);
	transition: background .3s, box-shadow .3s, border-color .3s;
}
.admin-bar .mb-header { top: 32px; }
.mb-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mb-logo { display: block; flex-shrink: 0; }
.mb-logo img { height: 46px; width: auto; }
.mb-logo__light { display: none; }

.mb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.mb-nav__list a {
	color: var(--mb-ink);
	text-decoration: none;
	font-weight: 500;
	font-size: .98rem;
	position: relative;
	padding: 6px 0;
}
.mb-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--mb-gold);
	transform: scaleX(0);
	transition: transform .25s;
}
.mb-nav__list a:hover::after,
.mb-nav__list .current-menu-item > a::after { transform: scaleX(1); }

.mb-header__actions { display: flex; align-items: center; gap: 14px; }
.mb-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	color: var(--mb-green);
	transition: background .2s;
}
.mb-cart:hover { background: var(--mb-cream); color: var(--mb-green); }
.mb-cart .mb-icon { width: 25px; height: 25px; }
.mb-cart-count {
	position: absolute;
	top: 3px; right: 1px;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--mb-orange);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}
.mb-cart-count.is-empty { display: none; }
.mb-burger { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 10px; color: var(--mb-green); cursor: pointer; }
.mb-burger .mb-icon { width: 26px; height: 26px; }

/* Cabeçalho transparente sobre o vídeo (só na home) */
.mb-has-hero .mb-header {
	position: absolute;
	top: var(--mb-topbar-h);
	left: 0; right: 0;
	background: transparent;
	border-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.admin-bar.mb-has-hero .mb-header { top: calc(var(--mb-topbar-h) + 32px); }
.mb-has-hero .mb-logo__light { display: block; }
.mb-has-hero .mb-logo__dark { display: none; }
.mb-has-hero .mb-nav__list a,
.mb-has-hero .mb-cart,
.mb-has-hero .mb-burger { color: var(--mb-cream); }
.mb-has-hero .mb-cart:hover { background: rgba(253, 227, 205, .15); }

.mb-has-hero.is-scrolled .mb-header {
	position: fixed;
	top: 0;
	background: rgba(255, 250, 244, .96);
	border-color: var(--mb-line);
	box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35);
	backdrop-filter: saturate(1.4) blur(8px);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	animation: mbDrop .35s ease;
}
.admin-bar.mb-has-hero.is-scrolled .mb-header { top: 32px; }
.mb-has-hero.is-scrolled .mb-logo__light { display: none; }
.mb-has-hero.is-scrolled .mb-logo__dark { display: block; }
.mb-has-hero.is-scrolled .mb-nav__list a,
.mb-has-hero.is-scrolled .mb-cart,
.mb-has-hero.is-scrolled .mb-burger { color: var(--mb-green); }
.mb-has-hero.is-scrolled .mb-nav__list a { color: var(--mb-ink); }
@keyframes mbDrop { from { transform: translateY(-100%); } to { transform: none; } }

/* ------------------------------------------------------------------
   Hero com vídeo
------------------------------------------------------------------ */
.mb-hero {
	position: relative;
	min-height: min(92vh, 860px);
	min-height: min(92svh, 860px);
	display: flex;
	align-items: center;
	color: var(--mb-cream);
	overflow: hidden;
	background: var(--mb-green-dark) url("assets/video/hero-poster.jpg") center / cover no-repeat;
	padding: calc(var(--mb-header-h) + 40px) 0 90px;
}
.mb-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mb-hero__overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(18, 53, 41, .92) 0%, rgba(18, 53, 41, .72) 42%, rgba(18, 53, 41, .2) 100%),
		linear-gradient(0deg, rgba(18, 53, 41, .55) 0%, rgba(18, 53, 41, 0) 35%);
}
.mb-hero__content { position: relative; z-index: 2; }
.mb-hero h1 { color: var(--mb-cream); max-width: 12.5em; margin-bottom: .45em; text-wrap: balance; }
.mb-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; opacity: .95; margin-bottom: 2rem; }
.mb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.mb-hero__scroll {
	position: absolute; left: 50%; bottom: 26px; z-index: 2;
	width: 26px; height: 42px; margin-left: -13px;
	border: 2px solid rgba(253, 227, 205, .7);
	border-radius: 14px;
}
.mb-hero__scroll::after {
	content: ""; position: absolute; left: 50%; top: 8px;
	width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: var(--mb-cream);
	animation: mbScroll 1.8s infinite;
}
@keyframes mbScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------
   Selos
------------------------------------------------------------------ */
.mb-badges { background: var(--mb-cream); border-bottom: 1px solid var(--mb-line); }
.mb-badges__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.mb-badge { display: flex; align-items: center; gap: 14px; }
.mb-badge img { width: 58px; height: 58px; object-fit: contain; }
.mb-badge strong { display: block; font-family: var(--mb-serif); font-weight: 400; font-size: 1.25rem; color: var(--mb-green); line-height: 1.2; }
.mb-badge span { font-size: .9rem; color: var(--mb-muted); }

/* ------------------------------------------------------------------
   Seções
------------------------------------------------------------------ */
.mb-section { padding: clamp(64px, 9vw, 120px) 0; }
.mb-section__head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.mb-section__head p:last-child { color: var(--mb-muted); font-size: 1.08rem; }

/* Cards de produto (home) */
.mb-products { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.mb-products > .mb-card { flex: 0 1 calc((100% - 56px) / 3); }
.mb-card {
	background: #fff;
	border-radius: var(--mb-radius);
	overflow: hidden;
	box-shadow: var(--mb-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .3s, box-shadow .3s;
}
.mb-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(27, 77, 63, .35); }
.mb-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mb-cream); }
.mb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mb-card:hover .mb-card__img img { transform: scale(1.05); }
.mb-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.mb-card h3 { font-size: 1.55rem; margin-bottom: .2em; }
.mb-card h3 a { color: inherit; text-decoration: none; }
.mb-card__desc { color: var(--mb-muted); font-size: .95rem; margin-bottom: 1rem; }
.mb-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mb-card__price { font-weight: 600; font-size: 1.25rem; color: var(--mb-green); }
.mb-card__price del { opacity: .5; font-weight: 400; font-size: .9em; margin-right: 4px; }
.mb-card__price ins { text-decoration: none; }
.mb-card .button { padding: .7em 1.2em; font-size: .92rem; }
.mb-card .added_to_cart { font-size: .88rem; font-weight: 600; width: 100%; text-align: right; }

/* Como funciona */
.mb-steps { background: var(--mb-cream-2); }
.mb-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.mb-steps__list li {
	background: #fff;
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	padding: 34px 30px 30px;
	position: relative;
}
.mb-steps__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--mb-green); color: var(--mb-cream);
	font-family: var(--mb-serif); font-size: 1.6rem;
	margin-bottom: 18px;
}
.mb-steps__list p { color: var(--mb-muted); margin: 0; }

/* Nossa história */
.mb-story__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.mb-story__media { position: relative; padding: 0 12% 12% 0; }
.mb-story__img { border-radius: var(--mb-radius); object-fit: cover; }
.mb-story__img--main { width: 100%; aspect-ratio: 4 / 5; }
.mb-story__img--small {
	position: absolute; right: 0; bottom: 0;
	width: 46%; aspect-ratio: 1;
	border: 8px solid var(--mb-paper);
	box-shadow: var(--mb-shadow);
}
.mb-story__text p { color: #3c4a44; }
.mb-checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 10px; }
.mb-checks li { padding-left: 34px; position: relative; font-weight: 500; }
.mb-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--mb-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231b4d3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Galeria */
.mb-gallery { display: grid; grid-template-columns: repeat(6, 1fr); }
.mb-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .3s; }
.mb-gallery img:hover { opacity: .85; }

/* Entrega */
.mb-delivery { background: var(--mb-green); color: var(--mb-cream); position: relative; overflow: hidden; }
.mb-delivery::before {
	content: ""; position: absolute; right: -120px; top: -120px;
	width: 420px; height: 420px; border-radius: 50%;
	border: 1px solid rgba(253, 227, 205, .15);
	box-shadow: 0 0 0 60px rgba(253, 227, 205, .03), 0 0 0 120px rgba(253, 227, 205, .02);
}
.mb-delivery h2 { color: var(--mb-cream); }
.mb-delivery__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; position: relative; }
.mb-delivery__list { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; gap: 20px; }
.mb-delivery__list li { display: flex; gap: 16px; align-items: flex-start; }
.mb-delivery__list .mb-icon {
	width: 46px; height: 46px; padding: 11px;
	border-radius: 50%; background: rgba(253, 227, 205, .12); color: var(--mb-cream);
}
.mb-delivery__list .mb-icon circle[fill="#fff"] { fill: var(--mb-green); }
.mb-delivery__list strong { display: block; font-size: 1.05rem; }
.mb-delivery__list span { opacity: .85; }
.mb-delivery__media img { border-radius: var(--mb-radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

/* Visite / mapa */
.mb-visit__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: stretch; }
.mb-visit__card { background: var(--mb-cream); border-radius: var(--mb-radius); padding: clamp(28px, 4vw, 48px); }
.mb-visit__card p { color: #3c4a44; }
.mb-visit__map { border-radius: var(--mb-radius); overflow: hidden; min-height: 380px; background: var(--mb-cream-2); }
.mb-visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.mb-insta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mb-serif); font-size: 1.6rem; text-decoration: none; }
.mb-insta .mb-icon { width: 28px; height: 28px; }

/* ------------------------------------------------------------------
   Rodapé
------------------------------------------------------------------ */
.mb-footer { background: var(--mb-green-dark); color: rgba(253, 227, 205, .85); font-size: .95rem; }
.mb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.mb-footer__brand img { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 18px; }
.mb-footer h3 { color: var(--mb-cream); font-size: 1.3rem; margin-bottom: 1rem; }
.mb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mb-footer a { color: rgba(253, 227, 205, .85); text-decoration: none; }
.mb-footer a:hover { color: #fff; }
.mb-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.mb-footer__contact .mb-icon { margin-top: .3em; color: var(--mb-gold); }
.mb-footer__bottom { border-top: 1px solid rgba(253, 227, 205, .12); font-size: .85rem; padding: 20px 0; }
.mb-footer__bottom .mb-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.mb-wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 70;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .4);
	transition: transform .2s;
}
.mb-wa-float:hover { transform: scale(1.08); color: #fff; }
.mb-wa-float .mb-icon { width: 30px; height: 30px; }

/* ------------------------------------------------------------------
   Páginas internas
------------------------------------------------------------------ */
.mb-page-head { background: var(--mb-green); color: var(--mb-cream); padding: 56px 0 50px; text-align: center; }
.mb-page-head h1 { color: var(--mb-cream); font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin: 0; }
.mb-page-head p { margin: .6rem 0 0; opacity: .9; }
.mb-page-head--shop {
	background:
		linear-gradient(rgba(18, 53, 41, .82), rgba(18, 53, 41, .82)),
		url("assets/img/background-1.jpg") center / cover;
	padding: 80px 0 70px;
}
.mb-content { padding-top: 56px; padding-bottom: 90px; }
.mb-content--narrow { max-width: 820px; }
.mb-entry > * { max-width: 100%; }
.mb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.mb-post-card img { border-radius: var(--mb-radius-sm); margin-bottom: 14px; }
.mb-post-card h2 { font-size: 1.5rem; }
.mb-post-card h2 a { color: inherit; text-decoration: none; }
.mb-404 { text-align: center; padding-top: 100px; }
.mb-404 img { margin: 0 auto 24px; }

/* ------------------------------------------------------------------
   WooCommerce — vitrine
------------------------------------------------------------------ */
.woocommerce .woocommerce-result-count { color: var(--mb-muted); font-size: .95rem; }
.woocommerce .woocommerce-ordering select {
	font-family: var(--mb-sans); font-size: .95rem;
	padding: 10px 14px; border: 1px solid var(--mb-line); border-radius: 999px; background: #fff;
}
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0 0 2rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	background: #fff; border-radius: var(--mb-radius); overflow: hidden;
	box-shadow: var(--mb-shadow);
	display: flex; flex-direction: column;
	padding-bottom: 22px;
	transition: transform .3s, box-shadow .3s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(27, 77, 63, .35); }
.woocommerce ul.products li.product a img { margin: 0 0 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--mb-serif); font-size: 1.55rem; color: var(--mb-green);
	padding: 0 22px; margin: 0;
}
.woocommerce ul.products li.product .mb-card-meta { padding: 0 22px; margin: 2px 0 8px; color: var(--mb-muted); font-size: .92rem; }
.woocommerce ul.products li.product .price { padding: 0 22px; color: var(--mb-green); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px; }
.woocommerce ul.products li.product .button { margin: auto 22px 0; align-self: flex-start; padding: .75em 1.3em; font-size: .92rem; }
.woocommerce ul.products li.product .added_to_cart { padding: 8px 22px 0; font-weight: 600; font-size: .9rem; }
.woocommerce span.onsale {
	background: var(--mb-orange); color: #fff; border-radius: 999px;
	min-height: 0; min-width: 0; line-height: 1; padding: 8px 14px; font-weight: 600; top: 14px; left: 14px;
}
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { border-radius: 50%; width: 42px; height: 42px; line-height: 42px; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--mb-green); color: var(--mb-cream); }

/* Produto */
.woocommerce div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--mb-radius); }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: 10px; margin-top: 10px !important; }
.woocommerce div.product .flex-control-thumbs li { width: 80px !important; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 8px; }
.woocommerce div.product .product_title { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .2em; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--mb-green); font-size: 1.7rem; font-weight: 600; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #3c4a44; font-size: 1.05rem; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 1.6rem 0; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; }
.woocommerce .quantity .qty {
	width: 5em; height: 52px; border: 1px solid var(--mb-line); border-radius: 999px;
	font-family: var(--mb-sans); font-size: 1rem; text-align: center; background: #fff;
}
.woocommerce div.product .product_meta { font-size: .9rem; color: var(--mb-muted); }
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 1.5rem; border-bottom: 1px solid var(--mb-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 20px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 600; color: var(--mb-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--mb-green); box-shadow: inset 0 -2px 0 var(--mb-gold); }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--mb-line); padding: 12px; font-style: normal; }
.related.products > h2 { text-align: center; margin: 2rem 0 1.6rem; }

.mb-delivery-note {
	display: flex; gap: 14px; align-items: flex-start;
	background: var(--mb-cream-2); border: 1px solid var(--mb-line); border-radius: var(--mb-radius-sm);
	padding: 16px 18px; margin: 0 0 1.4rem; font-size: .95rem;
}
.mb-delivery-note .mb-icon { width: 28px; height: 28px; color: var(--mb-green); }
.mb-delivery-note strong { color: var(--mb-green); }
.mb-cold-notice {
	background: var(--mb-cream); border-left: 4px solid var(--mb-gold);
	padding: 14px 18px; border-radius: 8px; margin-bottom: 1.6rem; font-size: .95rem;
}

/* Avisos */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: var(--mb-radius-sm);
	border-top: 0 !important;
	border-left: 4px solid var(--mb-green);
	background: #fff;
	box-shadow: var(--mb-shadow);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--mb-green); }
.woocommerce-error { border-left-color: #b3261e; }
.woocommerce-message .button, .woocommerce-info .button { padding: .55em 1.1em; font-size: .9rem; }

/* Carrinho / checkout (clássico e blocos) */
.woocommerce table.shop_table { border: 1px solid var(--mb-line); border-radius: var(--mb-radius-sm); border-collapse: separate; background: #fff; }
.woocommerce table.shop_table th { font-weight: 600; color: var(--mb-green); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--mb-line); padding: 14px 16px; }
.woocommerce table.cart img { width: 72px; border-radius: 8px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 520px; float: right; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.select2-container--default .select2-selection--single,
.woocommerce #coupon_code {
	border: 1px solid #d9c7b4; border-radius: var(--mb-radius-sm);
	padding: 12px 14px; font-family: var(--mb-sans); font-size: 1rem; background: #fff; min-height: 50px;
}
.select2-container--default .select2-selection--single { padding: 8px 10px; height: auto; }
.woocommerce form .form-row label { font-weight: 500; }
.woocommerce-checkout #payment { background: var(--mb-cream-2); border-radius: var(--mb-radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.wc-block-cart, .wc-block-checkout { font-family: var(--mb-sans); }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--mb-serif) !important; color: var(--mb-green); text-transform: none !important; font-weight: 400 !important; font-size: 1.5rem !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select {
	border-radius: var(--mb-radius-sm) !important;
}
.wc-block-components-product-name { color: var(--mb-green); font-weight: 600; text-decoration: none; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title { font-family: var(--mb-serif); color: var(--mb-green); }

/* Minha conta */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--mb-cream); font-weight: 600; }

/* ------------------------------------------------------------------
   Animação de entrada
------------------------------------------------------------------ */
.mb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.mb-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mb-reveal { opacity: 1; transform: none; transition: none; }
	.mb-hero__scroll::after, .mb-has-hero.is-scrolled .mb-header { animation: none; }
}

/* ------------------------------------------------------------------
   Responsivo
------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.mb-nav__list { gap: 20px; }
	.mb-footer__grid { grid-template-columns: 1fr 1fr; }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.mb-badges__grid { grid-template-columns: repeat(2, 1fr); }
	.mb-products > .mb-card { flex-basis: calc((100% - 28px) / 2); }
}

@media (max-width: 900px) {
	:root { --mb-header-h: 70px; }
	.mb-logo img { height: 38px; }
	.mb-burger { display: inline-flex; }
	.mb-nav {
		position: fixed; inset: 0; z-index: 55;
		background: var(--mb-green);
		display: flex; align-items: center; justify-content: center;
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.mb-nav-open .mb-nav { opacity: 1; visibility: visible; }
	.mb-nav-open { overflow: hidden; }
	.mb-nav__list { flex-direction: column; align-items: center; gap: 22px; }
	.mb-nav__list a,
	.mb-has-hero .mb-nav__list a,
	.mb-has-hero.is-scrolled .mb-nav__list a { color: var(--mb-cream); font-family: var(--mb-serif); font-size: 2rem; }
	.mb-header__actions { position: relative; z-index: 60; }
	.mb-nav-open .mb-burger, .mb-nav-open .mb-cart { color: var(--mb-cream) !important; }
	.mb-nav-open .mb-header { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
	.mb-nav-open .mb-logo { position: relative; z-index: 60; }
	.mb-nav-open .mb-logo__dark { display: none !important; }
	.mb-nav-open .mb-logo__light { display: block !important; }

	.mb-story__grid, .mb-delivery__grid, .mb-visit__grid { grid-template-columns: 1fr; }
	.mb-steps__list { grid-template-columns: 1fr; }
	.mb-gallery { grid-template-columns: repeat(3, 1fr); }
	.mb-delivery__media img { aspect-ratio: 16 / 10; }
	.woocommerce div.product { grid-template-columns: 1fr; }
	.mb-hero__overlay { background: linear-gradient(0deg, rgba(18, 53, 41, .9) 0%, rgba(18, 53, 41, .65) 60%, rgba(18, 53, 41, .45) 100%); }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.mb-container { padding: 0 16px; }
	.mb-hide-sm { display: none !important; }
	.mb-topbar { font-size: .78rem; }
	.mb-hero { min-height: 88svh; padding-bottom: 80px; }
	.mb-hero__cta .mb-btn { width: 100%; }
	.mb-badges__grid { gap: 18px 12px; }
	.mb-badge { flex-direction: column; text-align: center; gap: 6px; }
	.mb-badge img { width: 48px; height: 48px; }
	.mb-badge strong { font-size: 1.08rem; }
	.mb-badge span { font-size: .8rem; }
	.mb-products > .mb-card { flex-basis: 100%; }
	.mb-card__img { aspect-ratio: 16 / 10; }
	.woocommerce ul.products { grid-template-columns: 1fr; gap: 22px; }
	.mb-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 50px; }
	.mb-footer__bottom .mb-container { justify-content: center; text-align: center; }
	.woocommerce .cart-collaterals .cart_totals { float: none; max-width: none; }
	.mb-wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media screen and (max-width: 782px) {
	.admin-bar .mb-header, .admin-bar.mb-has-hero.is-scrolled .mb-header { top: 46px; }
	.admin-bar.mb-has-hero .mb-header { top: calc(var(--mb-topbar-h) + 46px); }
}
@media screen and (max-width: 600px) {
	.admin-bar .mb-header, .admin-bar.mb-has-hero.is-scrolled .mb-header { top: 0; }
}

/* Menu mobile: sem blur no cabeçalho para o menu ocupar a tela inteira */
@media (max-width: 900px) {
	.mb-header,
	.mb-has-hero.is-scrolled .mb-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
	.mb-header, .mb-has-hero.is-scrolled .mb-header { background: var(--mb-paper); }
	.mb-has-hero .mb-header { background: transparent; }
}
.woocommerce-products-header { display: none; }
@media (min-width: 601px) { .mb-footer__bottom .mb-container { padding-right: 96px; } }
