/**
 * Home — Shop by Category (full viewport, 3 large portrait cards).
 */

.elementor-element-177c893.mto-shop-by-category-section {
	display: none !important;
}

.mto-shop-by-category {
	--mto-cat-header-space: clamp(120px, 16vh, 160px);
	--mto-cat-footer-space: clamp(48px, 6vh, 72px);
	--mto-cat-gap: clamp(20px, 2.4vw, 32px);

	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: var(--mto-cat-header-space) clamp(20px, 4vw, 56px) var(--mto-cat-footer-space);
	font-family: Inter, sans-serif;
	background: #ffffff;
}

.mto-shop-by-category__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: min(1680px, 100%);
	height: calc(100dvh - var(--mto-cat-header-space) - var(--mto-cat-footer-space));
	min-height: calc(100vh - var(--mto-cat-header-space) - var(--mto-cat-footer-space));
	margin: 0 auto;
}

.mto-shop-by-category__header {
	display: flex;
	flex-shrink: 0;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 3.5vh, 44px);
}

.mto-shop-by-category__title {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #000000;
}

.mto-shop-by-category__view-all {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #000000;
	text-decoration: none;
	white-space: nowrap;
}

.mto-shop-by-category__view-all:hover,
.mto-shop-by-category__view-all:focus {
	text-decoration: underline;
}

.mto-shop-by-category__grid {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mto-cat-gap);
	align-items: stretch;
	min-height: 0;
}

.mto-category-card {
	display: flex;
	min-width: 0;
	min-height: 0;
}

.mto-category-card__link {
	position: relative;
	display: flex;
	flex: 1;
	width: 100%;
	min-height: 100%;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	color: #ffffff;
	background: #e8e8e8;
}

.mto-category-card__media {
	position: absolute;
	inset: 0;
	display: block;
}

.mto-category-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s ease;
}

.mto-category-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 40%,
		rgba(0, 0, 0, 0.48) 100%
	);
	pointer-events: none;
}

.mto-category-card__label {
	position: absolute;
	left: 50%;
	bottom: clamp(28px, 4vh, 44px);
	transform: translateX(-50%);
	z-index: 2;
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #ffffff;
	background: transparent;
	transition: background-color 0.2s ease;
}

.mto-category-card__link:hover .mto-category-card__media img,
.mto-category-card__link:focus-visible .mto-category-card__media img {
	transform: scale(1.04);
}

.mto-category-card__link:hover .mto-category-card__label,
.mto-category-card__link:focus-visible .mto-category-card__label {
	background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
	.mto-shop-by-category {
		--mto-cat-header-space: clamp(96px, 14vh, 128px);
		min-height: auto;
	}

	.mto-shop-by-category__inner {
		height: auto;
		min-height: 0;
	}

	.mto-shop-by-category__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.mto-category-card__link {
		min-height: min(72vh, 640px);
	}
}

@media (max-width: 600px) {
	.mto-shop-by-category {
		padding-left: 16px;
		padding-right: 16px;
	}

	.mto-shop-by-category__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.mto-category-card__link {
		min-height: min(68vh, 520px);
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mto-category-card__media img,
	.mto-category-card__label {
		transition: none;
	}
}
