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

/* Full-bleed homepage hero slider (Home Slider v2).
   The page content sits in Woodmart's boxed .container (~1222px); this breaks
   only the slider's Elementor container out to the full browser width. */
.elementor-element.elementor-element-b8d38ec {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* "Продукти за дограма" section title: underline the text only, not the full
   width. Removes Elementor's full-width bottom border and puts the line on the
   heading itself (inline-block => line ends with the words). */
.elementor-element-c5307a0 > .elementor-widget-container,
.elementor-element-58842aa > .elementor-widget-container {
	border-bottom: 0 !important;
}
.elementor-element-c5307a0 .woodmart-title-container.title,
.elementor-element-58842aa .woodmart-title-container.title,
.elementor-element-3d96085 .woodmart-title-container.title,
.elementor-element-pdcat02 .woodmart-title-container.title {
	display: inline-block;
	border-bottom: 2px solid #883333;
	padding-bottom: 6px;
}

/* ----------------------------------------------------------------------
   News (blog) cards — tidy the Woodmart grid toward the mockup:
   drop the date-box overlay, plain-text category, hide author/share.
   ---------------------------------------------------------------------- */
.wd-blog-element .wd-post-date.wd-style-with-bg { display: none; }
/* Category: pull out of the image overlay into the content flow as plain text. */
.wd-blog-element .wd-post-cat.wd-style-with-bg {
	position: static !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 0 8px !important;
	line-height: 1.2;
}
.wd-blog-element .wd-post-cat.wd-style-with-bg a {
	color: #999 !important;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
}
/* Hide author, share and the comments (0) link; keep a clean grey date. */
.wd-blog-element .wd-post-author,
.wd-blog-element .wd-post-share,
.wd-blog-element .wd-post-meta a[href*="#respond"],
.wd-blog-element .wd-replies-count { display: none !important; }
.wd-blog-element .wd-modified-date time { color: #999; font-size: 13px; }

/* ----------------------------------------------------------------------
   Footer layout — contact / ПРОДУКТИ (wide, 2-col list) / МЕНЮ.
   ---------------------------------------------------------------------- */
/* Column spans on Woodmart's 12-col footer grid: 25% / 50% / 25% (desktop). */
@media (min-width: 1025px) {
	.main-footer .footer-column-1 { grid-column: span 3 !important; }
	.main-footer .footer-column-2 { grid-column: span 6 !important; }
	.main-footer .footer-column-3 { grid-column: span 3 !important; }
}
/* Widget titles: underlined across the column (like the design). */
.wd-footer .footer-column .widget-title {
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	padding-bottom: 16px;
	margin-bottom: 22px;
}
/* ПРОДУКТИ list in two columns. */
.wd-footer .footer-column-2 .menu {
	column-count: 2;
	column-gap: 40px;
}
.wd-footer .footer-column .menu li {
	margin-bottom: 11px;
	break-inside: avoid;
}
.wd-footer .footer-column .menu a { color: rgba(255, 255, 255, 0.72); }
.wd-footer .footer-column .menu a:hover { color: #fff; }

@media (max-width: 767px) {
	.wd-footer .footer-column-2 .menu { column-count: 1; }
}

/* ----------------------------------------------------------------------
   [pasadoor_categories] — category mosaic (matches the mockup).
   ---------------------------------------------------------------------- */
.pd-cats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 225px;
	gap: 18px;
}
.pd-cat-card {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 26px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease;
}
.pd-cat-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); }
.pd-cat-card.featured { grid-row: span 2; background: #812f2f; }
.pd-cat-head { position: relative; z-index: 2; max-width: 80%; }
.pd-cat-name { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #2a2a2a; }
.pd-cat-card.featured .pd-cat-name { color: #fff; }
.pd-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #812f2f;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 9px 16px;
	border-radius: 10px;
}
.pd-cat-card.featured .pd-cat-btn { background: #fff; color: #812f2f; }
.pd-cat-img {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 1;
	max-width: 60%;
	max-height: 58%;
	object-fit: contain;
}
.pd-cats-all { text-align: center; margin-top: 30px; }
.pd-cats-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #812f2f;
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 14px 36px;
	border-radius: 10px;
}
.pd-cats-all-btn:hover { background: #6a2526; color: #fff; }
.pd-arr { font-size: 1.15em; line-height: 1; }
@media (max-width: 1024px) {
	.pd-cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.pd-cats-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.pd-cat-card, .pd-cat-card.featured { grid-row: auto; min-height: 210px; }
}

/* ----------------------------------------------------------------------
   [pasadoor_counters] — animated stats band (full-bleed maroon).
   Full-bleed via CSS so it spans the browser width even inside the
   boxed page container.
   ---------------------------------------------------------------------- */
.pasadoor-counters {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: linear-gradient(135deg, #4a141b 0%, #6e2630 50%, #4a141b 100%);
	padding: 60px 20px;
}
.pasadoor-counters .pd-inner {
	max-width: 1222px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: flex-start;
	gap: 30px;
}
.pasadoor-counters .pd-counter {
	flex: 1 1 200px;
	text-align: center;
}
.pasadoor-counters .pd-num {
	display: inline-block;
	min-width: 120px;
	font-size: 64px;
	line-height: 1.1;
	font-weight: 700;
	color: #ffffff;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}
.pasadoor-counters .pd-label {
	display: block;
	margin-top: 14px;
	color: #d9b9bd;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
	font-weight: 600;
}
@media (max-width: 768px) {
	.pasadoor-counters { padding: 40px 16px; }
	.pasadoor-counters .pd-num { font-size: 44px; min-width: 90px; }
}

/* ----------------------------------------------------------------------
   [pasadoor_stores] — store / locations section.
   ---------------------------------------------------------------------- */
.pd-stores { padding: 60px 0; }
.pd-stores-inner { max-width: 1222px; margin: 0 auto; padding: 0 15px; }
.pd-stores-head { margin-bottom: 40px; }
.pd-stores-subtitle { display: block; color: #a52a2a; font-size: 15px; margin-bottom: 6px; }
.pd-stores-title {
	display: inline-block;
	margin: 0;
	font-size: 36px;
	font-weight: 400;
	color: #333;
	padding-bottom: 12px;
	border-bottom: 2px solid #a52a2a;
}
.pd-stores-title strong { font-weight: 700; color: #1a1a1a; }
.pd-store-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 36px;
}
.pd-store-gallery img,
.pd-store-ph {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
	background: #ececec;
}
.pd-store-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 14px;
	border: 1px dashed #ccc;
}
.pd-store + .pd-store { margin-top: 55px; }
.pd-store-name { font-size: 26px; font-weight: 700; color: #333; margin: 0 0 18px; }
.pd-store-name span { color: #a52a2a; }
.pd-store-desc { color: #777; line-height: 1.7; margin: 0 0 36px; }
.pd-store-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.pd-contact {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid #ececec;
}
.pd-contact svg { width: 30px; height: 30px; flex: 0 0 30px; color: #a52a2a; }
.pd-contact .pd-c-body { font-size: 15px; color: #666; line-height: 1.6; }
.pd-contact .pd-c-body strong { color: #333; }
.pd-contact .pd-c-body a { color: #a52a2a; text-decoration: underline; }
@media (max-width: 768px) {
	.pd-store-gallery { grid-template-columns: 1fr; }
	.pd-store-gallery img, .pd-store-ph { height: 220px; }
	.pd-store-contacts { grid-template-columns: 1fr; gap: 0; }
	.pd-stores-title { font-size: 28px; }
}

/* ----------------------------------------------------------------------
   Global: 10px radius on all rectangular CTA buttons (not icon buttons).
   ---------------------------------------------------------------------- */
.btn,
.button,
button.button,
input[type="submit"],
.woocommerce-button,
.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
.elementor-button,
.wp-element-button,
.pd-cat-btn,
.pd-cats-all-btn {
	border-radius: 10px !important;
}

/* ----------------------------------------------------------------------
   Mobile: stack the "Pasadoor всичко за вашата дограма" banner (text/image).
   ---------------------------------------------------------------------- */
@media (max-width: 767px) {
	.elementor-element-pdban01 { flex-direction: column !important; }
	.elementor-element-pdban02,
	.elementor-element-pdban03 { width: 100% !important; }
	.elementor-element-pdban01 { background-size: cover; background-position: center; }
}

/* ----------------------------------------------------------------------
   Main-menu "Магазин" categories dropdown -> maroon panel + white text.
   ---------------------------------------------------------------------- */
.wd-nav-main .wd-dropdown-menu,
.wd-nav-main .wd-dropdown-menu .wd-sub-menu,
.wd-nav-main .sub-sub-menu,
.wd-nav-main .sub-sub-menu.wd-dropdown {
	background-color: #731e24 !important;
}
.wd-nav-main .wd-dropdown-menu a { color: #ffffff !important; }
.wd-nav-main .wd-dropdown-menu a:hover,
.wd-nav-main .sub-sub-menu a:hover { color: #f2cdd1 !important; }

/* ----------------------------------------------------------------------
   Fixed left category menu. Desktop only.
   Slim maroon burger rail → click opens a dark-maroon text category panel;
   hovering a parent reveals its sub-categories in a flyout column.
   ---------------------------------------------------------------------- */
.pd-catbar,
.pd-catpanel { display: none; }

@media (min-width: 1025px) {
	body { padding-left: 84px; }
	/* Re-fill the full-bleed sections to the content area (viewport - bar). */
	.elementor-element.elementor-element-b8d38ec,
	.pasadoor-counters,
	.pd-sr-map,
	.pd-about-history {
		width: calc(100vw - 84px) !important;
		max-width: calc(100vw - 84px) !important;
		margin-left: calc(50% - 50vw + 42px) !important;
		margin-right: calc(50% - 50vw + 42px) !important;
	}

	/* --- Sticky header clone (appears when scrolling back up) ---
	   It is position:fixed, so it ignores the body padding and slides under
	   the rail; it also squeezes logo + full menu + icons into ONE row, which
	   made the menu wrap onto two lines and overlap the logo/cart. Keep it
	   right of the rail, use the full width, and compact the menu so it fits
	   on one line — and drop the fixed 60px cap so a wrap can never overlap. */
	.whb-clone {
		left: 84px !important;
		width: calc(100% - 84px) !important;
	}
	.whb-clone .container {
		max-width: none;
		padding-left: 15px;
		padding-right: 15px;
	}
	/* !important: the logo img carries an inline max-width from the theme. */
	.whb-clone .site-logo img { max-width: 170px !important; }
	.whb-clone .wd-nav-main { column-gap: 14px; }
	.whb-clone .wd-nav-main > li > a { white-space: nowrap; }
	.whb-clone .whb-general-header-inner {
		height: auto !important;
		max-height: none !important;
		min-height: var(--wd-header-clone-h, 60px);
	}
	.whb-clone .whb-column { max-height: none !important; }
}

@media (min-width: 1025px) and (max-width: 1450px) {
	.whb-clone .site-logo img { max-width: 140px !important; }
	.whb-clone .wd-nav-main { column-gap: 10px; }
	.whb-clone .wd-nav-main > li > a { font-size: 12px; }
}

@media (min-width: 1025px) {

	/* --- Slim burger rail --- */
	.pd-catbar {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 84px;
		background: #4a1f24;
		z-index: 1200;
		overflow: hidden;
	}
	.pd-catbar-toggle {
		flex: 0 0 auto;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 22px;
		background: none;
		border: 0;
		cursor: pointer;
		padding: 26px 0;
	}
	.pd-burger { display: flex; flex-direction: column; gap: 5px; }
	.pd-burger span {
		display: block;
		width: 26px;
		height: 2px;
		background: #fff;
		border-radius: 2px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.pd-catbar-vtext {
		writing-mode: vertical-rl;
		text-orientation: mixed;
		letter-spacing: 0.18em;
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.82);
	}
	/* Burger → X when open */
	.pd-catbar.is-open .pd-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.pd-catbar.is-open .pd-burger span:nth-child(2) { opacity: 0; }
	.pd-catbar.is-open .pd-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	/* --- Category panel (opens on burger click) --- */
	.pd-catpanel {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		bottom: 0;
		left: -320px;                      /* hidden off-canvas (animate `left`,
		                                      NOT transform — a transform would trap
		                                      the position:fixed flyout) */
		width: 320px;
		background: #4a1f24;
		box-shadow: 6px 0 34px rgba(0, 0, 0, 0.35);
		z-index: 1150;
		visibility: hidden;
		transition: left 0.28s ease, visibility 0s linear 0.28s;
	}
	.pd-catpanel.open {
		left: 84px;
		visibility: visible;
		transition: left 0.28s ease;
	}
	.pd-catpanel-head {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 60px;
		padding: 0 22px;
		background: #5a262c;
		color: #fff;
		font-size: 15px;
		font-weight: 600;
	}
	.pd-catpanel-close {
		background: none;
		border: 0;
		color: rgba(255, 255, 255, 0.7);
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
		padding: 0 4px;
	}
	.pd-catpanel-close:hover { color: #fff; }

	/* Top-level list */
	.pd-catpanel-list {
		list-style: none;
		margin: 0;
		padding: 0;
		overflow-y: auto;
		flex: 1 1 auto;
	}
	.pd-catpanel-list > li { position: static; }
	.pd-catpanel-list > li > a {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 13px 22px;
		color: rgba(255, 255, 255, 0.92);
		text-decoration: none;
		font-size: 14px;
		line-height: 1.35;
		border-bottom: 1px solid rgba(255, 255, 255, 0.09);
		transition: background 0.15s ease, color 0.15s ease;
	}
	.pd-catpanel-txt { flex: 1 1 auto; }
	.pd-catpanel-list > li > a:hover,
	.pd-catpanel-list > li.has-children:hover > a {
		background: rgba(0, 0, 0, 0.22);
		color: #fff;
		font-weight: 600;
	}
	.pd-catpanel-arrow { flex: 0 0 auto; color: rgba(255, 255, 255, 0.5); font-size: 18px; line-height: 1; }
	.pd-catpanel-list > li.has-children:hover > a .pd-catpanel-arrow { color: #fff; }

	/* Sub-category flyout column */
	.pd-catpanel-flyout {
		display: none;
		position: fixed;
		top: 0;
		left: 404px;                       /* 84 (rail) + 320 (panel) */
		width: 320px;
		height: 100vh;
		background: #4a1f24;
		box-shadow: 8px 0 34px rgba(0, 0, 0, 0.28);
		padding: 24px 26px;
		overflow-y: auto;
		z-index: 1151;
	}
	.pd-catpanel-list > li.has-children:hover > .pd-catpanel-flyout { display: block; }
	.pd-catpanel-flyout-head {
		font-size: 15px;
		font-weight: 700;
		color: #fff;
		line-height: 1.3;
		padding-bottom: 14px;
		margin-bottom: 6px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}
	.pd-catpanel-sublist { list-style: none; margin: 0; padding: 0; }
	.pd-catpanel-sublist .pd-catpanel-sublist { padding-left: 14px; }
	.pd-catpanel-sublist a {
		display: block;
		padding: 11px 0;
		color: rgba(255, 255, 255, 0.85);
		text-decoration: none;
		font-size: 13.5px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		transition: color 0.15s ease;
	}
	.pd-catpanel-sublist a:hover { color: #fff; }
}

/* ----------------------------------------------------------------------
   Shop / catalog page — match client design.
   ---------------------------------------------------------------------- */
/* Product loop: show only the most specific (last) category as the subtitle. */
.wd-product-cats a:not(:last-of-type),
.wd-product-cats .wd-meta-sep { display: none !important; }

/* Price-on-request (importer "status 2") + inquiry button. */
.pd-price-request {
	display: inline-block;
	color: #731e24;
	font-weight: 600;
	font-size: 15px;
}
.pd-inquiry-btn.button { white-space: nowrap; }

/* Product Categories sidebar widget: count as a maroon pill on the right. */
.widget_product_categories .product-categories li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.widget_product_categories .product-categories li > a { flex: 1 1 auto; }
.widget_product_categories .product-categories .count {
	flex: 0 0 auto;
	background: #731e24;
	color: #fff;
	border-radius: 10px;
	font-size: 11px;
	line-height: 1.6;
	padding: 1px 9px;
	margin-left: 8px;
}
.widget_product_categories .product-categories ul.children {
	flex: 1 0 100%;
	margin: 4px 0 0;
	padding-left: 14px;
}

/* Hide Woodmart's category navigation overlaid on the shop/category title banner. */
.wd-page-title .wd-nav-product-cat,
.wd-page-title .categories-accordion-anchor { display: none !important; }

/* ----------------------------------------------------------------------
   Single product page — match client design.
   ---------------------------------------------------------------------- */
/* Price-on-request inquiry on the single page. */
.pd-single-inquiry { margin: 10px 0 18px; }

/* Документи tab: download list. */
.pd-documents-list { list-style: none; margin: 0; padding: 0; }
.pd-documents-list li { border-bottom: 1px solid #ececec; }
.pd-documents-list li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	color: #2b2b2b;
	text-decoration: none;
	transition: color 0.15s ease;
}
.pd-documents-list li a:hover { color: #731e24; }
.pd-doc-icon {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #731e24;
	color: #fff;
	font-size: 15px;
}

/* Hide Compare on the single product (design uses wishlist only). */
.summary .wd-compare-btn,
.summary .compare-button,
.single-product-page .wd-compare-btn,
.product .summary a[href*="?action=yith-woocompare-add-product"] { display: none !important; }

/* ----------------------------------------------------------------------
   [pasadoor_gallery] — Галерия grid + pagination (matches design).
   ---------------------------------------------------------------------- */
.pd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--pd-cols, 4), 1fr);
	gap: 26px 24px;
}
.pd-gallery-item { margin: 0; }
.pd-gallery-img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 0.94;
	overflow: hidden;
	background: #cfcfcf;
	border-radius: 4px;
}
.pd-gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
a.pd-gallery-img:hover img { transform: scale(1.05); }
.pd-gallery-item figcaption {
	margin-top: 14px;
	text-align: center;
	color: #5a5a5a;
	font-size: 14px;
	line-height: 1.5;
}
.pd-gallery-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 44px;
}
.pd-gallery-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	color: #2b2b2b;
	text-decoration: none;
	font-size: 15px;
	transition: background 0.15s ease, color 0.15s ease;
}
.pd-gallery-pagination a.page-numbers:hover { background: #f2eaea; color: #731e24; }
.pd-gallery-pagination .page-numbers.current { background: #731e24; color: #fff; }
.pd-gallery-pagination .page-numbers.dots { min-width: 20px; }
@media (max-width: 1024px) { .pd-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .pd-gallery-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------
   [pasadoor_documents] — Документи search + grid (matches design).
   ---------------------------------------------------------------------- */
.pd-docs-search {
	display: flex;
	max-width: 420px;
	margin: 0 0 26px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}
.pd-docs-search input {
	flex: 1 1 auto;
	border: 0;
	padding: 12px 16px;
	font-size: 14px;
	background: #fff;
	outline: none;
}
.pd-docs-search button {
	flex: 0 0 auto;
	border: 0;
	background: #fff;
	color: #731e24;
	padding: 0 16px;
	cursor: pointer;
}
.pd-docs-search button svg { width: 18px; height: 18px; display: block; }

.pd-docs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 34px 24px;
}
.pd-doc-item { display: flex; flex-direction: column; }
.pd-doc-preview {
	width: 100%;
	aspect-ratio: 1 / 1.28;
	overflow: hidden;
	background: #f4f4f4;
	border: 1px solid #e6e6e6;
	border-radius: 3px;
}
.pd-doc-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-doc-caption {
	margin: 14px 0 12px;
	text-align: center;
	color: #5a5a5a;
	font-size: 13.5px;
	line-height: 1.5;
}
.pd-doc-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
}
.pd-doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	text-decoration: none;
	border: 1px solid #731e24;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}
.pd-doc-btn svg { width: 15px; height: 15px; }
.pd-doc-dl { background: #731e24; color: #fff; }
.pd-doc-dl:hover { background: #5c171c; color: #fff; }
.pd-doc-view { background: #fff; color: #731e24; }
.pd-doc-view:hover { background: #731e24; color: #fff; }

@media (max-width: 1024px) { .pd-docs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .pd-docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .pd-docs-grid { grid-template-columns: 1fr; } }

/* Gallery lightbox (Magnific) — custom chevron arrows (theme omits the default icons). */
.pd-mfp-arrow {
	width: 48px;
	height: 48px;
	margin-top: -24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #731e24;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	opacity: 1;
	transition: background 0.15s ease, color 0.15s ease;
}
.pd-mfp-arrow:hover { background: #731e24; color: #fff; }
.pd-mfp-arrow:before,
.pd-mfp-arrow:after { display: none !important; }
.pd-mfp-arrow svg { width: 22px; height: 22px; }
.mfp-arrow-right.pd-mfp-arrow svg { transform: rotate(180deg); }
.mfp-arrow-left.pd-mfp-arrow { left: 24px; }
.mfp-arrow-right.pd-mfp-arrow { right: 24px; }

/* Lightbox above the fixed left category rail (z-index 1200) and header. */
.mfp-bg { z-index: 1300 !important; }
.mfp-wrap { z-index: 1301 !important; }

/* Force lightbox arrow left/right positions (Woodmart overrides them). */
.mfp-wrap .mfp-arrow.pd-mfp-arrow { top: 50%; }
.mfp-wrap .mfp-arrow-left.pd-mfp-arrow  { left: 24px !important;  right: auto !important; }
.mfp-wrap .mfp-arrow-right.pd-mfp-arrow { right: 24px !important; left: auto !important; }

/* Woodmart sets .mfp-arrow to position:relative — restore absolute so the
   arrows sit at the left/right edges, vertically centered. */
.mfp-wrap .mfp-arrow.pd-mfp-arrow {
	position: absolute !important;
	top: 50% !important;
	bottom: auto !important;
}

/* ----------------------------------------------------------------------
   Контакти page — intro + CF7 form + stores with maps (matches design).
   ---------------------------------------------------------------------- */
.pd-contact-top {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 60px;
	align-items: start;
	margin-bottom: 30px;
}
.pd-contact-intro h2 {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #2b2b2b;
	margin: 0 0 26px;
}
.pd-contact-list { list-style: none; margin: 0; padding: 0; }
.pd-contact-list li {
	position: relative;
	padding: 12px 0 12px 34px;
	border-bottom: 1px solid #eee;
	color: #3a3a3a;
	font-size: 15px;
}
.pd-contact-list li:before {
	content: "";
	position: absolute;
	left: 4px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border-top: 2px solid #731e24;
	border-right: 2px solid #731e24;
	transform: rotate(45deg);
}
.pd-contact-form-title {
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 6px;
	color: #2b2b2b;
}
.pd-cf-note { color: #8a8a8a; font-size: 13px; margin: 0 0 18px; }

/* CF7 form */
.pd-cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pd-cf-field { margin: 0; }
.pd-cf-field.pd-cf-full { grid-column: 1 / -1; }
.pd-cf-field label { display: block; font-size: 14px; color: #444; margin-bottom: 6px; }
.pd-contact-form input[type="text"],
.pd-contact-form input[type="email"],
.pd-contact-form input[type="tel"],
.pd-contact-form textarea {
	width: 100%;
	border: 1px solid #dcdcdc;
	border-radius: 24px;
	padding: 12px 20px;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.15s ease;
}
.pd-contact-form textarea { border-radius: 16px; min-height: 120px; resize: vertical; }
.pd-contact-form input:focus,
.pd-contact-form textarea:focus { border-color: #731e24; outline: none; }
.pd-cf-accept { margin: 16px 0 0; font-size: 14px; color: #555; }
.pd-cf-accept .wpcf7-list-item { margin: 0 6px 0 0; }
.pd-cf-submit { margin: 18px 0 0; }
.pd-contact-form .wpcf7-submit {
	background: #731e24;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 13px 40px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.15s ease;
}
.pd-contact-form .wpcf7-submit:hover { background: #5c171c; }

/* Stores with maps (map layout) */
.pd-stores--map .pd-store { padding: 34px 0; border-top: 1px solid #ececec; }
.pd-stores--map .pd-store:first-of-type { border-top: 0; }
.pd-stores--map .pd-store-name { font-size: 22px; font-weight: 700; color: #2b2b2b; margin: 0 0 22px; }
.pd-stores--map .pd-store-name span { color: #731e24; }
.pd-store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-stores--map .pd-store-contacts { display: flex; flex-direction: column; gap: 20px; }
.pd-stores--map .pd-contact { display: flex; gap: 16px; align-items: flex-start; }
.pd-stores--map .pd-contact svg { flex: 0 0 30px; width: 30px; height: 30px; color: #731e24; }
.pd-stores--map .pd-c-body { font-size: 14px; color: #444; line-height: 1.6; }
.pd-stores--map .pd-c-body a { color: #731e24; }
.pd-store-map { width: 100%; height: 100%; min-height: 240px; border-radius: 4px; overflow: hidden; }
.pd-store-map iframe { display: block; width: 100%; height: 100%; min-height: 240px; }

@media (max-width: 991px) {
	.pd-contact-top { grid-template-columns: 1fr; gap: 36px; }
	.pd-store-row { grid-template-columns: 1fr; gap: 22px; }
	.pd-cf-grid { grid-template-columns: 1fr; }
}

/* Магазини page — store photos row (below the contacts/map row). */
.pd-store-photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 26px;
}
.pd-store-photo {
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 3 / 2;
	background: #f0f0f0;
}
.pd-store-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .pd-store-photos { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------
   Шоурум page — section titles, 360 tour, address + map.
   ---------------------------------------------------------------------- */
.pd-sr-title { font-size: 24px; font-weight: 700; color: #2b2b2b; margin: 34px 0 16px; }
.pd-360 {
	width: 100%;
	aspect-ratio: 16 / 8.2;
	background: #9c9c9c;
	border-radius: 4px;
	overflow: hidden;
	margin: 6px 0 30px;
}
.pd-360 iframe { display: block; width: 100%; height: 100%; border: 0; }
.pd-360-ph {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	text-align: center;
	padding: 20px;
}
.pd-360-ph span { font-size: 17px; font-weight: 600; }
.pd-360-ph small { opacity: 0.85; }

.pd-sr-address { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 18px; color: #444; font-size: 14px; }
.pd-sr-pin { flex: 0 0 22px; width: 22px; height: 22px; color: #731e24; }
.pd-sr-pin svg { width: 22px; height: 22px; }
.pd-sr-address a { color: #731e24; }
.pd-sr-map {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	margin-bottom: 34px;
}
.pd-sr-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ----------------------------------------------------------------------
   Партньори / Брандове — logo grid (each links to its brand archive).
   ---------------------------------------------------------------------- */
.pd-brands-grid {
	display: grid;
	grid-template-columns: repeat(var(--pd-cols, 6), 1fr);
	gap: 28px 20px;
}
.pd-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.pd-brand-logo {
	width: 100%;
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border: 1px solid #ececec;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}
.pd-brand-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pd-brand-fallback { font-weight: 700; color: #731e24; font-size: 15px; text-align: center; line-height: 1.3; }
.pd-brand-name { font-size: 14px; color: #3a3a3a; text-align: center; transition: color 0.15s ease; }
.pd-brand:hover .pd-brand-logo { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09); }
.pd-brand:hover .pd-brand-name { color: #731e24; }
@media (max-width: 1024px) { .pd-brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .pd-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px)  { .pd-brands-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----------------------------------------------------------------------
   Single brand archive (product_brand) — logo + description + heading.
   ---------------------------------------------------------------------- */
.pd-brand-top {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	align-items: start;
	margin: 6px 0 30px;
}
.pd-brand-top-logo {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border: 1px solid #ececec;
	border-radius: 4px;
	background: #f4f4f4;
}
.pd-brand-top-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pd-brand-top-logo .pd-brand-fallback { font-size: 20px; }
.pd-brand-top-desc { color: #444; font-size: 15px; line-height: 1.75; }
.pd-brand-top-desc p { margin: 0 0 14px; }
.pd-brand-products-title { font-size: 24px; font-weight: 700; color: #2b2b2b; margin: 4px 0 24px; }
/* Design hides the sort/per-page toolbar on brand pages. */
.tax-product_brand .shop-loop-head { display: none !important; }
@media (max-width: 767px) {
	.pd-brand-top { grid-template-columns: 1fr; gap: 20px; }
	.pd-brand-top-logo { max-width: 220px; }
}

/* Brand archive: hide the shop filter sidebar (design is full-width products). */
.tax-product_brand .wd-sidebar,
.tax-product_brand .sidebar-container { display: none !important; }
.tax-product_brand .wd-content-area { width: 100% !important; max-width: 100% !important; }

/* ----------------------------------------------------------------------
   За нас (About) page — intro, история (full-bleed grey), какво предлагаме.
   ---------------------------------------------------------------------- */
.pd-about h2,
.pd-about-stores-title { font-size: 26px; font-weight: 700; color: #2b2b2b; margin: 0 0 18px; }
.pd-about p { color: #444; font-size: 15px; line-height: 1.75; margin: 0 0 14px; }

.pd-about-intro { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; margin: 8px 0 40px; }
.pd-about-intro-img,
.pd-about-offer-img,
.pd-about-history-imgs .pd-about-img {
	aspect-ratio: 4 / 3;
	background: #ececec;
	border-radius: 4px;
	overflow: hidden;
}
.pd-about-intro-img img,
.pd-about-offer-img img,
.pd-about-history-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* История — full-bleed grey band (full-bleed rules in the desktop media query above). */
.pd-about-history {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #f4f4f4;
	padding: 52px 0;
	margin-bottom: 44px;
}
.pd-about-history-inner { max-width: 1222px; margin: 0 auto; padding: 0 15px; }
.pd-about-history-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }

.pd-about-offer { display: grid; grid-template-columns: 1fr 1.7fr; gap: 44px; align-items: center; margin: 0 0 50px; }

.pd-about-stores-title { margin: 44px 0 24px; }

@media (max-width: 767px) {
	.pd-about-intro,
	.pd-about-offer { grid-template-columns: 1fr; gap: 24px; }
	.pd-about-history-imgs { grid-template-columns: 1fr; }
}
