/* Oculta botões UNI CPO editar e duplicar no carrinho */
.uni-cpo-cart-action.uni-cpo-action-edit,
.uni-cpo-cart-action.uni-cpo-action-duplicate {
	display: none !important;
}
/* Cart Sidebar Styles - Marvit Theme */

.cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s ease;
}

.cart-sidebar.active {
	visibility: visible;
	opacity: 1;
}

.cart-sidebar-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.cart-sidebar-content {
	position: absolute;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 90vw;
	height: 100%;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active .cart-sidebar-content {
	transform: translateX(0);
}

/* Header */
.cart-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #f8f9fa;
	flex-shrink: 0;
}

.cart-sidebar-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.cart-sidebar-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #666;
	transition: all 0.2s ease;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
}

.cart-sidebar-close:hover {
	color: #333;
	background: rgba(0, 0, 0, 0.05);
}

/* Body */
.cart-sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* Items */
.cart-sidebar-items {
	padding: 20px;
	margin: 20px;
	flex: 1;
}

.cart-sidebar-item {
	display: flex;
	gap: 15px;
	padding: 20px 20px;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-sidebar-item:last-child {
	border-bottom: none;
}

.cart-sidebar-item.removing {
	opacity: 0.5;
	pointer-events: none;
	transform: translateX(-20px);
}

/* Item Image */
.cart-item-image {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8f9fa;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Item Details */
.cart-item-details {
	flex: 1;
	min-width: 0;
	padding-right: 30px; /* Space for remove button */
}

.cart-item-name {
	font-weight: 500;
	color: #333;
	line-height: 1.4;
	margin-bottom: 5px;
	word-wrap: break-word;
}

.cart-item-name a {
	color: inherit;
	text-decoration: none;
}

.cart-item-name a:hover {
	color: #8b6b9b;
}

/* Item Meta */
.cart-item-meta {
	font-size: 12px;
	color: #666;
	margin-bottom: 12px;
	line-height: 1.3;
}

.cart-item-meta p {
	margin: 0;
}

.cart-item-meta .variation {
	margin: 0;
}

.cart-item-meta .variation dt,
.cart-item-meta .variation dd {
	display: inline;
	font-size: 12px;
	line-height: 1.4;
	margin: 0;
}

.cart-item-meta .variation dt {
	font-weight: 500;
	color: #666;
}

.cart-item-meta .variation dt:after {
	content: ": ";
}

.cart-item-meta .variation dd {
	font-weight: normal;
	color: #333;
	margin-right: 0;
}

.cart-item-meta .variation dd:after {
	content: "\A";
	white-space: pre;
}

.cart-item-meta .variation dd p {
	display: inline;
	font-size: 12px;
	margin: 0;
}

/* Quantity Selector */
.cart-item-quantity {
	margin: 12px 0;
}

.quantity-selector {
	display: flex;
	align-items: center;
	max-width: 120px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.quantity-selector button {
	width: 32px;
	height: 32px;
	background: #f8f9fa;
	border: none;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
	color: #666;
}

.quantity-selector button:hover {
	background: #e9ecef;
	color: #333;
}

.quantity-selector button:active {
	background: #dee2e6;
}

.quantity-selector input {
	width: 50px;
	height: 32px;
	border: none;
	text-align: center;
	margin: 0;
	font-size: 14px;
	background: #fff;
	appearance: textfield;
	-moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity-selector input:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px #8b6b9b;
}

/* Price */
.cart-item-price {
	font-size: 14px;
	color: #333;
	margin-top: 8px;
}

.cart-item-price-unit {
	font-size: 12px;
	color: #666;
	margin-bottom: 2px;
}

.cart-item-price-total {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

/* Remove Button */
.cart-item-remove {
	position: absolute;
	top: 20px;
	right: 0;
}

.cart-item-remove .remove {
	color: #999;
	text-decoration: none;
	padding: 5px;
	border-radius: 4px;
	transition: all 0.2s ease;
	display: block;
	width: 24px;
	height: 24px;
	line-height: 14px;
	text-align: center;
}

.cart-item-remove .remove:hover {
	color: #e74c3c;
	background: rgba(231, 76, 60, 0.1);
}

/* Hide duplicate remove buttons */
.cart-item-remove .remove:not(:first-child) {
	display: none !important;
}

/* Empty Cart */
.cart-sidebar-empty {
	text-align: center;
	padding: 40px 20px;
}

.cart-sidebar-empty p {
	color: #666;
	margin-bottom: 20px;
	font-size: 16px;
}

/* Coupon Section */
.cart-sidebar-coupon {
	padding: 20px;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

.cart-sidebar-coupon h4 {
	font-size: 16px;
	margin: 0 0 15px;
	color: #333;
}

.cart-coupon-form {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.cart-coupon-form input {
	flex: 1;
	border: 1px solid #e0e0e0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
}

.cart-coupon-form input:focus {
	outline: none;
	border-color: #8b6b9b;
	box-shadow: 0 0 0 1px #8b6b9b;
}

.cart-coupon-form .button {
	background: #8b6b9b;
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
	white-space: nowrap;
}

.cart-coupon-form .button:hover {
	background: #5f3d69;
}

/* Applied Coupons */
.applied-coupons {
	margin-top: 15px;
}

.applied-coupons p {
	font-size: 14px;
	margin: 0 0 8px;
	color: #666;
}

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

.applied-coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #e8f4f8;
	padding: 8px 12px;
	border-radius: 4px;
	margin-bottom: 5px;
	font-size: 13px;
	color: #333;
}

.remove-coupon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	transition: color 0.2s;
	padding: 2px;
	text-decoration: none;
}

.remove-coupon:hover {
	color: #e74c3c;
}

/* Shipping Section */
.cart-sidebar-shipping {
	padding: 20px;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

.cart-sidebar-shipping h4 {
	font-size: 16px;
	margin: 0 0 15px;
	color: #333;
}

.shipping-calculator-form .form-row {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.shipping-calculator-form input {
	flex: 1;
	border: 1px solid #e0e0e0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
}

.shipping-calculator-form input:focus {
	outline: none;
	border-color: #8b6b9b;
	box-shadow: 0 0 0 1px #8b6b9b;
}

.shipping-calculator-form .button {
	background: #8b6b9b;
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
	white-space: nowrap;
}

.shipping-calculator-form .button:hover {
	background: #5f3d69;
}

/* Shipping Methods */
.shipping-methods-container {
	margin-top: 15px;
}

.shipping-methods {
	list-style: none;
	padding: 0;
	margin: 0;
}

.shipping-methods li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.shipping-methods input[type="radio"] {
	margin: 0;
	flex-shrink: 0;
}

.shipping-methods label {
	flex: 1;
	margin: 0;
	cursor: pointer;
	line-height: 1.4;
}

/* Footer */
.cart-sidebar-footer {
	border-top: 1px solid #e0e0e0;
	padding: 20px;
	background: #f8f9fa;
	flex-shrink: 0;
}

.cart-sidebar-total {
	text-align: center;
	margin-bottom: 20px;
	font-size: 18px;
	color: #333;
}

.cart-sidebar-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.cart-sidebar-actions .button {
	flex: 1;
	text-align: center;
	padding: 15px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

.cart-sidebar-actions .checkout {
	background: #8b6b9b;
	color: #ffffff;
}

.cart-sidebar-actions .checkout:hover {
	background: #5f3d69;
	color: #ffffff;
}

.continue-shopping {
	background: #8b6b9b;
	color: #ffffff;
	padding: 15px 30px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.2s ease;
	display: inline-block;
}

.continue-shopping:hover {
	background: #5f3d69;
	color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.cart-sidebar-content {
		width: 100%;
		max-width: 100vw;
	}

	.cart-sidebar-actions {
		flex-direction: column;
	}

	.cart-coupon-form,
	.shipping-calculator-form .form-row {
		flex-direction: column;
	}

	.cart-item-details {
		padding-right: 25px;
	}

	.cart-item-remove {
		top: 15px;
		right: -5px;
	}
}

/* Loading state */
.cart-sidebar-loading {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.cart-sidebar-loading:before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #e0e0e0;
	border-top: 2px solid #8b6b9b;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 10px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Animations */
@keyframes slideInFromRight {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

@keyframes slideOutToRight {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(100%);
	}
}

/* Accessibility improvements */
.cart-sidebar-close:focus,
.cart-coupon-form .button:focus,
.shipping-calculator-form .button:focus,
.cart-sidebar-actions .button:focus {
	outline: 2px solid #8b6b9b;
	outline-offset: 2px;
}

/* Print styles */
@media print {
	.cart-sidebar {
		display: none !important;
	}
}
