/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

:root {
	--fmg-ink: #101010;
	--fmg-muted: #6f6a64;
	--fmg-line: #e8e1da;
	--fmg-paper: #faf7f3;
	--fmg-accent: #c7a07a;
}

body {
	color: var(--fmg-ink);
	background: #fff;
}

.fmg-top-marquee {
	position: relative;
	z-index: 1002;
	width: 100%;
	height: 45px;
	overflow: hidden;
	background: #111;
	color: #fff;
	font-size: 14px;
	line-height: 45px;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.fmg-top-marquee div {
	display: inline-flex;
	align-items: center;
	height: 45px;
	min-width: max-content;
	animation: fmg-marquee 38s linear infinite;
}

.fmg-top-marquee span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 45px;
	padding: 0 22px;
}

.fmg-top-marquee span::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	display: inline-block;
}

@keyframes fmg-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.site-logo img,
.wd-logo img,
.whb-logo img {
	max-height: 30px;
	width: auto;
}

body.home .wd-page-title,
body.home .page-title,
body.home .entry-header,
body .whb-header {
	display: none !important;
}

body.home .site-content,
body.home .main-page-wrapper,
body.home .content-layout-wrapper,
body.home .wd-content-layout {
	padding-top: 0 !important;
}

body.home .container,
body.home .container-fluid {
	max-width: none;
}

.fmg-site-header {
	position: relative;
	z-index: 1001;
	background: #fff;
	border-bottom: 1px solid #ececec;
	font-family: Arial, Helvetica, sans-serif;
}

.fmg-header-main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 28px;
}

.fmg-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fmg-logo img {
	display: block;
	width: 198px;
	max-width: 48vw;
	height: auto;
}

.fmg-header-tools {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	gap: 22px;
	transform: translateY(-50%);
}

.fmg-header-tools--left {
	left: 24px;
}

.fmg-header-tools--right {
	right: 24px;
}

.fmg-icon-button,
.fmg-header-search button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #171717;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
}

.fmg-menu-button {
	flex-direction: column;
	gap: 5px;
}

.fmg-menu-button span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: #111;
}

.fmg-account-button span,
.fmg-wishlist-button span,
.fmg-search-toggle span,
.fmg-cart-button span {
	display: block;
	position: relative;
	width: 18px;
	height: 18px;
}

.fmg-account-button span::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 1px;
	width: 6px;
	height: 6px;
	border: 2px solid #111;
	border-radius: 50%;
}

.fmg-account-button span::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 11px;
	width: 14px;
	height: 8px;
	border: 2px solid #111;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
}

.fmg-wishlist-button span::before {
	content: "♡";
	position: absolute;
	left: 0;
	top: -4px;
	font-size: 25px;
	line-height: 1;
	color: #111;
}

.fmg-search-toggle span::before,
.fmg-header-search button::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 4px;
	width: 10px;
	height: 10px;
	border: 2px solid #111;
	border-radius: 50%;
}

.fmg-search-toggle span::after,
.fmg-header-search button::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 15px;
	width: 7px;
	height: 2px;
	background: #111;
	transform: rotate(45deg);
}

.fmg-cart-button span::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 5px;
	width: 13px;
	height: 12px;
	border: 2px solid #111;
	border-top-width: 1.5px;
}

.fmg-cart-button span::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 0;
	width: 6px;
	height: 8px;
	border: 2px solid #111;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
}

.fmg-header-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 5vw, 72px);
	height: 43px;
	border-top: 1px solid #f3f3f3;
}

.fmg-header-nav a {
	color: #111;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 43px;
	text-transform: uppercase;
}

.fmg-header-nav a:hover {
	color: #777;
}

.fmg-header-search {
	display: none;
	align-items: center;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 16px 16px;
}

.fmg-header-search input[type="search"] {
	width: 100%;
	height: 30px;
	border: 1px solid #e4e4e4;
	border-right: 0;
	border-radius: 18px 0 0 18px;
	padding: 0 18px;
	font-size: 16px;
	font-style: italic;
}

.fmg-header-search button {
	width: 44px;
	height: 30px;
	border: 1px solid #e4e4e4;
	border-left: 0;
	border-radius: 0 18px 18px 0;
}

.fmg-home-shell {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	overflow: hidden;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
}

.fmg-benefit-strip > br,
.fmg-promo-row > br,
.fmg-mini-promos > br,
.fmg-j3-links > br,
.fmg-sale-track > br {
	display: none !important;
}

.fmg-j3-hero {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: clamp(250px, 28.85vw, 600px);
	min-height: 0;
	background-size: cover;
	background-position: center center;
}

.fmg-j3-hero__copy {
	position: relative;
	z-index: 1;
	width: min(780px, 86vw);
	margin: 0 auto;
	text-align: center;
	color: #fff;
}

.fmg-j3-hero__eyebrow {
	display: none;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.fmg-j3-hero h1 {
	margin: 0 0 12px;
	color: #dff4f7;
	font-size: clamp(31px, 4.2vw, 64px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.fmg-j3-hero h1 span {
	display: block;
}

.fmg-j3-hero--new h1 {
	margin-bottom: 48px;
	color: #fff;
	font-size: clamp(27px, 3.2vw, 50px);
	font-weight: 800;
	line-height: 1.02;
	text-shadow: 0 1px 1px rgba(0,0,0,.08);
}

.fmg-j3-hero--new .fmg-j3-links {
	gap: 0;
}

.fmg-j3-hero--new .fmg-j3-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(130px, 17vw, 210px);
	height: 54px;
	background: rgba(222, 84, 70, .28);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
}

.fmg-j3-hero--new .fmg-j3-links a::after,
.fmg-j3-hero--new .fmg-j3-links a + a::before {
	display: none;
}

.fmg-j3-hero p {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(13px, 1.2vw, 18px);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: uppercase;
}

.fmg-j3-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}

.fmg-j3-links a {
	position: relative;
	color: #fff;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
}

.fmg-j3-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 1px;
	background: currentColor;
}

.fmg-j3-links a + a::before {
	content: "|";
	position: absolute;
	left: -16px;
	bottom: 0;
	color: #fff;
}

.fmg-benefit-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid #efefef;
	border-bottom: 1px solid #efefef;
	background: #fff;
}

.fmg-benefit-strip a,
.fmg-benefit-strip span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 10px;
	border-right: 1px solid #efefef;
	color: #111;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.fmg-benefit-strip a:last-child,
.fmg-benefit-strip span:last-child {
	border-right: 0;
}

.fmg-section-head {
	padding: 30px 20px 18px;
	text-align: center;
}

.fmg-section-head h2 {
	margin: 0;
	color: #111;
	font-size: clamp(20px, 2.3vw, 32px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: uppercase;
}

.fmg-section-head p {
	display: none;
	margin: 0 0 7px;
	color: #555;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.fmg-sale-carousel {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 54px 26px;
}

.fmg-sale-track {
	display: flex;
	flex-wrap: nowrap;
	overflow: hidden;
	gap: 22px;
}

.fmg-sale-card {
	flex: 0 0 calc((100% - 66px) / 4);
	min-width: 0;
	display: block;
	color: #111;
	text-align: center;
}

.fmg-sale-card__image {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding-top: 14px;
	background: #fff;
}

.fmg-sale-card__image::before {
	content: "SALE";
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 1;
	padding: 4px 7px;
	background: #111;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.fmg-sale-card img {
	display: block;
	width: 58%;
	aspect-ratio: 2 / 3;
	height: auto;
	object-fit: cover;
	transition: transform .25s ease;
}

.fmg-sale-card:hover img {
	transform: scale(1.03);
}

.fmg-sale-card__title {
	display: block;
	min-height: 34px;
	margin: 12px 0 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.fmg-sale-card__price {
	display: block;
	font-size: 13px;
	font-weight: 700;
}

.fmg-sale-card__price del {
	margin-right: 6px;
	color: #8d8d8d;
	font-weight: 400;
}

.fmg-sale-card__price ins {
	color: #111;
	text-decoration: none;
}

.fmg-carousel-arrow {
	position: absolute;
	top: 35%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.fmg-carousel-arrow--prev {
	left: 5px;
}

.fmg-carousel-arrow--next {
	right: 5px;
}

.fmg-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
}

.fmg-carousel-dots span {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c8c8c8;
}

.fmg-carousel-dots span:first-child {
	background: #111;
}

.fmg-image-strip {
	max-width: 1320px;
	margin: 10px auto 0;
	padding: 0 24px;
}

.fmg-image-strip img {
	display: block;
	width: 100%;
	height: auto;
}

.fmg-promo-row {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr;
	gap: 14px;
	max-width: 1320px;
	margin: 22px auto 0;
	padding: 0 24px 24px;
}

.fmg-promo-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(290px, 32vw, 520px);
	overflow: hidden;
	background: #eee center / cover no-repeat;
	color: #fff;
}

.fmg-promo-card::after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.48));
}

.fmg-promo-card span {
	position: relative;
	z-index: 1;
	padding: 24px;
	color: #fff;
	font-size: clamp(22px, 2.8vw, 40px);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.fmg-mini-promos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	max-width: 1320px;
	margin: 0 auto 26px;
	padding: 0 24px;
}

.fmg-mini-promos a {
	position: relative;
	display: block;
	min-height: 230px;
	background: #eee center / cover no-repeat;
	overflow: hidden;
}

.fmg-mini-promos span {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 1;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
}

.fmg-mini-promos a::after {
	content: "";
	position: absolute;
	inset: 35% 0 0;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45));
}

.products.elements-grid,
.woocommerce .products {
	padding-inline: clamp(14px, 3vw, 38px);
}

.product-grid-item .product-title,
.wd-entities-title {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
}

.price,
.product-grid-item .price {
	color: #111;
	font-weight: 600;
}

.fmg-footer-wrap {
	background: #111;
	color: #fff;
	margin-top: 56px;
}

.fmg-footer {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: clamp(24px, 4vw, 64px);
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(42px, 6vw, 76px) 24px;
}

.fmg-footer img {
	max-width: 200px;
	filter: invert(1);
	margin-bottom: 20px;
}

.fmg-footer h3 {
	color: #fff;
	font-size: 13px;
	margin: 0 0 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.fmg-footer p,
.fmg-footer a {
	display: block;
	color: rgba(255,255,255,0.72);
	font-size: 14px;
	line-height: 1.8;
}

.fmg-footer a:hover {
	color: #fff;
}

.fmg-copyright {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding: 18px 24px;
	text-align: center;
	color: rgba(255,255,255,0.62);
	font-size: 13px;
}

.fmg-copyright span {
	margin-left: 12px;
}

@media (max-width: 1024px) and (min-width: 641px) {
	.fmg-site-header {
		margin-bottom: 36px;
	}

	.fmg-logo,
	.fmg-header-nav {
		display: none;
	}

	.fmg-header-search {
		display: flex;
	}

	.fmg-header-tools {
		gap: 12px;
	}

	.fmg-header-tools--left {
		left: 18px;
	}

	.fmg-header-tools--right {
		right: 18px;
	}

	.fmg-benefit-strip {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.fmg-header-main {
		height: 64px;
	}

	.fmg-logo img {
		width: 170px;
	}

	.fmg-header-tools {
		gap: 12px;
	}

	.fmg-header-tools--left {
		left: 18px;
	}

	.fmg-header-tools--right {
		right: 18px;
	}

	.fmg-header-nav {
		display: none;
	}

	.fmg-header-search {
		display: flex;
	}

	.fmg-benefit-strip {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.fmg-promo-row,
	.fmg-mini-promos,
	.fmg-footer {
		grid-template-columns: 1fr;
	}

	.fmg-promo-card,
	.fmg-mini-promos a {
		min-height: 340px;
	}
}

@media (min-width: 768px) {
	.wd-toolbar.wd-toolbar-label-show {
		display: none !important;
	}

	body {
		padding-bottom: 0 !important;
	}
}

@media (max-width: 640px) {
	.fmg-site-header {
		margin-bottom: 0;
	}

	.fmg-top-marquee {
		height: 34px;
		font-size: 10px;
		line-height: 34px;
	}

	.fmg-top-marquee div,
	.fmg-top-marquee span {
		height: 34px;
	}

	.fmg-header-main {
		height: 60px;
		padding: 0 12px;
	}

	.fmg-logo img {
		width: 150px;
	}

	.fmg-header-tools {
		gap: 8px;
	}

	.fmg-header-tools--left {
		left: 10px;
	}

	.fmg-header-tools--right {
		right: 10px;
	}

	.fmg-icon-button,
	.fmg-header-search button {
		width: 22px;
		height: 22px;
	}

	.fmg-header-nav {
		height: 40px;
	}

	.fmg-header-nav a {
		line-height: 40px;
	}

	.fmg-j3-hero {
		height: clamp(220px, 65vw, 390px);
		background-position: center center;
	}

	.fmg-j3-hero__copy {
		width: calc(100% - 42px);
		margin: 0 auto;
		padding: 0;
		background: transparent;
	}

	.fmg-benefit-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fmg-sale-carousel {
		padding: 0 18px 24px;
	}

	.fmg-sale-track {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.fmg-sale-card {
		flex-basis: 72%;
		scroll-snap-align: center;
	}

	.fmg-carousel-arrow {
		display: none;
	}

	.fmg-promo-row,
	.fmg-mini-promos {
		padding-inline: 14px;
	}

	.fmg-copyright span {
		display: block;
		margin: 4px 0 0;
	}
}
