/* =========================================================================
   Product listing (category / search results)
   Reference: legacy Vise PLP (html 8px rem) — breadcrumb 11px, title 20/24 → 28/32 ≥1280,
   sort select 32px, facets 25% column ≥ 992px, list items with 3 columns
   (image 20% / info fluid / price 192px), 1px #e0e6ef separators.
   ========================================================================= */

.shop-product-list { padding-top: 16px; padding-bottom: 32px; }
body.woocommerce.archive .bb-main,
body.woocommerce.search .bb-main { background: #f3f5f8; }

/* Sub-category circle carousel (mc-carousel-navigation) */
.plp-subcats { position: relative; margin: 0 0 24px; padding: 0 0 10px; }
.plp-subcats__list { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.plp-subcats__list::-webkit-scrollbar { display: none; }
.plp-subcat { flex: 0 0 auto; width: 112px; scroll-snap-align: start; }
@media (min-width: 1200px) { .plp-subcat { width: 124px; } }
.plp-subcat__link { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; width: 100%; color: var(--colorFgDefault); }
.plp-subcat__img { display: flex; align-items: center; justify-content: center; width: 98px; height: 98px; margin: 8px 0 12px; }
@media (min-width: 1200px) { .plp-subcat__img { width: 112px; height: 112px; } }
@media (min-width: 1366px) { .plp-subcat__img { width: 126px; height: 126px; } }
.plp-subcat__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 9999px; }
.plp-subcat__label { font-size: 14px; line-height: 18px; margin-bottom: 8px; }
.plp-subcat__link:hover .plp-subcat__label { text-decoration: underline; }
.plp-subcats .bb-carousel__arrow { top: 50%; }

/* Header: title + count, filter + sort */
.plp-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 8px 0 16px; border-bottom: 1px solid #e0e6ef; margin-bottom: 16px; }
.plp-header__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plp-title { margin: 0; font-size: 20px; line-height: 24px; font-weight: 500; color: var(--colorFgDefault); }
@media (min-width: 960px) { .plp-title { font-size: 24px; line-height: 28px; } }
@media (min-width: 1280px) { .plp-title { font-size: 28px; line-height: 32px; } }
.plp-count { font-size: 13px; line-height: 16px; color: var(--colorFgDefaultSubdued); white-space: nowrap; }
.plp-header__tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.plp-filter-btn { display: none; align-items: center; gap: 6px; }
.plp-sort { display: flex; align-items: center; gap: 8px; }
.plp-sort__label { font-size: 13px; line-height: 16px; white-space: nowrap; }
.plp-sort__select { height: 32px; min-width: 164px; border: 1px solid #c5cbd5; border-radius: 4px; padding: 0 32px 0 8px; font: inherit; font-size: 13px; color: var(--colorFgDefault); background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d252c'%3E%3Cpath d='M12 15.4 5.3 8.7l1.4-1.4 5.3 5.3 5.3-5.3 1.4 1.4-6.7 6.7z'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; appearance: none; -webkit-appearance: none; }

/* Body: facets + results */
.plp-body { display: flex; align-items: flex-start; gap: 24px; }
.plp-facets { flex: 0 0 25%; max-width: 288px; }
.plp-results { flex: 1 1 0%; min-width: 0; }
.plp-facets__head { display: none; }
.facet { border-bottom: 1px solid #e6ebf2; padding: 6px 0 16px; margin: 0 0 6px; }
.facet__title { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 14px 0 10px; font-size: 15px; line-height: 18px; font-weight: 700; color: #1d252c; }
.facet__title::-webkit-details-marker { display: none; }
.facet__caret { transition: transform .2s; }
.facet[open] .facet__caret { transform: rotate(180deg); }
.facet__list { list-style: none; margin: 0; padding: 0 0 4px; }
.facet__list li { padding: 7px 0; font-size: 13px; line-height: 18px; }
.facet__link { color: var(--colorFgPrimary); text-decoration: none; }
.facet__link:hover { text-decoration: underline; }
.facet__count { color: var(--colorFgDefaultSubdued); }
.facet__check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.facet__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #0046be; flex-shrink: 0; }
.facet__check .bb-stars .bb-icon { width: 12px; height: 12px; }

.plp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plp-item { border: 0; padding: 0; }
.sku-item {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr) 168px;
	gap: 20px;
	align-items: center;
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 16px;
	padding: 16px;
}
.sku-item__image { position: relative; background: #f6f7f9; border-radius: 12px; }
.sku-item__image .image-link { display: block; }
.sku-item__image .product-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: 10px; box-sizing: border-box; }
.sku-item__save { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 9999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--colorFgDefault); }
.sku-item__save[aria-pressed="true"] { color: #bb0628; }
.sku-item__info { min-width: 0; }
.sku-title { margin: 0 0 6px; font-size: 16px; line-height: 22px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sku-title a { color: #1d252c; }
.sku-title a:hover { color: #0046be; }
.sku-brand { margin: 0 0 8px; font-size: 13px; line-height: 16px; color: #5c6770; }
.sku-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; }
.sku-rating__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sku-rating__link { color: #5c6770; text-decoration: none; }
.sku-rating__none { color: #5c6770; }
.fresh-badge { display: inline-flex; align-items: center; margin-top: 8px; padding: 3px 8px; border-radius: 999px; background: #e8f6ee; color: #0b6b32; font-size: 12px; line-height: 16px; font-weight: 700; }
.sku-item__buy { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.priceView-price { font-size: 22px; line-height: 26px; font-weight: 700; color: #1d252c; }
.priceView-was { margin-top: 2px; font-size: 13px; line-height: 16px; color: #6b7280; }
.priceView-was-price { text-decoration: line-through; }
.priceView-savings { margin-top: 2px; font-size: 13px; line-height: 16px; font-weight: 600; color: #318000; }
.sku-item__buy .c-button { height: 44px; border-radius: 8px; font-size: 15px; font-weight: 700; }

/* Pagination */
.plp-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 24px; }
.plp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 4px; color: var(--colorFgPrimary); text-decoration: none; font-size: 15px; }
.plp-pagination .page-numbers.current { background: #0046be; color: #fff; }
.plp-pagination a.page-numbers:hover { background: #f0f2f4; }
.plp-empty { padding: 48px 0; text-align: center; }
.plp-empty__title { font-size: 20px; line-height: 24px; margin: 0 0 8px; }

/* Facets overlay (mobile) */
.plp-facets-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 599; }

/* ---------- < 992px ---------- */
@media (max-width: 991px) {
	.plp-header { flex-direction: column; align-items: flex-start; }
	.plp-header__tools { width: 100%; justify-content: space-between; }
	.plp-filter-btn { display: inline-flex; height: 40px; border-radius: 8px; padding: 0 14px; }
	.plp-sort__label { display: none; }
	.plp-sort { flex: 1; }
	.plp-sort__select { width: 100%; height: 40px; border-radius: 8px; }
	.plp-facets { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 90vw); max-width: none; background: #fff; z-index: 600; transform: translateX(100%); transition: transform .2s ease-out; overflow-y: auto; padding: 0 20px 24px; box-shadow: -8px 0 24px rgba(0,0,0,.12); }
	.plp-facets.is-open { transform: translateX(0); }
	.plp-facets__head { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid #e6ebf2; margin-bottom: 8px; position: sticky; top: 0; background: #fff; }
	.plp-facets__title { font-size: 17px; font-weight: 700; }
	.plp-facets__close { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--colorFgDefault); }
	body.facets-open { overflow: hidden; }
	.sku-item { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; }
	.sku-item__image { grid-row: 1 / span 2; }
	.sku-item__info { display: flex; flex-direction: column; gap: 2px; }
	.sku-title { font-size: 14px; line-height: 18px; margin-bottom: 2px; }
	.sku-brand { margin-bottom: 2px; }
	.sku-item__buy { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
	.sku-item__buy .c-button { flex: 0 0 auto; width: auto; min-width: 0; height: 32px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
	.priceView-price { font-size: 18px; line-height: 22px; }
	.priceView-was, .priceView-savings { display: inline; margin: 0 6px 0 0; }
}
@media (max-width: 639px) {
	.plp-list { gap: 8px; }
}
