/* Wood Story Product Carousel */
.wspc {
	--wspc-per-view: 4;
	--wspc-scroll: 1;
	--wspc-gap: 22px;
	--wspc-autoplay: 1;
	--wspc-swipe: 1;
	--wspc-ratio: var(--wspc-auto-ratio, 5 / 3);
	--wspc-star: 13px;
	--wspc-dot: 8px;
	--wspc-arrows: flex;
	--wspc-dots: none;
	--wspc-wish-bg: #ffffff;
	--wspc-wish-color: #3d2b22;
	--wspc-wish-active: #c0392b;
	--wspc-arrow-color: #3d2b22;
	--wspc-arrow-bg: #ffffff;
	--wspc-arrow-color-h: #ffffff;
	--wspc-arrow-bg-h: #5f6435;
	--wspc-dot-color: #d6cbbb;
	--wspc-dot-active: #5f6435;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 1024px) {
	.wspc { --wspc-per-view: 3; --wspc-gap: 16px; --wspc-dots: flex; }
}

@media (max-width: 767px) {
	.wspc { --wspc-per-view: 2; --wspc-gap: 12px; --wspc-arrows: none; --wspc-dots: flex; }
}

.wspc *,
.wspc *::before,
.wspc *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.wspc__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.wspc .wspc__heading {
	margin: 0;
	padding: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: 32px;
	line-height: 1.2;
	color: #2e1b12;
}

.wspc .wspc__view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.3;
	color: #4a3426;
	text-decoration: none;
	padding-bottom: 4px;
	transition: color .2s ease;
}

.wspc .wspc__view-all:hover {
	text-decoration: none;
}

.wspc__view-all-arrow {
	width: 1.15em;
	height: 1.15em;
	transition: transform .2s ease;
}

.wspc__view-all:hover .wspc__view-all-arrow {
	transform: translateX(3px);
}

/* ---------- Stage / track ---------- */
.wspc__stage {
	position: relative;
}

.wspc__viewport {
	overflow: hidden;
	/* room for card shadows without changing the layout width */
	padding: 4px;
	margin: -4px;
	touch-action: pan-y pinch-zoom;
}

.wspc__track {
	display: flex;
	gap: var(--wspc-gap);
	will-change: transform;
	transform: translate3d(0, 0, 0);
	-webkit-user-select: none;
	user-select: none;
}

.wspc__slide {
	flex: 0 0 calc((100% - (var(--wspc-per-view) - 1) * var(--wspc-gap)) / var(--wspc-per-view));
	min-width: 0;
	display: flex;
}

.wspc.is-dragging .wspc__track,
.wspc.is-dragging .wspc__track * {
	cursor: grabbing;
}

.wspc.is-dragging a {
	pointer-events: none;
}

/* ---------- Card ---------- */
.wspc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: #fcfaf6;
	border: 1px solid #ece5da;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.wspc__media-wrap {
	position: relative;
}

.wspc__media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--wspc-ratio);
	overflow: hidden;
	background-color: #f1ebe2;
}

/* aspect-ratio fallback for very old browsers */
@supports not (aspect-ratio: 1 / 1) {
	.wspc__media { height: 0; padding-bottom: 60%; }
}

.wspc__media-link {
	position: absolute;
	inset: 0;
	display: block;
}

.wspc .wspc__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center;
	transition: transform .6s ease;
	-webkit-user-drag: none;
}

.wspc-zoom-yes .wspc__card:hover .wspc__img {
	transform: scale(1.05);
}

/* ---------- Wishlist ---------- */
.wspc .wspc__wish,
.wspc .wspc__wish:hover,
.wspc .wspc__wish:focus,
.wspc .wspc__wish:active {
	position: absolute;
	z-index: 2;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: var(--wspc-wish-bg);
	color: var(--wspc-wish-color);
	box-shadow: 0 1px 3px rgba(40, 25, 10, .12);
	cursor: pointer;
	line-height: 1;
	min-height: 0;
	outline: none;
	transition: transform .2s ease, color .2s ease;
}

.wspc .wspc__wish:hover {
	transform: scale(1.08);
}

.wspc .wspc__wish:focus-visible {
	outline: 2px solid var(--wspc-dot-active);
	outline-offset: 2px;
}

.wspc .wspc__wish svg {
	width: 62%;
	height: 62%;
	display: block;
	pointer-events: none;
}

.wspc .wspc__wish.is-active {
	color: var(--wspc-wish-active);
}

.wspc .wspc__wish.is-active .wspc__heart {
	fill: currentColor;
}

/* ---------- Body ---------- */
.wspc__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 12px 14px 14px;
}

.wspc .wspc__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: #3d2b22;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	word-break: break-word;
}

.wspc .wspc__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.wspc .wspc__price {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: #7a5a3c;
}

.wspc .wspc__price del {
	opacity: .8;
	font-weight: 400;
	font-size: .85em;
	margin-right: 4px;
	color: #a8998b;
}

.wspc .wspc__price ins {
	text-decoration: none;
	background: none;
}

.wspc__rating {
	position: relative;
	display: inline-block;
	align-self: flex-start;
	line-height: 0;
	white-space: nowrap;
	margin: 0 0 4px;
}

.wspc__stars-base,
.wspc__stars-fill {
	display: inline-flex;
	gap: 2px;
	line-height: 0;
	white-space: nowrap;
}

.wspc__stars-base {
	color: #e6dccb;
}

.wspc__stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #e0a126;
}

.wspc__rating svg {
	width: var(--wspc-star);
	height: var(--wspc-star);
	flex: 0 0 auto;
	display: block;
}

/* ---------- Button ---------- */
.wspc__btn-wrap {
	margin-top: auto;
	padding-top: 12px;
}

.wspc .wspc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 38px;
	padding: 6px 10px;
	border: 0;
	border-radius: 3px;
	background-color: #5f6435;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.wspc .wspc__btn:hover,
.wspc .wspc__btn:focus {
	text-decoration: none;
}

.wspc__btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.wspc__btn-icon svg,
.wspc__btn-icon .wspc__btn-svg {
	width: 1.2em;
	height: 1.2em;
	fill: currentColor;
}

.wspc__btn-icon .wspc__btn-svg {
	fill: none;
}

.wspc__btn-icon i {
	font-size: 1.05em;
	line-height: 1;
}

.wspc .wspc__btn.loading {
	opacity: .65;
	pointer-events: none;
}

.wspc .wspc__btn.added .wspc__btn-icon::after {
	content: "\2713";
	margin-left: 4px;
	font-size: 1em;
	line-height: 1;
}

.wspc .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	text-align: center;
	color: inherit;
}

/* ---------- Arrows ---------- */
.wspc .wspc__arrow,
.wspc .wspc__arrow:hover,
.wspc .wspc__arrow:focus,
.wspc .wspc__arrow:active {
	position: absolute;
	z-index: 5;
	top: 35%;
	display: var(--wspc-arrows);
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wspc-arrow-bg);
	color: var(--wspc-arrow-color);
	box-shadow: 0 2px 10px rgba(40, 25, 10, .16);
	cursor: pointer;
	line-height: 1;
	min-height: 0;
	outline: none;
	transform: translateY(-50%);
	transition: opacity .25s ease, background-color .2s ease, color .2s ease;
}

.wspc .wspc__arrow:hover {
	background: var(--wspc-arrow-bg-h);
	color: var(--wspc-arrow-color-h);
}

.wspc .wspc__arrow:focus-visible {
	outline: 2px solid var(--wspc-dot-active);
	outline-offset: 2px;
}

.wspc .wspc__arrow svg {
	width: 46%;
	height: 46%;
	display: block;
	pointer-events: none;
}

.wspc__arrow--prev { left: -16px; }
.wspc__arrow--next { right: -16px; }

.wspc .wspc__arrow.is-disabled {
	opacity: .35;
	cursor: default;
}

.wspc.is-static .wspc__arrow,
.wspc.is-static .wspc__dots {
	display: none !important;
}

.wspc-arrows-hover-yes .wspc .wspc__arrow {
	opacity: 0;
}

.wspc-arrows-hover-yes .wspc:hover .wspc__arrow,
.wspc-arrows-hover-yes .wspc .wspc__arrow:focus-visible {
	opacity: 1;
}

.wspc-arrows-hover-yes .wspc:hover .wspc__arrow.is-disabled {
	opacity: .35;
}

@media (hover: none) {
	.wspc-arrows-hover-yes .wspc .wspc__arrow { opacity: 1; }
	.wspc-arrows-hover-yes .wspc .wspc__arrow.is-disabled { opacity: .35; }
}

/* ---------- Dots ---------- */
.wspc__dots {
	display: var(--wspc-dots);
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.wspc__dots:empty {
	display: none;
}

.wspc .wspc__dot,
.wspc .wspc__dot:hover,
.wspc .wspc__dot:focus,
.wspc .wspc__dot:active {
	display: block;
	width: var(--wspc-dot);
	height: var(--wspc-dot);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--wspc-dot-color);
	cursor: pointer;
	min-height: 0;
	outline: none;
	box-shadow: none;
	transition: width .3s ease, background-color .3s ease;
}

.wspc .wspc__dot.is-active {
	width: calc(var(--wspc-dot) * 2.5);
	background: var(--wspc-dot-active);
}

.wspc .wspc__dot:focus-visible {
	outline: 2px solid var(--wspc-dot-active);
	outline-offset: 2px;
}

.wspc__empty {
	padding: 30px;
	text-align: center;
	border: 1px dashed #d6cbbb;
	color: #7a5a3c;
}

@media (max-width: 767px) {
	.wspc__header { gap: 10px; margin-bottom: 14px; }
	.wspc .wspc__heading { font-size: 24px; }
	.wspc .wspc__view-all { font-size: 13px; gap: 6px; }
	.wspc__body { padding: 10px; }
	.wspc .wspc__title { font-size: 13px; }
	.wspc .wspc__price { font-size: 14px; }
	.wspc .wspc__btn { min-height: 34px; font-size: 12px; gap: 6px; padding: 6px; }
	.wspc { --wspc-star: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.wspc__track { transition: none !important; }
	.wspc .wspc__img { transition: none; }
}
