.pnova-shop {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 80px;
	font-family: "Montserrat", system-ui, sans-serif;
}

.pnova-shop-breadcrumb {
	padding: 16px 0;
	color: #666;
	font-size: 13.5px;
}
.pnova-shop-breadcrumb a {
	color: #666;
}

.pnova-shop-title {
	margin: 0 0 24px;
	color: #000;
	font-size: 32px;
	font-weight: 700;
}

.pnova-shop-layout {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.pnova-shop-sidebar {
	flex: 0 0 220px;
	width: 220px;
}
.pnova-shop-widget {
	margin-bottom: 36px;
}
.pnova-shop-widget h3 {
	margin: 0 0 14px;
	color: #111;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}
.pnova-shop-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pnova-shop-widget ul a {
	color: #333;
	font-size: 13px;
	text-decoration: none;
}
.pnova-shop-widget ul a:hover {
	color: #123d29;
}
.pnova-shop-widget .wc-block-product-categories-list-item--active > a,
.pnova-shop-widget .current-cat > a {
	color: #123d29;
	font-weight: 700;
}
/* Price filter widget (classic jQuery UI slider) */
.pnova-shop-widget .widgettitle {
	display: none;
}
.pnova-shop-widget .price_slider_wrapper {
	margin-top: 4px;
}
.pnova-shop-widget .price_slider.ui-slider {
	position: relative;
	height: 4px;
	background: #e3e3df;
	border-radius: 2px;
	margin: 22px 7px 24px;
}
.pnova-shop-widget .ui-slider-range {
	position: absolute;
	height: 100%;
	background: #123d29 !important;
	border-radius: 2px;
}
.pnova-shop-widget .ui-slider-handle {
	position: absolute;
	top: 50%;
	width: 14px !important;
	height: 14px !important;
	margin-left: -7px;
	margin-top: -7px;
	background: #fff !important;
	border: 2px solid #123d29;
	border-radius: 50%;
	cursor: pointer;
	outline: none;
}
.pnova-shop-widget .price_slider_amount {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 10px;
}
.pnova-shop-widget .price_slider_amount .price_label {
	font-size: 13px;
	color: #5d5852;
}
.pnova-shop-widget .price_slider_amount button.button {
	background: #123d29;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 9px 18px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.pnova-shop-widget .price_slider_amount button.button:hover {
	background: #0e3522;
}

/* Top rated / best selling products widget */
.pnova-shop-widget .product_list_widget {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.pnova-shop-widget .product_list_widget li {
	display: flex;
	align-items: center;
	gap: 12px;
}
.pnova-shop-widget .product_list_widget li a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	text-decoration: none;
}
.pnova-shop-widget .product_list_widget img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}
.pnova-shop-widget .product_list_widget .product-title {
	display: block;
	flex: 1;
	min-width: 0;
	color: #211c18;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}
.pnova-shop-widget .product_list_widget .woocommerce-Price-amount {
	flex-shrink: 0;
	color: #5d5852;
	font-size: 12px;
	white-space: nowrap;
}

/* Tag cloud widget: hide the whole block when there are no tags yet */
.pnova-shop-widget:has(.tagcloud:empty) {
	display: none;
}
.pnova-shop-widget .tagcloud a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 6px 12px;
	border: 1px solid #e3e3df;
	border-radius: 20px;
	color: #333;
	font-size: 12px !important;
	text-decoration: none;
}
.pnova-shop-widget .tagcloud a:hover {
	border-color: #123d29;
	color: #123d29;
}

.pnova-shop-main {
	flex: 1;
	min-width: 0;
}

.pnova-shop-toolbar {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
	color: #111;
	font-size: 14px;
}
.pnova-shop-toolbar select {
	border: none;
	background: transparent;
	font-size: 14px;
	color: #111;
	cursor: pointer;
}

.pnova-shop-grid .wc-block-product-template,
.pnova-shop-grid ul.wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pnova-shop-grid .wc-block-product-template > li {
	list-style: none;
}

.pnova-shop-grid .wc-block-components-product-image,
.pnova-shop-grid .wp-block-woocommerce-product-image {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f2;
	border-radius: 4px;
	margin-bottom: 12px;
}

/* Sale badge: percentage bubble, top-left, matching production reference */
.pnova-shop-grid .wc-block-components-product-sale-badge,
.onsale,
.related.products .onsale {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
	bottom: auto !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #b44a2a !important;
	color: #fff !important;
	border-radius: 3px !important;
	padding: 3px 6px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	text-transform: none;
	z-index: 2;
}
.pnova-shop-grid .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pnova-shop-grid .pnova-shop-card-cat,
.pnova-shop-grid .wp-block-post-terms {
	display: block;
	margin-bottom: 4px;
	color: #444;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}
.pnova-shop-grid .pnova-shop-card-cat a,
.pnova-shop-grid .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.pnova-shop-grid .wp-block-post-title {
	margin: 0 0 6px;
	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.pnova-shop-grid .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.pnova-shop-grid .wc-block-components-product-price,
.pnova-shop-grid .price {
	color: #111;
	font-size: 14px;
	font-weight: 600;
}

.pnova-shop-grid .wp-block-woocommerce-product-button {
	margin-top: 12px;
}
/* Desktop (real pointer): hide the button until the card is hovered, like the production reference.
   Touch devices keep it inline below the price (no hover state to reveal it). */
@media (hover: hover) and (pointer: fine) {
	.pnova-shop-grid .wc-block-product-template > li {
		position: relative;
	}
	.pnova-shop-grid .wp-block-woocommerce-product-button {
		position: absolute;
		left: 15px;
		right: 15px;
		bottom: 0;
		margin-top: 0;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.15s ease;
	}
	.pnova-shop-grid .wc-block-product-template > li:hover .wp-block-woocommerce-product-button,
	.pnova-shop-grid .wc-block-product-template > li:focus-within .wp-block-woocommerce-product-button {
		opacity: 1;
		pointer-events: auto;
	}
}
.pnova-shop-grid .wp-block-button__link,
.pnova-shop-grid .add_to_cart_button,
.pnova-shop-grid .wc-block-components-product-button button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #211c18 !important;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	padding: 12px 16px !important;
	font-size: 13px !important;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
.pnova-shop-grid .wp-block-button__link:hover,
.pnova-shop-grid .add_to_cart_button:hover,
.pnova-shop-grid .wc-block-components-product-button button:hover {
	background: #123d29 !important;
}

.pnova-shop-pagination {
	margin-top: 48px;
	gap: 10px;
	font-size: 14px;
}
.pnova-shop-pagination a,
.pnova-shop-pagination span {
	color: #111;
	text-decoration: none;
}
.pnova-shop-pagination .page-numbers.current {
	font-weight: 700;
	color: #123d29;
}

@media (max-width: 900px) {
	.pnova-shop-layout {
		flex-direction: column;
	}
	.pnova-shop-sidebar {
		width: 100%;
		flex: none;
	}
	.pnova-shop-grid .wc-block-product-template,
	.pnova-shop-grid ul.wc-block-product-template {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.pnova-shop-grid .wc-block-product-template,
	.pnova-shop-grid ul.wc-block-product-template {
		grid-template-columns: 1fr;
	}
}
