/* Engenho 33 Core — barra de frete grátis, modal PIX e banner de consentimento */

/* ---------- Barra de frete grátis (segue a tela e atraca acima do rodapé) ---------- */
.e33-fsb {
	position: sticky;
	bottom: 0;
	z-index: 89; /* abaixo de modais/drawer, acima do conteúdo */
	background: linear-gradient(90deg, #1d1508, #2a1f0e);
	border-top: 1px solid rgba(255, 182, 0, 0.5);
	border-bottom: 0;
	overflow: hidden;
	max-height: 72px;
	box-shadow: 0 -6px 20px rgba(30, 15, 0, 0.25);
	transition: max-height 0.3s ease;
}
.e33-fsb--empty { max-height: 0; border: 0; box-shadow: none; }
.e33-fsb__inner {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 8px 16px; text-decoration: none;
}
.e33-fsb__msg { color: #f4ede1; font-size: 13.5px; letter-spacing: 0.02em; text-align: center; }
.e33-fsb__msg strong { color: #e2c78d; }
.e33-fsb__track {
	width: min(420px, 80vw); height: 6px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.e33-fsb__fill {
	display: block; height: 100%; border-radius: 999px;
	background: linear-gradient(90deg, #c9a461, #e2c78d);
	transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.e33-fsb--reached .e33-fsb__fill { background: linear-gradient(90deg, #4caf7d, #7ed6a7); }
.e33-fsb--reached .e33-fsb__msg strong { color: #7ed6a7; }
@keyframes e33-fsb-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.06); }
	100% { transform: scale(1); }
}
.e33-fsb--celebrate .e33-fsb__inner { animation: e33-fsb-pop 0.5s ease; }

/* ---------- Modal PIX ---------- */
.e33-pix {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(10, 8, 6, 0.92);
	display: grid; place-items: center; padding: 16px;
}
.e33-pix[hidden] { display: none; }
.e33-pix__box {
	background: #fff; color: #1d1917; border-radius: 16px;
	width: min(430px, 100%); max-height: 94vh; overflow: auto;
	padding: 28px 26px; text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.e33-pix__box h3 { font-size: 19px; margin: 0 0 6px; color: #14110e; }
.e33-pix__total { font-size: 15px; color: #666; margin-bottom: 14px; }
.e33-pix__timer {
	display: inline-block; background: #f4ede1; color: #7a5c1e;
	font-weight: 700; font-variant-numeric: tabular-nums;
	border-radius: 999px; padding: 5px 16px; font-size: 14px; margin-bottom: 14px;
}
.e33-pix__timer--low { background: #fdecea; color: #c0392b; }
.e33-pix__qr { width: 230px; height: 230px; margin: 0 auto 14px; display: block; border: 1px solid #eee; border-radius: 10px; }
.e33-pix__help { font-size: 13px; color: #666; margin-bottom: 14px; }
.e33-pix__code {
	width: 100%; font-size: 12px; padding: 10px; border: 1px dashed #c9a461;
	border-radius: 8px; background: #faf7f0; color: #444;
	word-break: break-all; margin-bottom: 10px; text-align: left; max-height: 64px; overflow: hidden;
}
.e33-pix__copy {
	width: 100%; border: 0; border-radius: 999px; padding: 13px;
	background: linear-gradient(135deg, #c9a461, #e2c78d); color: #1d1508;
	font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.e33-pix__copy:active { transform: scale(0.99); }
.e33-pix__status { margin-top: 14px; font-size: 13px; color: #666; display: flex; align-items: center; justify-content: center; gap: 8px; }
.e33-pix__spinner {
	width: 14px; height: 14px; border: 2px solid #ddd; border-top-color: #c9a461;
	border-radius: 50%; animation: e33-spin 0.8s linear infinite;
}
@keyframes e33-spin { to { transform: rotate(360deg); } }
.e33-pix__paid { color: #2e7d32; font-weight: 700; }
.e33-pix__expired { color: #c0392b; font-weight: 600; margin-top: 10px; }
.e33-pix__link { display: inline-block; margin-top: 8px; color: #7a5c1e; font-weight: 700; text-decoration: underline; }
.e33-pix__note { margin-top: 12px; font-size: 11px; color: #999; }

/* ---------- Banner de consentimento ---------- */
.e33-consent {
	position: fixed; z-index: 9990; left: 16px; right: 16px; bottom: 16px;
	display: flex; justify-content: center; pointer-events: none;
}
.e33-consent[hidden] { display: none; }
.e33-consent__box {
	pointer-events: auto;
	background: #1d1915; color: #e9e2d5;
	border: 1px solid rgba(201, 164, 97, 0.35);
	border-radius: 14px; max-width: 680px; width: 100%;
	padding: 20px 22px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.e33-consent__box h3 { margin: 0 0 6px; font-size: 16px; color: #e2c78d; }
.e33-consent__box p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #a89e8c; }
.e33-consent__box p a { color: #e2c78d; }
.e33-consent__prefs { display: grid; gap: 8px; margin-bottom: 14px; }
.e33-consent__prefs label { font-size: 13px; display: flex; gap: 8px; align-items: center; color: #e9e2d5; }
.e33-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.e33-consent__btn {
	border: 1px solid rgba(201, 164, 97, 0.4); background: transparent; color: #e9e2d5;
	border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.e33-consent__btn--accept, .e33-consent__btn--save { background: linear-gradient(135deg, #c9a461, #e2c78d); color: #1d1508; border: 0; }
.e33-consent__btn--link { border: 0; text-decoration: underline; color: #a89e8c; }

@media (max-width: 640px) {
	.e33-consent { left: 8px; right: 8px; bottom: 8px; }
	.e33-consent__actions { display: grid; grid-template-columns: 1fr; }
}

/* ---------- Ajustes paleta clara (site atual) ---------- */
.e33-fsb { background: linear-gradient(90deg, #412100, #62220D); border-bottom-color: rgba(255, 182, 0, 0.5); }
.e33-fsb__msg { color: #FFF6E3; }
.e33-fsb__msg strong { color: #FFB600; }
.e33-fsb__fill { background: linear-gradient(90deg, #FFB600, #FFDB83); }
.e33-fsb--reached .e33-fsb__fill { background: linear-gradient(90deg, #FFB600, #FFDB83); }
.e33-fsb--reached .e33-fsb__msg strong { color: #FFDB83; }
.e33-consent__box { background: #FFFDF8; color: #412100; border-color: #F0E2C8; box-shadow: 0 16px 44px rgba(65, 33, 0, 0.18); }
.e33-consent__box h3 { color: #62220D; }
.e33-consent__box p { color: #7a6a55; }
.e33-consent__box p a { color: #933C1F; }
.e33-consent__prefs label { color: #412100; }
.e33-consent__btn { border-color: #E2CFA9; color: #412100; }
.e33-consent__btn--accept, .e33-consent__btn--save { background: linear-gradient(135deg, #FFB600, #FFDB83); color: #412100; }
.e33-consent__btn--link { color: #933C1F; }
.e33-pix__timer { background: #FFF3D6; color: #93690a; }
.e33-pix__code { border-color: #FFB600; background: #FFFBF0; }
.e33-pix__copy { background: linear-gradient(135deg, #FFB600, #FFDB83); color: #412100; }
.e33-pix__spinner { border-top-color: #FFB600; }
.e33-pix__link { color: #933C1F; }

/* ---------- Botão de favoritos ---------- */
.e33-fav-btn {
	background: #fff;
	border: 1px solid #F0E2C8;
	color: #933C1F;
	width: 38px; height: 38px;
	border-radius: 50%;
	display: inline-grid; place-items: center;
	cursor: pointer;
	transition: transform 0.15s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.e33-fav-btn:hover { border-color: #933C1F; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(65, 33, 0, 0.12); }
.e33-fav-btn.is-active { color: #C0392B; border-color: #C0392B; }
.e33-fav-btn--card { position: absolute; top: 12px; right: 12px; z-index: 3; }
.e33-fav-btn--single { vertical-align: middle; margin-left: 10px; }
@keyframes e33-fav-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.e33-fav-btn.is-pop svg { animation: e33-fav-pop 0.4s ease; }

/* ---------- Modal de login/cadastro ---------- */
.e33-auth { position: fixed; inset: 0; z-index: 9998; opacity: 0; transition: opacity 0.25s; }
.e33-auth.is-open { opacity: 1; }
.e33-auth[hidden] { display: none; }
.e33-auth__overlay { position: absolute; inset: 0; background: rgba(43, 24, 4, 0.6); }
.e33-auth__box {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: min(420px, 92vw); max-height: 92vh; overflow: auto;
	background: #FFFDF8; border-radius: 18px; padding: 34px 32px;
	box-shadow: 0 30px 80px rgba(30, 15, 0, 0.5);
}
.e33-auth__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 28px; color: #933C1F; cursor: pointer; }
.e33-auth__box h3 { color: #412100; font-size: 21px; margin: 0 0 6px; }
.e33-auth__sub { color: #8a7a63; font-size: 14px; margin: 0 0 18px; }
.e33-auth__box form p { margin: 0 0 14px; }
.e33-auth__box label { display: block; font-size: 12px; font-weight: 700; color: #933C1F; letter-spacing: 0.04em; }
.e33-auth__box input {
	width: 100%; margin-top: 5px;
	background: #fff; border: 1px solid #F0E2C8; border-radius: 10px;
	color: #412100; padding: 12px 14px; font-size: 15px; font-family: inherit;
}
.e33-auth__box input:focus { outline: none; border-color: #FFB600; box-shadow: 0 0 0 3px rgba(255, 182, 0, 0.18); }
.e33-auth__submit { width: 100%; display: block; }
.e33-auth__error { color: #C0392B; font-size: 13px; margin: 0 0 12px; }
.e33-auth__alt { text-align: center; font-size: 13px; margin: 16px 0 0; color: #8a7a63; }
.e33-auth__alt a { color: #933C1F; }
.e33-auth__guest { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #F0E2C8; text-align: center; }
.e33-auth__guest small { display: block; margin-top: 8px; color: #8a7a63; font-size: 12px; }
.e33-auth__view--success { text-align: center; }
.e33-auth__check {
	width: 58px; height: 58px; margin: 4px auto 14px;
	border-radius: 50%; background: linear-gradient(135deg, #FFB600, #FFDB83);
	color: #412100; font-size: 28px; font-weight: 800;
	display: grid; place-items: center;
}

/* ---------- Drawer do carrinho ---------- */
.e33-drawer { position: fixed; inset: 0; z-index: 9995; }
.e33-drawer[hidden] { display: none; }
.e33-drawer__overlay { position: absolute; inset: 0; background: rgba(43, 24, 4, 0.45); opacity: 0; transition: opacity 0.28s; }
.e33-drawer.is-open .e33-drawer__overlay { opacity: 1; }
.e33-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(400px, 92vw);
	background: #FFFDF8;
	box-shadow: -18px 0 50px rgba(65, 33, 0, 0.25);
	display: flex; flex-direction: column;
	transform: translateX(105%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.e33-drawer.is-open .e33-drawer__panel { transform: translateX(0); }
.e33-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px; border-bottom: 1px solid #F0E2C8;
}
.e33-drawer__head h3 { margin: 0; font-size: 18px; color: #412100; }
.e33-drawer__close { background: none; border: 0; font-size: 26px; line-height: 1; color: #933C1F; cursor: pointer; }
.e33-drawer__contents { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.e33-drawer__empty { padding: 40px 22px; text-align: center; color: #7a6a55; display: grid; gap: 16px; justify-items: center; }
.e33-drawer__items { list-style: none; margin: 0; padding: 10px 22px; overflow-y: auto; flex: 1; }
.e33-drawer__item {
	display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
	padding: 12px 0; border-bottom: 1px dashed #F0E2C8;
}
.e33-drawer__thumb img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #FBF6EE; }
.e33-drawer__name { color: #412100; font-weight: 600; font-size: 14px; text-decoration: none; display: block; margin-bottom: 4px; }
.e33-drawer__qty { color: #933C1F; font-size: 13px; }
.e33-drawer__remove { background: none; border: 0; color: #b5a78f; font-size: 20px; cursor: pointer; transition: color 0.2s; }
.e33-drawer__remove:hover { color: #C0392B; }
.e33-drawer__foot { padding: 18px 22px 22px; border-top: 1px solid #F0E2C8; display: grid; gap: 10px; }
.e33-drawer__foot .e33-btn { width: 100%; }
.e33-drawer__subtotal { display: flex; justify-content: space-between; align-items: center; color: #412100; font-size: 15px; margin-bottom: 4px; }
.e33-drawer__subtotal strong { font-size: 18px; color: #62220D; }
