/* Elementor header widget (icon) */
.ct-cart-widget {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.ct-cart-widget--stacked {
	flex-direction: column;
	text-align: center;
}
.ct-cart-widget-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.ct-cart-widget-icon svg {
	stroke: #333 !important;
	fill: none;
}
.ct-cart-widget-badge {
	position: absolute;
	top: -8px;
	right: -10px;
	background: #EC4C7D !important;
	color: #fff !important;
	font-size: 11px;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
}
.ct-cart-widget-label {
	font-size: 14px;
}
.ct-cart-widget-total {
	font-size: 14px;
	font-weight: 600;
}

/* Overlay */
.ct-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	z-index: 100000;
}
.ct-cart-overlay.ct-cart-open {
	opacity: 1;
	visibility: visible;
}

/* Panel base */
.ct-cart-panel {
	position: fixed;
	background: #fff;
	z-index: 100001;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Drawer mode: slides from right, full height */
.ct-cart-panel.ct-cart-mode-drawer {
	top: 0;
	right: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	border-radius: 0;
}
.ct-cart-panel.ct-cart-mode-drawer.ct-cart-open {
	transform: translateX(0);
}

/* Dropdown mode: small box positioned near the trigger icon */
.ct-cart-panel.ct-cart-mode-dropdown {
	width: 340px;
	max-width: 92vw;
	max-height: 70vh;
	border-radius: 10px;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.ct-cart-panel.ct-cart-mode-dropdown.ct-cart-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ct-cart-panel-inner {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	max-height: inherit;
}

.ct-cart-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
}
.ct-cart-panel-header h3 {
	margin: 0;
	font-size: 16px;
}
.ct-cart-panel-count {
	font-weight: 400;
	color: #888;
}
.ct-cart-panel-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #777;
}

/* Free shipping bar */
.ct-cart-freeship {
	padding: 10px 18px;
	border-bottom: 1px solid #f0f0f0;
}
.ct-cart-freeship-msg {
	margin: 0 0 6px;
	font-size: 12.5px;
	color: #444;
}
.ct-cart-freeship-done {
	color: #2a8f4a;
	font-weight: 600;
}
.ct-cart-freeship-bar {
	background: #eee;
	border-radius: 20px;
	height: 6px;
	overflow: hidden;
}
.ct-cart-freeship-bar span {
	display: block;
	height: 100%;
	background: #EC4C7D;
	transition: width 0.3s ease;
}

/* Items */
.ct-cart-items {
	padding: 6px 18px;
}
.ct-cart-item {
	display: flex;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #f2f2f2;
}
.ct-cart-item-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}
.ct-cart-item-info {
	flex: 1;
	min-width: 0;
}
.ct-cart-item-name {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	margin-bottom: 4px;
}
.ct-cart-item-price {
	font-size: 12.5px;
	color: #777;
	margin-bottom: 6px;
}
.ct-cart-item-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 20px;
	overflow: hidden;
}
.ct-cart-qty-btn {
	width: 24px;
	height: 24px;
	background: #f7f7f7;
	border: none;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.ct-cart-qty-input {
	width: 32px;
	border: none;
	text-align: center;
	font-size: 12.5px;
	-moz-appearance: textfield;
}
.ct-cart-item-qty-static {
	font-size: 12px;
	color: #888;
}
.ct-cart-item-total {
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.ct-cart-item-remove {
	display: block;
	margin: 6px 0 0 auto;
	background: none;
	border: none;
	color: #aaa;
	cursor: pointer;
	padding: 2px;
}
.ct-cart-item-remove:hover {
	color: #EC4C7D;
}
.ct-cart-empty {
	text-align: center;
	color: #888;
	padding: 30px 10px;
}

/* Coupon */
.ct-cart-coupon {
	padding: 12px 18px;
	border-top: 1px solid #f0f0f0;
}
.ct-cart-coupon-applied {
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ct-cart-coupon-chip {
	background: #f1f7f0;
	color: #2a8f4a;
	border: 1px solid #cfe9cf;
	border-radius: 20px;
	font-size: 11.5px;
	padding: 3px 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ct-cart-coupon-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	font-size: 13px;
}
.ct-cart-coupon-form {
	display: flex;
	gap: 8px;
}
.ct-cart-coupon-input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 12.5px;
}
.ct-cart-coupon-apply {
	padding: 8px 14px;
	border: none;
	background: #333;
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12.5px;
}
.ct-cart-coupon-msg .ct-cart-notice {
	font-size: 12px;
	margin-top: 6px;
	padding: 6px 8px;
	border-radius: 6px;
}
.ct-cart-notice-error {
	background: #fdecea;
	color: #b3261e;
}
.ct-cart-notice-success {
	background: #eaf7ec;
	color: #256029;
}

/* Totals + buttons */
.ct-cart-totals {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	border-top: 1px solid #f0f0f0;
	font-size: 14px;
}
.ct-cart-buttons {
	display: flex;
	gap: 10px;
	padding: 0 18px 14px;
}
.ct-cart-btn {
	flex: 1;
	text-align: center;
	padding: 11px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.ct-cart-btn-view {
	background: #f2f2f2;
	color: #333;
}
.ct-cart-btn-checkout {
	background: #EC4C7D;
	color: #fff;
}
.ct-cart-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: calc(100% - 36px);
	margin: 0 18px 16px;
	background: none;
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 9px;
	font-size: 12.5px;
	color: #555;
	cursor: pointer;
}

/* Frequently Bought Together */
.ct-cart-fbt {
	border-top: 1px solid #f0f0f0;
	padding: 14px 18px 18px;
}
.ct-cart-fbt h4 {
	margin: 0 0 10px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
}
.ct-cart-fbt-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.ct-cart-fbt-card {
	flex: 0 0 108px;
	text-align: center;
}
.ct-cart-fbt-thumb img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 6px;
}
.ct-cart-fbt-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 11.5px;
	color: #333;
	text-decoration: none;
	min-height: 28px;
}
.ct-cart-fbt-price {
	font-size: 11.5px;
	font-weight: 600;
	margin: 4px 0 6px;
}
.ct-cart-fbt-add {
	width: 100%;
	padding: 6px;
	border: 1px solid #333;
	background: #fff;
	color: #333;
	border-radius: 5px;
	font-size: 11px;
	cursor: pointer;
}
.ct-cart-fbt-add:hover {
	background: #333;
	color: #fff;
}

@media (max-width: 480px) {
	.ct-cart-panel.ct-cart-mode-dropdown {
		right: 10px !important;
		left: 10px !important;
		width: auto;
	}
}
