/* Carrinho lateral CEPEO */

.cepeo-sc {
	--cepeo-azul: #01389c;
	--cepeo-verde: #38c43b;
	--cepeo-texto: #1c1c1c;
	--cepeo-suave: #6b7280;
	--cepeo-linha: #e5e7eb;
	--cepeo-fundo: #ffffff;

	position: fixed;
	top: 0;
	right: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	width: 420px;
	max-width: 100vw;
	height: 100%;
	background: var(--cepeo-fundo);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	transition: transform 0.28s ease;
	font-size: 15px;
	color: var(--cepeo-texto);
}

.cepeo-sc[hidden] {
	display: flex;
}

.cepeo-sc.is-open {
	transform: translateX(0);
}

.cepeo-sc__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.cepeo-sc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}

.cepeo-sc-overlay[hidden] {
	display: block;
}

.cepeo-sc-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Cabecalho */

.cepeo-sc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	padding: 20px 22px 16px;
	border-bottom: 1px solid var(--cepeo-linha);
}

.cepeo-sc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.cepeo-sc__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f1f3f5;
	color: var(--cepeo-suave);
	font-size: 13px;
	font-weight: 600;
}

.cepeo-sc__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--cepeo-texto);
	border-radius: 50%;
	background: none;
	color: var(--cepeo-texto);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.cepeo-sc__close:hover {
	background: var(--cepeo-texto);
	color: #fff;
}

/* Corpo rolavel */

.cepeo-sc__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 16px 22px;
}

/* Contador de promocao */

.cepeo-sc__promo {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #1c1c1c;
	color: #fff;
	text-align: center;
}

.cepeo-sc__promo-text {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.cepeo-sc__promo-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
}

.cepeo-sc__promo-label {
	color: #cbd5e1;
}

.cepeo-sc__promo-clock {
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fbbf24;
}

/* Banner */

.cepeo-sc__banner {
	margin-bottom: 14px;
}

.cepeo-sc__banner img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* Barra de frete gratis */

.cepeo-sc__freeship {
	margin-bottom: 18px;
	padding: 14px;
	border: 1px dashed var(--cepeo-verde);
	border-radius: 10px;
	background: #f4fcf4;
	text-align: center;
}

.cepeo-sc__freeship.is-complete {
	border-style: solid;
	background: #eafbea;
}

.cepeo-sc__freeship-msg {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.45;
}

.cepeo-sc__bar {
	position: relative;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #dbeedc;
}

.cepeo-sc__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--cepeo-verde);
	transition: width 0.4s ease;
}

.cepeo-sc__freeship-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 18px;
	border: 1px solid var(--cepeo-verde);
	border-radius: 6px;
	color: var(--cepeo-verde);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.cepeo-sc__freeship-cta:hover {
	background: var(--cepeo-verde);
	color: #fff;
}

/* Itens */

.cepeo-sc__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cepeo-sc__item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cepeo-linha);
}

.cepeo-sc__item-thumb img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	object-fit: cover;
}

.cepeo-sc__item-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cepeo-sc__item-name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.cepeo-sc__item-name a {
	color: inherit;
	text-decoration: none;
}

.cepeo-sc__item-meta {
	color: var(--cepeo-suave);
	font-size: 12px;
}

.cepeo-sc__item-meta p {
	margin: 0;
}

.cepeo-sc__item-bottom {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.cepeo-sc__remove {
	display: flex;
	align-items: center;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--cepeo-suave);
	cursor: pointer;
}

.cepeo-sc__remove:hover {
	color: #dc2626;
}

.cepeo-sc__qty {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--cepeo-linha);
	border-radius: 999px;
}

.cepeo-sc__qty-btn {
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	color: var(--cepeo-texto);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.cepeo-sc__qty-btn:hover {
	background: #f1f3f5;
}

.cepeo-sc__qty-val {
	min-width: 30px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.cepeo-sc__item-price {
	font-size: 15px;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

/* Leve Junto */

.cepeo-sc__cross {
	margin-top: 22px;
}

.cepeo-sc__cross-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cepeo-sc__cross-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.cepeo-sc__cross-nav {
	display: flex;
	gap: 8px;
}

.cepeo-sc__cross-nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--cepeo-linha);
	border-radius: 50%;
	background: #fff;
	color: var(--cepeo-texto);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.cepeo-sc__cross-nav button:disabled {
	opacity: 0.35;
	cursor: default;
}

.cepeo-sc__cross-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.cepeo-sc__cross-track::-webkit-scrollbar {
	display: none;
}

.cepeo-sc__cross-card {
	display: flex;
	flex: 0 0 82%;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--cepeo-linha);
	border-radius: 10px;
	scroll-snap-align: start;
}

.cepeo-sc__cross-thumb img {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 8px;
	object-fit: cover;
}

.cepeo-sc__cross-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	min-width: 0;
}

.cepeo-sc__cross-name {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cepeo-sc__cross-price {
	font-size: 15px;
	font-weight: 700;
}

.cepeo-sc__cross-price del {
	margin-right: 4px;
	color: var(--cepeo-suave);
	font-weight: 400;
}

.cepeo-sc__cross-add {
	align-self: flex-start;
	padding: 7px 18px;
	border: 1px solid var(--cepeo-texto);
	border-radius: 999px;
	background: none;
	color: var(--cepeo-texto);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.cepeo-sc__cross-add:hover {
	background: var(--cepeo-texto);
	color: #fff;
}

/* Vazio */

.cepeo-sc__empty {
	padding: 48px 0;
	color: var(--cepeo-suave);
	text-align: center;
}

/* Rodape fixo */

.cepeo-sc__foot {
	flex: 0 0 auto;
	padding: 16px 22px 22px;
	border-top: 1px solid var(--cepeo-linha);
	background: #fff;
}

.cepeo-sc__coupon {
	border-bottom: 1px solid var(--cepeo-linha);
}

.cepeo-sc__coupon-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 17px;
	cursor: pointer;
}

.cepeo-sc__coupon-icon {
	font-size: 22px;
	line-height: 1;
}

.cepeo-sc__coupon-panel {
	padding-bottom: 12px;
}

.cepeo-sc__coupon-row {
	display: flex;
	gap: 8px;
}

.cepeo-sc__coupon-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cepeo-linha);
	border-radius: 6px;
	font-size: 14px;
}

.cepeo-sc__coupon-apply {
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--cepeo-azul);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.cepeo-sc__coupon-msg {
	margin: 8px 0 0;
	font-size: 13px;
	min-height: 1em;
}

.cepeo-sc__coupon-msg.is-error {
	color: #dc2626;
}

.cepeo-sc__coupon-msg.is-ok {
	color: #15803d;
}

.cepeo-sc__coupon-list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.cepeo-sc__coupon-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 13px;
	font-weight: 600;
}

.cepeo-sc__coupon-remove {
	border: 0;
	background: none;
	color: var(--cepeo-suave);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}

.cepeo-sc__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 19px;
}

.cepeo-sc__total strong {
	font-weight: 700;
}

.cepeo-sc__total-note {
	margin: 2px 0 0;
	color: var(--cepeo-suave);
	font-size: 12px;
}

.cepeo-sc__pix {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	color: #15803d;
	font-size: 15px;
}

.cepeo-sc__pix-badge {
	padding: 3px 8px;
	border-radius: 4px;
	background: #dcfce7;
	font-size: 12px;
	font-weight: 700;
}

.cepeo-sc__installment {
	margin: 4px 0 0;
	color: var(--cepeo-suave);
	font-size: 14px;
}

.cepeo-sc__btn {
	display: block;
	margin-top: 14px;
	padding: 16px 20px;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.cepeo-sc__btn--primary {
	background: var(--cepeo-verde);
	color: #fff;
}

.cepeo-sc__btn--primary:hover {
	background: #2fae32;
	color: #fff;
}

.cepeo-sc__btn--ghost {
	border: 1px solid var(--cepeo-linha);
	color: var(--cepeo-texto);
}

.cepeo-sc__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.cepeo-sc__badges span {
	padding: 4px 9px;
	border: 1px solid var(--cepeo-linha);
	border-radius: 4px;
	color: var(--cepeo-suave);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Carregando */

.cepeo-sc__loading[hidden] {
	display: none;
}

.cepeo-sc__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.65);
}

.cepeo-sc__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid var(--cepeo-linha);
	border-top-color: var(--cepeo-verde);
	border-radius: 50%;
	animation: cepeo-spin 0.7s linear infinite;
}

@keyframes cepeo-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Mobile */

@media (max-width: 480px) {
	.cepeo-sc {
		width: 100%;
	}

	.cepeo-sc__body,
	.cepeo-sc__head,
	.cepeo-sc__foot {
		padding-right: 16px;
		padding-left: 16px;
	}

	.cepeo-sc__cross-card {
		flex: 0 0 88%;
	}
}

/* Esconde o painel nativo do Menu Cart do Elementor: o toggle dele abre o nosso */

.elementor-menu-cart__container {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.cepeo-sc,
	.cepeo-sc-overlay,
	.cepeo-sc__bar span {
		transition: none;
	}
}


/* ------------------------------------------------------------------
   Blindagem: Elementor e o tema aplicam estilos amplos em button/a.
   Tudo dentro do drawer reafirma o proprio visual.
   ------------------------------------------------------------------ */

.cepeo-sc button,
.cepeo-sc .cepeo-sc__btn {
	font-family: inherit;
	text-shadow: none;
	box-shadow: none;
}

.cepeo-sc .cepeo-sc__close {
	width: 40px;
	height: 40px;
	min-width: 0;
	padding: 0;
	border: 2px solid var(--cepeo-texto);
	border-radius: 50%;
	background: none;
	background-image: none;
	color: var(--cepeo-texto);
	font-size: 26px;
}

.cepeo-sc .cepeo-sc__close:hover,
.cepeo-sc .cepeo-sc__close:focus {
	background: var(--cepeo-texto);
	color: #fff;
}

.cepeo-sc .cepeo-sc__btn--primary,
.cepeo-sc a.cepeo-sc__btn--primary {
	background: var(--cepeo-verde);
	background-image: none;
	color: #fff;
	fill: #fff;
}

.cepeo-sc .cepeo-sc__btn--primary:hover,
.cepeo-sc a.cepeo-sc__btn--primary:hover,
.cepeo-sc .cepeo-sc__btn--primary:focus,
.cepeo-sc a.cepeo-sc__btn--primary:focus {
	background: #2fae32;
	color: #fff;
}

.cepeo-sc .cepeo-sc__btn--ghost,
.cepeo-sc a.cepeo-sc__btn--ghost {
	border: 1px solid var(--cepeo-linha);
	background: none;
	background-image: none;
	color: var(--cepeo-texto);
}

.cepeo-sc .cepeo-sc__cross-add,
.cepeo-sc .cepeo-sc__freeship-cta {
	min-width: 0;
	background-image: none;
	line-height: 1.2;
}

.cepeo-sc .cepeo-sc__cross-add {
	border: 1px solid var(--cepeo-texto);
	background: #fff;
	color: var(--cepeo-texto);
}

.cepeo-sc .cepeo-sc__cross-add:hover {
	background: var(--cepeo-texto);
	color: #fff;
}

.cepeo-sc .cepeo-sc__cross-add:disabled {
	opacity: 0.5;
	cursor: default;
}

.cepeo-sc .cepeo-sc__freeship-cta {
	border: 1px solid var(--cepeo-verde);
	background: #fff;
	color: var(--cepeo-verde);
}

.cepeo-sc .cepeo-sc__freeship-cta:hover {
	background: var(--cepeo-verde);
	color: #fff;
}

.cepeo-sc .cepeo-sc__qty-btn,
.cepeo-sc .cepeo-sc__remove,
.cepeo-sc .cepeo-sc__coupon-toggle,
.cepeo-sc .cepeo-sc__coupon-remove,
.cepeo-sc .cepeo-sc__cross-nav button {
	background-image: none;
	box-shadow: none;
}

.cepeo-sc .cepeo-sc__qty-btn {
	width: 32px;
	height: 32px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--cepeo-texto);
}

.cepeo-sc .cepeo-sc__remove {
	min-width: 0;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--cepeo-suave);
}

.cepeo-sc .cepeo-sc__coupon-apply {
	min-width: 0;
	border: 0;
	background: var(--cepeo-azul);
	background-image: none;
	color: #fff;
}

.cepeo-sc .cepeo-sc__coupon-toggle {
	border: 0;
	background: none;
	color: var(--cepeo-texto);
	text-transform: none;
}

.cepeo-sc .cepeo-sc__cross-nav button {
	width: 32px;
	height: 32px;
	min-width: 0;
	padding: 0;
	border: 1px solid var(--cepeo-linha);
	border-radius: 50%;
	background: #fff;
	color: var(--cepeo-texto);
}

/* precos herdando cor de link do tema */
.cepeo-sc .woocommerce-Price-amount,
.cepeo-sc bdi {
	color: inherit;
}


/* Aviso inline (substitui o alert nativo, que congelaria a pagina) */

.cepeo-sc__alert {
	display: none;
	margin-bottom: 12px;
	padding: 10px 12px;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.4;
}

.cepeo-sc__alert.is-visible {
	display: block;
}


/* O tema pinta todo <a> de azul; nomes dentro do drawer usam a cor do texto */

.cepeo-sc .cepeo-sc__cross-name,
.cepeo-sc .cepeo-sc__item-name a {
	color: var(--cepeo-texto);
}

.cepeo-sc .cepeo-sc__cross-name:hover,
.cepeo-sc .cepeo-sc__item-name a:hover {
	color: var(--cepeo-azul);
}


/* ------------------------------------------------------------------
   CTA do carrinho alinhado ao checkout.
   O verde da marca (#38C43B) da apenas 2,30:1 com texto branco, o que
   deixa o texto do botao dificil de ler. Onde ha texto usamos #0F8A11
   (4,5:1); o verde claro segue nas barras de progresso, sem texto.
   ------------------------------------------------------------------ */

.cepeo-sc .cepeo-sc__btn--primary,
.cepeo-sc a.cepeo-sc__btn--primary {
	background: #0f8a11;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
	font-size: 17px;
	font-weight: 700;
}

.cepeo-sc .cepeo-sc__btn--primary:hover,
.cepeo-sc a.cepeo-sc__btn--primary:hover,
.cepeo-sc .cepeo-sc__btn--primary:focus,
.cepeo-sc a.cepeo-sc__btn--primary:focus {
	background: #0c750e;
}

.cepeo-sc .cepeo-sc__btn--primary:focus-visible {
	outline: 3px solid rgba(15, 138, 17, 0.28);
	outline-offset: 2px;
}

/* Texto sobre fundo claro tambem precisa de contraste */

.cepeo-sc .cepeo-sc__freeship-cta {
	border-color: #0f8a11;
	color: #0f8a11;
}

.cepeo-sc .cepeo-sc__freeship-cta:hover {
	background: #0f8a11;
	color: #fff;
}

.cepeo-sc__pix {
	color: #0f8a11;
}
