/* Side Cart */
#evo-sc-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 999998;
	opacity: 0;
	transition: opacity .25s;
}
#evo-sc-overlay.evo-sc-open {
	display: block;
	opacity: 1;
}
#evo-side-cart {
	position: fixed;
	top: 0;
	right: 0;
	width: 380px;
	max-width: 100vw;
	height: 100dvh;
	background: #fff;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 24px rgba(0,0,0,.12);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#evo-side-cart.evo-sc-open {
	transform: translateX(0);
}

/* Header */
#evo-sc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
	flex-shrink: 0;
}
#evo-sc-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}
#evo-sc-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}
#evo-sc-print {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 4px;
	display: flex;
	align-items: center;
	border-radius: 6px;
	transition: background .15s, color .15s;
}
#evo-sc-print:hover {
	background: #f1f5f9;
	color: #111827;
}
#evo-sc-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 4px;
	display: flex;
	align-items: center;
	border-radius: 6px;
	transition: background .15s, color .15s;
}
#evo-sc-close:hover {
	background: #f1f5f9;
	color: #111827;
}

/* Save form */
#evo-sc-save-form {
	padding: 10px 20px 12px;
	border-bottom: 1px solid #f1f5f9;
	background: #f8fafc;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
#evo-sc-save-form .evo-save-cart__name-input {
	flex: 1;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	padding: 7px 10px;
	font-size: 13px;
	outline: none;
	background: #fff;
}
#evo-sc-save-form .evo-save-cart__name-input:focus {
	border-color: #111827;
}
.evo-sc-save-form-actions {
	display: flex;
	gap: 6px;
}
#evo-sc-save-form .evo-save-cart__btn-confirm {
	background: #111827;
	color: #fff;
	border: none;
	border-radius: 7px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
#evo-sc-save-form .evo-save-cart__btn-cancel {
	background: #f1f5f9;
	color: #374151;
	border: none;
	border-radius: 7px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

/* Items area */
#evo-sc-items {
	flex: 1;
	overflow-y: auto;
	padding: 8px 0;
}
.evo-sc-empty {
	text-align: center;
	color: #9ca3af;
	font-size: 14px;
	padding: 40px 20px;
}
.evo-sc-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e7eb;
}
.evo-sc-item img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	flex-shrink: 0;
}
.evo-sc-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.evo-sc-item-name {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.35;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}
.evo-sc-item-meta {
	display: none;
}
.evo-sc-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.evo-sc-item-price {
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	text-align: right;
	line-height: 1.3;
	white-space: nowrap;
}
.evo-sc-item-price del,
.evo-sc-price-old {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #9ca3af;
	text-decoration: line-through;
	text-decoration-color: #9ca3af;
}
.evo-sc-item-price ins,
.evo-sc-price-new {
	display: block;
	text-decoration: none;
	color: #16a34a;
	font-weight: 800;
}
.evo-sc-qty-ctrl {
	display: flex;
	align-items: center;
	gap: 4px;
}
.evo-sc-qty-btn {
	width: 26px;
	height: 26px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f9fafb;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #374151;
	transition: background .15s, border-color .15s;
	padding: 0;
}
.evo-sc-qty-btn:hover {
	background: #f1f5f9;
	border-color: #d1d5db;
}
.evo-sc-qty-val {
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	min-width: 20px;
	text-align: center;
}
.evo-sc-remove {
	color: #d1d5db;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	flex-shrink: 0;
	transition: color .15s;
	padding: 2px;
}
.evo-sc-remove:hover {
	color: #ef4444;
}

/* Footer */
#evo-sc-footer {
	border-top: 1px solid #f1f5f9;
	padding: 16px 20px;
	flex-shrink: 0;
	background: #fff;
}
.evo-sc-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #374151;
	margin-bottom: 14px;
}
.evo-sc-subtotal strong {
	font-size: 18px;
	font-weight: 800;
	color: #111827;
}
.evo-sc-checkout {
	display: block;
	width: 100%;
	text-align: center;
	background: #111827;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 13px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .15s;
	margin-bottom: 8px;
}
.evo-sc-checkout:hover {
	background: #1e293b;
}
.evo-sc-view-cart {
	display: block;
	width: 100%;
	text-align: center;
	background: #f1f5f9;
	color: #374151 !important;
	font-size: 13px;
	font-weight: 600;
	padding: 11px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .15s;
}
.evo-sc-view-cart:hover {
	background: #e2e8f0;
}

/* Loading state */
#evo-side-cart.evo-sc-loading #evo-sc-items {
	opacity: .5;
	pointer-events: none;
}

@media (max-width: 420px) {
	#evo-side-cart { width: 100vw; }
}

/* Cotações salvas - botão no footer do drawer */
.evo-sc-cot-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-top: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 12px;
	color: #6b7280;
	padding: 6px;
	border-radius: 8px;
	transition: color .15s, background .15s;
	text-align: center;
}
.evo-sc-cot-link:hover {
	color: #111827;
	background: #f1f5f9;
}

/* Cotações popup */
#evo-cot-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 1000000;
}
#evo-cot-overlay.evo-cot-open {
	display: block;
}
#evo-cot-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%) scale(.96);
	width: 440px;
	max-width: calc(100vw - 32px);
	max-height: 75vh;
	background: #fff;
	border-radius: 16px;
	z-index: 1000001;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(0,0,0,.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
}
#evo-cot-popup.evo-cot-open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}
#evo-cot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
	flex-shrink: 0;
}
#evo-cot-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}
#evo-cot-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 4px;
	display: flex;
	align-items: center;
	border-radius: 6px;
	transition: background .15s, color .15s;
}
#evo-cot-close:hover {
	background: #f1f5f9;
	color: #111827;
}
#evo-cot-body {
	overflow-y: auto;
	padding: 16px 20px;
	flex: 1;
}
.evo-cot-loading,
.evo-cot-empty {
	text-align: center;
	color: #9ca3af;
	font-size: 14px;
	padding: 24px 0;
}
#evo-cot-body .evo-saved-carts__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Print preview drawer */
#evo-print-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 520px;
	max-width: 100vw;
	height: 100dvh;
	background: #f8fafc;
	z-index: 999997;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 24px rgba(0,0,0,.12);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#evo-print-drawer.evo-sc-open {
	transform: translateX(0);
}
#evo-print-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
	flex-shrink: 0;
}
#evo-print-drawer-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}
#evo-print-do-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #111827;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
#evo-print-do-btn:hover { background: #1e293b; }
#evo-print-drawer-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 4px;
	display: flex;
	align-items: center;
	border-radius: 6px;
	transition: background .15s;
}
#evo-print-drawer-close:hover { background: #f1f5f9; color: #111827; }
#evo-print-iframe {
	flex: 1;
	width: 100%;
	border: none;
	background: #fff;
}
