/* === STG Ajax Cart Popup === */
:root {
	--stg-acp-primary: #1f87b3;
}

/* Hide Porto default add-to-cart notification */
.after-loading-success-message {
	display: none !important;
}

/* Overlay + Loader */
#stg-acp-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stg-acp-loader {
	text-align: center;
	color: #fff;
}

.stg-acp-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: stg-acp-spin 0.7s linear infinite;
}

@keyframes stg-acp-spin {
	to { transform: rotate(360deg); }
}

.stg-acp-loader-text {
	display: block;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.3px;
}

/* Modal */
#stg-acp-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stg-acp-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.stg-acp-content {
	position: relative;
	background: #fff;
	max-width: 900px;
	width: 95%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	padding: 25px;
	z-index: 1;
}

/* Close button */
.stg-acp-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #333;
	line-height: 1;
	padding: 0;
	z-index: 2;
}

.stg-acp-close:hover {
	color: #000;
}

/* Header */
.stg-acp-header {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
	margin-bottom: 15px;
}

.stg-acp-check {
	color: #47a447;
	font-size: 20px;
	margin-right: 6px;
}

/* Added product row */
.stg-acp-product {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.stg-acp-product-img {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
}

.stg-acp-product-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.stg-acp-product-info {
	flex: 1;
	min-width: 0;
}

.stg-acp-prod-name {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin: 0 0 5px 0;
	line-height: 1.4;
}

.stg-acp-prod-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--stg-acp-primary);
	margin: 0;
}

.stg-acp-product-action {
	flex-shrink: 0;
}

.stg-acp-btn-cart {
	display: inline-block;
	padding: 10px 22px;
	background: var(--stg-acp-primary);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.stg-acp-btn-cart:hover {
	opacity: 0.85;
	color: #fff !important;
}

/* Recommendations */
.stg-acp-recommendations h4 {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
}

/* Slider cards */
.stg-acp-rec-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.stg-acp-rec-img {
	display: block;
	text-align: center;
	padding: 8px;
	background: #fff;
}

.stg-acp-rec-img img {
	width: 100%;
	height: auto;
	max-height: 150px;
	object-fit: contain;
}

.stg-acp-rec-body {
	padding: 10px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.stg-acp-rec-title {
	font-size: 13px;
	line-height: 1.4;
	color: #333 !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 8px;
	flex: 1;
}

.stg-acp-rec-title:hover {
	color: var(--stg-acp-primary) !important;
}

.stg-acp-rec-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--stg-acp-primary);
	display: block;
	margin-bottom: 8px;
}

.stg-acp-rec-price small {
	font-size: 11px;
	font-weight: 400;
	color: #666;
}

.stg-acp-rec-btn {
	display: block;
	text-align: center;
	padding: 7px;
	background: var(--stg-acp-primary);
	color: #fff !important;
	border-radius: 5px;
	font-size: 12px;
	text-decoration: none !important;
	margin-top: auto;
	transition: opacity 0.2s;
}

.stg-acp-rec-btn:hover {
	opacity: 0.85;
}

/* Owl nav arrows inside modal */
.stg-acp-slider .owl-nav button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5) !important;
	color: #fff !important;
	width: 30px;
	height: 30px;
	border-radius: 50% !important;
	font-size: 16px !important;
	line-height: 28px !important;
	text-align: center;
}

.stg-acp-slider .owl-nav button.owl-prev {
	left: -10px;
}

.stg-acp-slider .owl-nav button.owl-next {
	right: -10px;
}

.stg-acp-slider .owl-nav button:hover {
	background: rgba(0, 0, 0, 0.7) !important;
}

.stg-acp-slider.owl-carousel {
	position: relative;
}

/* Responsive */
@media (max-width: 767px) {
	.stg-acp-content {
		padding: 15px;
		width: 98%;
	}

	.stg-acp-product {
		flex-wrap: wrap;
	}

	.stg-acp-product-img {
		width: 60px;
		height: 60px;
	}

	.stg-acp-product-info {
		flex: 1;
	}

	.stg-acp-product-action {
		width: 100%;
		text-align: center;
		margin-top: 10px;
	}

	.stg-acp-btn-cart {
		width: 100%;
		display: block;
		text-align: center;
	}

	.stg-acp-header {
		font-size: 15px;
		padding-right: 30px;
	}

	.stg-acp-slider .owl-nav button.owl-prev {
		left: -5px;
	}

	.stg-acp-slider .owl-nav button.owl-next {
		right: -5px;
	}
}
