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

/*
 * PortfelDlaCiebie visual direction.
 * Premium leather palette over the imported WoodMart EDC layout.
 */
:root {
	--pfh-ink: #211713;
	--pfh-graphite: #2c2521;
	--pfh-burgundy: #7b1d35;
	--pfh-burgundy-dark: #541425;
	--pfh-cognac: #a9784f;
	--pfh-gold: #c6a15f;
	--pfh-ivory: #fffaf4;
	--pfh-blush: #f7ece6;
	--pfh-sand: #efe3d6;
	--pfh-warm-gray: #7b7068;
	--pfh-border: #eadfd4;
	--wd-primary-color: var(--pfh-burgundy);
	--wd-alternative-color: var(--pfh-cognac);
	--wd-link-color: var(--pfh-ink);
	--wd-link-color-hover: var(--pfh-burgundy);
}

body {
	--wd-primary-color: var(--pfh-burgundy) !important;
	--wd-alternative-color: var(--pfh-cognac) !important;
	--wd-link-color: var(--pfh-ink) !important;
	--wd-link-color-hover: var(--pfh-burgundy) !important;
	--btn-accented-bgcolor: var(--pfh-burgundy) !important;
	--btn-accented-bgcolor-hover: var(--pfh-burgundy-dark) !important;
	background:
		linear-gradient(180deg, #fff 0, var(--pfh-ivory) 420px, #f5f2ee 100%);
	color: var(--pfh-warm-gray);
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.wd-entities-title {
	color: var(--pfh-ink);
	letter-spacing: 0;
}

.wd-page-title.page-title :is(.entry-title, .title) {
	color: var(--wd-title-color);
}

a:hover,
.wd-nav > li > a:hover,
.wd-nav > li.current-menu-item > a {
	color: var(--pfh-burgundy);
}

.btn.btn-color-primary,
.button,
button[type="submit"],
input[type="submit"],
.single_add_to_cart_button,
.add_to_cart_button,
.checkout-button {
	background-color: var(--pfh-burgundy);
	border-color: var(--pfh-burgundy);
	color: #fff;
}

.btn.btn-color-primary:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.checkout-button:hover {
	background-color: var(--pfh-burgundy-dark);
	border-color: var(--pfh-burgundy-dark);
	color: #fff;
}

.btn.btn-color-white {
	color: var(--pfh-ink);
	box-shadow: inset 0 0 0 1px rgba(33, 23, 19, .14);
}

.price,
.amount,
.woocommerce-Price-amount {
	color: var(--pfh-burgundy);
}

.product-wrapper,
.wd-product,
.category-grid-item,
.wd-cat {
	background: #fff;
	border-radius: 10px;
}

.wd-product :is(.product-image-link, .product-element-top),
.category-grid-item .category-image-wrapp {
	background: #fff;
}

.wd-product:hover,
.category-grid-item:hover {
	box-shadow: 0 18px 45px rgba(33, 23, 19, .10);
}

.whb-header {
	border-bottom: 1px solid rgba(234, 223, 210, .75);
}

.whb-header .wd-nav > li > a,
.whb-header .wd-tools-element > a {
	color: var(--pfh-ink);
}

.whb-header .wd-nav > li > a:hover,
.whb-header .wd-tools-element > a:hover {
	color: var(--pfh-burgundy);
}

.site-logo .wd-logo {
	display: inline-flex;
	align-items: center;
}

.site-logo .wd-logo img {
	display: block;
	width: auto;
	height: auto;
}

.wd-3a41c702 img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.wd-6a341b75,
.wd-8ee36eb0,
.wd-1c564a08 {
	display: none !important;
}

.wp-block-wd-cover.wd-6aadee88 {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 72% 24%, rgba(255, 255, 255, .82), transparent 28%),
		radial-gradient(circle at 18% 78%, rgba(198, 161, 95, .22), transparent 34%),
		url("assets/images/pfh-hero-premium-wallets.webp") center bottom / cover no-repeat,
		linear-gradient(135deg, #fff7ee 0%, #f8ece2 46%, #ead3c4 100%);
}

.wp-block-wd-cover.wd-6aadee88 .wd-block-cover-img {
	opacity: 0;
	pointer-events: none;
}

.wp-block-wd-cover.wd-6aadee88::after {
	position: absolute;
	inset: 0;
	content: "";
	background:
		linear-gradient(90deg, rgba(255, 250, 244, .82), rgba(255, 250, 244, .38) 52%, rgba(247, 236, 230, .72)),
		linear-gradient(0deg, rgba(255, 255, 255, .34), transparent 58%);
	pointer-events: none;
}

.wp-block-wd-cover.wd-6aadee88 > *:not(.wd-block-cover-img) {
	position: relative;
	z-index: 1;
}

.wd-164850cd {
	max-width: 860px;
	margin-inline: auto;
	color: var(--pfh-ink) !important;
	text-shadow: 0 10px 34px rgba(255, 255, 255, .42);
}

.wd-f3da2383,
.wd-d829c07e,
.wd-cdcadfb0 {
	position: relative;
}

.wd-f3da2383::after,
.wd-d829c07e::after,
.wd-cdcadfb0::after {
	display: block;
	width: 56px;
	height: 2px;
	margin: 14px auto 0;
	content: "";
	background: var(--pfh-gold);
}

.wd-6f21fa79,
.wd-6f21fa79.wp-block-wd-row {
	background:
		linear-gradient(135deg, #fffaf4 0%, #f6ebe2 54%, #ead8c8 100%) !important;
	border: 1px solid rgba(198, 161, 95, .22);
	box-shadow: 0 22px 65px rgba(33, 23, 19, .10);
}

.wd-6f21fa79 .title,
.wd-6f21fa79 .wd-list-content {
	color: var(--pfh-ink);
}

.wd-6f21fa79 .wd-list .wd-icon {
	color: var(--pfh-gold);
}

.wd-aa6cc573,
.wd-aa6cc573.title {
	color: var(--pfh-ink) !important;
}

.wd-aa6cc573 {
	font-size: 0 !important;
}

.wd-aa6cc573::before {
	content: "Eleganckie portfele w wyjątkowych cenach";
	font-size: clamp(28px, 3.4vw, 48px);
	line-height: 1.15;
}

.wd-f2ee44fe {
	font-size: 0 !important;
}

.wd-f2ee44fe::before {
	content: "Wybrane modele w stylu premium. Dostępność zależy od aktualnych stanów hurtowni.";
	font-size: 16px;
	line-height: 1.6;
}

.wd-cat .wd-entities-title,
.category-grid-item .wd-entities-title {
	font-weight: 600;
}

.wd-product .wd-entities-title a:hover {
	color: var(--pfh-burgundy);
}

/*
 * The EDC demo card overlays title/price over very small packshots.
 * Wallet photos fill the frame much more, so reserve real image space.
 */
.wd-product .wd-loop-prod-thumb {
	background: #fff;
}

.wd-product .wd-loop-prod-thumb .wd-product-img-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 74px 24px 56px;
}

.wd-product .wd-loop-prod-thumb .wd-product-img-link img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wd-product .wd-loop-prod-thumb .wd-product-grid-slider,
.wd-product .wd-loop-prod-thumb .wd-product-grid-slider-nav {
	inset: 74px 24px 56px;
}

.wd-product .wd-loop-prod-thumb .wd-product-grid-slider-nav {
	width: auto;
	height: auto;
}

.wd-product .wd-loop-prod-thumb .wd-product-grid-slide {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.wd-product .wd-loop-prod-thumb > .wp-block-wd-container.wd-dir-col {
	pointer-events: none;
}

.wd-product .wd-loop-prod-thumb > .wp-block-wd-container.wd-dir-col a {
	pointer-events: auto;
}

.wd-product .wd-loop-prod-title,
.wd-product .wd-loop-prod-price {
	position: relative;
	z-index: 2;
}

.wd-cat.cat-design-mask-subcat .wd-cat-inner,
.wd-cat.cat-design-mask-subcat .wd-cat-thumb {
	background: #fff;
}

.wd-cat.cat-design-mask-subcat .wd-cat-image {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-sizing: border-box;
	height: 100%;
	padding: 136px 24px 24px;
}

.wd-cat.cat-design-mask-subcat .wd-cat-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wd-cat.cat-design-mask-subcat .wd-cat-content {
	z-index: 2;
	pointer-events: none;
}

.wd-cat.cat-design-mask-subcat .wd-cat-content a {
	pointer-events: auto;
}

.wd-cat.cat-design-mask-subcat .wd-cat-sub-menu {
	display: none !important;
}

.wd-toolbar {
	background: #fffaf4;
	border-top-color: var(--pfh-border);
}

.wd-progress-bar,
.wd-product-label.onsale,
.wd-products-nav .wd-btn-arrow:hover,
.wd-swiper-arrows .wd-btn-arrow:hover,
.wd-dropdown-menu:is(.wd-design-sized, .wd-design-full-width) .wd-sub-menu > li > a:hover {
	background-color: var(--pfh-burgundy) !important;
	color: #fff !important;
}

.wd-nav[class*="wd-style-"] > li:is(.current-menu-item, .wd-active, :hover) > a,
.wd-tools-element:is(:hover, .wd-opened) > a,
.wd-action-btn > a:hover {
	color: var(--pfh-burgundy) !important;
}

.wd-button-wrapper a,
.wp-block-wd-button a {
	border-radius: 999px;
}

body.woocommerce-shop .wp-block-wd-section.wd-8b10f4c0,
body.tax-product_cat .wp-block-wd-section.wd-8b10f4c0,
body.single-product .wp-block-wd-section.wd-8b10f4c0 {
	background:
		radial-gradient(circle at 78% 30%, rgba(198, 161, 95, .20), transparent 30%),
		linear-gradient(135deg, #fff7ef 0%, #f3e6dd 58%, #ead6c6 100%) !important;
}

body.woocommerce-shop .wp-block-wd-section.wd-8b10f4c0 .entry-title,
body.tax-product_cat .wp-block-wd-section.wd-8b10f4c0 .entry-title,
body.single-product .wp-block-wd-section.wd-8b10f4c0 .entry-title {
	color: var(--pfh-ink);
}

body.woocommerce-shop .wp-block-wd-section.wd-8b10f4c0 a,
body.tax-product_cat .wp-block-wd-section.wd-8b10f4c0 a,
body.single-product .wp-block-wd-section.wd-8b10f4c0 a,
body.woocommerce-shop .wp-block-wd-section.wd-8b10f4c0 .woocommerce-breadcrumb,
body.tax-product_cat .wp-block-wd-section.wd-8b10f4c0 .woocommerce-breadcrumb,
body.single-product .wp-block-wd-section.wd-8b10f4c0 .woocommerce-breadcrumb {
	color: rgba(33, 23, 19, .70);
}

@media (max-width: 768px) {
	.wd-164850cd {
		font-size: 34px !important;
		line-height: 1.15 !important;
	}

	.wd-cat.cat-design-mask-subcat .wd-cat-content {
		padding-inline: 18px;
	}

	.wd-cat.cat-design-mask-subcat .wd-cat-image {
		padding: 112px 20px 24px;
	}

	.wd-cat.cat-design-mask-subcat .wd-entities-title {
		font-size: 20px;
		line-height: 1.25;
	}
}

/* Guide only: a white reading surface in both the builder and archive templates. */
body:is(.blog, .single-post, .category, .tag, .author) .main-page-wrapper {
	background-color: #fff;
}

body.single-post .wd-single-post-content.wd-entry-content {
	box-sizing: border-box;
	width: 100%;
	max-width: 820px;
	margin-inline: auto;
	padding-inline: 32px;
	color: #302b2a;
	font-size: 17px;
	line-height: 1.8;
	overflow-wrap: break-word;
}

body.single-post .wd-single-post-content :is(h2, h3) {
	margin: 36px 0 16px;
	color: #302b2a;
	line-height: 1.35;
}

body.single-post .wd-single-post-content h2 {
	font-size: 26px;
}

body.single-post .wd-single-post-content :is(p, ul, ol) {
	margin-bottom: 22px;
}

body.single-post .wd-single-post-content li + li {
	margin-top: 10px;
}

body.single-post .wd-single-post-content a {
	color: var(--pfh-burgundy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.single-post .wd-single-post-content :is(figure, img) {
	max-width: 100%;
}

body.single-post .wd-single-post-content img {
	height: auto;
	border-radius: 12px;
}

body:is(.blog, .single-post, .category, .tag, .author) .blog-post-loop .wd-post-inner {
	border: 1px solid #e8e1de;
	border-radius: 18px;
	background: #fff;
}

body:is(.blog, .single-post, .category, .tag, .author) .blog-post-loop .wd-post-content {
	border-radius: 18px;
	background: #fff;
}

body:is(.blog, .single-post, .category, .tag, .author) .blog-post-loop .wd-post-img {
	border-radius: 18px 18px 0 0;
	overflow: hidden;
}

body.single-post .sidebar-widget {
	color: #504744;
}

@media (max-width: 767px) {
	body.single-post .wd-single-post-content.wd-entry-content {
		max-width: 100%;
		padding-inline: 4px;
		font-size: 16px;
		line-height: 1.75;
	}

	body.single-post .wd-single-post-content h2 {
		margin-top: 30px;
		font-size: 23px;
	}
}

/* Shared editorial panel; existing category selectors remain for compatibility. */
:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) {
	box-sizing: border-box;
	margin-top: 32px;
	padding: 36px 40px;
	border-radius: 18px;
	background: #fff;
	color: var(--pfh-graphite);
	line-height: 1.75;
}

:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) h2 {
	margin: 32px 0 16px;
	line-height: 1.35;
}

:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) > :first-child {
	margin-top: 0;
}

:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) > :last-child {
	margin-bottom: 0;
}

:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) a {
	color: var(--pfh-burgundy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) a:hover {
	color: var(--pfh-burgundy-dark);
}

@media (max-width: 767px) {
	:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) {
		margin-top: 24px;
		padding: 24px 20px;
	}

	:is(body.woocommerce-shop .page-description, body.tax-product_cat:is(.term-17, .term-16, .term-22, .term-224, .term-217, .term-220, .term-248, .term-249) .term-description, body:is(.tax-product_cat, .tax-product_brand) .pfh-seo-panel) h2 {
		margin-top: 28px;
		font-size: 22px;
	}
}

/* PFH owns the server policy. Keep variation forms, swatches, prices and gallery intact. */
body.pfh-catalog-mode :is(.cart .single_add_to_cart_button, .cart .wd-buy-now-btn, .cart .quantity, .wd-sticky-btn, .woocommerce-mini-cart__buttons .checkout) {
	display: none !important;
}

body.pfh-catalog-mode .pfh-catalog-notice {
	margin-top: 16px;
	margin-bottom: 16px;
}

body.pfh-catalog-mode .pfh-catalog-notice .woocommerce-info {
	margin-bottom: 0;
	text-align: left;
	font-size: 14px;
	line-height: 1.6;
}

body.pfh-catalog-mode .pfh-catalog-page {
	min-width: 0;
	grid-column: 1 / -1;
	padding-block: 24px 40px;
}

body.pfh-catalog-mode .pfh-catalog-page h1 {
	font-size: 28px;
	line-height: 1.3;
}

@media (max-width: 767px) {
	body.pfh-catalog-mode .pfh-catalog-page h1 {
		font-size: 24px;
	}
}
