/**
 * MTW Our Collections
 * Bricks + WooCommerce
 */

.mtw-collections {
	--mtw-yellow: #F5D7BA;
	--mtw-text: #1E1E1E;
	--mtw-bg: #fff;
	--mtw-card: #FFFFFF;
	--mtw-line: rgba(30, 30, 30, 0.10);
	--mtw-muted: ##fe6901;

	width: 100%;
	background: var(--mtw-bg);
	color: var(--mtw-text);
	/* padding: 54px 0 70px; */
	box-sizing: border-box;

	/* Keep the intentional product-card peek without creating a page scrollbar. */
	overflow-x: clip;
}

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

/* .mtw-collections__inner {
	width: min(100% - 80px, 1360px);
	margin-inline: auto;
} */

@media (min-width: 981px){
.mtw-collections__inner {
    width: 100%;
    margin-inline: auto;
    padding: 0 80px;
    max-width: 1440px;
}
}

@media (max-width: 980px){
.mtw-collections__inner {
    width: 100%;
    margin-inline: auto;
    padding: 0 20px;
    max-width: 1440px;
}
}

/* Header */
.mtw-collections__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.mtw-collections__heading-wrap {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.mtw-collections__icon-wrap {
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	/* background: var(--mtw-yellow);
	border: 1px solid rgba(255,255,255,.9);
	box-shadow: 0 0 0 2px var(--mtw-yellow); */
}

.mtw-collections__icon {
	/* width: 38px;
	height: 38px; */
	object-fit: contain;
}

.mtw-collections__heading {
	margin: 0;
	font-family: "Cambo", Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 3.5vw, 50px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
}

.mtw-collections__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 60px;
	padding: 0 28px;
	border: 1px solid #1E1E1E;
	border-radius: 999px;
	font-family: Roboto, Arial, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: #1E1E1E;
	background: transparent;
	transition: background .2s ease, color .2s ease;
}

.mtw-collections__view-all:hover {
	background: #1E1E1E;
	color: #fff;
}

.mtw-collections__divider {
	height: 1px;
	background: var(--mtw-line);
	margin: 40px 0 40px;
}

/* Tabs */
.mtw-collections__tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	margin-bottom: 32px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mtw-collections__tabs::-webkit-scrollbar {
	display: none;
}

.mtw-collections__tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: #1E1E1E;
	font-family: Roboto, Arial, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	padding: 20px 28px;
	border-radius: 999px;
	min-width: max-content;
	transition: background .2s ease;
}

.mtw-collections__tab.is-active {
	background: var(--mtw-yellow);
}

/* Slider */
.mtw-collections__panel[hidden] {
	display: none !important;
}

.mtw-collections__slider {
	position: relative;
	padding-bottom: 56px;
}

.mtw-collections__viewport {
	width: 100%;
	/* overflow: hidden; */
	touch-action: pan-y;
}

.mtw-collections__track {
	display: flex;
	gap: 20px;
	transition: transform .42s cubic-bezier(.2,.7,.2,1);
	will-change: transform;
}

/*
 * Desktop offset / peek:
 * roughly 3 full cards plus part of the next card, matching the Figma.
 * This is inside the clipped slider viewport, so it does NOT create a
 * browser-level horizontal scrollbar.
 */
.mtw-collections__card {
	flex: 0 0 30.5%;
	min-width: 0;
	background: var(--mtw-card);
	border-radius: 26px;
	overflow: hidden;
}

.mtw-collections__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* .mtw-collections__media {
	position: relative;
	display: grid;
	place-items: center;
	height: 335px;
	padding: 26px 20px 10px;
} */

.mtw-collections__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 383px;
	padding: 26px 20px 10px;
	overflow: hidden;
}

.mtw-collections__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

/* .mtw-collections__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .3s ease;
} */

.mtw-collections__card-link:hover .mtw-collections__image {
	transform: scale(1.025);
}

.mtw-collections__sale {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 12px;
	border-radius: 999px;
	background: #E35B1F;
	color: #fff;
	font-family: Roboto, Arial, sans-serif;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.mtw-collections__card-body {
	margin-top: auto;
	padding: 16px 22px 32px;
	text-align: center;
}

.mtw-collections__product-title {
	margin: 0 0 10px;
	font-family: "Cambo", Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.25;
	color: #1E1E1E;
}

.mtw-collections__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.2;
	color: #E35B1F;
}

.mtw-collections__price-prefix {
	font-size: 12px;
	font-weight: 400;
	color: #E35B1F;
}

.mtw-collections__price strong,
.mtw-collections__price ins {
	font-weight: 700;
	text-decoration: none;
	color: #E35B1F;
}

.mtw-collections__price del {
	font-size: 12px;
	font-weight: 400;
	color: #E35B1F;
	opacity: .55;
}

/* Arrows */
.mtw-collections__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgba(43, 51, 41, .58);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transform: translateY(-80%);
	transition: opacity .2s ease, background .2s ease;
}

.mtw-collections__arrow {
    border: 1px solid #fff;
}

/* Themify angle icons */
.mtw-collections__arrow i {
	display: block;
	font-size: 28px;
	line-height: 1;
	color: currentColor;
}

/* Keep arrows inside the module so they cannot create page overflow. */
.mtw-collections__arrow--prev {
	left: 8px;
}

.mtw-collections__arrow--next {
	right: 8px;
}

.mtw-collections__arrow:hover {
	background: rgba(43, 51, 41, .78);
}

.mtw-collections__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

/* Dots */
.mtw-collections__dots {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 4px;
}

.mtw-collections__dot {
	appearance: none;
	border: 0;
	width: 18px;
	height: 4px;
	padding: 0;
	border-radius: 999px;
	background: #F5D7BA;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}

.mtw-collections__dot.is-active {
	width: 42px;
	background: #FE6901;
}

/* Empty collection state */
.mtw-collections__empty {
	flex: 0 0 100%;
	width: 100%;
	min-height: 280px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--mtw-text);
}

/* Large tablet / smaller desktop: 2 full cards + a partial next card. */
@media (max-width: 1199px) {
	.mtw-collections__inner {
		/* width: min(100% - 48px, 1320px); */
		width: min(100% - 0px, 1320px);
	}

	.mtw-collections__card {
		flex-basis: 46%;
	}

	.mtw-collections__media {
		height: 315px;
	}
}

/* Tablet */
@media (max-width: 900px) {
	.mtw-collections {
		/* padding: 46px 0 58px; */
	}

	.mtw-collections__heading {
		font-size: 40px;
	}

	.mtw-collections__view-all {
		min-width: 150px;
		height: 54px;
		font-size: 15px;
	}

	.mtw-collections__divider {
		margin: 30px 0 26px;
	}

	.mtw-collections__tab {
		font-size: 15px;
		padding: 16px 22px;
	}

	.mtw-collections__card {
		flex-basis: 61%;
	}

	.mtw-collections__media {
		height: 300px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.mtw-collections {
		padding: 38px 0 50px;
	}

	.mtw-collections__inner {
		/* width: calc(100% - 28px); */
		width: calc(100% - 0px);
	}

	.mtw-collections__header {
		align-items: center;
		gap: 12px;
	}

	.mtw-collections__heading-wrap {
		gap: 12px;
		min-width: 0;
	}

	.mtw-collections__icon-wrap {
		width: 46px;
		height: 46px;
		flex-basis: 46px;
		border-radius: 11px;
	}

	.mtw-collections__icon {
		width: 28px;
		height: 28px;
	}

	.mtw-collections__heading {
		font-size: clamp(27px, 8vw, 32px);
		white-space: nowrap;
	}

	.mtw-collections__view-all {
		min-width: 104px;
		height: 44px;
		padding: 0 16px;
		font-size: 13px;
		flex: 0 0 auto;
	}

	.mtw-collections__divider {
		margin: 24px 0 18px;
	}

	.mtw-collections__tabs {
		/* margin-inline: -14px; */
		margin-inline: 0px;
		padding-inline: 14px;
		width: calc(100% + 28px);
		margin-bottom: 20px;
		scroll-snap-type: x proximity;
	}

	.mtw-collections__tab {
		font-size: 13px;
		padding: 14px 18px;
		scroll-snap-align: start;
	}

	.mtw-collections__track {
		gap: 14px;
	}

	/* One large card with a visible next-card peek. */
	.mtw-collections__card {
		flex-basis: 82%;
		border-radius: 22px;
	}

	.mtw-collections__media {
		height: 290px;
	}

	.mtw-collections__card-body {
		padding: 14px 18px 26px;
	}

	.mtw-collections__product-title {
		font-size: 18px;
	}

	.mtw-collections__arrow {
		width: 46px;
		height: 46px;
		transform: translateY(-70%);
	}

	.mtw-collections__arrow i {
		font-size: 22px;
	}

	.mtw-collections__arrow--prev {
		left: 6px;
	}

	.mtw-collections__arrow--next {
		right: 6px;
	}

	.mtw-collections__empty {
		min-height: 220px;
		font-size: 14px;
	}
}

/* Narrow mobile */
@media (max-width: 480px) {
	.mtw-collections {
		/* padding-top: 32px; */
		padding-top: 0px;
	}

	.mtw-collections__header {
		gap: 8px;
	}

	.mtw-collections__heading-wrap {
		gap: 10px;
	}

	.mtw-collections__icon-wrap {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.mtw-collections__icon {
		width: 25px;
		height: 25px;
	}

	.mtw-collections__heading {
		font-size: 26px;
	}

	.mtw-collections__view-all {
		min-width: 88px;
		height: 42px;
		padding-inline: 12px;
		font-size: 12px;
	}

	.mtw-collections__card {
		flex-basis: 86%;
	}

	.mtw-collections__media {
		height: 255px;
	}

	.mtw-collections__slider {
		padding-bottom: 46px;
	}
}

/* No slider controls/pagination are rendered when a collection is empty. */
.mtw-collections__slider--empty {
	padding-bottom: 0;
}

@media (min-width: 981px){
.mtw-collections__tabs {
    border-top: 1px solid #E5E5E5;
    padding-top: 40px;
}
}

@media (max-width: 980px){
.mtw-collections__tabs {
    border-top: 1px solid #E5E5E5;
    padding-top: 20px;
}
}

