/*
Theme Name: Wundertute
Template: woodmart
Version: 0.1.7
Text Domain: wundertute
*/

.wt-child {
	--wt-page-gutter: clamp(24px, 4vw, 96px);
	--wt-header-ink: #242522;
}

.wt-child :is(.whb-header, .wt-maison-catbar, .wt-collections) :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wt-child.wt-g32 .wt-maison-topbar-wrap { display: none; }

.wt-child .whb-general-header .container,
.wt-child .wt-maison-catbar > .container {
	width: 100%;
	max-width: none;
	padding-inline: var(--wt-page-gutter);
}

.wt-child.wt-g32 .whb-header .whb-general-header { background: #fff; }

.wt-child .wt-header-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2.1vw, 40px);
	white-space: nowrap;
}

.wt-child .wt-header-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--wt-header-ink);
	font-size: 13px;
	font-weight: 600;
}

.wt-child .wt-header-links a:hover { text-decoration: underline; }

.wt-child .whb-header .whb-col-right .wd-search-form { width: clamp(145px, 15vw, 245px); }
.wt-child .whb-general-header .site-logo img {
	width: 110px;
	max-width: none;
	height: 70px;
	max-height: none;
	object-fit: contain;
}

.wt-child.wt-g32 .wt-maison-catbar { background: var(--wt-header-ink); border: 0; }
.wt-child.wt-g32 .wt-maison-catbar-list { justify-content: space-between; padding: 0; }
.wt-child.wt-g32 .wt-maison-catbar-list > :is(li:first-child, li:last-child) { margin-inline: 0; }
.wt-child.wt-g32 .wt-maison-catbar .wt-maison-catlink { min-height: 48px; color: #fff !important; }
.wt-child.wt-g32 .wt-maison-catbar .wt-maison-catlink::after { background: #d9b58e; }

.wt-child.home .wd-content-layout:has(.elementor-element-b4b5432, .wt-collections) {
	max-width: none;
	container-type: inline-size;
}

.wt-child.wt-g32.home .elementor-41408 .elementor-element-b4b5432 .swiper {
	/* The two home assets are 1916 × 821 and 1915 × 821. Use the slightly taller ratio. */
	width: calc(100cqw + 30px);
	max-width: none;
	margin-inline: calc((100% - (100cqw + 30px)) / 2);
	aspect-ratio: 1915 / 821;
	height: auto !important;
}

.wt-child.wt-g32.home .elementor-41408 .elementor-element-b4b5432 :is(.swiper, .swiper-wrapper, .swiper-slide) {
	max-height: none !important;
}

.wt-child.wt-g32.home .elementor-41408 .elementor-element-b4b5432 :is(.swiper-wrapper, .swiper-slide) {
	height: 100% !important;
}

.wt-child.wt-g32.home .elementor-41408 .elementor-element-b4b5432 .swiper-slide-bg {
	background-size: contain !important;
	background-position: center !important;
	background-repeat: no-repeat;
	transform: none !important;
	transition: none !important;
}

.wt-child.wt-g32.home .elementor-41408 .elementor-element-642dcee {
	padding-block-start: 0 !important;
}

.wt-child.wt-g32.home .wt-home-editorial > .container {
	width: 100%;
	max-width: none;
	padding-inline: clamp(11px, calc((100cqw - 1300px) / 7), 72px);
}

.wt-child.wt-g32.home .wt-home-cat-btn.wt-maison-cat-tile {
	min-height: 96px !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
}

.wt-child.wt-g32.home .wt-maison-cat-tile__thumb,
.wt-child.wt-g32.home .wt-maison-cat-tile__thumb img {
	width: 68px !important;
	height: 68px !important;
}

.wt-child.wt-g32.home .wt-maison-brand-tile {
	height: 88px !important;
	padding: 8px !important;
}

.wt-child.wt-g32.home .wt-maison-brand-tile img {
	width: 100%;
	height: 100%;
	max-width: 148px !important;
	max-height: 70px !important;
}

.wt-child.home .wt-brand-scroll {
	display: none;
}

/* WoodMart hides its alternate button icon until hover. The storefront uses it as the only icon. */
body.wt-child.wt-g32 .wd-product.wd-hover-fw-button .wd-add-btn .button:not(.loading)::after {
	opacity: 1;
}

.wt-child.wt-g32.home :is(.elementor-element-f0374ce > .elementor-container, .elementor-element-950c93a .wd-products-tabs) {
	max-width: 1440px;
	margin-inline: auto;
}

.wt-child.wt-g32.home #wt-new-tab-panels .products.wd-grid-g {
	display: grid !important;
	grid-template-columns: repeat(var(--wt-new-columns, 2), minmax(0, 1fr)) !important;
}

.wt-child.wt-g32.home .elementor-element-950c93a :is(.wd-tab-content-wrapper, .wd-tabs-content-wrapper) .products.wd-grid-g {
	display: grid !important;
	grid-template-columns: repeat(var(--wt-promo-columns, 2), minmax(0, 1fr)) !important;
	margin-inline: 0;
	column-gap: 12px;
}

.wt-child.wt-g32.home :is(#wt-new-tab-panels, .elementor-element-950c93a) .products.wd-grid-g > .wd-product {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.wt-child.wt-g32.home .elementor-element-950c93a .wd-products-tabs {
	grid-template-columns: minmax(0, 1fr);
}

.wt-child.wt-g32.home .elementor-element-950c93a .wt-promo-split__banner {
	padding: 16px !important;
	align-self: start;
}

.wt-child.wt-g32.home .elementor-element-950c93a .wt-promo-split__title {
	font-size: clamp(1.1rem, 1.35vw, 1.25rem);
}

.wt-child.wt-g32.home .elementor-element-950c93a .wd-product-img-link {
	max-width: 220px;
	margin-inline: auto;
}

.wt-child.wt-g32.home .elementor-element-950c93a :is(.wd-tab-content-wrapper, .wd-tabs-content-wrapper) {
	min-width: 0;
}
.wt-collections {
	position: relative;
	width: calc(100% + 30px);
	margin: clamp(38px, 5vw, 88px) -15px clamp(40px, 5vw, 84px);
	padding-inline: var(--wt-page-gutter);
	color: var(--wt-header-ink);
}

.wt-collections__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.wt-collections__heading h2 {
	margin: 0;
	font-size: clamp(27px, 2.6vw, 48px);
	font-weight: 600;
	letter-spacing: -.045em;
}

.wt-collections [hidden] { display: none !important; }
.wt-collections__tabs { display: flex; overflow-x: auto; gap: 5px; max-width: 100%; }
.wt-collections__tabs button {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
}
.wt-collections__tabs button[aria-selected="true"],
.wt-collections__tabs button[aria-selected="true"]:hover,
.wt-collections__tabs button[aria-selected="true"]:focus-visible {
	border-bottom-color: currentColor;
	background: #f1eeea;
}

.wt-collection {
	display: grid;
	grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
	background: var(--wt-collection-tone, #e8dfd2);
}
.wt-collection + .wt-collection { margin-top: 20px; }
.wt-collection--text { grid-template-columns: minmax(0, 1fr); }
.wt-collection__visual { position: relative; margin: 0; min-height: 100%; }
.wt-collection__visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--wt-image-focus, center);
}
.wt-collection__content { min-width: 0; padding: clamp(14px, 2vw, 32px); }
.wt-collection__top { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.wt-collection__brand { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.wt-collection__top h3 { font-size: clamp(21px, 2vw, 37px); margin: 0; letter-spacing: -.035em; }
.wt-collection__top a { color: inherit; white-space: nowrap; padding-block: 10px; text-decoration: underline; }
.wt-collection__rail {
	--wt-card-size: 30%;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--wt-card-size);
	gap: 12px;
	margin: 18px 0 0;
	padding: 0 0 6px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	list-style: none;
}
.wt-collection__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: #fcfbf9;
	scroll-snap-align: start;
}
.wt-collection__product-image {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1.06;
	padding: 12px;
	background: #f4f3ef;
}
.wt-collection__product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.wt-collection__product { display: flex; flex: 1; flex-direction: column; padding: 13px; gap: 8px; }
.wt-collection__product h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.wt-collection__product > span { margin-top: auto; font-size: 14px; font-weight: 700; }
.wt-collection__product h4 a, .wt-collection__product .amount { color: var(--wt-header-ink); }
.wt-collection__controls { display: flex; gap: 8px; justify-content: end; margin-top: 10px; }
.wt-collection__controls button {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-size: 19px;
}
.wt-collection__controls button:disabled { opacity: .45; }

@media (min-width: 1025px) {
	.wt-child .whb-general-header .whb-flex-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		height: 76px;
	}
	.wt-child .whb-general-header .whb-col-left { justify-content: start; }
	.wt-child .whb-general-header .whb-col-right { justify-content: end; }
	.wt-child.home { --wt-new-columns: 5; --wt-promo-columns: 5; }
	/* Reserve a column only when the banner is inside the tabs. */
	.wt-child.wt-g32.home .elementor-element-950c93a .wd-products-tabs:has(> .wt-promo-split__banner) {
		grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.wt-child.home { --wt-new-columns: 4; --wt-promo-columns: 3; }
}

@media (max-width: 1150px) {
	.wt-child .wt-header-links { gap: 12px; }
	.wt-child .wt-header-links a { font-size: 12px; }
	.wt-collection__rail { --wt-card-size: 43%; }
}

@media (max-width: 1024px) {
	.wt-child { --wt-page-gutter: 16px; }
	.wt-child.wt-g32 .wt-maison-catbar { display: none; }
	.wt-child.wt-g32 .whb-general-header .site-logo img {
		width: 76px !important;
		max-width: 76px !important;
		height: auto !important;
		max-height: 54px !important;
	}
}

@media (max-width: 767px) {
	.wt-child.wt-g32.home .wt-home-editorial > .container { padding-inline: 0; }
	.wt-child.wt-g32.home .elementor-41408 .elementor-element-109be07 > .elementor-widget-wrap {
		padding-block-start: 0 !important;
	}
	.wt-child.wt-g32.home .wt-home-editorial .wt-maison-cat-grid { gap: 8px !important; }
	.wt-child.wt-g32.home .wt-home-cat-btn.wt-maison-cat-tile {
		min-height: 72px !important;
		font-size: 13px !important;
		padding: 8px !important;
	}
	.wt-child.wt-g32.home .wt-maison-cat-tile__thumb,
	.wt-child.wt-g32.home .wt-maison-cat-tile__thumb img {
		width: clamp(34px, 11vw, 48px) !important;
		height: clamp(34px, 11vw, 48px) !important;
	}
	.wt-child.wt-g32.home .wt-maison-brand-grid {
		grid-template-columns: none !important;
		grid-auto-flow: column;
		grid-auto-columns: calc((100% - 18px) / 2.6);
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		scroll-padding-inline: 3px;
		padding: 4px 3px 8px;
	}
	.wt-child.wt-g32.home .wt-maison-brand-tile { scroll-snap-align: start; }
	.wt-child.wt-g32.home .wt-maison-brand-tile img {
		max-width: 100% !important;
		max-height: 63px !important;
	}
	.wt-child.home .wt-brand-scroll:not([hidden]) {
		display: flex;
		gap: 8px;
		justify-content: end;
		margin-top: 4px;
	}
	.wt-child.home .wt-brand-scroll button {
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		background: #fff;
		border: 1px solid #d0ceca;
		color: var(--wt-header-ink);
	}
	.wt-child.home .wt-brand-scroll button:disabled { opacity: .4; }
	.wt-child.home .wt-maison-brand-section :focus-visible {
		outline: 2px solid var(--wt-header-ink);
		outline-offset: 1px;
	}
	.wt-collections__heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
	.wt-collections__tabs button { padding-inline: 8px; }
	.wt-collection { grid-template-columns: minmax(0, 1fr); }
	.wt-collection__visual { aspect-ratio: 5 / 4; }
	.wt-collection__top h3 { line-height: 1.15; }
	.wt-collection__rail { --wt-card-size: min(80%, 260px); }
}
