/* Mini-cart orçamento (drawer) + botão header */

/* CTA orçamento por e-mail — base; cards de vitrine reforçam numa linha abaixo */
.lubmix-btn-quote-email--primary {
	display: inline-flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	box-sizing: border-box;
	min-height: 44px;
	border-radius: 0.5rem;
	padding: 0.5rem 0.45rem;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	background-color: #002d56;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	flex-wrap: nowrap;
}

.lubmix-btn-quote-email--primary svg {
	flex-shrink: 0;
}

.lubmix-btn-quote-email--primary:hover {
	background-color: #003a6e;
	color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
	transform: translateY(-1px);
}

.lubmix-btn-quote-email--primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lubmix-btn-quote-email--primary:focus-visible {
	outline: 2px solid #002d56;
	outline-offset: 2px;
}

.lubmix-quote-open-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: inherit;
	transition: color 0.2s ease;
}

.lubmix-quote-open-cart:hover {
	color: rgb(0 45 86);
}

/* Ícone 30×30 no header: o badge fica ancorado ao canto inferior direito do desenho (paridade com produção). */
.lubmix-quote-open-cart__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
}

.lubmix-quote-open-cart__icon .lubmix-quote-header-badge-wrap {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.lubmix-quote-header-badge {
	position: absolute;
	top: auto;
	right: -1px;
	bottom: 0;
	left: auto;
	box-sizing: border-box;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 9999px;
	background: #003357;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
	border: 0;
	outline: 0;
	box-shadow: none;
}

.lubmix-quote-open-cart__icon .lubmix-header-action-icon--cart {
	display: block;
	width: 100%;
	height: 100%;
}

.lubmix-quote-header-badge-wrap:empty {
	display: none;
}

body.lubmix-quote-open,
body.lubmix-drawer-open {
	overflow: hidden;
}

.lubmix-quote-drawer {
	position: fixed;
	inset: 0;
	z-index: 99998;
	pointer-events: none;
}

.lubmix-quote-drawer:not([hidden]) {
	pointer-events: auto;
}

.lubmix-quote-drawer__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.lubmix-quote-drawer__panel {
	--lubmix-quote-admin-bar: 0px;
	position: absolute;
	/* Evita título/cabeçalho sob a barra do WP (logado) ou notch (safe-area). */
	top: max(env(safe-area-inset-top, 0px), var(--lubmix-quote-admin-bar));
	right: 0;
	height: calc(
		100% - max(env(safe-area-inset-top, 0px), var(--lubmix-quote-admin-bar))
	);
	width: min(100%, 400px);
	background: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	min-height: 0;
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

/* Altura padrão da admin bar: 32px desktop, 46px mobile (WP). */
body.admin-bar .lubmix-quote-drawer__panel {
	--lubmix-quote-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .lubmix-quote-drawer__panel {
		--lubmix-quote-admin-bar: 46px;
	}
}

.lubmix-quote-drawer:not([hidden]) .lubmix-quote-drawer__panel {
	transform: translateX(0);
}

.lubmix-quote-drawer__panel .lubmix-quote-fragment {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.lubmix-quote-drawer__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.lubmix-quote-drawer__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.25rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.lubmix-quote-drawer__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: rgb(17 24 39);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.lubmix-quote-drawer__close {
	background: transparent;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	color: rgb(75 85 99);
}

.lubmix-quote-drawer__close:hover {
	color: rgb(0 45 86);
}

.lubmix-quote-drawer__empty {
	padding: 1.5rem 1.25rem;
	margin: 0;
	font-size: 0.875rem;
	color: rgb(107 114 128);
}

.lubmix-quote-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0.75rem 1rem 1rem;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.lubmix-quote-drawer__item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 0.75rem;
	align-items: start;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.lubmix-quote-drawer__thumb {
	width: 56px;
	height: 56px;
	border-radius: 0.375rem;
	overflow: hidden;
	background: #f9fafb;
}

.lubmix-quote-drawer__thumb img,
.lubmix-quote-drawer__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lubmix-quote-drawer__product-title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: rgb(31 41 55);
}

.lubmix-quote-drawer__qty-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
}

.lubmix-quote-drawer__qty-label {
	color: rgb(107 114 128);
}

.lubmix-quote-drawer__qty {
	width: 3.5rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid #d1d5db;
	border-radius: 0.25rem;
	font-size: 0.8125rem;
}

.lubmix-quote-drawer__remove {
	display: inline-flex;
	align-self: center;
	padding: 0.35rem;
	color: rgb(107 114 128);
}

.lubmix-quote-drawer__remove:hover {
	color: rgb(185 28 28);
}

.lubmix-quote-drawer__remove-icon {
	width: 1.15rem;
	height: 1.15rem;
}

.lubmix-quote-drawer__cta {
	padding: 0 1.25rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.lubmix-quote-drawer__checkout {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.875rem 1rem;
	background: rgb(0 45 86);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 0.375rem;
	text-decoration: none;
	transition: background 0.2s ease;
}

.lubmix-quote-drawer__checkout:hover {
	background: rgb(0 36 68);
	color: #fff !important;
}

/* Card home/arquivo: link da mídia não deve ficar “por cima” do CTA de orçamento (stacking). */
.lubmix-product-card-catalog__quote-cta {
	position: relative;
	z-index: 2;
}

.lubmix-product-card-catalog__quote-cta .lubmix-btn-quote-email {
	position: relative;
	z-index: 3;
}

/* Card catálogo / vitrine — máximo de largura útil para caber 14px numa linha (4 colunas) */
.lubmix-product-card-catalog__quote-cta .lubmix-btn-quote-email--primary {
	width: 100%;
	min-height: 44px;
	padding: 0.45rem 0.28rem;
	gap: 0.22rem;
	letter-spacing: 0.01em;
}

.lubmix-product-card-catalog__quote-cta .lubmix-btn-quote-email--primary span {
	line-height: inherit;
}

/*
 * Botão telefone nos cards (home + catálogo) — alinhado ao orçamento (uma linha, padding compacto).
 */
.lubmix-home-product-card__btn--phone {
	display: inline-flex !important;
	width: 100%;
	align-items: center;
	justify-content: center;
	align-content: center;
	gap: 0.22rem;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.45rem 0.28rem;
	border-radius: 0.375rem;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: #fff !important;
	background-color: #0079c1;
	white-space: nowrap;
	flex-wrap: nowrap;
	flex-direction: row;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lubmix-home-product-card__btn--phone svg {
	flex-shrink: 0;
}

.lubmix-home-product-card__btn--phone:hover {
	background-color: #006bb4;
	color: #fff !important;
}

.lubmix-home-product-card__btn--phone:focus-visible {
	outline: 2px solid #0079c1;
	outline-offset: 2px;
}

.lubmix-home-product-card__btn--phone .inline-flex {
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0.22rem;
	text-align: center;
	white-space: nowrap;
}

/* Área dos CTAs (home + catálogo): padding/gap só aqui (evita conflito com utilities) */
.lubmix-home-product-card__actions {
	display: flex;
	flex-direction: column;
	padding: 0.375rem 0.25rem 0.5rem;
	gap: 0.375rem;
	min-width: 0;
}

article.lubmix-product-card-catalog {
	min-width: 0;
}

ul.products .lubmix-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	list-style: none;
}

.lubmix-product-card__media {
	display: block;
	overflow: hidden;
	border-radius: 0.5rem;
	background: #f9fafb;
}

.lubmix-product-card__img {
	width: 100%;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

.lubmix-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.75rem;
	padding-top: 0.75rem;
}

.lubmix-product-card__title-link {
	text-decoration: none;
	color: inherit;
}

/*
 * Título do card (archive: h2; vitrine home / card reutilizado: h3).
 * O clamp fica só no span interno — o heading não usa -webkit-line-clamp (evita conflitos com heading/flex).
 */
.lubmix-home-product-card__media-link {
	min-width: 0;
	width: 100%;
}

h2.lubmix-product-card__title,
h3.lubmix-product-card__title,
.lubmix-product-card__title {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: #494949;
}

.lubmix-product-card__title-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	overflow-wrap: anywhere;
	font-size: inherit;
	font-weight: inherit;
	line-height: 18px;
	color: #494949;
	min-width: 0;
	width: 100%;
}

.lubmix-product-card__ctas {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: auto;
}

.lubmix-btn-quote-tel {
	display: inline-flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	box-sizing: border-box;
	min-height: 44px;
	border-radius: 0.5rem;
	padding: 0.5rem 0.45rem;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	background-color: #2563eb;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	flex-wrap: nowrap;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lubmix-btn-quote-tel:hover {
	background-color: #1d4ed8;
	color: #fff;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.38);
	transform: translateY(-1px);
}

.lubmix-btn-quote-tel:active {
	transform: translateY(0);
	box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}
