/* ==========================================================================
   SHOP ARCHIVE — Pulse CI (layout 7641)
   Structure mirrors sidebar + grid; colours: #212121 + gold on light ground.
   ========================================================================== */

body.woocommerce-shop,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.tax-product_brand,
body.pulse-shop-archive,
body.woocommerce-shop .pulse-shop,
body.post-type-archive-product .pulse-shop {
	--pulse-ink: #212121;
	--pulse-gold: #b89d6b;
	--pulse-text: #3b3f44;
	--pulse-muted: #6b7280;
	--pulse-line: #e6e0d6;
	--pulse-bg: #faf8f5;
	--pulse-card: #ffffff;
}

body.woocommerce-shop .wd-page-content,
body.post-type-archive-product .wd-page-content,
body.tax-product_cat .wd-page-content,
body.tax-product_brand .wd-page-content,
body.pulse-shop-archive .wd-page-content {
	background: var(--pulse-bg, #faf8f5);
}

/*
 * WoodMart .wd-content-layout uses padding-block: 40px — that is the white
 * strip between header and stretched page title. Drop top padding only.
 */
body.woocommerce-shop .wd-content-layout,
body.post-type-archive-product .wd-content-layout,
body.tax-product_cat .wd-content-layout,
body.tax-product_brand .wd-content-layout,
body.pulse-shop-archive .wd-content-layout,
body.woocommerce-shop .content-layout-wrapper,
body.post-type-archive-product .content-layout-wrapper,
body.tax-product_cat .content-layout-wrapper,
body.tax-product_brand .content-layout-wrapper,
body.pulse-shop-archive .content-layout-wrapper {
	padding-top: 0 !important;
}

/* Page title / banner — image stays on title only; flush under header */
body.woocommerce-shop .main-page-wrapper,
body.post-type-archive-product .main-page-wrapper,
body.tax-product_cat .main-page-wrapper,
body.tax-product_brand .main-page-wrapper,
body.pulse-shop-archive .main-page-wrapper {
	padding-top: 0 !important;
}

body.woocommerce-shop .wd-content-area.entry-content,
body.post-type-archive-product .wd-content-area.entry-content,
body.tax-product_cat .wd-content-area.entry-content,
body.tax-product_brand .wd-content-area.entry-content,
body.pulse-shop-archive .wd-content-area.entry-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
	gap: 0;
}

/* Space sidebar + grid below the banner (replaces the 40px content gutter) */
body.woocommerce-shop .pulse-shop,
body.post-type-archive-product .pulse-shop,
body.tax-product_cat .pulse-shop,
body.tax-product_brand .pulse-shop,
body.pulse-shop-archive .pulse-shop {
	padding-top: 40px;
}

body.woocommerce-shop .wd-page-title-el,
body.post-type-archive-product .wd-page-title-el,
body.tax-product_cat .wd-page-title-el,
body.tax-product_brand .wd-page-title-el,
body.pulse-shop-archive .wd-page-title-el {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	background-image: url("https://pulsedermatologyandlaser.com/staging/wp-content/uploads/2026/09/PULSE-WEBSITE-AND-SOCIAL--optimized.jpg") !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

body.woocommerce-shop .wd-page-title,
body.post-type-archive-product .wd-page-title,
body.tax-product_cat .wd-page-title,
body.tax-product_brand .wd-page-title,
body.pulse-shop-archive .wd-page-title {
	border: 0 !important;
	/* translucent scrim so white title stays readable; do not paint solid cream */
	background-color: rgba(33, 33, 33, 0.35) !important;
	background-image: none !important;
}

body.woocommerce-shop .wd-page-title .entry-title,
body.woocommerce-shop .wd-page-title .title,
body.post-type-archive-product .wd-page-title .entry-title,
body.post-type-archive-product .wd-page-title .title,
body.tax-product_cat .wd-page-title .entry-title,
body.tax-product_cat .wd-page-title .title,
body.tax-product_brand .wd-page-title .entry-title,
body.tax-product_brand .wd-page-title .title,
body.pulse-shop-archive .wd-page-title .entry-title,
body.pulse-shop-archive .wd-page-title .title {
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-weight: 500 !important;
	color: #fff !important;
	text-align: center;
}

/* Kill leftover shared short-class CSS from earlier pulse-shop-* blockIds */
body.woocommerce-shop .wd-shop-product.wd-pulse-sh,
body.woocommerce-shop .wd-off-sidebar .wd-pulse-sh,
body.woocommerce-shop .pulse-shop .wd-pulse-sh:not(.wd-page-title-el) {
	background-image: none !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Sidebar headings — larger than the category/brand links */
.pulse-shop-cats-title,
.pulse-shop-brands-title,
body.woocommerce-shop .wd-off-sidebar .widget-title,
body.woocommerce-shop .widget_product_categories .widget-title,
body.post-type-archive-product .widget_product_categories .widget-title,
body.tax-product_cat .widget_product_categories .widget-title,
body.woocommerce-shop .widget_brand_nav .widget-title,
body.woocommerce-shop .widget_layered_nav .widget-title {
	margin: 0 0 14px !important;
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pulse-ink, #212121) !important;
}

.pulse-shop-brands-title {
	margin-top: 32px !important;
}

/* Attribute filters (For / Color / Size) — match Categories / Brands list style */
.pulse-shop-attr-filters {
	margin-top: 28px;
}

.pulse-shop-attr-filter + .pulse-shop-attr-filter {
	margin-top: 28px;
}

.pulse-shop-attr-title,
body.woocommerce-shop .pulse-shop-attr-filters .widget-title,
body.woocommerce-shop .pulse-shop-attr-filters .title,
body.post-type-archive-product .pulse-shop-attr-filters .title,
body.tax-product_cat .pulse-shop-attr-filters .title {
	margin: 0 0 14px !important;
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pulse-ink, #212121) !important;
}

/* Narrower filter sidebar on desktop so product cards get more width */
@media (min-width: 1025px) {
	.wp-block-wd-off-canvas > .wp-block-wd-off-sidebar {
		flex: 0 0 220px !important;
		width: 220px !important;
		max-width: 220px !important;
	}

	.wp-block-wd-off-canvas > .wp-block-wd-off-content {
		min-width: 0;
	}
}

/*
 * Brands list — match Skin Concerns.
 * Sidebar class is wp-block-wd-off-sidebar (not .wd-off-sidebar).
 */
body.woocommerce-shop .wd-brands,
body.woocommerce-shop .brands-widget,
body.post-type-archive-product .wd-brands,
.pulse-shop .wd-brands,
.pulse-shop .brands-widget,
.wp-block-wd-off-sidebar .wd-brands,
.wp-block-wd-off-sidebar .brands-widget {
	font-family: inherit !important;
	--wd-link-color: var(--pulse-text, #3b3f44) !important;
	--wd-link-color-hover: var(--pulse-gold, #b89d6b) !important;
	--color-gray-500: var(--pulse-text, #3b3f44) !important;
}

body.woocommerce-shop .wd-brands.wd-layout-list [class*="wd-grid"],
body.woocommerce-shop .wd-brands [class*="wd-grid"],
.pulse-shop .wd-brands.wd-layout-list [class*="wd-grid"],
.pulse-shop .wd-brands [class*="wd-grid"],
.wp-block-wd-off-sidebar .wd-brands [class*="wd-grid"] {
	display: block !important;
	gap: 0 !important;
	row-gap: 0 !important;
	column-gap: 0 !important;
	grid-template-columns: none !important;
	--wd-gap-lg: 0px !important;
	--wd-gap-md: 0px !important;
	--wd-gap-sm: 0px !important;
	--wd-col-lg: 1 !important;
	--wd-col-md: 1 !important;
	--wd-col-sm: 1 !important;
}

body.woocommerce-shop .wd-brands .wd-col,
.pulse-shop .wd-brands .wd-col,
.wp-block-wd-off-sidebar .wd-brands .wd-col {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body.woocommerce-shop .wd-brands .wd-brand-item,
body.woocommerce-shop .wd-brands.wd-layout-list .wd-brand-item,
.pulse-shop .wd-brands .wd-brand-item,
.wp-block-wd-off-sidebar .wd-brands .wd-brand-item {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	justify-content: flex-start !important;
	--wd-align: flex-start !important;
	--wd-brand-pd: 0 !important;
}

body.woocommerce-shop .wd-brands .wd-brand-item a,
body.woocommerce-shop .wd-brands.wd-layout-list .wd-brand-item a,
body.woocommerce-shop .brands-widget .wd-brand-item a,
.pulse-shop .wd-brands .wd-brand-item a,
.pulse-shop .wd-brands.wd-layout-list .wd-brand-item a,
.pulse-shop .wd-brands a,
.wp-block-wd-off-sidebar .wd-brands .wd-brand-item a,
.wp-block-wd-off-sidebar .wd-brands a {
	--wd-link-color: var(--pulse-text, #3b3f44) !important;
	--wd-link-color-hover: var(--pulse-gold, #b89d6b) !important;
	display: block !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	width: 100% !important;
	height: auto !important;
	padding: 10px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--pulse-line, #e6e0d6) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	opacity: 1 !important;
	color: var(--pulse-text, #3b3f44) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-align: left !important;
	text-transform: none !important;
	text-decoration: none !important;
}

body.woocommerce-shop .wd-brands .wd-brand-item a:hover,
body.woocommerce-shop .wd-brands.wd-layout-list .wd-brand-item a:hover,
.pulse-shop .wd-brands .wd-brand-item a:hover,
.pulse-shop .wd-brands a:hover,
.wp-block-wd-off-sidebar .wd-brands a:hover {
	--wd-link-color: var(--pulse-gold, #b89d6b) !important;
	color: var(--pulse-gold, #b89d6b) !important;
	opacity: 1 !important;
}

/* Plain list attrs (For) — no counts */
.pulse-shop-attr-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pulse-shop-attr-list li {
	margin: 0;
	padding: 0;
}

.pulse-shop-attr-list a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--pulse-line, #e6e0d6);
	color: var(--pulse-text, #3b3f44) !important;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none !important;
}

.pulse-shop-attr-list a:hover,
.pulse-shop-attr-list .is-active > a {
	color: var(--pulse-gold, #b89d6b) !important;
}

/* Hide WC layered-nav counts everywhere in these filters */
body.woocommerce-shop .pulse-shop-attr-filters .count,
body.post-type-archive-product .pulse-shop-attr-filters .count,
body.tax-product_cat .pulse-shop-attr-filters .count {
	display: none !important;
}

/* Colour swatches — chip + hover caption */
.pulse-shop-swatches--colour {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pulse-shop-swatch {
	margin: 0;
	padding: 0;
	position: relative;
}

.pulse-shop-swatch__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none !important;
	color: var(--pulse-text, #3b3f44) !important;
}

.pulse-shop-swatch__chip {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--pulse-line, #e6e0d6);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	background-clip: padding-box;
}

.pulse-shop-swatch.is-active .pulse-shop-swatch__chip,
.pulse-shop-swatch__link:hover .pulse-shop-swatch__chip {
	outline: 2px solid var(--pulse-ink, #212121);
	outline-offset: 2px;
	border-color: var(--pulse-ink, #212121);
}

.pulse-shop-swatch.is-active .pulse-shop-swatch__chip {
	outline-color: var(--pulse-gold, #b89d6b);
	border-color: var(--pulse-gold, #b89d6b);
}

.pulse-shop-swatch__caption {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 5;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--pulse-ink, #212121);
	color: #fff !important;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
}

.pulse-shop-swatch__link:hover .pulse-shop-swatch__caption,
.pulse-shop-swatch__link:focus-visible .pulse-shop-swatch__caption {
	opacity: 1;
	visibility: visible;
}

/* Size chips — compact pills, full name via title/tooltip */
.pulse-shop-swatches--size {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pulse-shop-size-chip {
	margin: 0;
	padding: 0;
}

.pulse-shop-size-chip__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--pulse-line, #e6e0d6);
	border-radius: 4px;
	background: #fff;
	color: var(--pulse-text, #3b3f44) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2;
	text-decoration: none !important;
}

.pulse-shop-size-chip__link:hover,
.pulse-shop-size-chip.is-active .pulse-shop-size-chip__link {
	border-color: var(--pulse-ink, #212121);
	color: var(--pulse-ink, #212121) !important;
}

.pulse-shop-size-chip.is-active .pulse-shop-size-chip__link {
	border-color: var(--pulse-gold, #b89d6b);
	background: rgba(184, 157, 107, 0.12);
	color: var(--pulse-ink, #212121) !important;
}

.pulse-shop-size-chip__label {
	max-width: 9.5em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.woocommerce-shop .pulse-shop-active-filters:empty,
body.woocommerce-shop .pulse-shop-active-filters .widget_layered_nav_filters:not(:has(ul li)),
body.woocommerce-shop .pulse-shop-attr-filter:not(:has(ul li)) {
	display: none;
}

body.woocommerce-shop .pulse-shop-active-filters .widget_layered_nav_filters ul {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

body.woocommerce-shop .pulse-shop-active-filters .widget_layered_nav_filters a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 6px 10px;
	border: 1px solid var(--pulse-line, #e6e0d6);
	border-radius: 4px;
	background: #fff;
	color: var(--pulse-ink, #212121) !important;
	font-size: 12px;
	text-decoration: none !important;
}

body.woocommerce-shop .pulse-shop-active-filters .widget_layered_nav_filters a:hover {
	border-color: var(--pulse-gold, #b89d6b);
	color: var(--pulse-gold, #b89d6b) !important;
}

/* Hide duplicate widget title if we already print Categories heading */
.pulse-shop .wd-off-sidebar .pulse-shop-cats-title + .widget_product_categories .widget-title {
	display: none;
}

body.woocommerce-shop .widget_product_categories ul,
body.post-type-archive-product .widget_product_categories ul,
body.tax-product_cat .widget_product_categories ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-shop .widget_product_categories li,
body.post-type-archive-product .widget_product_categories li {
	margin: 0;
	padding: 0;
	border: 0;
}

body.woocommerce-shop .widget_product_categories a,
body.post-type-archive-product .widget_product_categories a,
body.tax-product_cat .widget_product_categories a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--pulse-line, #e6e0d6);
	color: var(--pulse-text, #3b3f44) !important;
	font-size: 14px;
	text-decoration: none !important;
}

body.woocommerce-shop .widget_product_categories a:hover,
body.woocommerce-shop .widget_product_categories .current-cat > a,
body.post-type-archive-product .widget_product_categories a:hover,
body.post-type-archive-product .widget_product_categories .current-cat > a {
	color: var(--pulse-gold, #b89d6b) !important;
}

/* Product cards — force dark ink even if WoodMart color-scheme-light leaks */
body.woocommerce-shop .wd-product,
body.woocommerce-shop .wd-product.color-scheme-light,
body.post-type-archive-product .wd-product,
body.post-type-archive-product .wd-product.color-scheme-light,
body.tax-product_cat .wd-product,
body.tax-product_brand .wd-product,
body.pulse-shop-archive .wd-product {
	color: var(--pulse-ink, #212121) !important;
	--wd-text-color: var(--pulse-ink, #212121);
	--color-gray-800: #212121;
	--color-gray-900: #212121;
}

body.woocommerce-shop .wd-entities-title,
body.woocommerce-shop .wd-entities-title a,
body.woocommerce-shop .wd-product.color-scheme-light .wd-entities-title a,
body.post-type-archive-product .wd-entities-title a,
body.post-type-archive-product .wd-product.color-scheme-light .wd-entities-title a,
body.tax-product_cat .wd-entities-title a,
body.tax-product_brand .wd-entities-title a,
body.pulse-shop-archive .wd-entities-title a {
	color: var(--pulse-ink, #212121) !important;
	font-weight: 600;
	opacity: 1 !important;
}

body.woocommerce-shop .wd-product .price,
body.woocommerce-shop .wd-product.color-scheme-light .price,
body.post-type-archive-product .wd-product .price,
body.tax-product_brand .wd-product .price,
body.pulse-shop-archive .wd-product .price {
	color: var(--pulse-ink, #212121) !important;
}

body.woocommerce-shop .wd-product-cats a,
body.post-type-archive-product .wd-product-cats a {
	color: var(--pulse-muted, #6b7280) !important;
}

/* Sidebar product categories block (replaces empty sidebar-shop widgets) */
.pulse-shop .wd-product-cats-widget a,
.pulse-shop .wd-widget-product-categories a,
.pulse-shop .wp-block-wd-product-categories a,
body.woocommerce-shop .wd-off-sidebar .wd-nav a,
body.woocommerce-shop .wd-off-sidebar .product-categories a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--pulse-line, #e6e0d6);
	color: var(--pulse-text, #3b3f44) !important;
	font-size: 14px;
	text-decoration: none !important;
}

/* Brands widget / list in sidebar */
.pulse-shop .wd-brands,
.pulse-shop .brands-widget,
.wp-block-wd-off-sidebar .wd-brands,
body.woocommerce-shop .widget_brand_nav ul,
body.woocommerce-shop .widget_layered_nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pulse-shop .wd-brands a,
.pulse-shop .brands-widget a,
.wp-block-wd-off-sidebar .wd-brands a,
body.woocommerce-shop .widget_brand_nav a,
body.woocommerce-shop .widget_layered_nav a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--pulse-line, #e6e0d6);
	color: var(--pulse-text, #3b3f44) !important;
	font-size: 14px;
	font-weight: 400;
	opacity: 1;
	text-decoration: none !important;
}

.pulse-shop .wd-brands a:hover,
.wp-block-wd-off-sidebar .wd-brands a:hover,
body.woocommerce-shop .widget_brand_nav a:hover {
	color: var(--pulse-gold, #b89d6b) !important;
}

/* Collapse empty brands grid until product brands exist */
.pulse-shop .wd-brands:not(:has(a)) .wd-grid-g {
	display: none;
}

.pulse-shop .wd-product-cats-widget a:hover,
.pulse-shop .wp-block-wd-product-categories a:hover,
body.woocommerce-shop .wd-off-sidebar .wd-nav a:hover {
	color: var(--pulse-gold, #b89d6b) !important;
}

body.woocommerce-shop .wd-product .button,
body.woocommerce-shop .wd-product .add_to_cart_button,
body.woocommerce-shop .wd-product .product_type_simple,
body.woocommerce-shop .wd-product a.button,
body.post-type-archive-product .wd-product .button,
body.post-type-archive-product .wd-product .add_to_cart_button,
body.tax-product_cat .wd-product .button,
body.tax-product_brand .wd-product .button,
body.pulse-shop-archive .wd-product .button {
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--pulse-ink, #212121) !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.woocommerce-shop .wd-product .button:hover,
body.woocommerce-shop .wd-product .add_to_cart_button:hover,
body.post-type-archive-product .wd-product .button:hover,
body.tax-product_brand .wd-product .button:hover,
body.pulse-shop-archive .wd-product .button:hover {
	background: var(--pulse-gold, #b89d6b) !important;
	color: #fff !important;
}

/* Load more */
body.woocommerce-shop .wd-load-more .btn,
body.woocommerce-shop .products-footer .button,
body.post-type-archive-product .wd-load-more .btn,
body.tax-product_cat .wd-load-more .btn {
	border: 1px solid var(--pulse-ink, #212121) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--pulse-ink, #212121) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	min-height: 48px;
	padding: 12px 28px !important;
}

body.woocommerce-shop .wd-load-more .btn:hover,
body.post-type-archive-product .wd-load-more .btn:hover {
	background: var(--pulse-ink, #212121) !important;
	color: #fff !important;
}

/* Shop tools / breadcrumbs tone */
body.woocommerce-shop .wd-shop-tools,
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering select {
	color: var(--pulse-muted, #6b7280);
}
