.swpa-catalog-grid {
	width: 100%;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* centers incomplete last row */
	gap: 20px;
}

.swpa-catalog-grid > .swpa-catalog-card {
	box-sizing: border-box;
	flex: 0 0 calc( ( 100% - 60px ) / 4 );
	max-width: calc( ( 100% - 60px ) / 4 );
}

@media ( max-width: 1440px ) {
	.swpa-catalog-grid > .swpa-catalog-card {
		flex: 0 0 calc( ( 100% - 40px ) / 3 );
		max-width: calc( ( 100% - 40px ) / 3 );
	}
}

@media ( max-width: 900px ) {
	.swpa-catalog-grid > .swpa-catalog-card {
		flex: 0 0 calc( ( 100% - 20px ) / 2 );
		max-width: calc( ( 100% - 20px ) / 2 );
	}
}

@media ( max-width: 560px ) {
	.swpa-catalog-grid > .swpa-catalog-card {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.swpa-catalog-card {
	border: 1px solid #f0d9a6;
	border-radius: 18px;
	padding: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
	display: flex;
	flex-direction: column;
}

.swpa-catalog-carousel {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 14px;
	overflow: hidden;
	background: #f2f2f2;
}

.swpa-catalog-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.swpa-catalog-slide.is-active {
	opacity: 1;
}

.swpa-catalog-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 16px 14px 34px;
	background: linear-gradient( to bottom, rgba( 0, 0, 0, 0.5 ), rgba( 0, 0, 0, 0 ) 65% );
	color: #fff;
	text-align: center;
}

.swpa-catalog-title {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.25;
	text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.4 );
}

.swpa-catalog-nav {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 26px;
	height: 26px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.85 );
	color: #333;
	font-size: 16px;
	cursor: pointer;
	user-select: none;
	z-index: 2;
}

.swpa-catalog-prev {
	left: 8px;
}

.swpa-catalog-next {
	right: 8px;
}

.swpa-catalog-dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 2;
}

.swpa-catalog-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.7 );
	cursor: pointer;
	transition: width 0.15s ease, border-radius 0.15s ease, background 0.15s ease;
}

.swpa-catalog-dot.is-active {
	width: 20px;
	height: 7px;
	border-radius: 4px;
	background: #f0a500;
}

.swpa-catalog-price {
	margin: 8px 0 0;
	text-align: center;
	font-weight: 600;
	color: #444;
}

.swpa-catalog-add-btn {
	margin: 10px auto 0;
	padding: 10px 28px;
	border: none;
	border-radius: 999px;
	background: #f0a500;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.15s ease;
	width: 100%;
	max-width: 220px;
}

.swpa-catalog-add-btn:hover:not(:disabled) {
	background: #d99200;
}

.swpa-catalog-add-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.swpa-catalog-status {
	margin: 6px 0 0;
	font-size: 12px;
	text-align: center;
	min-height: 1em;
	color: #2e7d32;
}

.swpa-catalog-status-error {
	color: #c0392b;
}
