/* Custom Design: shop, category and search pages. Cards like the home page's; filters and sort on one row. */

body.pf-design .site-main > .page-title, body.pf-design h1.woocommerce-products-header__title {
	font-size: 27px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 4px 0 8px; text-wrap: balance;
}
body.pf-design .term-description { color: #4d4842; font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; }
body.pf-design .pf-arch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
body.pf-design .pf-arch-count { font-size: 13px; color: var(--pf-muted); }
body.pf-design .pf-arch-offer {
	display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: #f3c25a;
	background: radial-gradient(120% 160% at 100% 0%, #3a2f1c 0%, #1b1916 60%, #141210 100%);
}
body.pf-design .pf-arch-offer b { color: #fff; font-weight: 600; }

/* The toolbar: FILTERS and the sort menu side by side (pf-archive.js puts them together) */
body.pf-design .pf-toolbar { display: flex; gap: 10px; align-items: stretch; margin: 0 0 16px; }
body.pf-design .pf-toolbar .mobile-filter, body.pf-design .shoptimizer-sorting .mobile-filter {
	position: static !important; flex: 1 1 0; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; height: 46px; margin: 0 !important;
	border: 1.5px solid var(--pf-ink) !important; border-radius: 14px; background: #fff !important; color: var(--pf-ink) !important; box-shadow: none !important;
	font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; width: auto !important; padding: 0 14px !important;
}
body.pf-design .mobile-filter svg { width: 18px !important; height: 18px !important; flex: none; }
@media (min-width: 993px) {
	body.pf-design .mobile-filter, body.pf-design .shoptimizer-sorting .mobile-filter { display: none !important; }
}
body.pf-design .shoptimizer-sorting { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; }
body.pf-design .shoptimizer-sorting .woocommerce-ordering { flex: 1 1 0; margin: 0 !important; }
body.pf-design .shoptimizer-sorting .woocommerce-ordering select.orderby {
	width: 100%; height: 46px; border-radius: 14px; border: 1px solid #ddd5c8; background-color: #fff; padding: 0 36px 0 14px; font-size: 14px; color: var(--pf-ink);
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
body.pf-design .shoptimizer-sorting .woocommerce-notices-wrapper:empty { display: none; }

/* Page numbers: pills; on phones only below the products */
body.pf-design .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; border: 0 !important; justify-content: center; margin: 0; }
body.pf-design .woocommerce-pagination ul.page-numbers li { border: 0 !important; margin: 0; float: none; }
body.pf-design .woocommerce-pagination .page-numbers a, body.pf-design .woocommerce-pagination .page-numbers span {
	min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px !important; display: grid; place-items: center; border: 1px solid var(--pf-line) !important;
	background: #fff; color: var(--pf-ink); font-size: 14px; font-weight: 500; box-shadow: none !important;
}
body.pf-design .woocommerce-pagination .page-numbers span.current { background: var(--pf-ink); color: #fff; border-color: var(--pf-ink) !important; }
body.pf-design .site-main > .woocommerce-pagination, body.pf-design .site-main > nav.woocommerce-pagination { margin: 26px 0 8px; }
@media (max-width: 992px) {
	body.pf-design .shoptimizer-sorting .woocommerce-pagination { display: none !important; }
}

/* Product cards */
body.pf-design #content ul.products li.product {
	background: #fff; border: 1px solid var(--pf-line); border-radius: 18px; padding: 8px 8px 12px !important; position: relative; display: flex; flex-direction: column;
	box-shadow: 0 1px 2px rgba(31,29,26,.04); transition: box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) {
	body.pf-design #content ul.products li.product:hover { box-shadow: var(--pf-shadow); transform: translateY(-2px); }
}
body.pf-design #content ul.products li.product .woocommerce-image__wrapper { border-radius: 12px; overflow: hidden; background: var(--pf-soft); margin: 0 0 10px; }
body.pf-design #content ul.products li.product .woocommerce-image__wrapper img { border-radius: 0; aspect-ratio: 1; object-fit: cover; width: 100%; }
body.pf-design #content ul.products li.product .onsale, body.pf-design #content ul.products li.product .pf-off-badge {
	position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--pf-ink) !important; color: #f3c25a !important; border: 0; border-radius: 999px;
	font-size: 10.5px; font-weight: 600; letter-spacing: .08em; padding: 4px 9px; line-height: 1.3; min-height: 0; min-width: 0; text-transform: uppercase;
}
body.pf-design #content ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) { top: 14px; right: 14px; }
body.pf-design #content ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a {
	width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
body.pf-design #content ul.products li.product .woocommerce-card__header { padding: 0 4px !important; display: flex; flex-direction: column; flex: 1; }
body.pf-design #content ul.products li.product .woocommerce-loop-product__title { margin: 0 0 4px; }
body.pf-design #content ul.products li.product .woocommerce-loop-product__title a {
	font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--pf-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.pf-design #content ul.products li.product .star-rating { font-size: 11px; margin: 2px 0 6px; color: var(--pf-gold); }
body.pf-design #content ul.products li.product .price { margin: 0; font-size: 12.5px; color: var(--pf-muted); }
body.pf-design #content ul.products li.product .price ins { text-decoration: none; color: var(--pf-ink); font-size: 15px; font-weight: 600; margin-right: 6px; background: none; }
body.pf-design #content ul.products li.product .price del { color: var(--pf-muted); opacity: 1; font-size: 12px; }
body.pf-design #content ul.products li.product .price small { display: none; }
body.pf-design #content ul.products li.product .pf-card-c { font-size: 11.5px; color: var(--pf-muted); margin-top: 4px; }

/* Quick Add (the swatch plugin's): a small button at the card's foot, opening with a smooth height */
body.pf-design #content ul.products li.product .cgkit-swatch-form { margin-top: auto; padding-top: 10px; }
body.pf-design #content ul.products li.product .cgkit-swatch-form details > summary {
	list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer;
	background: var(--pf-gold-soft); color: var(--pf-gold-deep); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
body.pf-design #content ul.products li.product .cgkit-swatch-form details > summary::-webkit-details-marker { display: none; }
body.pf-design #content ul.products li.product .cgkit-swatch-form details > summary::after { content: "+"; font-size: 15px; line-height: 1; }
body.pf-design #content ul.products li.product .cgkit-swatch-form details[open] > summary::after { content: "–"; }

/* Filters: the phone drawer and the computer sidebar as cards */
body.pf-design #secondary .widget { background: #fff; border: 1px solid var(--pf-line); border-radius: 18px; padding: 16px; margin: 0 0 12px; }
body.pf-design #secondary .widget-title, body.pf-design #secondary .widget h2 {
	font-size: 11.5px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--pf-gold-deep) !important; font-weight: 600; margin: 0 0 10px; border: 0; padding: 0;
}
body.pf-design #secondary .widget_layered_nav ul li {
	position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; border: 0; padding: 0 0 0 28px !important;
}
body.pf-design #secondary .widget_layered_nav ul li::before { top: 50% !important; left: 2px !important; transform: translateY(-50%); }
body.pf-design #secondary .widget_layered_nav ul li a { flex: 1; display: block; padding: 8px 0; font-size: 14px; line-height: 1.3; color: var(--pf-ink); }
body.pf-design #secondary .widget_layered_nav ul li .count { margin-left: auto; font-size: 11.5px; color: var(--pf-muted); background: var(--pf-soft); border-radius: 999px; padding: 1px 8px; }
body.pf-design #secondary .widget_layered_nav ul li.chosen a { font-weight: 600; }
body.pf-design #secondary .price_slider_wrapper .ui-slider .ui-slider-range, body.pf-design #secondary .price_slider_wrapper .ui-slider .ui-slider-handle { background: var(--pf-ink) !important; }
body.pf-design #secondary .price_slider_amount .button { border-radius: 12px; height: 40px; padding: 0 16px; background: #fff !important; color: var(--pf-ink) !important; border: 1.5px solid var(--pf-ink) !important; font-size: 12px; }
body.pf-design #secondary .widget_search input, body.pf-design #secondary .wp-block-search__input { height: 44px; border-radius: 12px; border: 1px solid #ddd5c8; }
@media (max-width: 992px) {
	body.pf-design.filter-open #secondary, body.pf-design #secondary { background: var(--pf-bg); }
	body.pf-design #content ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 -7px !important; }
	body.pf-design #content ul.products::before, body.pf-design #content ul.products::after { display: none !important; }
	body.pf-design #content ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
}
@media (min-width: 993px) {
	body.pf-design .site-main > .page-title, body.pf-design h1.woocommerce-products-header__title { font-size: 34px; }
	body.pf-design #secondary { padding-top: 4px; }
	body.pf-design .shoptimizer-sorting .woocommerce-ordering { flex: 0 0 260px; }
	body.pf-design .shoptimizer-sorting .woocommerce-pagination { margin-left: auto; }
}

/* Quick Add: one + / – sign (the theme's own line hidden) */
body.pf-design #content ul.products li.product .cgkit-swatch-form details > summary::before { display: none !important; }
/* The empty wishlist: one centred card across the grid */
body.pf-design ul.commercekit-wishlist-list li.wsl-no-products {
	grid-column: 1 / -1; background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-r); padding: 28px 20px !important; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
body.pf-design ul.commercekit-wishlist-list li.wsl-no-products h2 { font-size: 21px; font-weight: 600; margin: 6px 0 0; }
body.pf-design ul.commercekit-wishlist-list li.wsl-no-products p { color: var(--pf-muted); font-size: 14.5px; max-width: 34ch; margin: 0 auto 8px; }
body.pf-design #content ul.products li.product .cgkit-swatch-form details > summary { white-space: nowrap; }
body.pf-design ul.commercekit-wishlist-list li.wsl-no-products .button, body.pf-design .return-to-shop .button {
	display: inline-flex !important; align-items: center; justify-content: center; line-height: 1 !important; padding-top: 0 !important; padding-bottom: 0 !important;
}

/* The filters in use, under the page title (inc/archive.php): a chip each, and CLEAR ALL */
body.pf-design .pf-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
body.pf-design .pf-af-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 999px;
	background: var(--pf-ink); color: #fff !important; font-size: 13.5px; font-weight: 500; text-decoration: none !important;
}
body.pf-design .pf-af-chip svg { opacity: .8; flex: none; }
body.pf-design .pf-af-chip:active { transform: scale(.97); }
body.pf-design .pf-af-clear {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
	color: var(--pf-gold-deep) !important; text-decoration: underline !important; text-underline-offset: 4px;
}
body.pf-design .pf-active-filters.pf-af-side { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--pf-line); }

/* Quick Add: its + / – sits in the row after the words (the theme places it absolutely, over the button's edge) */
body.pf-design ul.products li.product .cgkit-swatch-form details > summary::after {
	position: static !important; transform: none !important; width: auto !important; height: auto !important; margin: 0 !important;
	background: none !important; border: 0 !important; top: auto !important; right: auto !important;
}
/* The wishlist page: the plugin's "1 items" count sat behind the cards; the page title is enough */
body.pf-design #commercekit-wishlist-shortcode .displaying-num { display: none !important; }

/* FILTERS: the icon beside the word, inside the button (the theme placed it loose on the page) */
body.pf-design .shoptimizer-sorting .mobile-filter { position: static !important; top: auto !important; left: auto !important; }
body.pf-design .shoptimizer-sorting .mobile-filter svg { position: static !important; transform: none !important; inset: auto !important; margin: 0 !important; display: block; }
/* The sort menu once, above the products (the theme repeats it under them; page numbers stay there) */
body.pf-design .shoptimizer-sorting.sorting-end .woocommerce-ordering { display: none !important; }
body.pf-design .shoptimizer-sorting.sorting-end:not(:has(.woocommerce-pagination)) { display: none !important; }

/* The filters in use: one compact row that scrolls sideways if it must; CLEAR ALL a small link at its end */
body.pf-design .pf-active-filters {
	flex-wrap: nowrap; justify-content: flex-start; gap: 6px; margin: -6px 0 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
body.pf-design .pf-active-filters::-webkit-scrollbar { display: none; }
body.pf-design .pf-af-chip { flex: none; min-height: 30px; padding: 0 8px 0 12px; font-size: 12.5px; gap: 4px; }
body.pf-design .pf-af-chip svg { width: 12px; height: 12px; }
body.pf-design .pf-af-clear { flex: none; min-height: 30px; padding: 0 4px; font-size: 11.5px; letter-spacing: .06em; }
body.pf-design .pf-active-filters.pf-af-side { flex-wrap: wrap; margin: 0 0 16px; overflow: visible; }

/* The heart on product cards drawn like the product page's: a white round button, an ink heart, gold once saved */
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a {
	display: grid !important; place-items: center; width: 34px !important; height: 34px !important; padding: 0 !important; border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.94) !important; box-shadow: 0 3px 10px rgba(31, 29, 26, 0.14) !important; position: relative;
}
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a em { display: none !important; }
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a::before {
	content: ""; width: 17px; height: 17px; display: block; background: var(--pf-ink);
	-webkit-mask: var(--pf-heart-o) center/contain no-repeat; mask: var(--pf-heart-o) center/contain no-repeat;
}
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a.commercekit-browse-wishlist::before,
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a.commercekit-remove-wishlist::before {
	background: var(--pf-gold); -webkit-mask: var(--pf-heart-f) center/contain no-repeat; mask: var(--pf-heart-f) center/contain no-repeat;
}
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a.processing::before { opacity: 0; }
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a.processing::after { top: 50% !important; left: 50% !important; margin: -9px 0 0 -9px !important; width: 18px !important; height: 18px !important; }
/* CLEAR ALL first in the row under the toolbar, so it is in view even when the chips scroll */
body.pf-design .pf-active-filters:not(.pf-af-side) .pf-af-clear { order: -1; padding: 0 8px 0 0; }
/* Computers: the sidebar is always in view next to the row, so its copy of the chips is not needed */
@media (min-width: 993px) { body.pf-design .pf-active-filters.pf-af-side { display: none !important; } }
/* The card heart: its empty label took a second row in the round button and pushed the heart up; the holder sized to the button */
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) { width: 34px !important; height: 34px !important; }
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a span { display: none !important; }
/* The product grid lines up with the toolbar above it (the theme pulled it 7px left without widening it, leaving a gap on the right) */
@media (max-width: 992px) {
	body.pf-design #content ul.products { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; }
}

/* CHOOSE OPTIONS on cards whose product asks its choices on its own page (pf-base.js): drawn like Quick Add */
body.pf-design ul.products li.product .pf-qa-link {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-top: auto; padding: 0 12px; border-radius: 10px;
	background: var(--pf-gold-soft); color: var(--pf-gold-deep) !important; font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
	text-transform: uppercase; text-decoration: none !important; white-space: nowrap;
}
body.pf-design ul.products li.product .pf-qa-link::after { content: "\203A"; font-size: 16px; line-height: 1; }
body.pf-design ul.products li.product .pf-qa-link:active { transform: scale(.97); }
body.pf-design ul.products li.product .cgkit-swatch-form details[hidden] { display: none !important; }
/* The spinner's own border counted in its size, so it turns on the button's centre */
body.pf-design ul.products li.product .commercekit-wishlist.mini:not(.no-wsl-update) a.processing::after { box-sizing: border-box !important; transform-origin: 50% 50% !important; }

/* Quick Add stays hidden from the first paint on cards that need the product page, or whose option rows are all
   hidden on cards: the same rule pf-base.js's quickAddCards() applies, which ran only after the scripts, so every
   card shrank 44 px on a slow phone (CLS 0.2, measured 24 Nov 2026). The final look is unchanged. */
ul.products li.product.pf-needs-page .cgkit-swatch-form details,
ul.products li.product .cgkit-swatch-form details:not(:has(table.variations tr:not(.cgkit-hide-loop))) { display: none !important; }
