/* AvenzRoy Prestue Storefront v2.4 — scoped, responsive and reversible. */

body.avenzroy-prestue-active {
	--ar-ink: #242424;
	--ar-copy: #767676;
	--ar-accent: #a8c9a9;
	--ar-line: #e7e7e7;
	background: #fff;
	color: var(--ar-copy);
	font-family: "Josefin Sans", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

body.avenzroy-prestue-active.avenzroy-hide-top-bar .whb-top-bar,
body.avenzroy-prestue-active.avenzroy-hide-wishlist .wd-header-wishlist,
body.avenzroy-prestue-active.avenzroy-hide-wishlist .wd-wishlist-btn,
body.avenzroy-prestue-active.avenzroy-hide-wishlist .wd-wishlist-icon,
body.avenzroy-prestue-active.avenzroy-hide-compare .wd-header-compare,
body.avenzroy-prestue-active.avenzroy-hide-compare .wd-compare-btn,
body.avenzroy-prestue-active.avenzroy-hide-compare .wd-compare-icon {
	display: none !important;
}

body.avenzroy-prestue-active .whb-header {
	--wd-header-general-sticky-h: 85px;
	font-family: "Josefin Sans", Arial, Helvetica, sans-serif;
}

/*
 * WoodMart changes the header row height and logo state after a page change or
 * when its sticky header is prepared. Keep the uploaded brand visible in both
 * the normal and sticky variants instead of relying on WoodMart's demo image.
 */
body.avenzroy-prestue-active .whb-header .whb-general-header-inner,
body.avenzroy-prestue-active .whb-header .whb-column,
body.avenzroy-prestue-active .whb-header .site-logo {
	overflow: visible !important;
}

body.avenzroy-prestue-active .whb-header .site-logo {
	position: relative;
	display: flex !important;
	flex: 0 0 230px !important;
	width: 230px !important;
	min-width: 230px !important;
	height: 85px !important;
	max-height: none !important;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
	visibility: visible !important;
}

body.avenzroy-prestue-active.avenzroy-has-logo-image .whb-header .site-logo::before {
	content: "";
	position: absolute;
	inset: 2px 10px;
	display: block !important;
	background-image: var(--avenzroy-logo-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

body.avenzroy-prestue-active .whb-header .wd-nav > li > a,
body.avenzroy-prestue-active .whb-header .wd-tools-text {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .01em;
}

body.avenzroy-prestue-active .wd-logo img {
	display: none !important;
}

body.avenzroy-prestue-active .wd-logo,
body.avenzroy-prestue-active .wd-logo > a {
	width: 210px !important;
	min-width: 210px;
	height: 80px;
	max-height: none !important;
	overflow: visible !important;
}

body.avenzroy-prestue-active a.wd-logo,
body.avenzroy-prestue-active .wd-logo > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

body.avenzroy-prestue-active a.wd-logo::after,
body.avenzroy-prestue-active .wd-logo > a::after {
	content: var(--avenzroy-brand, "My Store");
	display: inline-block;
	color: #111;
	font-family: "Brush Script MT", "Segoe Script", cursive;
	font-size: 52px;
	font-weight: 400;
	letter-spacing: -.06em;
	line-height: 1;
	white-space: nowrap;
}

body.avenzroy-prestue-active.avenzroy-has-logo-image a.wd-logo::before,
body.avenzroy-prestue-active.avenzroy-has-logo-image .wd-logo > a::before {
	content: "";
	display: block;
	width: 210px;
	height: 80px;
	background-image: var(--avenzroy-logo-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

body.avenzroy-prestue-active.avenzroy-has-logo-image a.wd-logo::after,
body.avenzroy-prestue-active.avenzroy-has-logo-image .wd-logo > a::after {
	display: none;
}

body.avenzroy-prestue-active .page-title,
body.avenzroy-prestue-active .wd-prefooter,
body.avenzroy-prestue-active .prefooter,
body.avenzroy-prestue-active .footer-container,
body.avenzroy-prestue-active .copyrights-wrapper {
	display: none !important;
}

body.avenzroy-prestue-active .main-page-wrapper {
	padding-top: 0;
}

body.avenzroy-prestue-active.home .site-content,
body.avenzroy-prestue-active.home .content-layout-wrapper,
body.avenzroy-prestue-active.home .main-page-wrapper > .container,
body.avenzroy-prestue-active .avenzroy-content-page,
body.avenzroy-prestue-active .avenzroy-policy-page {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.avenzroy-prestue-active.home .sidebar-container,
body.avenzroy-prestue-active.page .sidebar-container {
	display: none !important;
}

body.avenzroy-prestue-active.page .site-content {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}

.avenzroy-hero {
	min-height: 660px;
	display: flex;
	align-items: center;
	margin: 0 8px;
	background-color: #f7f7f7;
	background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 37%, rgba(255,255,255,.05) 70%), var(--avenzroy-hero-image, linear-gradient(135deg,#f6f6f6,#ececec));
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.avenzroy-hero-inner,
.avenzroy-section-inner,
.avenzroy-about-grid,
.avenzroy-contact-grid,
.avenzroy-policy-content,
.avenzroy-footer-grid,
.avenzroy-footer-bottom {
	width: min(1192px, calc(100% - 48px));
	margin-inline: auto;
}

.avenzroy-hero-copy { max-width: 584px; }

.avenzroy-hero h1 {
	margin: 0 0 24px;
	color: var(--ar-ink);
	font-family: inherit;
	font-size: clamp(54px, 5.45vw, 74px);
	font-weight: 400;
	letter-spacing: -.035em;
	line-height: 1.055;
}

.avenzroy-hero p {
	max-width: 560px;
	margin: 0 0 30px;
	font-size: 17px;
	line-height: 1.7;
}

.avenzroy-button,
.avenzroy-contact-form button,
.avenzroy-newsletter button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 24px;
	border: 0;
	background: var(--ar-accent);
	color: #fff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}

.avenzroy-button { background: #242424; }

.avenzroy-products { padding: 18px 0 74px; }

.avenzroy-products h2 {
	margin: 0 0 28px;
	color: var(--ar-ink);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.4;
}

.avenzroy-products h2::after {
	content: "";
	display: block;
	width: 40px;
	margin-top: 10px;
	border-bottom: 1px solid #d6d6d6;
}

.avenzroy-products .products { margin-bottom: 0; }

.avenzroy-shop-breadcrumb {
	display: flex;
	gap: 9px;
	align-items: center;
	margin: 24px 0 28px;
	color: #aaa;
	font-size: 14px;
}

.avenzroy-shop-breadcrumb a { color: var(--ar-copy); text-decoration: none; }
.avenzroy-shop-breadcrumb strong { color: var(--ar-ink); font-weight: 400; }

body.avenzroy-prestue-active.post-type-archive-product .shop-loop-head {
	margin-bottom: 25px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ar-line);
}

.avenzroy-empty-products {
	padding: 50px;
	border: 1px solid var(--ar-line);
	text-align: center;
}

.avenzroy-empty-products p { margin: 0 0 10px; font-size: 18px; }
.avenzroy-text-link { color: var(--ar-ink); font-weight: 600; text-decoration: underline; }

/* About */
.avenzroy-about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .86fr);
	align-items: center;
	gap: 142px;
	padding: 42px 0 70px;
}

.avenzroy-about-media img,
.avenzroy-about-placeholder {
	display: block;
	width: 100%;
	min-height: 580px;
	object-fit: cover;
}

.avenzroy-about-placeholder { background: linear-gradient(135deg,#eee,#d7d7d7); }

.avenzroy-about-copy h2 {
	margin: 22px 0 14px;
	color: var(--ar-ink);
	font-size: 24px;
	font-weight: 400;
}

.avenzroy-about-copy p,
.avenzroy-about-copy li { line-height: 1.65; }
.avenzroy-about-copy ul { margin: 0 0 22px 18px; }

/* Contact */
.avenzroy-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding: 42px 0 55px;
}

.avenzroy-contact-grid > section { padding-right: 50px; }
.avenzroy-contact-grid > section + section { padding-right: 0; padding-left: 50px; border-left: 1px solid var(--ar-line); }

.avenzroy-contact-page h2 {
	margin: 6px 0 30px;
	color: var(--ar-ink);
	font-size: 22px;
	font-weight: 400;
}

.avenzroy-kicker {
	margin: 0;
	color: #a5a5a5;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: .06em;
}

.avenzroy-faqs details { border-top: 1px solid var(--ar-line); }
.avenzroy-faqs details:last-child { border-bottom: 1px solid var(--ar-line); }

.avenzroy-faqs summary {
	padding: 20px 0;
	color: var(--ar-ink);
	cursor: pointer;
	font-size: 16px;
	list-style: none;
}

.avenzroy-faqs summary::after { content: "+"; float: right; color: #aaa; }
.avenzroy-faqs details[open] summary { color: var(--ar-accent); }
.avenzroy-faqs details[open] summary::after { content: "−"; }
.avenzroy-faqs details p { margin: -4px 0 22px; }

.avenzroy-contact-form { display: grid; gap: 10px; }
.avenzroy-contact-form label { color: var(--ar-ink); font-weight: 400; }

.avenzroy-contact-form input,
.avenzroy-contact-form textarea {
	display: block;
	width: 100%;
	margin-top: 8px;
	border: 0;
	border-bottom: 1px solid #d9d9d9;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.avenzroy-contact-form button { justify-self: start; margin-top: 6px; }

/* Policy pages */
.avenzroy-page-banner {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 18px 24px 20px;
	background: #080808;
	color: #fff;
	text-align: center;
}

.avenzroy-page-banner h1 {
	margin: 0 0 5px;
	color: #fff;
	font-size: 44px;
	font-weight: 400;
	letter-spacing: .02em;
}

.avenzroy-page-banner p,
.avenzroy-page-banner a { margin: 0; color: rgba(255,255,255,.6); }
.avenzroy-page-banner strong { color: #fff; }
.avenzroy-policy-content { padding: 34px 0 52px; }
.avenzroy-policy-content > p:first-child { margin-bottom: 22px; }
.avenzroy-policy-content section,
.avenzroy-policy-section { padding-top: 5px; border-top: 1px solid var(--ar-line); }

.avenzroy-policy-content h2 {
	margin: 0 0 14px;
	color: var(--ar-ink);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.4;
}

.avenzroy-policy-content h3 {
	margin: 18px 0 10px;
	color: var(--ar-ink);
	font-size: 23px;
	font-weight: 400;
}

.avenzroy-policy-content ul { margin: 0 0 20px 18px; }
.avenzroy-policy-content li { margin-bottom: 8px; }

.avenzroy-legal-note {
	margin-top: 35px;
	padding: 16px 18px;
	border-left: 3px solid var(--ar-accent);
	background: #f7f7f7;
}

/* Shared white prefooter, copyright and payments. */
.avenzroy-custom-footer {
	position: relative;
	z-index: 2;
	border-top: 1px solid var(--ar-line);
	background: #fff;
	color: var(--ar-copy);
}

.avenzroy-footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 36px 0 38px;
	text-align: center;
}

.avenzroy-footer-grid > div {
	min-height: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 70px;
}

.avenzroy-footer-grid > div + div { border-left: 1px solid var(--ar-line); }

.avenzroy-custom-footer h2 {
	margin: 8px 0 22px;
	color: var(--ar-ink);
	font-size: 46px;
	font-weight: 400;
	line-height: 1.4;
}

.avenzroy-custom-footer p { max-width: 390px; margin-inline: auto; }

.avenzroy-newsletter {
	display: flex;
	width: 100%;
	max-width: 395px;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.avenzroy-newsletter input[type="email"] {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-bottom: 1px solid #d3d3d3;
	border-radius: 0;
	background: #fff;
	color: var(--ar-ink);
	text-align: center;
}

.avenzroy-newsletter button { min-width: 140px; }
.avenzroy-consent { font-size: 14px; }

.avenzroy-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
}

.avenzroy-form-message { margin-top: 12px; color: var(--ar-ink); font-size: 13px; }

.avenzroy-social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.avenzroy-social-links a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border: 2px solid #d8d8d8;
	border-radius: 50%;
	color: #aaa;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.avenzroy-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 22px 0;
	border-top: 1px solid var(--ar-line);
	color: #999;
	font-size: 14px;
}

.avenzroy-payments { width: 255px; height: 22px; object-fit: contain; }

.avenzroy-scroll-top {
	position: fixed;
	right: 24px;
	bottom: 18px;
	z-index: 999;
	display: flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: #999;
	font-size: 22px;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

@media (max-width: 1024px) {
	.avenzroy-about-grid { gap: 55px; }
	.avenzroy-footer-grid > div { padding-inline: 35px; }
	.avenzroy-custom-footer h2 { font-size: 38px; }
}

@media (max-width: 768px) {
	body.avenzroy-prestue-active .whb-header { --wd-header-general-sticky-h: 60px; }
	body.avenzroy-prestue-active .whb-header .site-logo { flex-basis: 175px !important; width: 175px !important; min-width: 175px !important; height: 62px !important; }
	body.avenzroy-prestue-active.avenzroy-has-logo-image .whb-header .site-logo::before { inset: 0 10px; }
	body.avenzroy-prestue-active .wd-logo,
	body.avenzroy-prestue-active .wd-logo > a { width: 155px !important; min-width: 155px; height: 62px; }
	body.avenzroy-prestue-active.avenzroy-has-logo-image a.wd-logo::before,
	body.avenzroy-prestue-active.avenzroy-has-logo-image .wd-logo > a::before { width: 155px; height: 62px; }
	body.avenzroy-prestue-active a.wd-logo::after,
	body.avenzroy-prestue-active .wd-logo > a::after { font-size: 40px; }
	.avenzroy-hero { min-height: 590px; align-items: flex-end; background-image: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.78) 55%, rgba(255,255,255,.05) 100%), var(--avenzroy-hero-image, linear-gradient(135deg,#f6f6f6,#ececec)); }
	.avenzroy-hero-copy { padding: 230px 0 45px; }
	.avenzroy-hero h1 { font-size: 48px; }
	.avenzroy-about-grid,
	.avenzroy-contact-grid,
	.avenzroy-footer-grid { grid-template-columns: 1fr; }
	.avenzroy-about-grid { gap: 35px; padding-top: 25px; }
	.avenzroy-about-media img,
	.avenzroy-about-placeholder { min-height: 420px; }
	.avenzroy-contact-grid > section,
	.avenzroy-contact-grid > section + section { padding: 28px 0; border-left: 0; }
	.avenzroy-contact-grid > section + section { border-top: 1px solid var(--ar-line); }
	.avenzroy-footer-grid > div { min-height: 360px; padding: 35px 20px; }
	.avenzroy-footer-grid > div + div { border-left: 0; border-top: 1px solid var(--ar-line); }
	.avenzroy-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
	.avenzroy-hero-inner,
	.avenzroy-section-inner,
	.avenzroy-about-grid,
	.avenzroy-contact-grid,
	.avenzroy-policy-content,
	.avenzroy-footer-grid,
	.avenzroy-footer-bottom { width: min(100% - 30px, 1192px); }
	.avenzroy-hero { min-height: 540px; margin-inline: 0; }
	.avenzroy-hero h1 { font-size: 40px; }
	.avenzroy-products h2 { font-size: 30px; }
	.avenzroy-page-banner h1 { font-size: 34px; }
	.avenzroy-policy-content h2 { font-size: 25px; }
	.avenzroy-custom-footer h2 { font-size: 34px; }
	.avenzroy-payments { max-width: 100%; height: auto; }
}
