/**
 * Ste Beauty — componentes globais ("Modern Atelier", referência aprovada).
 * Tokens vêm do theme.json: var(--wp--preset--*) e var(--wp--custom--*).
 * Mobile-first. Pontos de quebra: 600px (tablet), 782px (sem barra inferior), 1024px (desktop).
 * Estilos exclusivos da página inicial ficam em home.css (carregado só nela).
 */

/* ---------- Base e acessibilidade ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sb-icon {
	flex: none;
}

/* Ícones de linha via máscara (permitem editar o texto no painel sem perder o ícone) */
[class*="sb-ico-"]::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 1.4em;
	height: 1.4em;
	background: currentColor;
	-webkit-mask: var(--sb-ico) center / contain no-repeat;
	mask: var(--sb-ico) center / contain no-repeat;
}

.sb-ico-truck { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.6'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.6'/%3E%3C/svg%3E"); }
.sb-ico-shield { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 3 8.3 7 10 4-1.7 7-5.5 7-10V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.sb-ico-card { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }
.sb-ico-cart { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.1 10.6a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L20 8H6.2'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.25'/%3E%3Ccircle cx='17' cy='19.5' r='1.25'/%3E%3C/svg%3E"); }
.sb-ico-gift { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='4' rx='1'/%3E%3Cpath d='M5 12v8.5h14V12M12 8v12.5M12 8c-1.5-3-5-3.5-5-1.25S10 8 12 8Zm0 0c1.5-3 5-3.5 5-1.25S14 8 12 8Z'/%3E%3C/svg%3E"); }
.sb-ico-video { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='m16 10.5 5-3v9l-5-3'/%3E%3C/svg%3E"); }
.sb-ico-sparkle { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5c.6 4 1.9 5.9 6 6.5-4.1.6-5.4 2.5-6 6.5-.6-4-1.9-5.9-6-6.5 4.1-.6 5.4-2.5 6-6.5ZM18.5 15.5c.3 1.6.9 2.2 2.5 2.5-1.6.3-2.2.9-2.5 2.5-.3-1.6-.9-2.2-2.5-2.5 1.6-.3 2.2-.9 2.5-2.5Z'/%3E%3C/svg%3E"); }
.sb-ico-heart { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20Z'/%3E%3C/svg%3E"); }
.sb-ico-arrow { --sb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* ---------- Barra superior (somente ambiente local até verificação) ---------- */

.sb-topbar {
	position: relative;
	z-index: 51;
	line-height: 1.4;
	font-size: clamp(0.75rem, 0.5rem + 0.45vw, 0.9375rem) !important;
	padding-block: clamp(0.5rem, 0.3rem + 0.4vw, 0.8rem) !important;
}

.sb-topbar p {
	margin: 0;
}

.sb-topbar__msgs {
	gap: 0 !important;
	min-width: 0;
}

.sb-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	white-space: nowrap;
}

/* Celular: só a primeira mensagem */
.sb-topbar__msgs .sb-topbar__item:not(:first-child) {
	display: none;
}

.sb-topbar__help a,
.sb-topbar__help .sb-link-pendente {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
}

.sb-topbar__help .sb-icon {
	width: 1.4em;
	height: 1.4em;
}

.sb-topbar .sb-link-pendente small {
	display: none;
}

@media (min-width: 600px) {
	.sb-topbar__msgs .sb-topbar__item:nth-child(2) {
		display: inline-flex;
	}

	.sb-topbar__msgs .sb-topbar__item + .sb-topbar__item {
		padding-left: 1.25rem;
		margin-left: 1.25rem;
		border-left: 1px solid rgb(251 244 240 / 45%);
	}
}

@media (min-width: 1024px) {
	.sb-topbar__msgs .sb-topbar__item:nth-child(3) {
		display: inline-flex;
	}
}

@media (max-width: 599px) {
	.sb-topbar__inner {
		justify-content: center !important;
	}

	.sb-topbar__help {
		display: none;
	}
}

/* ---------- Cabeçalho ----------
 * O seletor usa o conteúdo (.sb-header) e não uma classe no <header>, porque os
 * templates do WooCommerce incluem a parte "header" sem classes personalizadas.
 */

.wp-block-template-part:has(.sb-header) {
	position: relative;
	z-index: 50;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.sb-header__bar {
	min-height: var(--wp--custom--header--height);
	row-gap: 0 !important;
	padding-block: 0.5rem 0;
}

.sb-header__start,
.sb-header__end {
	flex: 1 1 0;
	gap: var(--wp--preset--spacing--10) !important;
}

.sb-header__brand {
	flex: 0 1 auto;
	align-items: center !important;
	text-align: center;
}

.sb-header__brand .wp-block-site-title {
	margin: 0;
	font-size: clamp(1.75rem, 0.6rem + 4vw, 4rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.sb-header__tagline {
	margin: 0.15rem 0 0 !important;
	color: var(--wp--preset--color--primary);
	font-size: clamp(0.8125rem, 0.5rem + 0.9vw, 1.1875rem);
	letter-spacing: 0.01em;
	line-height: 1.2;
}

/* Logo oficial: quando existir, substitui o nome do site (o slogan continua). */
.sb-header__brand:has(.wp-block-site-logo img) .wp-block-site-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.sb-header__brand .wp-block-site-logo img {
	max-height: 64px;
	width: auto;
}

/* Celular: [menu] [marca] [carrinho]. A conta fica na barra inferior. */
.sb-header__nav {
	order: -1;
	flex: 1 1 0;
}

.sb-header__start,
.sb-header__account {
	display: none !important;
}

.sb-header__tagline {
	display: none;
}

/* Ações: área de toque ≥ 44px */
.sb-header__end .wc-block-mini-cart__button,
.sb-header__end .wc-block-customer-account a {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	padding: 0 !important;
	color: var(--wp--preset--color--primary);
}

.sb-header__end svg,
.sb-header__end .wc-block-mini-cart__icon {
	width: clamp(26px, 0.8rem + 1.5vw, 38px) !important;
	height: clamp(26px, 0.8rem + 1.5vw, 38px) !important;
}

.sb-header__end .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent-strong) !important;
	color: var(--wp--preset--color--white) !important;
	border: 0;
	font-weight: 600;
}

/* Menu principal */
.sb-header__nav {
	font-size: clamp(0.9375rem, 0.6rem + 0.6vw, 1.125rem) !important;
}

.sb-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}

.sb-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-strong);
}

.sb-header__nav .wp-block-navigation__submenu-icon {
	width: 0.6em;
	height: 0.6em;
	margin-left: 0.3em;
}

/* Submenus: fechados, o core os mantém com tamanho zero. Dimensões e borda só nos
 * estados de abertura do core — um submenu fechado nunca gera rolagem horizontal. */
.sb-header__nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base) !important;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.sb-header__nav .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.sb-header__nav .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
.sb-header__nav .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	min-width: 14rem !important;
	padding: var(--wp--preset--spacing--10) 0 !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Os dois últimos itens abrem o submenu alinhado à direita. */
.sb-header__nav .wp-block-navigation__container > .wp-block-navigation-item:nth-last-child(-n + 2) > .wp-block-navigation__submenu-container {
	left: auto !important;
	right: 0 !important;
}

.sb-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.25rem !important;
}

/* Menu sanduíche (overlay do core) */
.sb-header__nav .wp-block-navigation__responsive-container-open,
.sb-header__nav .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--primary);
}

.sb-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	padding: var(--wp--preset--spacing--50) clamp(1rem, 4vw, 3rem) !important;
}

.sb-header__nav .is-menu-open .wp-block-navigation__responsive-container-content {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--large);
	gap: var(--wp--preset--spacing--30) !important;
}

.sb-header__nav .is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

.sb-header__nav .is-menu-open .wp-block-navigation__submenu-container {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--base);
	border: 0 !important;
	box-shadow: none;
	padding: var(--wp--preset--spacing--10) 0 0 var(--wp--preset--spacing--30) !important;
	gap: var(--wp--preset--spacing--10) !important;
}

/* ≥ 600px: menu numa segunda linha; o grupo da esquerda (vazio) volta como
 * contrapeso para manter a marca centralizada. */
@media (min-width: 600px) {
	.sb-header__start {
		display: flex !important;
	}

	.sb-header__tagline {
		display: block;
	}

	.sb-header__nav {
		order: 10;
		flex: 1 1 100%;
		justify-content: center;
		padding-block: 0.5rem 0.75rem;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.sb-header__nav .wp-block-navigation__container {
		gap: 0.25rem var(--wp--preset--spacing--30) !important;
	}
}

@media (min-width: 1024px) {
	.sb-header__nav .wp-block-navigation__container {
		gap: 0.25rem clamp(1.5rem, 2.4vw, 2.25rem) !important;
	}
}

/* ≥ 782px (sem barra inferior): conta no cabeçalho; cabeçalho fixo. */
@media (min-width: 782px) {
	.wp-block-template-part:has(.sb-header) {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
	}

	.sb-header__account {
		display: flex !important;
	}

	.sb-header__end {
		gap: var(--wp--preset--spacing--20) !important;
	}
}

/* ---------- Barra inferior (celular) ---------- */

.sb-mobile-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 100;
	background: var(--wp--preset--color--base);
	border-top: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 -4px 16px rgb(43 26 31 / 6%);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sb-mobile-bar__list {
	display: grid;
	grid-auto-columns: minmax(0, 1fr); /* colunas iguais para 4 ou 5 itens */
	grid-auto-flow: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-mobile-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	min-height: var(--wp--custom--mobile-bar--height);
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--wp--preset--color--muted);
	font: 500 0.6875rem/1.2 var(--wp--preset--font-family--inter);
	text-decoration: none;
	cursor: pointer;
}

.sb-mobile-bar__item:hover,
.sb-mobile-bar__item[aria-current="page"] {
	color: var(--wp--preset--color--primary);
}

.sb-mobile-bar__item[aria-current="page"] .sb-icon {
	stroke-width: 2;
}

body.has-sb-mobile-bar {
	padding-bottom: calc(var(--wp--custom--mobile-bar--height) + 1px + env(safe-area-inset-bottom, 0px)); /* +1px: borda superior da barra */
}

/* Aviso "Loja em breve" do WooCommerce (só para administradores): acima da barra. */
body.has-sb-mobile-bar #coming-soon-footer-banner {
	bottom: calc(var(--wp--custom--mobile-bar--height) + 1px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 782px) {
	.sb-mobile-bar {
		display: none !important;
	}

	body.has-sb-mobile-bar {
		padding-bottom: 0;
	}

	body.has-sb-mobile-bar #coming-soon-footer-banner {
		bottom: 0;
	}
}

/* ---------- Formulários ---------- */

.sb-field__label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
}

.sb-field__input,
.wp-block-search .wp-block-search__input {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: max(16px, 1rem); /* evita zoom automático no iOS */
}

.sb-field__input::placeholder,
.wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

select.sb-field__input,
.wc-block-catalog-sorting select,
.woocommerce-ordering select {
	min-height: 44px;
	padding: 0.5rem 2.5rem 0.5rem 0.875rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234A1F2B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: max(16px, 0.9375rem);
	appearance: none;
	cursor: pointer;
}

/* ---------- Componentes reutilizáveis ---------- */

.sb-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-strong);
}

.sb-eyebrow--light {
	color: var(--wp--preset--color--cream);
}

/* Título de seção com linhas ornamentais dos dois lados (referência) */
.sb-heading-lines {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 3vw, 2rem);
	text-align: center;
}

.sb-heading-lines::before,
.sb-heading-lines::after {
	content: "";
	flex: 1;
	min-width: 1rem;
	height: 1px;
	background: var(--wp--preset--color--gold);
}

/* Botão com seta à direita */
.sb-btn-arrow .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-left: 0.5em;
	vertical-align: -0.15em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--wp--custom--transition);
}

.sb-btn-arrow .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* Botão claro (sobre fundos vinho) */
.sb-btn-light .wp-block-button__link {
	background: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--primary);
}

.sb-btn-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
}

/* Botão contorno claro (sobre fundos vinho) */
.sb-btn-outline-light .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--cream);
	color: var(--wp--preset--color--cream);
}

.sb-btn-outline-light .wp-block-button__link:hover {
	background: rgb(249 233 225 / 12%);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

/* Nota "[CONFIRMAR]" (usar junto com sb-somente-local): texto provisório a
 * confirmar com a marca — visível só no ambiente local. */
.sb-nota-confirmar {
	display: inline-block;
	margin: 0 0 0.75rem !important;
	padding: 0.2rem 0.6rem;
	border: 1px dashed currentColor;
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.6875rem !important;
	font-weight: 600;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

.sb-nota-confirmar.has-text-align-center {
	display: table;
	margin-inline: auto !important;
}

/* Selos / chips (usados também na prévia do design system) */
.sb-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.5;
}

.sb-badge--soft {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
}

.sb-badge--outline {
	background: transparent;
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--primary);
}

.sb-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.5rem 1.125rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.sb-chip:hover,
.sb-chip[aria-current="page"] {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
}

.sb-ornament {
	width: 48px;
	height: 1px;
	border: 0;
	background: var(--wp--preset--color--gold);
}

.sb-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-category-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	min-height: 11rem;
	height: 100%;
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.sb-category-card__name {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
}

.sb-category-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.sb-category-card__cta .sb-icon {
	width: 18px;
	height: 18px;
}

.sb-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--wp--preset--spacing--50);
	margin: var(--wp--preset--spacing--50) 0 0;
	padding: 0;
	list-style: none;
}

.sb-benefit {
	display: grid;
	gap: var(--wp--preset--spacing--10);
	justify-items: start;
}

.sb-benefit .sb-icon {
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--accent-strong);
}

.sb-benefit__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.sb-benefit__text {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Links de páginas ainda não publicadas (somente ambiente local) */
.sb-link-pendente {
	opacity: 0.75;
	cursor: help;
}

.sb-link-pendente small {
	font-size: 0.6875rem;
	font-style: italic;
	opacity: 0.85;
}

/* Conteúdo pendente de validação jurídica (somente ambiente local — em produção
 * o bloco nem é enviado). Moldura tracejada + aviso, para revisão do layout. */
.sb-previa-validacao {
	position: relative;
	outline: 2px dashed var(--wp--preset--color--accent-strong);
	outline-offset: -2px;
}

.sb-previa-validacao::before {
	content: attr(data-sb-aviso);
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	padding: 0.25rem 0.5rem;
	background: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--inter, sans-serif);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* ---------- Cards de produto (blocos do WooCommerce) ----------
 * Proporção 5:4 com object-fit: contain sobre fundo blush: a foto aparece
 * inteira, sem cortar embalagens; fotos com fundo blush ficam contínuas.
 */

.wc-block-product {
	position: relative;
	display: flex;
	flex-direction: column;
}

.wc-block-product .wc-block-components-product-image,
.wc-block-product .wp-block-woocommerce-product-image {
	position: relative;
	overflow: hidden;
	margin-bottom: 0.875rem !important;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--blush-soft);
}

.wc-block-product .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 5 / 4 !important;
	object-fit: contain !important;
	transition: transform 600ms ease;
}

.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.03);
}

.wc-block-product .wp-block-post-title {
	margin: 0 0 0.25rem !important;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem !important;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.4 !important;
	text-align: left !important;
	color: var(--wp--preset--color--contrast);
}

.wc-block-product .wp-block-post-title a {
	color: inherit;
}

.wc-block-product .wc-block-components-product-price {
	margin: 0 0 0.75rem !important;
	text-align: left !important;
	font-size: 1.0625rem !important;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.wc-block-components-product-price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	font-size: 0.875em;
}

.wc-block-components-product-price ins {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-weight: 700;
}

/* Selos sobre a foto: canto superior esquerdo (referência) */
.wc-block-product .wc-block-components-product-sale-badge,
.wc-block-product .sb-product-badge {
	position: absolute !important;
	top: 0.75rem !important;
	left: 0.75rem !important;
	right: auto !important;
	z-index: 2;
	margin: 0 !important;
	padding: 0.2rem 0.65rem !important;
	border: 0 !important;
	border-radius: var(--wp--custom--radius--pill) !important;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.5 !important;
	text-transform: none !important;
}

.wc-block-product .wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--accent-strong) !important;
	color: var(--wp--preset--color--white) !important;
}

/* Botão "Adicionar": sólido vinho, com ícone de carrinho */
.wc-block-product .wp-block-woocommerce-product-button {
	margin-top: auto;
}

.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 44px;
	padding: 0.625rem 1rem;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 0.9375rem;
	font-weight: 600;
	transition: background-color var(--wp--custom--transition);
}

/* Ícone de carrinho só no botão de compra (não em "Ver detalhes") */
.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button.add_to_cart_button::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.1 10.6a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L20 8H6.2'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.25'/%3E%3Ccircle cx='17' cy='19.5' r='1.25'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.1 10.6a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L20 8H6.2'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.25'/%3E%3Ccircle cx='17' cy='19.5' r='1.25'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--primary-hover);
	border-color: var(--wp--preset--color--primary-hover);
}

/* Foco do link da imagem: contorno por DENTRO (o contêiner arredondado tem
 * overflow: hidden e cortaria um contorno externo — encontrado no teste de teclado). */
.wc-block-product .wc-block-components-product-image a:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: -4px;
	border-radius: var(--wp--custom--radius--lg);
}

/* Link "Ver carrinho" que o WooCommerce mostra após adicionar */
.wc-block-product .wc-block-components-product-button .added_to_cart {
	display: block;
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/* Gaveta do minicarrinho FECHADA fora da ordem de foco do teclado.
 * O WooCommerce só a deixa transparente (opacity: 0), e seus botões continuavam
 * recebendo Tab. visibility: hidden remove do foco; o atraso preserva a animação. */
.wc-block-components-drawer__screen-overlay--is-hidden {
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s linear 0.3s;
}

/* ---------- Rodapé ---------- */

.sb-footer {
	font-size: var(--wp--preset--font-size--small);
}

/* Rodapé: 1 coluna (celular), 2 (tablet), 4 (desktop) — referência */
.sb-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.sb-footer__grid > * {
	margin: 0 !important;
}

@media (min-width: 600px) {
	.sb-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sb-footer__grid {
		grid-template-columns: 1.25fr 1fr 1fr 1.35fr;
	}
}

.sb-footer__social {
	margin-top: var(--wp--preset--spacing--30) !important;
	gap: 1rem !important;
}

.sb-footer__values {
	letter-spacing: 0.02em;
}

.sb-footer a,
.sb-footer .wp-block-site-title a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.sb-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sb-footer :where(a, button, input):focus-visible {
	outline-color: var(--wp--preset--color--cream);
}

/* A coluna da marca é um contêiner: o nome nunca quebra. O tamanho é o mesmo de antes,
 * limitado a 18% da largura da coluna (≈ o que "Ste Beauty" ocupa) — só reduz onde
 * quebraria (ex.: 1024–1090px, quando o rodapé passa a ter 4 colunas). */
.sb-footer__brand {
	container-type: inline-size;
}

.sb-footer .wp-block-site-title {
	margin: 0;
	font-size: min(clamp(2rem, 1.2rem + 2.2vw, 3.25rem), 18cqi);
	font-weight: 500;
	line-height: 1.05;
	white-space: nowrap;
}

.sb-footer__tagline {
	margin: 0.15rem 0 0 !important;
	font-weight: 500;
}

.sb-footer__about {
	max-width: 18rem;
	margin-top: var(--wp--preset--spacing--30) !important;
	line-height: 1.55;
}

.sb-footer .wp-block-social-links:empty {
	display: none;
}

.sb-footer .wp-block-social-links .wp-social-link {
	color: var(--wp--preset--color--base);
}

.sb-links__title,
.sb-newsletter__title {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--wp--preset--color--base);
}

.sb-links__list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-footer__sep {
	border: 0;
	border-top: 1px solid rgb(251 244 240 / 18%);
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
}

.sb-footer__bottom p {
	margin: 0;
	font-size: 0.75rem;
}

/* Newsletter (estrutura visual; ver blocks/newsletter) */
.sb-newsletter__text {
	margin: 0 0 var(--wp--preset--spacing--20);
}

.sb-newsletter__row {
	display: flex;
	max-width: 22rem;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--white);
}

.sb-newsletter__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0 0.875rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: max(16px, 0.875rem);
}

.sb-newsletter__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.sb-newsletter__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	margin: 3px;
	border: 0;
	border-radius: calc(var(--wp--custom--radius--button) - 2px);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.sb-newsletter__button .sb-icon {
	width: 20px;
	height: 20px;
}

.sb-newsletter :disabled {
	cursor: not-allowed;
}

.sb-newsletter__notice {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	font-style: italic;
	opacity: 0.85;
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.wc-block-product:hover .wc-block-components-product-image img {
		transform: none;
	}
}

/* Aviso "Vendas em breve" na página do produto (trava de vendas, D-009) */
.sb-vendas-em-breve {
	display: inline-block;
	margin: 0.5rem 0 0;
	padding: 0.6rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* ---------- "Loja em breve" (templates/coming-soon.html) ---------- */

.sb-coming-soon {
	margin: 0;
	text-align: center;
}

.sb-coming-soon .sb-coming-soon__title {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 400;
	line-height: 1.05;
}

.sb-coming-soon__text {
	max-width: 32ch;
	margin: 0;
	color: var(--wp--preset--color--cream);
}
