:root {
	--md-shop-orange: #ff6a00;
	--md-shop-orange-dark: #d95700;
	--md-shop-ink: #111;
	--md-shop-muted: #666a72;
	--md-shop-border: #e4e5e8;
	--md-shop-warm: #fff5ed;
}

.md-catalog-page #primary,
.md-catalog-page main.site-main,
.md-catalog-page .site-main {
	width: min(calc(100% - 40px), 1400px);
	max-width: 1400px;
	margin-inline: auto;
}

.md-catalog-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 50px;
	width: 100vw;
	max-width: none;
	margin: 0 0 38px calc(50% - 50vw);
	padding:
		clamp(48px, 6vw, 86px)
		max(32px, calc((100vw - 1400px) / 2));
	min-height: 500px;
	border-radius: 0;
	background:
		linear-gradient(90deg, rgba(12,12,12,.99) 0%, rgba(12,12,12,.94) 38%, rgba(12,12,12,.62) 63%, rgba(12,12,12,.15) 100%),
		var(--md-catalog-hero-image);
	background-position: center, center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}

.md-catalog-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 46%;
	height: 6px;
	background: var(--md-shop-orange);
}

.md-catalog-hero__content,
.md-catalog-hero__cta {
	position: relative;
	z-index: 1;
}

.md-catalog-hero__content {
	max-width: 790px;
}

.md-catalog-eyebrow {
	margin: 0 0 12px;
	color: #ff8b3d;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
}

.md-catalog-hero h1 {
	max-width: 900px;
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 5vw, 74px);
	line-height: .96;
	letter-spacing: -.05em;
}

.md-catalog-hero__content > p:nth-of-type(2) {
	max-width: 820px;
	margin: 20px 0 0;
	color: #c8c8c8;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.65;
}

.md-catalog-hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,.18);
}

.md-catalog-hero__proof span {
	display: flex;
	flex-direction: column;
	color: #aeb0b3;
	font-size: 11px;
}

.md-catalog-hero__proof strong {
	color: #fff;
	font-size: 13px;
}

.md-catalog-hero__cta {
	display: flex;
	flex-direction: column;
	min-width: 245px;
	padding: 18px 20px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 14px;
	background: rgba(255,255,255,.06);
	color: #d8d8d8;
	text-decoration: none;
}

.md-catalog-hero__cta strong {
	margin-top: 4px;
	color: #ff8b3d;
}

.md-catalog-archive h1.entry-title,
.md-catalog-archive .page-header > h1,
.md-catalog-archive .woocommerce-products-header__title.page-title,
.md-catalog-archive article > .entry-header {
	display: none !important;
}

.md-catalog-archive #content,
.md-catalog-archive .site-content,
.md-catalog-archive .content-wrap,
.md-catalog-archive .content-area,
.md-catalog-archive .site-content > .container,
.md-catalog-archive .site-content > .wrap,
.md-catalog-archive #primary,
.md-catalog-archive main.site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.md-catalog-archive .woocommerce-products-header,
.md-catalog-archive .woocommerce-products-header + .md-catalog-hero {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.md-catalog-navigation {
	margin-bottom: 28px;
	padding: 22px;
	border: 1px solid var(--md-shop-border);
	border-radius: 18px;
	background: #fff;
}

.md-catalog-navigation__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.md-catalog-navigation__top > div {
	display: flex;
	flex-direction: column;
}

.md-catalog-navigation__top span,
.md-catalog-filters label > span {
	color: #858992;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.md-catalog-navigation__top strong {
	color: var(--md-shop-ink);
	font-size: 20px;
}

.md-catalog-filter-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: var(--md-shop-ink);
	font-weight: 800;
	cursor: pointer;
}

.md-catalog-filter-toggle span {
	display: inline-grid;
	width: 28px;
	height: 28px;
	margin-left: 6px;
	place-items: center;
	border-radius: 50%;
	background: var(--md-shop-ink);
	color: #fff;
	font-size: 18px;
}

.md-catalog-category-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
	gap: 10px;
	margin-top: 17px;
}

.md-catalog-category-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	padding: 10px;
	border: 1px solid var(--md-shop-border);
	border-radius: 14px;
	background: #fff;
	color: #242424;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

.md-catalog-category-list a.has-photo {
	padding: 5px 10px 5px 5px;
	overflow: hidden;
}

.md-catalog-category-photo {
	display: block;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 10px;
	overflow: hidden;
	background: #f5f5f5;
}

.md-catalog-category-photo img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.md-catalog-category-icon {
	display: inline-grid;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	place-items: center;
	border-radius: 50%;
	background: #f3f3f4;
	color: #171717;
	transition: background .18s ease, color .18s ease;
}

.md-catalog-category-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.md-catalog-category-list a:hover,
.md-catalog-category-list a.is-active,
.md-catalog-secondary-list a:hover,
.md-catalog-secondary-list a.is-active {
	border-color: var(--md-shop-orange);
	background: var(--md-shop-warm);
	color: var(--md-shop-orange-dark);
}

.md-catalog-category-list a:hover .md-catalog-category-icon,
.md-catalog-category-list a.is-active .md-catalog-category-icon,
.md-catalog-secondary-list a:hover .md-catalog-category-icon,
.md-catalog-secondary-list a.is-active .md-catalog-category-icon {
	background: var(--md-shop-orange);
	color: #fff;
}

.md-catalog-category-list a:hover .md-catalog-category-photo,
.md-catalog-category-list a.is-active .md-catalog-category-photo {
	background: #fff;
}

.md-catalog-category-list a > span {
	display: grid;
	gap: 2px;
}

.md-catalog-category-list b {
	font-size: 13px;
}

.md-catalog-category-list small,
.md-catalog-secondary-list small {
	color: #999ca3;
	font-size: 10px;
	font-weight: 700;
}

.md-catalog-more {
	margin-top: 12px;
}

.md-catalog-more summary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f4f4f5;
	color: #42444a;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.md-catalog-more summary::-webkit-details-marker {
	display: none;
}

.md-catalog-more summary:after {
	content: '+';
	font-size: 17px;
	line-height: 1;
}

.md-catalog-more[open] summary:after {
	content: '−';
}

.md-catalog-secondary-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.md-catalog-secondary-list a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 5px 12px 5px 6px;
	border: 1px solid var(--md-shop-border);
	border-radius: 999px;
	background: #fff;
	color: #242424;
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
}

.md-catalog-secondary-list .md-catalog-category-icon {
	width: 32px;
	height: 32px;
	flex-basis: 32px;
}

.md-catalog-filters {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(190px, .55fr) auto auto;
	align-items: end;
	gap: 12px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #eeeef0;
}

.md-catalog-filters label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.md-catalog-filters input,
.md-catalog-filters select {
	width: 100%;
	min-height: 46px;
	padding: 0 13px;
	border: 1px solid #d9dbe0;
	border-radius: 9px;
	background: #fff;
	color: #202020;
}

.md-catalog-filters button {
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 9px;
	background: var(--md-shop-orange);
	color: #fff;
	font-weight: 850;
	cursor: pointer;
}

.md-catalog-filters > a {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	color: #555;
	font-weight: 750;
}

.md-catalog-page .woocommerce-result-count {
	margin-top: 10px;
	color: var(--md-shop-muted);
	font-size: 13px;
}

.md-catalog-page .woocommerce-ordering select {
	min-height: 42px;
	padding: 0 38px 0 12px;
	border: 1px solid var(--md-shop-border);
	border-radius: 9px;
	background-color: #fff;
}

.md-catalog-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px !important;
	clear: both;
	margin-top: 28px !important;
}

.md-catalog-page ul.products::before,
.md-catalog-page ul.products::after {
	display: none !important;
}

.md-catalog-page ul.products li.product {
	display: flex !important;
	width: auto !important;
	min-width: 0;
	flex-direction: column;
	float: none !important;
	margin: 0 !important;
	padding: 10px 10px 14px !important;
	border: 1px solid var(--md-shop-border);
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.md-catalog-page ul.products li.product:hover {
	border-color: #cacdd3;
	box-shadow: 0 18px 42px rgba(18,18,18,.09);
	transform: translateY(-3px);
}

.md-catalog-page ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--md-shop-ink);
	text-decoration: none;
}

.md-catalog-page ul.products li.product img {
	width: 100% !important;
	aspect-ratio: 1 / 1;
	margin: 0 0 13px !important;
	border-radius: 12px;
	background: #fafafa;
	object-fit: contain;
}

.md-catalog-card-brand {
	align-self: flex-start;
	margin: 0 5px 7px;
	padding: 5px 8px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.md-catalog-page ul.products li.product .woocommerce-loop-product__title {
	margin: 0 5px !important;
	padding: 0 !important;
	color: var(--md-shop-ink);
	font-size: 18px !important;
	font-weight: 850;
	line-height: 1.22;
	letter-spacing: -.02em;
}

.md-catalog-page ul.products li.product .price {
	margin: auto 5px 2px !important;
	padding-top: 14px;
	color: var(--md-shop-orange-dark) !important;
	font-size: 18px !important;
	font-weight: 900 !important;
}

.md-catalog-page ul.products li.product .button {
	margin: 11px 5px 0 !important;
	padding: 12px 14px !important;
	border-radius: 9px !important;
	background: #111 !important;
	color: #fff !important;
	text-align: center;
	font-size: 13px !important;
	font-weight: 850 !important;
}

.md-catalog-page ul.products li.product .button:hover {
	background: var(--md-shop-orange) !important;
}

.md-catalog-page .onsale {
	top: 18px !important;
	right: 18px !important;
	left: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 6px 9px !important;
	border-radius: 999px !important;
	background: var(--md-shop-orange) !important;
	line-height: 1 !important;
}

.md-catalog-page .woocommerce-pagination {
	margin: 40px 0 60px;
}

.md-catalog-page .woocommerce-pagination ul {
	display: flex !important;
	justify-content: center;
	gap: 7px;
	border: 0 !important;
}

.md-catalog-page .woocommerce-pagination li {
	border: 0 !important;
}

.md-catalog-page .woocommerce-pagination a,
.md-catalog-page .woocommerce-pagination span {
	display: grid !important;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid var(--md-shop-border);
	border-radius: 9px;
	background: #fff !important;
	color: #222 !important;
}

.md-catalog-page .woocommerce-pagination .current {
	border-color: #111;
	background: #111 !important;
	color: #fff !important;
}

.md-product-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(calc(100% - 40px), 1400px);
	margin: 10px auto 28px;
	color: #858992;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
}

.md-product-breadcrumbs a {
	color: #44484f;
	font-weight: 750;
	text-decoration: none;
}

.md-product-breadcrumbs a:hover {
	color: var(--md-shop-orange);
}

.md-product-breadcrumbs strong {
	overflow: hidden;
	color: #81858d;
	font-weight: 600;
	text-overflow: ellipsis;
}

.md-product-switcher {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	width: min(calc(100% - 40px), 1400px);
	margin: 42px auto 65px;
}

.md-product-switcher a {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 20px;
	border: 1px solid var(--md-shop-border);
	border-radius: 14px;
	background: #fff;
	color: #171717;
	text-decoration: none;
}

.md-product-switcher a:hover {
	border-color: var(--md-shop-orange);
	box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.md-product-switcher .is-next {
	text-align: right;
}

.md-product-switcher span {
	color: var(--md-shop-orange-dark);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.md-catalog-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.md-catalog-page #primary,
	.md-catalog-page main.site-main,
	.md-catalog-page .site-main {
		width: min(calc(100% - 24px), 1400px);
	}

	.md-catalog-hero {
		grid-template-columns: 1fr;
		gap: 26px;
		margin-top: 0;
		padding: 45px 22px;
		border-radius: 0;
	}

	.md-catalog-hero h1 {
		font-size: clamp(39px, 12vw, 58px);
	}

	.md-catalog-hero__cta {
		min-width: 0;
	}

	.md-catalog-hero {
		min-height: 520px;
		background-position: center, 68% center;
	}

	.md-catalog-hero__proof {
		display: none;
	}

	.md-catalog-navigation {
		padding: 17px 14px;
	}

	.md-catalog-filter-toggle {
		display: inline-flex;
		align-items: center;
		flex: 0 0 auto;
	}

	.md-catalog-category-list {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 7px;
		scrollbar-width: thin;
	}

	.md-catalog-category-list a {
		flex: 0 0 154px;
	}

	.md-catalog-secondary-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.md-catalog-secondary-list a {
		min-width: 0;
	}

	.md-catalog-filters {
		display: none;
		grid-template-columns: 1fr;
	}

	.md-catalog-filters.is-open {
		display: grid;
	}

	.md-catalog-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px !important;
	}

	.md-catalog-page ul.products li.product {
		padding: 7px 7px 11px !important;
		border-radius: 14px;
	}

	.md-catalog-page ul.products li.product .woocommerce-loop-product__title {
		font-size: 15px !important;
	}

	.md-catalog-page ul.products li.product .price {
		font-size: 15px !important;
	}

	.md-product-breadcrumbs {
		width: min(calc(100% - 24px), 1400px);
		margin-bottom: 18px;
	}

	.md-product-switcher {
		grid-template-columns: 1fr;
		width: min(calc(100% - 24px), 1400px);
		margin-top: 28px;
	}

	.md-product-switcher .is-next {
		text-align: left;
	}
}
