/**
 * BRZ Promo — Estilização WooCommerce
 * Tudo escopado em .brz-woo (adicionado ao <body> nas páginas Woo via body_class).
 * Cores: usa as variáveis globais do Elementor com fallback para a identidade da marca.
 *
 * Tokens (skill.md / Package LP):
 *   coral  #E2533B  --e-global-color-primary
 *   ink    #1F1F1F  --e-global-color-secondary / text
 *   off    #F9F9F9  --e-global-color-4358b91
 *   gray   #6B6B6B  --e-global-color-68f8450
 *   white  #FFFFFF  --e-global-color-c81bc71
 *   black  #000000  --e-global-color-2a78d63
 */

.brz-woo {
	--brz-coral: var(--e-global-color-primary, #E2533B);
	--brz-coral-d: #c8432d;
	--brz-ink: var(--e-global-color-secondary, #1F1F1F);
	--brz-text: var(--e-global-color-text, #1F1F1F);
	--brz-off: var(--e-global-color-4358b91, #F9F9F9);
	--brz-gray: var(--e-global-color-68f8450, #6B6B6B);
	--brz-white: var(--e-global-color-c81bc71, #FFFFFF);
	--brz-black: var(--e-global-color-2a78d63, #000000);
	--brz-line: rgba(31, 31, 31, .12);
	--brz-line-2: rgba(31, 31, 31, .06);
	--brz-radius: 6px;
	--brz-radius-sm: 2px;
	--brz-shadow: 0 22px 50px -28px rgba(31, 31, 31, .40);
	--brz-shadow-sm: 0 6px 20px -14px rgba(31, 31, 31, .45);
	--brz-ease: .3s cubic-bezier(.2, .7, .2, 1);
	--brz-maxw: 1280px;
	--brz-font-display: 'Sora', sans-serif;
	--brz-font-body: 'Inter', sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
.brz-woo.woocommerce,
.brz-woo .brz-woocommerce,
.brz-woo .brz-woocommerce td,
.brz-woo .product-name,
.brz-woo .woocommerce-message, .brz-woo .woocommerce-info, .brz-woo .woocommerce-error, .brz-woo .woocommerce-noreviews,
.brz-woo table.shop_table td{
	font-family: var(--brz-font-body);
	color: var(--brz-text);
}
.brz-woo p {
	font-family: var(--brz-font-body);
}
.woocommerce-page .col2-set::before {
	display: none;
}
.brz-woo #place_order{
	background-color: var(--brz-coral);
}
.brz-woo .brz-woocommerce {
	background: var(--brz-off);
}

.brz-woo h1,
.brz-woo h2,
.brz-woo h3,
.brz-woo h4,
.brz-woo .woocommerce-products-header__title,
.brz-woo .product_title {
	font-family: var(--brz-font-display);
	letter-spacing: -.02em;
	line-height: 1.1;
	color: var(--brz-ink);
}

.brz-woo a {
	color: #000;
	opacity: .8;
	transition: color .2s ease;

	&:hover{
		opacity: 1;
	}
}

.brz-shop-wrap {
	max-width: var(--brz-maxw);
	margin: 0 auto;
	padding: 28px 28px 96px;
}

/* Cabeçalho da loja */
.brz-woo .woocommerce-products-header {
	margin-bottom: 8px;
}

.brz-woo .woocommerce-products-header__title {
	font-weight: 800;
	font-size: 34px;
	margin: 0 0 6px;
}

.brz-woo .woocommerce-products-header::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	background: var(--brz-coral);
	margin-top: 14px;
}

.brz-woo .term-description,
.brz-woo .woocommerce-archive-description {
	color: var(--brz-gray);
	font-size: 16px;
	max-width: 62ch;
	margin: 18px 0 0;
}

/* Breadcrumb (injetado no <main>, antes do wrap — vira container centralizado) */
.brz-woo .woocommerce-breadcrumb {
	font-family: var(--brz-font-display);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--brz-gray);
	max-width: var(--brz-maxw);
	margin: 0 auto;
	padding: 0;
	padding-top: 28px;
}

.wp-singular.brz-woo .woocommerce-breadcrumb{
	padding-top: 0px;
}

.brz-woo .woocommerce-breadcrumb a {
	color: var(--brz-gray);
}

.brz-woo .woocommerce-breadcrumb a:hover {
	color: var(--brz-coral);
}

/* ============================================================
   Botões
   ============================================================ */
.brz-woo .button,
.brz-woo a.button,
.brz-woo button.button,
.brz-woo input[type="submit"],
.brz-woo .woocommerce-button,
.brz-woo .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--brz-font-display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 15px 28px;
	border: 0;
	border-radius: var(--brz-radius-sm);
	background: var(--brz-coral);
	color: var(--brz-white) !important;
	cursor: pointer;
	transition: var(--brz-ease);
	text-decoration: none;
	text-transform: none;
}

.brz-woo .button:hover,
.brz-woo a.button:hover,
.brz-woo button.button:hover,
.brz-woo input[type="submit"]:hover,
.brz-woo .woocommerce-button:hover,
.brz-woo .added_to_cart:hover,
.brz-woo .button.alt:hover {
	background: #000;
	color: var(--brz-white) !important;
	transform: translateY(-2px);
	box-shadow: var(--brz-shadow-sm);
}

.brz-woo .button.alt,
.brz-woo button.alt,
.brz-woo .single_add_to_cart_button {
	background: var(--brz-coral);
}

/* Botão secundário / ghost (escuro) */
.brz-woo .button.brz-btn-dark,
.brz-woo .checkout-button {
	background: var(--brz-ink);
}

.brz-woo .button.brz-btn-dark:hover,
.brz-woo .checkout-button:hover {
	background: var(--brz-black);
}

.brz-woo .button:focus-visible,
.brz-woo a.button:focus-visible,
.brz-woo button:focus-visible,
.brz-woo input:focus-visible,
.brz-woo select:focus-visible,
.brz-woo .brz-filter a:focus-visible {
	outline: 2px solid var(--brz-coral);
	outline-offset: 2px;
}

/* ============================================================
   Notices
   ============================================================ */
.brz-woo .woocommerce-message,
.brz-woo .woocommerce-info,
.brz-woo .woocommerce-error,
.brz-woo .woocommerce-noreviews {
	border-radius: var(--brz-radius);
	border: 1px solid var(--brz-line);
	border-top: 3px solid var(--brz-coral);
	background: var(--brz-white);
	box-shadow: var(--brz-shadow-sm);
	font-size: 14.5px;
	padding: 16px 20px 16px 22px;
}

.brz-woo .woocommerce-error::before,.brz-woo .woocommerce-info::before,.brz-woo .woocommerce-message::before {
	position: static;
}

.brz-woo .woocommerce-error {
	border-top-color: #c0392b;
}

.brz-woo .woocommerce-message .button,
.brz-woo .woocommerce-info .button {
	padding: 9px 18px;
	font-size: 13px;
}

/* ============================================================
   Layout Archive — sidebar (esquerda) + produtos
   ============================================================ */
.brz-shop-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-top: 36px;
}

.brz-shop-main {
	min-width: 0;
}

/* Barra: contagem + ordenação */
.brz-woo .brz-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--brz-line);
	
	.woocommerce-notices-wrapper{
		width: 100%;

		&:empty{
			display: none;
		}
	}
}

.brz-woo .woocommerce-result-count {
	font-size: 14px;
	color: var(--brz-gray);
	margin: 0;
	float: none;
}

.brz-woo .woocommerce-ordering {
	margin: 0;
	float: none;
}

.brz-woo .woocommerce-ordering select,
.brz-woo .brz-filter select,
.brz-woo select.orderby {
	font-family: var(--brz-font-body);
	font-size: 14px;
	color: var(--brz-ink);
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	padding: 11px 38px 11px 14px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	transition: border-color .2s ease;
}

.brz-woo .woocommerce-ordering select:hover,
.brz-woo select.orderby:hover {
	border-color: var(--brz-coral);
}

/* ============================================================
   Sidebar de filtros
   ============================================================ */
.brz-shop-sidebar {
	position: sticky;
	top: 24px;
}

.brz-filter {
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius);
	padding: 22px 22px 24px;
	margin-bottom: 18px;
}

.brz-filter__title {
	font-family: var(--brz-font-display);
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brz-ink);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.brz-filter__title::before {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--brz-coral);
	flex: 0 0 auto;
	border-radius: 1px;
}

/* Lista de categorias */
.brz-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.brz-filter__list li {
	margin: 0;
}

.brz-filter__list li + li {
	margin-top: 2px;
}

.brz-filter__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--brz-radius-sm);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--brz-black);
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.brz-filter__list a:hover {
	background: var(--brz-off);
	color: var(--brz-coral);
	text-decoration: none;
}

/* Acordeão de categorias */
.brz-cat__row {
	display: flex;
	align-items: center;
	gap: 2px;
	padding-top: 5px;
}

.brz-cat__row > a {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--brz-black) !important;
}

.brz-acc__toggle {
	flex: 0 0 auto;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 7px 8px;
	color: var(--brz-gray);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--brz-radius-sm);
	transition: color .2s ease, background .2s ease;
}

.brz-acc__toggle:hover {
	color: var(--brz-coral);
	background: var(--brz-off);
}

.brz-acc__toggle svg {
	width: 14px;
	height: 14px;
	transition: transform .25s ease;
}

.brz-acc__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.brz-filter__list .children[hidden] {
	display: none;
}

.brz-filter__list a .count {
	font-size: 12px;
	color: var(--brz-gray);
	background: var(--brz-off);
	border-radius: 20px;
	padding: 2px 9px;
	transition: var(--brz-ease);
}

.brz-filter__list a:hover .count {
	background: rgba(226, 83, 59, .12);
	color: var(--brz-coral);
}

.brz-filter__list li.is-active > a,
.brz-filter__list li.is-active > .brz-cat__row > a {
	color: var(--brz-coral);
	font-weight: 600;
	background: rgba(226, 83, 59, .07);
}

.brz-filter__list .children {
	list-style: none;
	margin: 2px 0 2px 12px;
	padding-left: 12px;
	border-left: 1px solid var(--brz-line);
}

/* Checkboxes de atributos */
.brz-filter__check {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 0;
	font-size: 14.5px;
	color: var(--brz-text);
	cursor: pointer;
	user-select: none;
}

.brz-filter__check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.brz-filter__box {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	border: 1.5px solid var(--brz-line);
	border-radius: 4px;
	background: var(--brz-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--brz-ease);
}

.brz-filter__box::after {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--brz-white);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
	transform: scale(0);
	transition: transform .18s cubic-bezier(.2, .8, .2, 1.4);
}

.brz-filter__check:hover .brz-filter__box {
	border-color: var(--brz-coral);
}

.brz-filter__check input:checked + .brz-filter__box {
	background: var(--brz-coral);
	border-color: var(--brz-coral);
}

.brz-filter__check input:checked + .brz-filter__box::after {
	transform: scale(1);
}

.brz-filter__check input:focus-visible + .brz-filter__box {
	outline: 2px solid var(--brz-coral);
	outline-offset: 2px;
}

.brz-filter__check .count {
	margin-left: auto;
	font-size: 12px;
	color: var(--brz-gray);
}

.brz-filter__scroll {
	max-height: 220px;
	overflow-y: auto;
	margin: -4px -6px;
	padding: 4px 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--brz-coral) var(--brz-off);
}

.brz-filter__scroll::-webkit-scrollbar {
	width: 6px;
}

.brz-filter__scroll::-webkit-scrollbar-thumb {
	background: var(--brz-coral);
	border-radius: 3px;
}

/* Filtro de preço */
.brz-filter__price {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brz-filter__price input {
	width: 100%;
	min-width: 0;
	font-family: var(--brz-font-body);
	font-size: 14px;
	color: var(--brz-ink);
	background: var(--brz-off);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	padding: 11px 12px;
	transition: border-color .2s ease;
	-moz-appearance: textfield;
}

.brz-filter__price input::-webkit-outer-spin-button,
.brz-filter__price input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.brz-filter__price input:focus {
	border-color: var(--brz-coral);
	outline: none;
	background: var(--brz-white);
}

.brz-filter__price span {
	color: var(--brz-gray);
	font-size: 13px;
}

.brz-filter__hint {
	font-size: 12px;
	color: var(--brz-gray);
	margin: 10px 0 0;
}

.brz-filter__actions {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

.brz-filter__actions .button {
	flex: 1;
	padding: 13px 16px;
	font-size: 14px;
}

.brz-filter__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--brz-font-display);
	font-weight: 600;
	font-size: 13px;
	color: var(--brz-gray);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	padding: 13px 16px;
	transition: var(--brz-ease);
}

.brz-filter__clear:hover {
	color: var(--brz-coral);
	border-color: var(--brz-coral);
}

/* Chips de filtros ativos */
.brz-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.brz-active-filters .chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--brz-font-display);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--brz-ink);
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: 40px;
	padding: 6px 8px 6px 14px;
}

.brz-active-filters .chip a {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--brz-off);
	color: var(--brz-gray);
	font-size: 12px;
	line-height: 1;
}

.brz-active-filters .chip a:hover {
	background: var(--brz-coral);
	color: var(--brz-white);
}

/* Toggle mobile do filtro */
.brz-filter-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	font-family: var(--brz-font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--brz-ink);
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	padding: 13px 18px;
	cursor: pointer;
	margin-bottom: 22px;
	width: 100%;
	justify-content: center;
}

.brz-filter-toggle svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

/* ============================================================
   Grade de produtos + cards
   ============================================================ */
.brz-woo ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Nº de colunas por linha vindo do Personalizar (classe .columns-N que o
   WooCommerce adiciona ao ul.products). Usamos literais porque repeat(var())
   não é confiável em todos os navegadores. */
.brz-woo ul.products.columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.brz-woo ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brz-woo ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brz-woo ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brz-woo ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brz-woo ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Responsivo: independentemente do nº escolhido, reduz em telas menores. */
@media (max-width: 900px) {
	.brz-woo ul.products,
	.brz-woo ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.brz-woo ul.products,
	.brz-woo ul.products[class*="columns-"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.brz-woo ul.products::before,
.brz-woo ul.products::after {
	display: none;
}

.brz-woo ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none;
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: var(--brz-ease);
}

/* Barra superior animada (assinatura BRZ) */
.brz-woo ul.products li.product::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 3px;
	width: 0;
	background: var(--brz-coral);
	transition: width .35s cubic-bezier(.2, .7, .2, 1);
	z-index: 3;
}

.brz-woo ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--brz-shadow);
	border-color: transparent;
}

.brz-woo ul.products li.product:hover::before {
	width: 100%;
}

/* Mídia (imagem + ação sobreposta) */
.brz-woo ul.products li.product .brz-card__media {
	position: relative;
	overflow: hidden;
}

.brz-woo ul.products li.product .brz-card__img {
	display: block;
	overflow: hidden;
}

.brz-woo ul.products li.product .brz-card__img img,
.brz-woo ul.products li.product img {
	margin: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--brz-off);
}

/* Zoom-hover na imagem do card removido a pedido (o time não quer o efeito). */

/* Botão de ação centralizado sobre fundo esfumaçado */
.brz-woo ul.products li.product .brz-card__action {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	opacity: 0;
	background: linear-gradient(to top, rgba(31, 31, 31, .42), rgba(31, 31, 31, .10));
	backdrop-filter: blur(3px) saturate(1.1);
	-webkit-backdrop-filter: blur(3px) saturate(1.1);
	transition: opacity .3s ease;
	z-index: 2;
}

.brz-woo ul.products li.product:hover .brz-card__action,
.brz-woo ul.products li.product:focus-within .brz-card__action {
	opacity: 1;
}

.brz-woo ul.products li.product .brz-card__action .button,
.brz-woo ul.products li.product .brz-card__action .added_to_cart {
	margin: 0;
	width: auto;
	max-width: 100%;
	padding: 13px 24px;
	font-size: 14px;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .55);
	color: var(--brz-white) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: none;
	transform: translateY(10px);
	transition: var(--brz-ease);
}

.brz-woo ul.products li.product:hover .brz-card__action .button,
.brz-woo ul.products li.product:hover .brz-card__action .added_to_cart {
	transform: translateY(0);
}

.brz-woo ul.products li.product .brz-card__action .button:hover,
.brz-woo ul.products li.product .brz-card__action .added_to_cart:hover {
	background: var(--brz-coral);
	border-color: var(--brz-coral);
	transform: translateY(0);
}

/* Corpo do card */
.brz-woo ul.products li.product .brz-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 20px 20px;
}

.brz-woo ul.products li.product .brz-card__title-link {
	display: block;
	text-decoration: none;
}

.brz-woo ul.products li.product .woocommerce-loop-product__title,
.brz-woo ul.products li.product .woocommerce-loop-category__title {
	font-family: var(--brz-font-display);
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.3;
	color: var(--brz-ink);
	text-decoration: none;
	padding: 0;
	margin: 0;
}

.brz-woo ul.products li.product .star-rating {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--brz-coral);
}

.brz-woo ul.products li.product .star-rating::before {
	color: var(--brz-line);
}

.brz-woo ul.products li.product .star-rating span::before {
	color: var(--brz-coral);
}

.brz-woo ul.products li.product .price {
	display: block;
	padding-top: 12px;
	margin: auto 0 0;
	font-family: var(--brz-font-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--brz-coral);
}

.brz-woo ul.products li.product .price del {
	color: var(--brz-gray);
	font-weight: 400;
	font-size: 14px;
	opacity: .8;
	margin-right: 6px;
}

.brz-woo ul.products li.product .price ins {
	text-decoration: none;
}

/* Badge de promoção */
.brz-woo span.onsale,
.brz-woo .onsale {
	position: absolute;
	top: 14px;
	left: 14px;
	right: auto;
	margin: 0;
	z-index: 4;
	min-width: auto;
	min-height: auto;
	font-family: var(--brz-font-display);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brz-white);
	background: var(--brz-coral);
	border: 0;
	border-radius: 40px;
	padding: 6px 13px;
	line-height: 1;
}

/* ============================================================
   Paginação
   ============================================================ */
.brz-woo .woocommerce-pagination {
	margin-top: 48px;
	text-align: center;
}

.brz-woo .woocommerce-pagination ul {
	border: 0 !important;
	display: inline-flex;
	gap: 8px !important;
}

.brz-woo .woocommerce-pagination ul li {
	border: 0 !important;
	margin: 0;
}

.brz-woo .woocommerce-pagination ul li a,
.brz-woo .woocommerce-pagination ul li span {
	font-family: var(--brz-font-display);
	font-weight: 600;
	font-size: 14px;
	padding: 6px;
	border: 1px solid var(--brz-line) !important;
	border-radius: var(--brz-radius-sm);
	background: var(--brz-white);
	color: var(--brz-ink);
	transition: var(--brz-ease);
}

.brz-woo .woocommerce-pagination ul li a:hover {
	background: var(--brz-ink);
	color: var(--brz-white);
	border-color: var(--brz-ink) !important;
}

.brz-woo .woocommerce-pagination ul li span.current {
	background: var(--brz-coral);
	color: var(--brz-white);
	border-color: var(--brz-coral) !important;
}

/* ============================================================
   Cart (carrinho) — fundo claro, tabela, cupom, totais e botões
   ============================================================ */

/* Fundo claro: a página do carrinho/checkout usa page.php (sem o wrapper
   .brz-woocommerce), então aplicamos o fundo no próprio <body>. */
.brz-woo.woocommerce-cart,
.brz-woo.woocommerce-checkout {
	background: var(--brz-off);
}

.brz-woo.woocommerce-cart .woocommerce,
.brz-woo.woocommerce-checkout .woocommerce {
	margin: 0 auto;
	padding: 15px;
	color: var(--brz-text);
}

/* Título da página */
.brz-woo.woocommerce-cart .entry-title,
.brz-woo.woocommerce-cart .wp-block-post-title,
.brz-woo.woocommerce-checkout .entry-title,
.brz-woo.woocommerce-checkout .wp-block-post-title {
	font-family: var(--brz-font-display);
	font-weight: 800;
	font-size: clamp(28px, 4vw, 44px);
	color: var(--brz-ink);
	margin-bottom: 28px;
}

/* ── Tabela ── */
.brz-woo table.shop_table {
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--brz-white);
	margin-bottom: 28px;
}

.brz-woo table.shop_table th {
	font-family: var(--brz-font-display);
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brz-ink);
	padding: 16px 20px;
	background: var(--brz-off);
	border: 0;
	text-align: left;
}

.brz-woo table.shop_table td {
	padding: 18px 20px;
	border-top: 1px solid var(--brz-line);
	font-size: 14.5px;
	color: var(--brz-text);
	background: var(--brz-white);
	vertical-align: middle;
}

.brz-woo table.cart img {
	width: 72px;
	height: auto;
	border-radius: var(--brz-radius-sm);
	border: 1px solid var(--brz-line);
}

/* Colunas compactas à esquerda (remove + miniatura) para o produto não
   ficar com um vão vazio antes do nome; alinha melhor as colunas. */
.brz-woo table.cart td.product-remove {
	width: 56px;
	text-align: center;
	padding-left: 16px;
	padding-right: 0;
}
.brz-woo table.cart td.product-thumbnail {
	width: 96px;
	padding-right: 0;
}
.brz-woo table.cart td.product-name,
.brz-woo table.cart th.product-name {
	padding-left: 8px;
	text-align: left;
}
.brz-woo table.cart td.product-price,
.brz-woo table.cart td.product-subtotal,
.brz-woo table.cart th.product-price,
.brz-woo table.cart th.product-subtotal {
	text-align: center;
}
.brz-woo table.cart td.product-quantity,
.brz-woo table.cart th.product-quantity {
	text-align: center;
}

.brz-woo .cart_item .product-name a {
	font-family: var(--brz-font-display);
	font-weight: 600;
	color: var(--brz-ink);
}

.brz-woo .cart_item .product-name a:hover {
	color: var(--brz-coral);
}

.brz-woo .cart_item .product-name .variation,
.brz-woo .cart_item dl.variation {
	font-size: 12.5px;
	color: var(--brz-gray);
	margin-top: 4px;
}

.brz-woo .cart_item .product-price,
.brz-woo .cart_item .product-subtotal {
	color: var(--brz-ink);
	font-weight: 500;
}

/* Remover item (×) */
.brz-woo td.product-remove {
	width: 48px;
	text-align: center;
}

.brz-woo td.product-remove a.remove,
.brz-woo a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: var(--brz-gray) !important;
	background: var(--brz-off);
	border: 1px solid var(--brz-line);
	transition: var(--brz-ease);
}

.brz-woo td.product-remove a.remove:hover,
.brz-woo a.remove:hover {
	background: var(--brz-coral) !important;
	color: var(--brz-white) !important;
	border-color: var(--brz-coral);
}

/* Quantidade */
.brz-woo .cart .quantity input.qty,
.brz-woo .quantity input.qty {
	width: 76px;
	height: 46px;
	text-align: center;
	font-family: var(--brz-font-display);
	font-weight: 600;
	color: var(--brz-ink);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	background: var(--brz-white);
}

/* ── Linha de ações (cupom + atualizar) ── */
.brz-woo table.cart td.actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 24px;
	background: var(--brz-white);
}

.brz-woo td.actions .coupon {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 560px;
	max-width: 680px;
}

.brz-woo td.actions .coupon label {
	display: none;
}

.brz-woo td.actions .coupon .input-text {
	flex: 1 1 auto;
	min-width: 240px;
	height: 54px;
	padding: 14px 18px;
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	background: var(--brz-white);
	font-size: 15px;
	color: var(--brz-ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.brz-woo td.actions .coupon .input-text::placeholder {
	color: var(--brz-gray);
}

.brz-woo td.actions .coupon .input-text:focus {
	border-color: var(--brz-coral);
	outline: none;
	box-shadow: 0 0 0 3px rgba(226, 83, 59, .12);
}

/* Aplicar cupom — botão escuro */
.brz-woo td.actions .button[name="apply_coupon"] {
	background: var(--brz-ink);
	white-space: nowrap;
	height: 54px;
	padding: 0 30px;
	flex: 0 0 auto;
}

.brz-woo td.actions .button[name="apply_coupon"]:hover {
	background: var(--brz-black);
}

/* Atualizar carrinho — botão secundário (claro), alinhado à direita */
.brz-woo td.actions .button[name="update_cart"] {
	background: var(--brz-white);
	color: var(--brz-ink) !important;
	border: 1px solid var(--brz-line);
	height: 54px;
	padding: 0 28px;
	margin-left: auto;
}

.brz-woo td.actions .button[name="update_cart"]:hover {
	border-color: var(--brz-coral);
	color: var(--brz-coral) !important;
	background: var(--brz-white);
}

/* Estado desabilitado (antes de alterar a quantidade) */
.brz-woo td.actions .button[disabled],
.brz-woo .button:disabled,
.brz-woo .button.disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* ── Totais do carrinho ── */
.brz-woo .cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.brz-woo .cart-collaterals .cart_totals,
.brz-woo .cart_totals {
	float: none;
	width: 100%;
}

.brz-woo .cart-collaterals .cart_totals {
	max-width: 440px;
}

.brz-woo .cart_totals h2 {
	font-family: var(--brz-font-display);
	font-size: 20px;
	color: var(--brz-ink);
	margin-bottom: 16px;
}

.brz-woo .cart_totals table.shop_table {
	margin-bottom: 20px;
}

.brz-woo .cart_totals th {
	background: var(--brz-white);
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--brz-ink);
	width: 40%;
}

.brz-woo .cart_totals td {
	color: var(--brz-text);
}

.brz-woo .cart_totals .order-total th,
.brz-woo .cart_totals .order-total td {
	font-size: 16px;
}

.brz-woo .cart_totals .order-total .woocommerce-Price-amount {
	color: var(--brz-coral);
	font-family: var(--brz-font-display);
	font-weight: 700;
}

/* Botão "Finalizar compra" — CTA coral em largura total */
.brz-woo .wc-proceed-to-checkout {
	padding: 0;
}

.brz-woo .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	height: 54px;
	font-size: 16px;
	background: var(--brz-coral);
	color: var(--brz-white) !important;
}

.brz-woo .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--brz-coral-d);
}

/* ── Carrinho vazio ── */
.brz-woo .cart-empty,
.brz-woo .wc-empty-cart-message {
	font-size: 16px;
	color: var(--brz-gray);
	margin-bottom: 20px;
}

.brz-woo .return-to-shop .button {
	background: var(--brz-coral);
}

/* ── Cross-sells ── */
.brz-woo .cross-sells {
	margin-top: 48px;
}

.brz-woo .cross-sells > h2 {
	font-size: clamp(22px, 3vw, 30px);
	color: var(--brz-ink);
	margin-bottom: 22px;
}

/* ── Carrinho em blocos (Cart Block) — acentos da marca ── */
.brz-woo .wc-block-cart,
.brz-woo .wp-block-woocommerce-cart {
	color: var(--brz-text);
}

.brz-woo .wc-block-cart__submit-button,
.brz-woo .wc-block-cart .wc-block-components-button.contained {
	background: var(--brz-coral);
	color: var(--brz-white);
	border-radius: var(--brz-radius-sm);
}

.brz-woo .wc-block-components-totals-item__value,
.brz-woo .wc-block-components-product-price {
	color: var(--brz-ink);
}

/* ============================================================
   Checkout
   ============================================================ */
.brz-woo.woocommerce-checkout .col2-set,
.brz-woo.woocommerce-checkout #customer_details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.brz-woo.woocommerce-checkout .col2-set .col-1,
.brz-woo.woocommerce-checkout .col2-set .col-2,
.brz-woo.woocommerce-checkout #customer_details .col-1,
.brz-woo.woocommerce-checkout #customer_details .col-2 {
	width: 100%;
	float: none;
}

.brz-woo .woocommerce-billing-fields > h3,
.brz-woo .woocommerce-shipping-fields > h3,
.brz-woo .woocommerce-additional-fields > h3,
.brz-woo #order_review_heading {
	font-family: var(--brz-font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--brz-ink);
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--brz-line);
}

.brz-woo .form-row label {
	font-family: var(--brz-font-display);
	font-weight: 500;
	font-size: 13.5px;
	color: var(--brz-ink);
	margin-bottom: 7px;
	display: block;
}

.brz-woo .form-row .required {
	color: var(--brz-coral);
	text-decoration: none;
}

.brz-woo .input-text,
.brz-woo .form-row input.input-text,
.brz-woo .form-row textarea,
.brz-woo .select2-container--default .select2-selection--single,
.brz-woo .form-row select {
	font-family: var(--brz-font-body);
	font-size: 14.5px;
	color: var(--brz-ink);
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius-sm);
	padding: 13px 15px;
	width: 100%;
	transition: border-color .2s ease, box-shadow .2s ease;
	line-height: 1.4;
}

.brz-woo .select2-container--default .select2-selection--single {
	height: 49px;
	display: flex;
	align-items: center;
}

.brz-woo .input-text:focus,
.brz-woo .form-row input.input-text:focus,
.brz-woo .form-row textarea:focus,
.brz-woo .form-row select:focus {
	border-color: var(--brz-coral);
	box-shadow: 0 0 0 3px rgba(226, 83, 59, .12);
	outline: none;
}

.brz-woo .woocommerce-checkout #payment {
	background: var(--brz-white);
	border: 1px solid var(--brz-line);
	border-radius: var(--brz-radius);
}

.brz-woo .woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 1px solid var(--brz-line);
	padding: 22px;
}

.brz-woo .woocommerce-checkout #payment div.payment_box {
	background: var(--brz-off);
	border-radius: var(--brz-radius-sm);
}

.brz-woo .woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--brz-off);
}

.brz-woo #payment .place-order {
	padding: 22px;
}

.brz-woo #place_order {
	width: 100%;
	height: 56px;
	font-size: 16px;
}

/* review do pedido fica sticky em telas grandes */
.brz-woo.woocommerce-checkout .woocommerce-checkout-review-order {
	position: sticky;
	top: 24px;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1024px) {
	.brz-woo ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.brz-shop-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.brz-filter-toggle {
		display: flex;
	}

	.brz-shop-sidebar {
		position: static;
		display: none;
		margin-bottom: 28px;
	}

	.brz-shop-sidebar.is-open {
		display: block;
	}

	.brz-woo ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Sem hover em touch: revela o botão de ação do card. */
	.brz-woo ul.products li.product .brz-card__action {
		opacity: 1;
		background: linear-gradient(to top, rgba(31, 31, 31, .42), transparent 60%);
		align-items: flex-end;
	}

	.brz-woo ul.products li.product .brz-card__action .button,
	.brz-woo ul.products li.product .brz-card__action .added_to_cart {
		transform: none;
	}

	.brz-woo.single-product div.product {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.brz-woo.single-product div.product .woocommerce-product-gallery,
	.brz-woo.woocommerce-checkout .woocommerce-checkout-review-order {
		position: static;
	}

	.brz-woo.woocommerce-checkout .col2-set,
	.brz-woo.woocommerce-checkout #customer_details {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (max-width: 600px) {
	.brz-shop-wrap {
		padding: 28px 18px 64px;
	}

	.brz-woo ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.brz-woo ul.products li.product .woocommerce-loop-product__title {
		font-size: 14.5px;
		padding: 14px 14px 0;
	}

	.brz-woo ul.products li.product .price {
		padding: 6px 14px 0;
		font-size: 16px;
	}

	.brz-woo ul.products li.product .button,
	.brz-woo ul.products li.product .added_to_cart {
		margin: 12px 14px 16px;
		width: calc(100% - 28px);
	}

	.brz-woo.single-product div.product form.cart .single_add_to_cart_button {
		flex: 1 1 100%;
	}
}

@media (max-width: 420px) {
	.brz-woo ul.products {
		grid-template-columns: 1fr;
	}
}
