/**
 * E-Commerce Catalog (catalog-full & staff catalog)
 */
:root {
	--ec-cat-primary: #4f46e5;
	--ec-cat-primary-dark: #4338ca;
	--ec-cat-primary-soft: rgba(79, 70, 229, 0.12);
	--ec-cat-accent: #0ea5e9;
	--ec-cat-surface: #ffffff;
	--ec-cat-bg: #f4f6fc;
	--ec-cat-border: #e8ecf4;
	--ec-cat-text: #111827;
	--ec-cat-muted: #6b7280;
	--ec-cat-radius: 16px;
	--ec-cat-radius-sm: 12px;
	--ec-cat-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
	--ec-cat-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body.ec-catalog-full-page.wms-ui .side-app {
	background: var(--ec-cat-bg);
}

.app-content:has(.ec-catalog) {
	overflow: visible !important;
}

.ec-catalog {
	position: relative;
	z-index: 5;
	max-width: 1400px;
	margin: 0 auto;
}

/* ─── Hero / filter panel ─── */
.ec-catalog-page-hero {
	background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #6366f1 100%);
	border-radius: var(--ec-cat-radius);
	padding: 1.5rem 1.5rem 1.25rem;
	color: #fff;
	margin-bottom: 1rem;
	box-shadow: var(--ec-cat-shadow-lg);
	position: relative;
	overflow: hidden;
}

.ec-catalog-page-hero::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -8%;
	width: 280px;
	height: 280px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	pointer-events: none;
}

.ec-catalog-page-hero h1 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 0.35rem;
	letter-spacing: -0.03em;
	position: relative;
	z-index: 1;
}

.ec-catalog-page-hero p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.92;
	position: relative;
	z-index: 1;
	max-width: 560px;
}

.ec-catalog-hero,
.ec-catalog-filters-card {
	border-radius: var(--ec-cat-radius);
	border: 1px solid var(--ec-cat-border);
	background: var(--ec-cat-surface);
	box-shadow: var(--ec-cat-shadow);
	overflow: visible;
}

body.ec-catalog-full-page .ec-catalog-hero {
	margin-bottom: 1rem;
}

.ec-filter-hero__title {
	background: linear-gradient(90deg, var(--ec-cat-primary-soft) 0%, transparent 70%);
	padding: 1.1rem 1.35rem;
	border-bottom: 1px solid var(--ec-cat-border);
}

.ec-filter-toggle {
	border-radius: 999px !important;
	font-weight: 600;
	font-size: 0.8125rem;
	padding: 0.4rem 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--ec-cat-primary-dark);
	background: #fff !important;
}

.ec-filter-toggle:hover {
	background: var(--ec-cat-primary-soft) !important;
	border-color: #c7d2fe !important;
	color: var(--ec-cat-primary-dark);
}

.ec-catalog-filters-card.is-filter-collapsed .ec-filter-hero__title {
	border-bottom: none;
}

.ec-catalog-filters-card.is-filter-collapsed .ec-filter-toggle-icon {
	transform: rotate(180deg);
}

.ec-catalog-filters-card.is-filter-collapsed .ec-filter-hero__body {
	display: none !important;
}

.ec-filter-toggle-icon {
	display: inline-block;
	transition: transform 0.2s ease;
}

.ec-filter-hero__body {
	transition: opacity 0.2s ease;
}

/* catalog-full: sembunyikan judul duplikat, tombol toggle tetap tampil */
body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card .ec-catalog-hero-title,
body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card .ec-catalog-hero-desc {
	display: none;
}

body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card .ec-filter-hero__title {
	justify-content: flex-end;
	padding: 0.75rem 1rem;
	border-bottom: none;
}

body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card.is-filter-collapsed .ec-filter-hero__title {
	border-bottom: none;
}

body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card:not(.is-filter-collapsed) .ec-filter-hero__title {
	border-bottom: 1px solid var(--ec-cat-border);
}

.ec-catalog-hero-title,
.ec-filter-hero__title .ec-catalog-hero-title {
	letter-spacing: -0.02em;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ec-cat-text);
	margin-bottom: 0.25rem;
}

.ec-catalog-hero-desc {
	font-size: 0.8125rem;
	color: var(--ec-cat-muted);
}

.ec-filter-hero__body {
	padding: 1.25rem 1.35rem 1.1rem;
}

.ec-filter-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ec-cat-muted);
	margin-bottom: 0.45rem;
}

.ec-filter-input,
body.wms-ui .ec-catalog .ec-filter-input,
body.wms-ui .ec-catalog select.ec-filter-input {
	border-radius: var(--ec-cat-radius-sm) !important;
	border: 1px solid var(--ec-cat-border) !important;
	font-size: 0.9rem !important;
	min-height: 2.65rem;
	height: auto !important;
	line-height: 1.5 !important;
	padding: 0.55rem 0.9rem !important;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ec-filter-input:focus {
	border-color: var(--ec-cat-primary) !important;
	box-shadow: 0 0 0 3px var(--ec-cat-primary-soft) !important;
}

.ec-catalog .input-icon .form-control {
	padding-left: 2.5rem !important;
}

.ec-catalog .input-icon-addon {
	color: var(--ec-cat-muted);
}

.ec-msel > .btn.dropdown-toggle::after {
	display: none;
}

.ec-msel > .btn {
	min-height: 2.65rem;
	font-weight: 600;
	color: var(--ec-cat-text);
	background: #fff;
}

.ec-msel > .btn:hover {
	background: #f8fafc;
	border-color: #c7d2fe !important;
}

.ec-catalog-hero .ec-msel .dropdown-menu,
.ec-catalog-filters-card .ec-msel .dropdown-menu {
	z-index: 1080;
	border-radius: var(--ec-cat-radius-sm);
	border-color: var(--ec-cat-border);
	box-shadow: var(--ec-cat-shadow-lg);
}

.ec-msel__menu {
	max-height: min(320px, 70vh);
	overflow: hidden;
	padding: 0;
}

.ec-msel__scroll {
	max-height: 220px;
	overflow-y: auto;
}

.ec-msel__option {
	cursor: pointer;
	padding: 0.45rem 0.6rem;
	border-radius: 8px;
	transition: background 0.12s ease;
}

.ec-msel__option:hover {
	background: var(--ec-cat-primary-soft);
}

.ec-msel__option input:checked + span {
	color: var(--ec-cat-primary-dark);
}

.ec-catalog-filter-actions {
	border-top: 1px solid var(--ec-cat-border);
	padding-top: 1rem;
	margin-top: 0.5rem;
}

.ec-catalog-filter-actions .btn-primary {
	background: linear-gradient(135deg, var(--ec-cat-primary) 0%, #6366f1 100%) !important;
	border: none !important;
	font-weight: 700;
	padding: 0.5rem 1.35rem;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.ec-catalog-filter-actions .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* Results bar */
.ec-catalog-results {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding: 0.65rem 1rem;
	background: var(--ec-cat-surface);
	border: 1px solid var(--ec-cat-border);
	border-radius: var(--ec-cat-radius-sm);
	font-size: 0.875rem;
	color: var(--ec-cat-muted);
}

.ec-catalog-results strong {
	color: var(--ec-cat-text);
}

.ec-catalog-results__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--ec-cat-primary-soft);
	color: var(--ec-cat-primary-dark);
	font-weight: 700;
	font-size: 0.75rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
}

.ec-catalog-results--toolbar-only {
	justify-content: flex-end;
}

.ec-catalog-view-toggle {
	flex-shrink: 0;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ec-catalog-view-toggle .btn {
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.35rem 0.85rem;
	border-radius: 0 !important;
}

.ec-catalog-view-toggle .btn.active {
	box-shadow: none;
}

/* Toggle tampilan card / list */
.ec-catalog-grid-root[data-view="card"] .ec-catalog-view--list {
	display: none !important;
}

.ec-catalog-grid-root[data-view="list"] .ec-catalog-view--card {
	display: none !important;
}

.ec-catalog-grid-root[data-view="list"] .ec-catalog-view--list {
	display: block !important;
}

/* Grid wrap */
.ec-catalog-grid-wrap {
	border-radius: var(--ec-cat-radius);
	border: 1px solid var(--ec-cat-border);
	background: var(--ec-cat-surface);
	box-shadow: var(--ec-cat-shadow);
	overflow: hidden;
}

.ec-catalog-grid-wrap .card-body {
	padding: 1.25rem !important;
}

.ec-catalog-empty {
	padding: 4rem 1.5rem !important;
}

.ec-catalog-empty-icon {
	font-size: 3.5rem !important;
	color: #c7d2fe !important;
	opacity: 1 !important;
}

/* Product grid */
.ec-grid {
	display: grid;
	grid-template-columns: repeat(var(--ec-cols-mobile, 1), minmax(0, 1fr));
	gap: 1.25rem;
}

@media (min-width: 576px) {
	.ec-grid {
		grid-template-columns: repeat(min(var(--ec-cols-mobile, 1), 2), minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.ec-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.ec-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.ec-grid {
		grid-template-columns: repeat(var(--ec-cols-desktop, 4), minmax(0, 1fr));
	}
}

.ec-grid-item {
	min-width: 0;
}

.ec-pcat-card {
	border-radius: var(--ec-cat-radius-sm) !important;
	border: 1px solid var(--ec-cat-border) !important;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s;
	overflow: hidden;
	background: #fff;
}

.ec-pcat-card.js-catalog-card {
	cursor: pointer;
}

.ec-pcat-card:hover {
	box-shadow: var(--ec-cat-shadow-lg) !important;
	transform: translateY(-4px);
	border-color: #c7d2fe !important;
}

.ec-pcat-media-wrap {
	position: relative;
	background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.ec-pcat-media-wrap::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 40%;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.04), transparent);
	pointer-events: none;
}

.ec-pcat-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.ec-pcat-placeholder {
	min-height: 220px;
	font-size: 2.5rem;
	color: #94a3b8;
}

.ec-pcat-indicators {
	margin-bottom: 8px;
}

.ec-pcat-ctrl {
	width: 36px;
	height: 36px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92) !important;
	opacity: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ec-pcat-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ec-cat-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6rem;
}

.ec-pcat-card .badge {
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.7rem;
}

.ec-pcat-sku-row code.ec-pcat-sku {
	font-size: 0.75rem;
	background: #f1f5f9;
	color: #475569;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
}

.ec-pcat-chips {
	gap: 6px;
}

.ec-pcat-chip {
	border: 2px solid var(--ec-cat-border);
	background: #fff;
	color: var(--ec-cat-text);
	font-size: 0.8125rem;
	font-weight: 700;
	padding: 0.4rem 0.7rem;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ec-pcat-chip:hover {
	border-color: #a5b4fc;
	background: var(--ec-cat-primary-soft);
}

.ec-pcat-chip.is-active {
	background: linear-gradient(135deg, var(--ec-cat-primary) 0%, #6366f1 100%);
	border-color: var(--ec-cat-primary-dark);
	color: #fff;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.ec-pcat-price {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--ec-cat-primary-dark);
	letter-spacing: -0.02em;
}

.ec-pcat-price--secondary {
	font-size: 0.95rem;
	color: var(--ec-cat-muted);
	font-weight: 700;
}

.ec-pcat-card .js-add-to-cart {
	border-radius: 12px !important;
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none !important;
	background: linear-gradient(135deg, var(--ec-cat-primary) 0%, #6366f1 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
	transition: transform 0.15s, box-shadow 0.15s;
}

.ec-pcat-card .js-add-to-cart:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
	color: #fff !important;
}

.ec-pcat-select-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

/* List view */
.ec-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ec-plist-card {
	border-radius: var(--ec-cat-radius-sm) !important;
	border: 1px solid var(--ec-cat-border) !important;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s, transform 0.2s;
	overflow: hidden;
}

.ec-plist-card.js-catalog-card {
	cursor: pointer;
}

.ec-plist-card:hover {
	box-shadow: var(--ec-cat-shadow) !important;
	border-color: #c7d2fe !important;
	transform: translateY(-1px);
}

.ec-plist-card__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-height: 120px;
}

.ec-plist-media {
	flex-shrink: 0;
	width: 120px;
	background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.ec-plist-thumb {
	width: 120px;
	height: 100%;
	min-height: 120px;
	object-fit: cover;
	display: block;
}

.ec-plist-thumb--placeholder {
	min-height: 120px;
	font-size: 1.75rem;
	color: #94a3b8;
}

.ec-plist-body {
	flex: 1;
	min-width: 0;
	padding: 0.85rem 1rem;
	display: flex;
	flex-direction: column;
}

.ec-plist-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.ec-plist-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ec-cat-text);
}

.ec-plist-chips {
	gap: 6px;
}

.ec-plist-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.ec-plist-meta__item {
	min-width: 88px;
}

.ec-plist-cart-btn {
	border-radius: 10px !important;
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none !important;
	background: linear-gradient(135deg, var(--ec-cat-primary) 0%, #6366f1 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.ec-plist-cart-btn:hover {
	color: #fff !important;
	transform: scale(1.05);
}

@media (max-width: 575.98px) {
	.ec-plist-card__inner {
		flex-direction: column;
		min-height: 0;
	}

	.ec-plist-media,
	.ec-plist-thumb {
		width: 100%;
		min-height: 140px;
		height: 140px;
	}
}

/* Detail modal */
.modal-catalog-detail {
	max-width: min(96vw, 1200px);
	width: 96vw;
	margin: 0.75rem auto;
}

@media (min-width: 1400px) {
	.modal-catalog-detail {
		max-width: min(96vw, 1360px);
	}
}

@media (max-width: 575px) {
	.modal-catalog-detail {
		width: 100vw;
		max-width: 100vw;
		margin: 0;
		min-height: 100vh;
	}

	.modal-catalog-detail .modal-content {
		min-height: 100vh;
		border-radius: 0;
	}
}

.ec-detail-modal {
	border: none;
	border-radius: var(--ec-cat-radius);
	overflow: hidden;
	box-shadow: var(--ec-cat-shadow-lg);
}

.ec-detail-modal .modal-header {
	background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
	color: #fff;
	border: none;
}

.ec-detail-modal .modal-header .modal-title,
.ec-detail-modal .modal-header .small {
	color: rgba(255, 255, 255, 0.9) !important;
}

.ec-detail-modal .modal-header .close {
	color: #fff;
	opacity: 0.9;
}

.ec-detail-media {
	background: #f1f5f9;
	border-radius: var(--ec-cat-radius-sm);
}

.ec-detail-media .carousel-inner .carousel-item img,
.ec-detail-media .carousel-inner .carousel-item video {
	width: 100%;
	height: 520px;
	object-fit: cover;
	display: block;
}

@media (max-width: 991px) {
	.ec-detail-media .carousel-inner .carousel-item img,
	.ec-detail-media .carousel-inner .carousel-item video {
		height: 420px;
	}
}

@media (max-width: 575px) {
	.ec-detail-media .carousel-inner .carousel-item img,
	.ec-detail-media .carousel-inner .carousel-item video {
		height: 280px;
	}
}

.ec-detail-indicators {
	margin-bottom: 8px;
}

.ec-detail-ctrl {
	width: 42px;
	opacity: 0.95;
}

.ec-detail-code {
	background: #f1f5f9;
	color: #475569;
	padding: 0.25rem 0.5rem;
	border-radius: 8px;
}

.ec-detail-chips .ec-detail-chip {
	border: 2px solid var(--ec-cat-border);
	background: #fff;
	font-weight: 700;
	padding: 0.45rem 0.75rem;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ec-detail-chips .ec-detail-chip:hover {
	border-color: #a5b4fc;
	background: var(--ec-cat-primary-soft);
}

.ec-detail-chips .ec-detail-chip.is-active {
	background: linear-gradient(135deg, var(--ec-cat-primary) 0%, #6366f1 100%);
	border-color: var(--ec-cat-primary-dark);
	color: #fff;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Pagination */
.ec-catalog .pagination {
	margin-bottom: 0;
}

.ec-catalog .pagination .page-link {
	border-radius: 8px;
	margin: 0 2px;
}

/* Mobile */
@media (max-width: 767.98px) {
	.ec-catalog-page-hero {
		padding: 1.15rem;
	}

	.ec-catalog-page-hero h1 {
		font-size: 1.2rem;
	}

	.ec-catalog-filters-card .ec-filter-hero__title {
		padding: 0.65rem 1rem;
	}

	body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card .ec-filter-hero__title {
		justify-content: stretch;
	}

	body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card .ec-filter-toggle {
		width: 100%;
		justify-content: center;
	}

	.ec-catalog-filters-card.is-filter-collapsed .ec-filter-hero__body,
	.ec-catalog-filters-card.is-filter-collapsed #ecCatalogFilterBody {
		display: none !important;
		visibility: hidden !important;
		height: 0 !important;
		overflow: hidden !important;
		padding: 0 !important;
		margin: 0 !important;
		border: none !important;
	}

	.ec-filter-hero__body:not(.d-none) {
		padding: 1rem;
	}

	.ec-pcat-img,
	.ec-pcat-placeholder {
		height: 200px;
		min-height: 200px;
	}
}

/* ─── Catalog full: iklan banner & popup ─── */
body.ec-catalog-full-page {
	--ec-catalog-ad-banner-h: 0px;
}

.ec-catalog-ad-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1050;
	display: flex;
	align-items: center;
	min-height: 36px;
	background: linear-gradient(90deg, #312e81 0%, #4f46e5 45%, #6366f1 100%);
	color: #fff;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.ec-catalog-ad-banner[hidden] {
	display: none !important;
}

.ec-catalog-ad-banner__track {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
}

.ec-catalog-ad-banner__marquee {
	width: 100%;
	overflow: hidden;
}

.ec-catalog-ad-banner__run {
	display: inline-flex;
	align-items: center;
	width: max-content;
	white-space: nowrap;
	will-change: transform;
	--ec-marquee-start: 100%;
	--ec-marquee-end: -50%;
	animation: ec-catalog-ad-marquee 14s linear infinite;
}

.ec-catalog-ad-banner__chunk {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding-right: 3rem;
}

.ec-catalog-ad-banner__sep {
	opacity: 0.65;
	padding: 0 0.35rem;
}

.ec-catalog-ad-banner__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ec-catalog-ad-banner__link:hover {
	color: #e0e7ff;
}

.ec-catalog-ad-banner__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.15);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ec-catalog-ad-banner__close:hover {
	background: rgba(0, 0, 0, 0.28);
}

/* Mulai dari ujung kanan track → keluar sepenuhnya di kiri, lalu loop (2 salinan teks) */
@keyframes ec-catalog-ad-marquee {
	from {
		transform: translateX(var(--ec-marquee-start, 100%));
	}
	to {
		transform: translateX(var(--ec-marquee-end, -50%));
	}
}

.ec-catalog-ad-popup-dialog {
	max-width: min(92vw, 520px);
}

.ec-catalog-ad-popup-modal .modal-content {
	border-radius: var(--ec-cat-radius, 16px);
}

.ec-catalog-ad-popup__img {
	max-height: min(70vh, 560px);
	object-fit: contain;
	background: #f8fafc;
}

.ec-catalog-ad-popup__hit {
	cursor: pointer;
	display: block;
}

.ec-catalog-ad-popup__hit:disabled {
	cursor: not-allowed;
	opacity: 0.85;
}

.ec-catalog-ad-popup-indicators {
	bottom: 8px;
	margin-bottom: 0;
}

.ec-catalog-ad-popup-indicators li {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.55);
}

.ec-catalog-ad-popup-indicators li.active {
	background-color: #fff;
}

.ec-catalog-ad-popup-ctrl {
	width: 12%;
	opacity: 0.9;
}

.ec-catalog-ad-popup-modal .close {
	font-size: 1.5rem;
	opacity: 0.7;
}

/* ─── Catalog full: konten lebih lebar, margin lebih rapat ─── */
body.ec-catalog-full-page .ec-catalog {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.ec-catalog-full-page .ec-catalog-page-hero {
	padding: 1rem 1.1rem 0.9rem;
	margin-bottom: 0.65rem;
}

body.ec-catalog-full-page .ec-catalog-page-hero h1 {
	font-size: 1.35rem;
}

body.ec-catalog-full-page .ec-catalog-page-hero p {
	font-size: 0.85rem;
}

body.ec-catalog-full-page .ec-catalog-hero,
body.ec-catalog-full-page .ec-catalog-filters-card {
	margin-bottom: 0.65rem !important;
}

body.ec-catalog-full-page .ec-catalog-page-hero + .ec-catalog-filters-card .ec-filter-hero__title {
	padding: 0.55rem 0.85rem;
}

body.ec-catalog-full-page .ec-filter-hero__body {
	padding: 0.9rem 1rem 0.85rem;
}

body.ec-catalog-full-page .ec-catalog-results {
	margin-bottom: 0.65rem;
	padding: 0.5rem 0.85rem;
}

body.ec-catalog-full-page .ec-catalog-grid-wrap .card-body {
	padding: 0.85rem !important;
}

body.ec-catalog-full-page .ec-grid {
	gap: 0.85rem;
}

@media (max-width: 767.98px) {
	body.ec-catalog-full-page .ec-catalog-page-hero {
		padding: 0.85rem 0.9rem;
		margin-bottom: 0.5rem;
	}

	body.ec-catalog-full-page .ec-catalog-grid-wrap .card-body {
		padding: 0.65rem !important;
	}

	body.ec-catalog-full-page .ec-grid {
		gap: 0.65rem;
	}
}
