/* =========================
   FILTER
========================= */

.wss-filters {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 20px 0;
	justify-content: center;
}

.wss-filters select {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	min-width: 180px;
	background: #fff;
	font-size: 15px;
}

/* =========================
   GRID
========================= */

.wss-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
	margin: 25px 0;
	align-items: stretch;
}

/* =========================
   CARD
========================= */

.wss-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0,0,0,.08);
	transition: transform .2s ease;

	display: flex;
	flex-direction: column;
	height: 100%;
}

.wss-card-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-bottom: 16px;
}

.wss-card:hover {
	transform: translateY(-4px);
}

.wss-card > a {
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* =========================
   IMAGE SLIDER
========================= */

.wss-image-slider {
	position: relative;
	overflow: hidden;
	background: #f4f4f4;
	height: 260px;
	line-height: 0;
}

.wss-slider-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	height: 100%;
	line-height: 0;
	align-items: flex-start;
}

.wss-slider-track::-webkit-scrollbar {
	display: none;
}

.wss-slide {
	min-width: 100%;
	height: 100%;
	scroll-snap-align: start;
	line-height: 0;
}

.wss-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	cursor: zoom-in;
}

/* =========================
   SLIDER ARROWS
========================= */

.wss-slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 38px;
	height: 54px;
	border: 0;
	background: rgba(0,0,0,.65);
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}

.wss-image-slider:hover .wss-slide-arrow {
	opacity: 1;
}

.wss-slide-arrow:hover {
	background: #c00;
}

.wss-prev {
	left: 0;
	border-radius: 0 8px 8px 0;
}

.wss-next {
	right: 0;
	border-radius: 8px 0 0 8px;
}

/* =========================
   CONTENT
========================= */

.wss-card h3 {
	font-size: 20px;
	margin: 14px 14px 10px;
	text-align: center;
	line-height: 1.4;
	min-height: 64px;

	display: flex;
	align-items: center;
	justify-content: center;
}

.wss-price {
	color: #c00;
	font-weight: bold;
	font-size: 18px;
	text-align: center;
	margin-bottom: 14px;
	min-height: 26px;
}

/* =========================
   BUTTON
========================= */

.wss-button {
	display: block;
	background: #111;
	color: #fff !important;
	padding: 14px 18px;
	border-radius: 10px;
	text-align: center;
	text-decoration: none;

	margin-top: auto;

	margin-left: 14px;
	margin-right: 14px;

	font-size: 16px;
	font-weight: 600;

	flex-shrink: 0;
}

.wss-button:hover {
	background: #c00;
}

/* =========================
   LOAD MORE
========================= */

.wss-load-more {
	display: block;
	margin: 25px auto;
	padding: 12px 20px;
	border: 0;
	background: #111;
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
}

.wss-load-more:hover {
	background: #c00;
}

.wss-loader {
	text-align: center;
	margin: 20px;
	font-size: 15px;
}

/* =========================
   MODAL
========================= */

.wss-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.wss-modal.is-open {
	display: block;
}

.wss-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.72);
}

.wss-modal-box {
	position: relative;
	background: #fff;
	width: min(760px, calc(100% - 30px));
	max-height: 85vh;
	overflow-y: auto;
	margin: 7vh auto;
	padding: 28px;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.wss-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: #111;
	color: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
}

.wss-modal-close:hover {
	background: #c00;
}

#wss-modal-title {
	margin-top: 0;
	padding-right: 45px;
}

#wss-modal-content {
	margin-bottom: 20px;
	line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

	.wss-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.wss-image-slider {
		height: 220px;
	}

	.wss-slide-arrow {
		opacity: 1;
		width: 34px;
		height: 48px;
	}

	.wss-card h3 {
		font-size: 17px;
		min-height: 58px;
	}

	.wss-button {
		font-size: 15px;
		padding: 12px 14px;
	}

	.wss-modal-box {
		margin: 4vh auto;
		padding: 22px;
		max-height: 90vh;
	}
}

@media (max-width: 480px) {

	.wss-grid {
		grid-template-columns: 1fr;
	}

	.wss-filters {
		flex-direction: column;
	}

	.wss-filters select {
		width: 100%;
	}

	.wss-image-slider {
		height: 240px;
	}

	.wss-card h3 {
		font-size: 16px;
	}
}