/* PB Carrinho — off-canvas */

.pbcart {
	--pbcart-accent: #e6a100;
	--pbcart-bar: #1a9e75;
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}
.pbcart.is-open {
	visibility: visible;
	pointer-events: auto;
}
body.pbcart-lock {
	overflow: hidden;
}

/* ---------- Estilo próprio (contrariar o tema) ---------- */
.pbcart,
.pbcart *,
.pbcart *::before,
.pbcart *::after {
	box-sizing: border-box;
}
.pbcart-panel,
.pbcart-panel * {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	font-style: normal !important;
}
.pbcart-panel a {
	color: inherit;
	text-decoration: none !important;
	box-shadow: none !important;
	border: 0;
}
.pbcart-panel a:hover {
	color: inherit;
	opacity: 0.85;
}
.pbcart-panel img {
	max-width: none;
	border-radius: 8px;
}

.pbcart-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 25, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.pbcart.is-open .pbcart-overlay {
	opacity: 1;
}

.pbcart-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	background: var(--pbcart-bg, #fff);
	color: var(--pbcart-text, #16161f);
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pbcart--right .pbcart-panel {
	right: 0;
	transform: translateX(100%);
}
.pbcart--left .pbcart-panel {
	left: 0;
	transform: translateX(-100%);
}
.pbcart.is-open .pbcart-panel {
	transform: translateX(0);
}

.pbcart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
}
.pbcart-title {
	font-size: 1.15rem;
	font-weight: 700;
}
.pbcart-close {
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
}
.pbcart-close:hover {
	color: #000;
}

.pbcart-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}

/* barra de progresso */
.pbcart-progress {
	margin-bottom: 18px;
	padding: 12px 14px;
	background: #f7f7fb;
	border-radius: 10px;
}
.pbcart-progress-text {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 8px;
	text-align: center;
}
.pbcart-progress.is-reached .pbcart-progress-text {
	color: var(--pbcart-bar);
}
.pbcart-progress-track {
	height: 10px;
	border-radius: 6px;
	background: #e5e5ec;
	overflow: hidden;
}
.pbcart-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 6px;
	background: var(--pbcart-bar);
	transition: width 0.4s ease;
}

/* itens */
.pbcart-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pbcart-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
}
.pbcart-item.is-loading {
	opacity: 0.5;
}
.pbcart-item-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.pbcart-item-info {
	flex: 1;
	min-width: 0;
}
.pbcart-item-name {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
}
.pbcart-item-price {
	display: block;
	color: #666;
	font-size: 0.85rem;
	margin: 2px 0 8px;
}
.pbcart-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e0e0e6;
	border-radius: 8px;
	overflow: hidden;
}
.pbcart-qty-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	background: #fafafc;
	border: 0;
	width: 32px !important;
	height: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	font-size: 17px;
	line-height: 1;
	color: #333;
}
.pbcart-qty-btn:hover {
	background: #f0f0f4;
}
.pbcart-qty-val {
	min-width: 32px;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 600;
}
.pbcart-remove {
	background: none;
	border: 0;
	font-size: 20px;
	line-height: 1;
	color: #bbb;
	cursor: pointer;
	padding: 0 2px;
}
.pbcart-remove:hover {
	color: #c0392b;
}

.pbcart-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0 4px;
	font-size: 1.05rem;
}
.pbcart-empty {
	text-align: center;
	color: #888;
	padding: 40px 0;
}

/* rodapé */
.pbcart-foot {
	display: flex;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid #eee;
}
.pbcart-btn {
	flex: 1;
	text-align: center;
	padding: 13px 16px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
	font-size: 0.95rem;
	transition: filter 0.15s ease, background 0.15s ease;
}
.pbcart-btn-ghost {
	background: #f2f2f5;
	color: #222;
}
.pbcart-btn-ghost:hover {
	background: #e8e8ee;
}
.pbcart-btn-primary {
	background: var(--pbcart-accent);
	color: var(--pbcart-accent-text, #1a1300);
}
.pbcart-btn-primary:hover {
	filter: brightness(1.05);
}

/* botão flutuante */
.pbcart-bubble {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99990;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 0;
	background: var(--pbcart-accent, #e6a100);
	color: #1a1300;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}
.pbcart-bubble .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}
.pbcart-bubble .pbcart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	background: #16161f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.pbcart-bubble {
		bottom: 16px;
		right: 16px;
	}
}

/* isolamento do tema: TODOS os botões do painel têm cor/borda próprias */
.pbcart-panel button {
	color: inherit !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	min-height: 0 !important;
	background-image: none !important;
}
.pbcart-panel .pbcart-btn-ghost {
	background: #f1f1f5 !important;
}
.pbcart-panel .pbcart-btn-primary {
	color: var(--pbcart-accent-text, #1a1300) !important;
}
.pbcart-bubble,
.pbcart-wbtn {
	border: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* estados :hover/:focus/:active também imunes ao tema */
.pbcart-panel button:hover,
.pbcart-panel button:focus,
.pbcart-panel button:active {
	border: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
	background-color: transparent !important;
	color: inherit !important;
}
.pbcart-panel .pbcart-remove:hover {
	color: #c0392b !important;
	background-color: transparent !important;
}
.pbcart-panel .pbcart-close:hover {
	color: #000 !important;
	background-color: transparent !important;
}
.pbcart-panel .pbcart-qty-btn:hover {
	background-color: #efeff4 !important;
	color: #333 !important;
}
.pbcart-panel .pbcart-btn-ghost:hover {
	background-color: #e8e8ee !important;
}
.pbcart-panel .pbcart-btn-primary:hover {
	color: var(--pbcart-accent-text, #1a1300) !important;
	filter: brightness(1.05);
}

/* botão flutuante e widget: hover próprio (nunca rosa) */
.pbcart-bubble,
.pbcart-bubble:hover,
.pbcart-bubble:focus,
.pbcart-bubble:active {
	background-color: var(--pbcart-accent, #e6a100) !important;
	color: var(--pbcart-accent-text, #1a1300) !important;
	border: 0 !important;
	background-image: none !important;
}
.pbcart-bubble:hover {
	filter: brightness(1.06);
}
.pbcart-wbtn:hover,
.pbcart-wbtn:focus {
	border: 0 !important;
	background-image: none !important;
	color: inherit !important;
}

/* botão do widget Elementor */
.pbcart-wbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	padding: 4px;
	line-height: 1;
}
.pbcart-wbtn .pbcart-count {
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--pbcart-accent, #e6a100);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
