/*
 * PerfumeMarket: shop pages, filters, product page and blog.
 * Colours follow the theme palette.
 */

/* ---------- Breadcrumbs ---------- */
.pm-breadcrumbs { font-size: 12.5px; color: var(--wp--preset--color--muted); margin-bottom: 14px !important; }
.pm-breadcrumbs a { color: var(--wp--preset--color--muted); text-decoration: none; }
.pm-breadcrumbs a:hover { color: var(--wp--preset--color--primary); }

/* ---------- Shop page head ---------- */
.pm-shop-head { margin-bottom: 22px !important; }
.pm-shop-head > * { margin: 0 !important; }
.pm-shop-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; letter-spacing: -0.01em; }
/* SEO text below the products (Shop page text, category/brand descriptions) */
.pm-shop-seo {
	margin: 0 0 18px !important;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.6vw, 32px);
}
.pm-intro__text { color: var(--wp--preset--color--muted); font-size: 15px; line-height: 1.75; max-width: 980px; }
.pm-intro__text > :first-child { margin-top: 0; }
.pm-intro__text > :last-child { margin-bottom: 0; }
.pm-intro__text p { margin: 0 0 12px; }
.pm-intro__text :is(h1, h2) { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; color: var(--wp--preset--color--contrast); margin: 22px 0 10px; }
.pm-intro__text :is(h3, h4, h5, h6) { font-size: 1.05rem; line-height: 1.35; color: var(--wp--preset--color--contrast); margin: 18px 0 8px; }
.pm-intro__text a { color: var(--wp--preset--color--primary); font-weight: 600; }
.pm-intro__text ul,
.pm-intro__text ol { margin: 0 0 12px; padding-left: 20px; }
.pm-intro:not(.is-open) .pm-intro__text {
	max-height: calc(var(--pm-intro-lines, 6) * 1.75em);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}
.pm-intro__more {
	margin-top: 10px;
	background: none;
	border: 0;
	padding: 0;
	color: var(--wp--preset--color--primary);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.pm-intro__more:hover { text-decoration: underline; }

/* ---------- Layout: sidebar + products ---------- */
.pm-shop-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.pm-shop-body > * { margin: 0 !important; }
.pm-shop-sidebar { position: static; }

/* ---------- Filters ---------- */
.pm-filters {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	padding: 18px;
	font-size: 14px;
}
.pm-filters > * { margin: 0 !important; }
.pm-filters-title { font-size: 17px !important; font-weight: 800; padding-bottom: 12px; }
.pm-filter-active:not(:empty) { padding-bottom: 12px; }
.pm-filter {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 14px 0 !important;
}
.pm-filter:last-child { padding-bottom: 0 !important; }
.pm-filter > * { margin: 0 !important; }
.pm-filter-title {
	font-size: 13px !important;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
}
.pm-filter-title::after { content: "–"; font-size: 16px; color: var(--wp--preset--color--muted); letter-spacing: 0; }
.pm-filter.is-collapsed .pm-filter-title::after { content: "+"; }
.pm-filter > :not(.pm-filter-title) { margin-top: 12px !important; }
.pm-filter.is-collapsed > :not(.pm-filter-title) { display: none !important; }

/* Checkbox lists */
.pm-filters .wc-block-product-filter-checkbox-list__items { gap: 8px; display: flex; flex-direction: column; }
.pm-filters .wc-block-product-filter-checkbox-list__label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--wp--preset--color--contrast); }
.pm-filters .wc-block-product-filter-checkbox-list__input-wrapper { flex-shrink: 0; }
.pm-filters .wc-block-product-filter-checkbox-list__input {
	width: 18px;
	height: 18px;
	border: 1.5px solid #b9c4c1;
	border-radius: 5px;
	accent-color: var(--wp--preset--color--primary);
}
.pm-filters .wc-block-product-filter-checkbox-list__input:checked { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.pm-filters .wc-block-product-filter-checkbox-list__text { flex: 1; }
.pm-filters .wc-block-product-filter-checkbox-list__count { color: var(--wp--preset--color--muted); font-size: 12.5px; }
.pm-filters .wc-block-product-filter-checkbox-list__show-more { background: none; border: 0; padding: 4px 0 0; color: var(--wp--preset--color--primary); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* Price slider */
.pm-filters .wc-block-product-filter-price-slider { --range-color: var(--wp--preset--color--primary); }
.pm-filters .wc-block-product-filter-price-slider input[type="range"] { accent-color: var(--wp--preset--color--primary); }
.pm-filters .wc-block-product-filter-price-slider__content { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.pm-filters .wc-block-product-filter-price-slider__range { grid-column: 1 / -1 !important; grid-row: 1 !important; }
.pm-filters .wc-block-product-filter-price-slider__left { grid-column: 1 !important; grid-row: 2 !important; }
.pm-filters .wc-block-product-filter-price-slider__right { grid-column: 2 !important; grid-row: 2 !important; }
.pm-filters .wc-block-product-filter-price-slider .text input {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	text-align: center;
	padding: 7px 4px !important;
	font: inherit;
	font-size: 12.5px !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
}

/* Active filter chips and "Clear all" */
.pm-filters .wc-block-product-filter-removable-chips__items { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pm-filters .wc-block-product-filter-removable-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--pill);
	padding: 5px 8px 5px 12px;
	font-size: 12.5px;
	font-weight: 700;
	border: 0;
}
.pm-filters .wc-block-product-filter-removable-chips__remove { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; display: inline-flex; }
.pm-filters .wc-block-product-filter-clear-button .wp-block-button__link {
	margin-top: 10px;
	padding: 7px 14px;
	font-size: 13px;
	background: transparent;
	color: var(--wp--preset--color--sale);
	box-shadow: inset 0 0 0 1.5px currentColor;
	border: 0;
}

/* "Filters" button and panel on phones/tablets (WooCommerce overlay) */
.pm-filters { display: block; }
.pm-filters .wc-block-product-filters__open-overlay {
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--pill);
	padding: 9px 18px;
	font: inherit;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
}
.pm-filters .wc-block-product-filters__overlay-content { padding: 18px; }
.pm-filters .wc-block-product-filters__overlay-footer .wp-element-button,
.pm-filters .wc-block-product-filters__apply {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 800;
}

@media (min-width: 783px) {
	.pm-filters .wc-block-product-filters__open-overlay { display: none !important; }
	.pm-filters .wc-block-product-filters__overlay,
	.pm-filters .wc-block-product-filters__overlay-wrapper,
	.pm-filters .wc-block-product-filters__overlay-dialog,
	.pm-filters .wc-block-product-filters__overlay-content { position: static !important; display: block !important; width: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; pointer-events: auto !important; }
}
@media (min-width: 783px) and (max-width: 1099px) {
	.pm-shop-body { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
	/* Tablets: the sidebar leaves ~520px, so 2 roomy cards read better than 3 narrow ones */
	.pm-shop-main .wc-block-product-template.wc-block-product-template__responsive { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 782px) {
	.pm-shop-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.pm-shop-sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
	.pm-filters { background: none; border: 0; padding: 0; }
	.pm-filters-title { display: none; }
	.pm-filters .wc-block-product-filters__overlay-content .pm-filters-title { display: block; }
}

/* ---------- Product grid bar: count + sorting ---------- */
.pm-catalog-bar { margin-bottom: 16px !important; gap: 10px; align-items: center; }
.pm-catalog-bar > * { margin: 0 !important; }
.pm-catalog-bar .woocommerce-result-count,
.pm-catalog-bar .wc-block-product-results-count { color: var(--wp--preset--color--muted); font-size: 14px; margin: 0; }
.pm-catalog-bar .woocommerce-ordering { margin: 0; }
.pm-catalog-bar select,
.woocommerce-ordering select {
	-webkit-appearance: none;
	appearance: none;
	background: #fff url(../images/icons/chevron-down.svg) right 12px center / 16px no-repeat;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
	padding: 9px 38px 9px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	min-width: 210px;
}
.pm-catalog-bar select:hover { border-color: var(--wp--preset--color--primary); }
.pm-catalog-bar select:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; }

/* Shop grid: 3 per row beside the filters, 2 on phones */
.pm-catalog .wc-block-product-template { gap: 16px; }
@media (min-width: 600px) and (max-width: 782px) {
	.pm-catalog .wc-block-product-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pm-catalog .wc-block-product { width: auto !important; max-width: none !important; }
}


/* Pagination */
.pm-pagination { margin-top: 30px !important; gap: 6px; }
.pm-pagination a,
.pm-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wp--custom--radius--small);
	border: 1px solid var(--wp--preset--color--line);
	background: #fff;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}
.pm-pagination a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.pm-pagination .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.pm-no-results { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); }

/* ---------- Product page ---------- */
.pm-product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pm-product-top > * { margin: 0 !important; }
.pm-product-gallery { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 150px); }
.pm-product-gallery .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.pm-product-gallery .woocommerce-product-gallery__image img,
.pm-product-gallery .flex-viewport { border-radius: var(--wp--custom--radius--medium); }
.pm-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0 !important; padding: 0; }
.pm-product-gallery .flex-control-thumbs li { width: 72px !important; list-style: none; }
.pm-product-gallery .flex-control-thumbs img { border-radius: 10px; opacity: 0.6; cursor: pointer; border: 2px solid transparent; }
.pm-product-gallery .flex-control-thumbs img.flex-active,
.pm-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--wp--preset--color--primary); }
.pm-product-gallery .woocommerce-product-gallery__trigger { background: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.pm-product-gallery span.onsale,
.pm-product-gallery .wc-block-components-product-sale-badge {
	position: absolute !important; top: 14px !important; left: 14px !important; right: auto !important; z-index: 3; margin: 0 !important;
	background: var(--wp--preset--color--sale) !important; color: #fff !important; border: 0 !important;
	border-radius: var(--wp--custom--radius--pill) !important; padding: 5px 12px !important; font-size: 12px !important; font-weight: 800;
	min-height: 0 !important; min-width: 0 !important; width: auto !important; height: auto !important; line-height: 1.4 !important;
}

/* Summary: everything in a clear order, whatever plugins add */
.pm-summary { display: flex; flex-direction: column; gap: 0; }
.pm-summary > * { order: 50; margin: 0 !important; }
.pm-summary > .pm-sold-by { order: 1; margin-bottom: 6px !important; font-size: 13px; }
.pm-summary > .pm-product-title { order: 2; font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; line-height: 1.2; }
.pm-summary > .wp-block-woocommerce-product-rating { order: 3; margin-top: 8px !important; }
.pm-summary > .pm-product-price { order: 4; margin-top: 14px !important; }
.pm-summary > .pm-product-excerpt { order: 5; margin-top: 16px !important; color: var(--wp--preset--color--muted); line-height: 1.7; padding-bottom: 20px; border-bottom: 1px solid var(--wp--preset--color--line); }
.pm-summary > .pm-add-to-cart { order: 6; margin-top: 20px !important; }
.pm-summary > .wcfmmp_shipment_processing_display { order: 7; margin-top: 16px !important; font-style: italic; color: var(--wp--preset--color--muted); font-size: 14px; }
.pm-summary > .wcfm_ele_wrapper,
.pm-summary > .wcfm_catalog_enquiry_button_wrapper,
.pm-summary > .wcfm-enquiry-wrapper { order: 7; margin-top: 14px !important; min-height: 0 !important; }
.pm-summary > .posted_in { display: none !important; } /* duplicate "Brand:" line; brand is already in the details */
.pm-summary > .pm-product-trust { order: 8; margin-top: 20px !important; }
.pm-summary > .wcfmmp_sold_by_container,
.pm-summary > .wcfmmp_sold_by_container_advanced { order: 9; margin-top: 18px !important; }
.pm-summary > .pm-product-meta { order: 10; margin-top: 18px !important; }

/* Price: new price first, large */
.pm-product-price,
.pm-product-price .wc-block-components-product-price { font-size: 26px; font-weight: 800; color: var(--wp--preset--color--contrast); }
.pm-product-price .wc-block-components-product-price:has(del),
.pm-product-price:has(del) > .price { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pm-product-price del { color: #9aa6a3; font-size: 17px; font-weight: 500; }
.pm-product-price ins { text-decoration: none; }

/* Add to cart: quantity stepper + big button */
.pm-add-to-cart form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 0 !important; }
.pm-add-to-cart .quantity { display: inline-flex; align-items: center; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--pill); background: #fff; overflow: hidden; }
.pm-add-to-cart .quantity input.qty { width: 46px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 15px; background: transparent; -moz-appearance: textfield; padding: 12px 0; }
.pm-add-to-cart .quantity input.qty::-webkit-inner-spin-button,
.pm-add-to-cart .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pm-add-to-cart .quantity .wc-block-components-quantity-selector__button,
.pm-add-to-cart .quantity button { background: none; border: 0; width: 40px; height: 100%; font-size: 18px; cursor: pointer; color: var(--wp--preset--color--primary); }
.pm-add-to-cart .single_add_to_cart_button {
	flex: 1 1 220px;
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	border: 0;
	border-radius: var(--wp--custom--radius--pill) !important;
	padding: 14px 24px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
}
.pm-add-to-cart .single_add_to_cart_button:hover { background: var(--wp--preset--color--primary-dark) !important; }
.pm-add-to-cart table.variations { margin-bottom: 14px; }
.pm-add-to-cart table.variations select { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--small); padding: 9px 12px; font: inherit; }


/* Trust lines */
.pm-product-trust { background: var(--wp--preset--color--tint); border-radius: var(--wp--custom--radius--medium); padding: 14px 16px; display: grid; gap: 8px; }
.pm-product-trust > * { margin: 0 !important; }
.pm-trust-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--wp--preset--color--primary); }
.pm-trust-line::before {
	content: "";
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}
.pm-trust-line--cash::before { -webkit-mask-image: url(../images/icons/cash.svg); mask-image: url(../images/icons/cash.svg); }
.pm-trust-line--truck::before { -webkit-mask-image: url(../images/icons/truck.svg); mask-image: url(../images/icons/truck.svg); }
.pm-trust-line--store::before { -webkit-mask-image: url(../images/icons/store.svg); mask-image: url(../images/icons/store.svg); }
.pm-trust-line--returns::before { -webkit-mask-image: url(../images/icons/returns.svg); mask-image: url(../images/icons/returns.svg); }

/* WCFM seller box (store logo, name, rating, badges) */
.pm-summary > .wcfmmp_sold_by_container,
.pm-summary > .wcfmmp_sold_by_container_advanced {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	padding: 14px 16px;
	font-size: 14px;
}
.pm-summary .wcfmmp_sold_by_store a { color: var(--wp--preset--color--primary); font-weight: 800; text-decoration: none; }

/* Meta */
.pm-product-meta { font-size: 13px; color: var(--wp--preset--color--muted); }
.pm-product-meta .wp-block-group > * { margin: 0 0 4px !important; }
.pm-product-meta a { color: var(--wp--preset--color--primary); text-decoration: none; }
.pm-product-meta .wp-block-post-terms__prefix { font-weight: 700; color: var(--wp--preset--color--contrast); }

/* Tabs */
.pm-product-tabs { margin-top: var(--wp--preset--spacing--60) !important; }
.pm-product-tabs .woocommerce-tabs ul.tabs,
.pm-product-tabs ul.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 22px !important;
	padding: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.pm-product-tabs ul.wc-tabs::before,
.pm-product-tabs ul.wc-tabs li::before,
.pm-product-tabs ul.wc-tabs li::after { display: none !important; }
.pm-product-tabs ul.wc-tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; }
.pm-product-tabs ul.wc-tabs li a {
	display: block;
	padding: 12px 18px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--muted) !important;
	text-decoration: none;
	box-shadow: inset 0 -3px 0 transparent;
}
.pm-product-tabs ul.wc-tabs li.active a,
.pm-product-tabs ul.wc-tabs li a:hover { color: var(--wp--preset--color--primary) !important; box-shadow: inset 0 -3px 0 var(--wp--preset--color--primary); }
.pm-product-tabs .woocommerce-Tabs-panel { max-width: 900px; line-height: 1.75; }
.pm-product-tabs .woocommerce-Tabs-panel > h2:first-child { font-size: 1.3rem; }
.pm-product-tabs table.shop_attributes { width: 100%; border-collapse: collapse; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--small); overflow: hidden; }
.pm-product-tabs table.shop_attributes th,
.pm-product-tabs table.shop_attributes td { padding: 10px 14px; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; font-size: 14px; }
.pm-product-tabs table.shop_attributes th { background: var(--wp--preset--color--surface); width: 30%; }

/* Related */
.pm-related { margin-top: var(--wp--preset--spacing--60); }
.pm-related .pm-section-title { margin: 0 0 20px; }

@media (max-width: 899px) {
	.pm-product-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.pm-product-gallery { position: static; }
	.pm-product-price,
	.pm-product-price .wc-block-components-product-price { font-size: 22px; }
	.pm-product-tabs ul.wc-tabs { flex-wrap: nowrap; overflow-x: auto; }
	.pm-product-tabs ul.wc-tabs li a { white-space: nowrap; padding: 10px 14px !important; }
}

/* ---------- Blog post with sidebar ---------- */
.pm-blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.pm-blog-layout > * { margin: 0 !important; }
.pm-blog-main .wp-block-post-featured-image { margin: 22px 0 !important; }
.pm-blog-sidebar { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 150px); display: grid; gap: 18px; }
.pm-blog-sidebar > * { margin: 0 !important; }
.pm-side-box { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); padding: 18px; }
.pm-side-box > * { margin: 0 !important; }
.pm-side-box > * + * { margin-top: 12px !important; }
.pm-side-title { font-size: 15px !important; font-weight: 800; }
.pm-side-cats { list-style: none; padding: 0; margin: 0; }
.pm-side-cats li { padding: 7px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 14px; }
.pm-side-cats li:last-child { border-bottom: 0; }
.pm-side-cats a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 600; }
.pm-side-cats a:hover { color: var(--wp--preset--color--primary); }
.pm-side-posts { list-style: none; padding: 0; margin: 0; }
.pm-side-posts li { display: flow-root; padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.pm-side-posts li:last-child { border-bottom: 0; }
.pm-side-posts .wp-block-latest-posts__featured-image { margin: 0 12px 0 0 !important; }
.pm-side-posts .wp-block-latest-posts__featured-image img { border-radius: 8px; object-fit: cover; }
.pm-side-posts a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.pm-side-posts a:hover { color: var(--wp--preset--color--primary); }
.pm-side-cta { background: var(--wp--preset--color--primary); border: 0; color: #fff; }
.pm-side-cta .pm-side-title { color: #fff !important; }
.pm-side-cta p:not(.pm-eyebrow) { color: color-mix(in srgb, #fff 80%, var(--wp--preset--color--primary)); font-size: 14px; }
@media (max-width: 999px) {
	.pm-blog-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.pm-blog-sidebar { position: static; }
}

/* Comments login line */
.logged-in-as { font-size: 14px; color: var(--wp--preset--color--muted); }
.logged-in-as a { color: var(--wp--preset--color--primary); font-weight: 700; }
.must-log-in { background: var(--wp--preset--color--tint); border-radius: var(--wp--custom--radius--small); padding: 12px 16px; font-size: 14px; }

/* Editor placeholders for server-drawn blocks */
.pm-editor-placeholder { padding: 14px; border: 1px dashed var(--wp--preset--color--line); border-radius: 10px; color: var(--wp--preset--color--muted); font-size: 13px; text-align: center; }

/* Store Manager: normal header, but on phones it scrolls away so WCFM's own menu has room */
@media (max-width: 782px) {
	.wcfm-dashboard-page header.wp-block-template-part.pm-sticky { position: relative; top: auto; }
}

/* WCFM "Sold by" in product cards: store logo, name, rating and badges (WCFM's own box).
   The theme's simple "Sold by" is only a fallback when WCFM is off. */
/* One seller line per card, following Appearance > PerfumeMarket > Product cards */
.pm-seller-wcfm .wc-block-product:has(> .pm-sold-by--wcfm) > .wcfmmp_sold_by_container { display: none !important; }
.pm-seller-wcfm .wc-block-product:has(> .wcfmmp_sold_by_container) > .pm-sold-by:not(.pm-sold-by--wcfm) { display: none !important; }
.pm-seller-simple .wc-block-product > .wcfmmp_sold_by_container { display: none !important; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .pm-sold-by.pm-sold-by--wcfm,
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wcfmmp_sold_by_container.wcfmmp_sold_by_container { order: 7; }
/* Seller box under the button, in its own section; same height on every card so buttons line up */
.wc-block-product > .pm-sold-by--wcfm,
.wc-block-product > .wcfmmp_sold_by_container {
	display: block;
	margin: 14px 0 0 !important;
	padding-top: 12px !important;
	border-top: 1px solid var(--wp--preset--color--line);
	min-height: 70px;
	white-space: normal;
	font-size: 13px;
}
.wc-block-product > .pm-sold-by--wcfm > svg { display: none; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wcfm_buttons { order: 0; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wc-block-components-product-image { order: 1; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .pm-sold-by { order: 2; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wp-block-post-title { order: 3; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wp-block-woocommerce-product-price { order: 4; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wcfmmp_sold_by_container { order: 5; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wc-block-components-product-button { order: 6; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > :not(.wcfm_buttons, .wc-block-components-product-image, .pm-sold-by, .wp-block-post-title, .wp-block-woocommerce-product-price, .wcfmmp_sold_by_container, .wc-block-components-product-button) { order: 7; }
.wc-block-product .wcfmmp_sold_by_container { margin-top: 8px !important; font-size: 13px; line-height: 1.4; color: var(--wp--preset--color--muted); }
.wc-block-product .wcfmmp_sold_by_wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; }
.wc-block-product .wcfmmp_sold_by_label { color: var(--wp--preset--color--muted); }
.wc-block-product .wcfmmp_sold_by_logo { width: 20px !important; height: 20px !important; object-fit: contain; border-radius: 4px; margin: 0 2px !important; vertical-align: middle; }
.wc-block-product .wcfmmp_sold_by_wrapper a,
.pm-summary .wcfmmp_sold_by_wrapper a { color: var(--wp--preset--color--primary) !important; font-weight: 700; text-decoration: none; }
.wc-block-product .wcfmmp_sold_by_wrapper a:hover { text-decoration: underline; }
.wc-block-product .wcfmmp_sold_by_container .wcfmmp-store-rating,
.wc-block-product .wcfmmp_sold_by_container .wcfm_vendor_badges { display: inline-flex !important; vertical-align: middle; margin: 4px 6px 0 0 !important; }
.wc-block-product .wcfmmp_sold_by_container .wcfm_vendor_badges img,
.wc-block-product .wcfmmp_sold_by_container .wcfm_vendor_badge img { width: 18px !important; height: 18px !important; }
.wc-block-product .wcfmmp_sold_by_container .wcfmmp-store-rating { font-size: 12px !important; }
.is-style-pm-soft .wc-block-product .wcfmmp_sold_by_wrapper { justify-content: center; }

/* WCFM quick-edit icons (admins only): keep them inside the card, top-right */
.wc-block-product { position: relative; }
.wc-block-product > .wcfm_buttons { top: 10px !important; left: auto !important; right: 10px !important; z-index: 4; border-radius: 8px; }
.wc-block-product > .wcfm_buttons { opacity: 0; transition: opacity 0.15s; }
.wc-block-product:hover > .wcfm_buttons,
.wc-block-product:focus-within > .wcfm_buttons { opacity: 1; }

/* Sorting on the right when the result count is switched off */
.pm-catalog-bar > .wc-block-catalog-sorting,
.pm-catalog-bar > .wp-block-woocommerce-catalog-sorting { margin-left: auto !important; }

/* WCFM "Dashboard" shortcut icons around the product grid (admins/sellers only):
   the header already links to the Store Manager */
.pm-catalog > a:has(> img.text_tip) { display: none !important; }

/* "Out of stock" / "Unavailable" label on card images */
.wc-block-components-product-image { position: relative; }
.pm-stock-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 3;
	background: rgba(19, 32, 29, 0.86);
	color: #fff;
	border-radius: var(--wp--custom--radius--pill);
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.4;
	pointer-events: none;
}
.wc-block-components-product-image:has(.pm-stock-badge) img { filter: grayscale(0.5); opacity: 0.8; }
.wc-block-product:has(.pm-stock-badge) .wc-block-components-product-button .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--primary) !important;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
}

/* Page title area: breadcrumb + title. "Title banner" puts them on a soft background. */
.pm-shop-top { margin-bottom: 22px !important; }
.pm-shop-top > * { margin: 0 !important; }
.pm-shop-top .pm-breadcrumbs { margin-bottom: 8px !important; }
.pm-title-banner .pm-shop-top,
.pm-title-banner .pm-blog-head {
	background: var(--wp--preset--color--tint);
	border-radius: var(--wp--custom--radius--large);
	padding: 22px 30px 24px;
	margin-bottom: 24px !important;
}
@media (max-width: 599px) {
	.pm-title-banner .pm-shop-top,
	.pm-title-banner .pm-blog-head { padding: 16px 18px 18px; }
}
/* The text box under the title is supporting text: smaller heading */
.pm-shop-seo .pm-intro__text > :is(h1, h2):first-child { font-size: 1.15rem; margin-top: 0; }
.pm-shop-seo .pm-intro__text { font-size: 14.5px; }

/* Seller box in cards: "Sold by" label, then logo + store name, then stars and badges on one line */
.wc-block-product .wcfmmp_sold_by_container .wcfm-clearfix { display: none !important; }
.wc-block-product .wcfmmp_sold_by_wrapper { display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.wc-block-product .wcfmmp_sold_by_label { flex: 0 0 100%; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 0 2px; }
.wc-block-product .wcfmmp_sold_by_logo { flex: 0 0 20px; margin: 0 !important; }
.wc-block-product .wcfmmp_sold_by_wrapper a { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.wc-block-product .wcfmmp_sold_by_container .wcfmmp-store-rating,
.wc-block-product .wcfmmp_sold_by_container .wcfm_vendor_badges { display: inline-flex !important; vertical-align: middle; margin: 8px 8px 0 0 !important; }
.wc-block-product > .pm-sold-by--wcfm,
.wc-block-product > .wcfmmp_sold_by_container { min-height: 78px; }

/* Product page: quantity and Add to cart, 50px tall */
.pm-add-to-cart form.cart { align-items: center; }
.pm-add-to-cart .quantity { height: 50px; }
.pm-add-to-cart .quantity input.qty { height: 48px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.pm-add-to-cart .quantity .wc-block-components-quantity-selector__button { height: 48px !important; min-height: 0 !important; }
.pm-add-to-cart .single_add_to_cart_button { height: 50px; min-height: 0 !important; padding: 0 28px !important; line-height: 1 !important; display: inline-flex !important; align-items: center; justify-content: center; }

/* Phones: product tabs in one swipeable row */
@media (max-width: 899px) {
	.pm-product-tabs .woocommerce-tabs ul.tabs.wc-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
	/* A soft fade on the right shows there are more tabs to swipe to. */
	.pm-product-tabs .woocommerce-tabs ul.tabs.wc-tabs.pm-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
	.pm-product-tabs .woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar { display: none; }
	.pm-product-tabs .woocommerce-tabs ul.tabs.wc-tabs li { flex: 0 0 auto; }
}

/* Cards: Add to cart buttons in one straight line across a row.
   Everything under the button (the seller box) gets the same height, and the
   title always takes two lines, so buttons sit at the same height on every card. */
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > .wp-block-post-title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	min-height: calc(2 * 1.35em); line-height: 1.35 !important;
}
.wc-block-product > .pm-sold-by--wcfm,
.wc-block-product > .wcfmmp_sold_by_container { min-height: 92px; box-sizing: border-box; }
@media (max-width: 999px) {
	.wc-block-product > .pm-sold-by--wcfm,
	.wc-block-product > .wcfmmp_sold_by_container { min-height: 118px; }
	.wc-block-product .wcfmmp_sold_by_container .wcfmmp-store-rating,
	.wc-block-product .wcfmmp_sold_by_container .wcfm_vendor_badges { margin-top: 6px !important; }
}

/* Product cards: category label above the name */
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > p.pm-card-cat.pm-card-cat { order: 3; }
/* The name follows the category label directly */
.wc-block-product > .pm-card-cat + .pm-card-title { margin-top: 0 !important; }
.wc-block-product > .pm-card-cat {
	margin: 12px 0 4px !important;
	font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; opacity: 0.85;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wc-block-product > .pm-card-cat a { color: var(--wp--preset--color--muted); text-decoration: none; }
.wc-block-product > .pm-card-cat a:hover { color: var(--wp--preset--color--primary); }
.is-style-pm-soft .wc-block-product > .pm-card-cat { text-align: center; }

/* Product page: real social proof lines under the price */
.pm-proof { display: grid; gap: 6px; margin: 10px 0 4px; }
.pm-proof__line { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 14px; color: var(--wp--preset--color--muted); }
.pm-proof__line[hidden] { display: none; }
.pm-proof__line strong { color: var(--wp--preset--color--contrast); }
.pm-proof__line svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--wp--preset--color--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Phones: SEO text, then a Filters | Sort toolbar, then products (0.9.3) ---------- */
@media (max-width: 782px) {
	.pm-shop-body { display: flex !important; flex-direction: column; }
	.pm-shop-main { display: contents; }
	.pm-shop-main > .pm-shop-seo { order: 1; }
	.pm-shop-body > .pm-shop-sidebar { order: 2; display: flex; gap: 10px; align-items: stretch; }
	.pm-shop-main > :not(.pm-shop-seo) { order: 3; }
	.pm-shop-sidebar > * { flex: 1 1 0; min-width: 0; margin: 0 !important; }
	.pm-shop-sidebar .pm-filters .wc-block-product-filters__open-overlay {
		width: 100%; height: 46px; justify-content: center; box-sizing: border-box;
		border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--contrast);
		font-size: 14px; font-weight: 700; padding: 0 12px; white-space: nowrap;
	}
	.pm-shop-sidebar .pm-filters .wc-block-product-filters__open-overlay svg { color: var(--wp--preset--color--primary); }
	.pm-shop-sidebar > .wc-block-catalog-sorting select,
	.pm-shop-sidebar > .wp-block-woocommerce-catalog-sorting select {
		width: 100%; height: 46px; box-sizing: border-box; border-radius: var(--wp--custom--radius--pill);
		border: 1px solid var(--wp--preset--color--line); background-color: #fff; font-size: 14.5px; font-weight: 700;
		color: var(--wp--preset--color--contrast); padding: 0 34px 0 16px; min-width: 0 !important; max-width: 100%;
	}
	.pm-shop-sidebar > .wc-block-catalog-sorting { overflow: hidden; }
	.pm-shop-sidebar > .wc-block-catalog-sorting form { margin: 0; width: 100%; }
	.pm-shop-main > .wp-block-woocommerce-product-collection { margin-top: 0 !important; }
	.pm-shop-main > .wp-block-woocommerce-product-collection > .wc-block-product-template { margin-top: 4px !important; }
	.pm-catalog-bar:not(:has(> *)) { display: none !important; }
	.pm-catalog-bar { margin-bottom: 12px !important; }
}

/* ---------- Product cards: hover photo, wishlist heart, Quick view (0.9.13) ---------- */
.wc-block-product .wc-block-components-product-image { position: relative; }
.wc-block-product .wc-block-components-product-image > a { position: relative; display: block; }
.pm-hover-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
@media (hover: hover) and (min-width: 1000px) {
	.wc-block-product:hover .pm-hover-img { opacity: 1; }
}
.pm-card-tool.pm-wish {
	position: absolute; top: 10px; right: 10px; z-index: 3;
	width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	color: var(--wp--preset--color--primary); transition: transform 0.15s ease;
}
.pm-card-tool.pm-wish:hover { transform: scale(1.08); }
.pm-wish svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pm-wish.is-on { color: #d6455d; }
.pm-wish.is-on svg { fill: currentColor; }
/* The sale badge moves left when a heart is on the right */
.wc-block-product .wc-block-components-product-image:has(.pm-wish) .wc-block-components-product-sale-badge { left: 10px; right: auto !important; }
.pm-qv-btn {
	position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
	height: 38px; border: 0; border-radius: var(--wp--custom--radius--pill); cursor: pointer;
	background: rgba(255, 255, 255, 0.95); color: var(--wp--preset--color--primary); font: inherit; font-size: 13.5px; font-weight: 800;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.pm-qv-btn:hover { background: var(--wp--preset--color--primary); color: #fff; }
@media (hover: hover) and (min-width: 1000px) {
	.wc-block-product:hover .pm-qv-btn, .pm-qv-btn:focus-visible { opacity: 1; transform: none; }
}
@media (max-width: 999px), (hover: none) {
	/* Touch screens: a small eye button instead of a hover bar */
	.pm-qv-btn { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; width: 36px; height: 36px; padding: 0; font-size: 0; border-radius: 50%; }
	.pm-qv-btn::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
	.pm-card-tool.pm-wish { width: 34px; height: 34px; top: 8px; right: 8px; }
}
/* Heart on the product page */
.pm-wish--text { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--wp--preset--color--primary); }
.pm-wish--text .pm-wish__saved, .pm-wish--text.is-on .pm-wish__add { display: none; }
.pm-wish--text.is-on .pm-wish__saved { display: inline; }
/* Header heart */
.pm-wish-link { position: relative; display: inline-flex; align-items: center; color: #fff; margin-right: 18px; }
.pm-wish-link svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.pm-wish-link:hover { color: var(--wp--preset--color--accent); }
.pm-header-light .pm-wish-link { color: var(--wp--preset--color--contrast); }
.pm-wish-count { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; }
@media (max-width: 999px) {
	.pm-mainbar-row > .pm-actions > .pm-wish-link { display: inline-flex !important; margin-right: 6px; padding: 6px; }
	.pm-mainbar-row > .pm-actions > .pm-wish-link svg { width: 24px; height: 24px; }
}

/* ---------- Add to cart button style on cards ---------- */
.pm-card-btn-outline .wc-block-product .wc-block-components-product-button .wp-block-button__link {
	background: transparent !important; color: var(--wp--preset--color--primary) !important; box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
}
.pm-card-btn-outline .wc-block-product .wc-block-components-product-button .wp-block-button__link:hover { background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.pm-card-btn-link .wc-block-product .wc-block-components-product-button .wp-block-button__link {
	background: none !important; color: var(--wp--preset--color--primary) !important; padding: 4px 0 !important; min-height: 0 !important; width: auto !important;
	font-size: 14.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; box-shadow: none;
}
.pm-card-btn-link .wc-block-product .wc-block-components-product-button .wp-block-button__link::after { content: " →"; }
.pm-card-btn-link .wc-block-product .wc-block-components-product-button { align-items: flex-start !important; }
.pm-card-btn-icon .wc-block-product .wc-block-components-product-button { align-items: flex-end !important; }
.pm-card-btn-icon .wc-block-product .wc-block-components-product-button .wp-block-button__link {
	width: 46px !important; height: 46px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important;
	font-size: 0 !important; display: grid !important; place-items: center; align-self: flex-end;
}
.pm-card-btn-icon .wc-block-product .wc-block-components-product-button .wp-block-button__link::before {
	content: ""; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: url(../images/icons/cart-line.svg) center / contain no-repeat; mask: url(../images/icons/cart-line.svg) center / contain no-repeat;
}
.pm-card-btn-icon.pm-icon-cart-bag .wc-block-product .wc-block-components-product-button .wp-block-button__link::before { -webkit-mask-image: url(../images/icons/bag-line.svg); mask-image: url(../images/icons/bag-line.svg); }
.pm-card-btn-icon.pm-icon-cart-basket .wc-block-product .wc-block-components-product-button .wp-block-button__link::before { -webkit-mask-image: url(../images/icons/basket-line.svg); mask-image: url(../images/icons/basket-line.svg); }
.pm-card-btn-icon.pm-icon-cart-tote .wc-block-product .wc-block-components-product-button .wp-block-button__link::before { -webkit-mask-image: url(../images/icons/tote-line.svg); mask-image: url(../images/icons/tote-line.svg); }

/* ---------- Quick view pop-up ---------- */
.pm-qv { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 20px; background: rgba(10, 20, 18, 0.55); opacity: 0; transition: opacity 0.2s ease; }
.pm-qv.is-open { opacity: 1; }
.pm-qv__box { position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--wp--custom--radius--large); display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.pm-qv__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); font-size: 22px; line-height: 1; cursor: pointer; color: var(--wp--preset--color--contrast); }
.pm-qv__media { background: var(--wp--preset--color--surface); }
.pm-qv__main { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pm-qv__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pm-qv__thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.pm-qv__thumbs button.is-on { border-color: var(--wp--preset--color--primary); }
.pm-qv__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-qv__info { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.pm-qv__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0; }
.pm-qv__title { font-size: 1.45rem; line-height: 1.25; margin: 0; }
.pm-qv__price { font-size: 1.2rem; font-weight: 800; }
.pm-qv__price del { color: var(--wp--preset--color--muted); font-weight: 500; font-size: 0.85em; margin-right: 6px; }
.pm-qv__price ins { text-decoration: none; }
.pm-qv__desc { font-size: 14.5px; line-height: 1.65; color: var(--wp--preset--color--muted); }
.pm-qv__desc p { margin: 0 0 8px; }
.pm-qv__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.pm-qv__add { flex: 1 1 200px; height: 50px; border: 0; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--primary); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
.pm-qv__add[disabled] { opacity: 0.6; cursor: default; }
.pm-qv__more { font-weight: 700; color: var(--wp--preset--color--primary); }
.pm-qv__note { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--primary); }
.pm-qv__note a { color: inherit; }
.pm-qv__stock { color: var(--wp--preset--color--sale); font-weight: 700; margin: 0; }
html.pm-qv-open { overflow: hidden; }
@media (max-width: 699px) {
	.pm-qv { padding: 0; align-items: end; }
	.pm-qv__box { grid-template-columns: 1fr; border-radius: var(--wp--custom--radius--large) var(--wp--custom--radius--large) 0 0; max-height: 92vh; }
	.pm-qv__main { aspect-ratio: 4 / 3; }
	.pm-qv__info { padding: 18px 18px 22px; }
	.pm-qv__title { font-size: 1.2rem; }
}
html.pm-qv-open .pm-bottom-nav { display: none !important; }

/* ---------- Wishlist page ---------- */
.pm-wishlist-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pm-wishlist-loading, .pm-wishlist-empty { grid-column: 1 / -1; color: var(--wp--preset--color--muted); }
.pm-wishlist-empty a { display: inline-block; margin-top: 12px; }
.pm-wl-item { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); overflow: hidden; display: flex; flex-direction: column; }
.pm-wl-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.pm-wl-item__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pm-wl-item__title { font-weight: 800; font-size: 15px; color: var(--wp--preset--color--contrast); text-decoration: none; line-height: 1.35; }
.pm-wl-item__price { font-weight: 800; }
.pm-wl-item__price del { color: var(--wp--preset--color--muted); font-weight: 500; margin-right: 4px; }
.pm-wl-item__price ins { text-decoration: none; }
.pm-wl-item__row { display: flex; gap: 8px; margin-top: auto; align-items: center; }
.pm-wl-item__row .wp-element-button { flex: 1; text-align: center; padding: 10px 12px; font-size: 14px; border-radius: var(--wp--custom--radius--pill); }
.pm-wl-item__remove { border: 0; background: none; color: var(--wp--preset--color--muted); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 4px; }
@media (max-width: 599px) { .pm-wishlist-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pm-wl-item__row { flex-direction: column; align-items: stretch; } }

/* ---------- Product page: thumbnails on the left (computers) ---------- */
@media (min-width: 1000px) {
	.pm-gallery-left .woocommerce-product-gallery { display: grid !important; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
	.pm-gallery-left .woocommerce-product-gallery > .flex-viewport,
	.pm-gallery-left .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
	.pm-gallery-left .woocommerce-product-gallery > .flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
	.pm-gallery-left .woocommerce-product-gallery > .flex-control-thumbs li { width: 100% !important; float: none !important; margin: 0 !important; }
	.pm-gallery-left .woocommerce-product-gallery > .woocommerce-product-gallery__trigger { z-index: 5; }
}

/* ---------- Product page: accordion / all-open sections ---------- */
.pm-tabs-accordion .pm-product-tabs ul.wc-tabs,
.pm-tabs-sections .pm-product-tabs ul.wc-tabs { display: none !important; }
.pm-acc-head {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	padding: 18px 4px; margin: 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); background: none; cursor: pointer;
	font: inherit; font-size: 1.05rem; font-weight: 800; color: var(--wp--preset--color--contrast); text-align: left;
}
.pm-acc-head:first-of-type { border-top: 1px solid var(--wp--preset--color--line); }
.pm-acc-head::after { content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--wp--preset--color--primary); transition: transform 0.2s ease; }
.pm-acc-head[aria-expanded="true"]::after { transform: rotate(45deg); }
.pm-acc-head:hover { color: var(--wp--preset--color--primary); }
.pm-tabs-accordion .pm-product-tabs .woocommerce-Tabs-panel { padding: 16px 4px 24px !important; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.pm-tabs-sections .pm-product-tabs .woocommerce-Tabs-panel { display: block !important; padding: 0 0 28px !important; margin: 0 0 28px !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.pm-tabs-sections .pm-product-tabs .woocommerce-Tabs-panel:last-of-type { border-bottom: 0; }
.pm-sec-head { font-size: 1.3rem; margin: 0 0 14px; }
.pm-tabs-accordion .pm-product-tabs .pm-dup-title { display: none; }
/* Product page: “Save to wishlist” right under Add to cart */
.pm-summary > .pm-wish--text { order: 6; }
.pm-summary > .pm-wish--text { margin: 14px 0 6px !important; }
/* Phones: the Filters | Sort toolbar uses the full width */
@media (max-width: 782px) {
	.pm-shop-body > .pm-shop-sidebar { width: 100% !important; max-width: none !important; align-self: stretch; box-sizing: border-box; }
}
