/**
 * Shop Collections block styles.
 *
 * @package made-to-thrive-2026-base
 */

.mtt-shop-collections {
	width: 100%;
	background: transparent !important;
	color: inherit;
	padding: 114px 50px 100px 0;
}

.mtt-sc__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
	gap: 40px;
	align-items: stretch;
	overflow: visible;
}

/* -------------------------------------------------------------------------
   Left panel
   ------------------------------------------------------------------------- */

.mtt-sc__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 100%;
    padding: 90px 20px 32px;
    background-color: var(--wp--style--color--background, var(--wp--preset--color--cream, #ecdac6));
    color: var(--wp--style--color--text, var(--wp--preset--color--espresso, #4c3600));
    text-align: center;
    box-shadow: 0 4px 14px rgba(76, 54, 0, 0.1);
}

.mtt-shop-collections .wp-block-navigation .wp-block-navigation-item__content {
	padding: 115px 0;
}

.mtt-sc__panel::after {
	content: "";
	position: absolute;
	inset: 11px;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px currentColor;
}

.mtt-sc__panel > .wp-block-heading {
	margin: 0;
	width: 100%;
}

.mtt-sc__panel > .wp-block-heading:first-child {
	font-family: var(--wp--preset--font-family--true-fate-script, "True Fate Script", cursive);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.1;
}

.mtt-sc__panel > .wp-block-heading:nth-child(2) {
	font-family: var(--wp--preset--font-family--la-roue, "La Roue", Georgia, serif);
	font-size: 45px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
}

.mtt-sc__panel > .wp-block-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 12rem;
    margin: 45px 0 52px;
    gap: 14px;
}

.mtt-sc__panel .wp-block-button {
	margin: 0;
	width: 100%;
}

.mtt-sc__panel .wp-block-button__link {
	display: block;
	width: 100%;
	border: 1px solid currentColor;
	background: transparent;
	color: currentColor;
	padding: 0.625rem 1rem;
	text-align: center;
	text-decoration: none;
}

.mtt-sc__panel .wp-block-button__link:hover,
.mtt-sc__panel .wp-block-button__link:focus-visible {
	background: currentColor;
	color: var(--wp--style--color--background, var(--wp--preset--color--cream, #ecdac6));
}

/* -------------------------------------------------------------------------
   Slider
   ------------------------------------------------------------------------- */

.mtt-sc__slider-wrap {
	position: relative;
	min-width: 0;
	overflow: visible;
}

.mtt-sc__swiper {
	overflow: hidden;
}

.mtt-sc__slide {
	height: auto;
}

.mtt-sc__slide-link {
	position: relative;
	display: block;
	height: 100%;
	border: 4px solid #fffbf8;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
}

.mtt-sc__slide-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mtt-sc__slide-media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.mtt-sc__slide-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.mtt-sc__slide-link:hover .mtt-sc__slide-media::after,
.mtt-sc__slide-link:focus-visible .mtt-sc__slide-media::after {
	opacity: 1;
}

.mtt-sc__slide-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mtt-sc__slide-text {
	--plaque-color: var(--wp--preset--color--plaque-green, #677b47);

	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 1.25rem;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	width: var(--mtt-sc-plaque-width, max-content);
	height: var(--mtt-sc-plaque-height, auto);
	max-width: calc(100% - 1.5rem);
	margin-inline: auto;
	padding: 1.75rem 1.75rem 1.5rem;
	text-align: center;
	color: #fff;
}

.mtt-sc__slide-text::before,
.mtt-sc__slide-text::after {
	content: "";
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	pointer-events: none;
}

.mtt-sc__slide-text::before {
	z-index: -2;
	background-color: var(--plaque-color);
	mask-image: url(../../assets/images/text-plaque-mask.svg);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: 100% 100%;
	-webkit-mask-image: url(../../assets/images/text-plaque-mask.svg);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: 100% 100%;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
}

.mtt-sc__slide-text::after {
	z-index: -1;
	background-image: url(../../assets/images/text-plaque-border.svg);
}

.mtt-sc__slide-eyebrow,
.mtt-sc__slide-title {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	text-align: center;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
}

.mtt-sc__slide-eyebrow {
	margin: 0;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
}

.mtt-sc__slide-title {
	margin: 0;
	color: #fff;
	line-height: 1.15;
	font-family: "La Roue", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
}


/* -------------------------------------------------------------------------
   Navigation arrows
   ------------------------------------------------------------------------- */

.mtt-sc__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 61px;
	height: 61px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fffbf8;
	transform: translateY(-50%);
	cursor: pointer;
}

.mtt-sc__nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mtt-sc__nav.swiper-button-disabled {
	opacity:0;
	cursor: not-allowed;
	pointer-events: none;
}

.mtt-sc__nav--next {
	right: -30.5px;
}

.mtt-sc__nav-icon {
	display: block;
	width: 26.749px;
	height: 11.124px;
	flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   No-JS fallback
   ------------------------------------------------------------------------- */

.mtt-sc__swiper:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.mtt-sc__swiper:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 calc((100% - 2rem) / 3);
	min-width: 10rem;
	scroll-snap-align: start;
}

.mtt-sc__swiper:not(.swiper-initialized) + .mtt-sc__nav {
	display: none;
}

/* -------------------------------------------------------------------------
   Editor
   ------------------------------------------------------------------------- */

.mtt-shop-collections.is-editor .mtt-sc__editor-note {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	color: #757575;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scrollbar-width: thin;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide {
	flex: 0 0 calc((100% - 1.5rem) / 3);
	min-width: 8rem;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-link {
	position: relative;
	display: block;
	min-height: 12rem;
	border: 4px solid #fffbf8;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-image {
	display: block;
	width: 100%;
	height: 12rem;
	object-fit: cover;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-text {
	--plaque-color: var(--wp--preset--color--plaque-green, #677b47);

	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	bottom: 0.75rem;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: max-content;
	max-width: calc(100% - 1rem);
	margin-inline: auto;
	padding: 1.25rem 1.25rem 1rem;
	text-align: center;
	color: #fff;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-text::before,
.mtt-shop-collections.is-editor .mtt-sc__editor-slide-text::after {
	content: "";
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	pointer-events: none;
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-text::before {
	z-index: -2;
	background-color: var(--plaque-color);
	mask-image: url(../../assets/images/text-plaque-mask.svg);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: 100% 100%;
	-webkit-mask-image: url(../../assets/images/text-plaque-mask.svg);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: 100% 100%;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-text::after {
	z-index: -1;
	background-image: url(../../assets/images/text-plaque-border.svg);
}

.mtt-shop-collections.is-editor .mtt-sc__editor-slide-eyebrow,
.mtt-shop-collections.is-editor .mtt-sc__editor-slide-title {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: #fff;
	text-align: center;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-picker {
	margin-top: 0.5rem;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-list-item {
	margin: 0 0 0.75rem;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card-thumb {
	flex: 0 0 3.5rem;
	width: 3.5rem;
	height: 4.5rem;
	object-fit: cover;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card-thumb--empty {
	display: block;
	background: #f0f0f0;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card-title {
	display: block;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card-meta {
	display: block;
	font-size: 0.75rem;
	color: #757575;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.mtt-shop-collections.is-editor .mtt-sc__slide-fields {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #eee;
}

.mtt-shop-collections.is-editor .mtt-sc__preview img {
	display: block;
	width: 100%;
	height: auto;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.mtt-sc__slider-wrap,
	.mtt-sc__swiper,
	.mtt-sc__swiper .swiper-wrapper {
		height: 100%;
	}

	.mtt-sc__swiper .swiper-wrapper {
		align-items: stretch;
	}

	.mtt-sc__swiper .swiper-slide,
	.mtt-sc__slide {
		height: 100%;
	}

	.mtt-shop-collections.is-editor .mtt-sc__slider-wrap,
	.mtt-shop-collections.is-editor .mtt-sc__editor-track {
		height: 100%;
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-track {
		align-items: stretch;
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-slide,
	.mtt-shop-collections.is-editor .mtt-sc__editor-slide-link {
		height: 100%;
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-slide-image {
		height: 100%;
	}
}

@media (max-width: 1080px) {
	.mtt-sc__layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.mtt-sc__swiper .mtt-sc__slide {
		height: 400px;
	}
}

@media (max-width: 767px) {
	.mtt-sc__layout {
		grid-template-columns: 1fr;
	}

	.mtt-sc__panel {
		min-height: auto;
	}

	.mtt-sc__slide-link {
		min-height: clamp(16rem, 28vw, 24rem);
	}

	.mtt-sc__swiper:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 85%;
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-slide {
		flex: 0 0 85%;
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-slide-link {
		min-height: 12rem;
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-slide-image {
		height: 12rem;
	}
}

@media (max-width: 550px) {
	.mtt-shop-collections {
		padding: 50px 0;
	}

	.mtt-sc__swiper:not(.swiper-initialized) .swiper-slide,
	.mtt-shop-collections.is-editor .mtt-sc__editor-slide {
		flex: 0 0 100%;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	.mtt-sc__swiper:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 calc((100% - 1rem) / 2);
	}

	.mtt-shop-collections.is-editor .mtt-sc__editor-slide {
		flex: 0 0 calc((100% - 0.75rem) / 2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mtt-sc__swiper .swiper-wrapper {
		transition-duration: 0.01ms !important;
	}
}
