/* POOQ listing v1.2.0: product cards (every grid using layout 175), filter row and phone grid on the shop grid (.pooq-products). */

/* Filter bar and sort control on one row */
.wpb_wrapper:has(> .pooq-shop-filter) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 12px;
}
.wpb_wrapper:has(> .pooq-shop-filter) > .pooq-shop-filter {
	flex: 1 1 640px; /* five pills stay on one line; the sort control joins the row only on wide screens */
	width: auto;
	min-width: 0;
	margin-bottom: 12px !important;
}
.wpb_wrapper:has(> .pooq-shop-filter) > .pooq-shop-filter.state_mobile {
	flex: 0 0 auto;
}
.wpb_wrapper:has(> .pooq-shop-filter) > .product_ordering {
	flex: 0 0 auto;
	width: auto;
	margin: 0 0 12px auto;
}
.wpb_wrapper:has(> .pooq-shop-filter) > .pooq-products {
	flex: 0 0 100%;
	width: 100%;
}

/* Filter controls (v1.1.0): white pills with a hairline border, brand-brown when a value is set, soft dropdown panel.
   Impreza draws the dropdown titles, the selects and the price slider from the --inputs-* custom properties
   (common/css/elements/grid-filter.css), so the shape is set by redefining those properties on the filter itself.
   Colours match the header pill (25-pooq-header): ink #2b1d14, hairline rgba(43,29,20,.16), brand #876333. */
.pooq-shop-filter,
.wpb_wrapper:has(> .pooq-shop-filter) > .product_ordering {
	--inputs-font-family: inherit;
	--inputs-font-size: 14px;
	--inputs-font-weight: 500;
	--inputs-height: 40px;
	--inputs-padding: 16px;
	--inputs-border-width: 1px;
	--inputs-border-radius: 999px;
	--inputs-border-color: rgba(43, 29, 20, 0.16);
	--inputs-background: #fff;
	--inputs-text-color: #2b1d14;
	--inputs-box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05);
	--inputs-focus-border-color: #876333;
	--inputs-focus-background: #fff;
	--inputs-focus-text-color: #2b1d14;
	--inputs-focus-box-shadow: 0 0 0 3px rgba(135, 99, 51, 0.16);
	--items-gap: 8px;
}
.pooq-shop-filter.state_desktop .w-filter-item-title {
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.no-touch .pooq-shop-filter.state_desktop .w-filter-item:not(.has_value) .w-filter-item-title:hover {
	border-color: rgba(43, 29, 20, 0.36);
	box-shadow: 0 2px 8px rgba(60, 40, 20, 0.08);
}
.pooq-shop-filter.state_desktop .w-filter-item.dropped .w-filter-item-title {
	border-color: #876333;
	box-shadow: 0 0 0 3px rgba(135, 99, 51, 0.16);
}
/* A pill with a value set is filled brand brown; its "x" reset sits where the chevron was */
.w-filter.pooq-shop-filter.state_desktop.mod_dropdown .has_value .w-filter-item-title {
	background: #876333;
	border-color: #876333;
	color: #fff;
	box-shadow: none;
}
.w-filter.pooq-shop-filter.state_desktop.mod_dropdown .has_value .w-filter-item-reset {
	color: #fff;
	font-size: 12px;
	opacity: 0.9;
}
.no-touch .w-filter.pooq-shop-filter.state_desktop.mod_dropdown .has_value .w-filter-item-reset:hover {
	opacity: 1;
}
/* Chevron instead of the theme's solid triangle */
.w-filter.pooq-shop-filter.state_desktop.mod_dropdown .w-filter-item-title:after {
	top: 50%;
	inset-inline-end: 17px;
	width: 7px;
	height: 7px;
	margin: -6px 0 0;
	border: 0 solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	border-radius: 0 0 1px 0;
	opacity: 0.7;
	transform: rotate(45deg);
	transition: transform 0.2s ease, margin 0.2s ease;
}
.w-filter.pooq-shop-filter.state_desktop.mod_dropdown .w-filter-item.dropped .w-filter-item-title:after {
	margin-top: -2px;
	transform: rotate(225deg);
}
/* Dropdown panel */
.w-filter.pooq-shop-filter.state_desktop.mod_dropdown .w-filter-item-content {
	margin-top: 6px;
	min-width: 250px;
	padding: 10px;
	border: 1px solid rgba(43, 29, 20, 0.1);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(60, 40, 20, 0.16);
	font-size: 14px;
	/* the select inside the panel is a rounded field, not a pill */
	--inputs-border-radius: 10px;
	--inputs-background: #faf8f5;
}
.pooq-shop-filter .w-filter-item.type_dropdown .w-filter-item-values > select {
	width: 100%;
	cursor: pointer;
}
.pooq-shop-filter .w-filter-item.type_dropdown .w-filter-item-values:after {
	opacity: 0.6;
}
/* Price slider in brand brown */
.pooq-shop-filter .w-filter-item.type_range_slider .w-filter-item-content {
	padding: 18px 16px 12px;
}
.pooq-shop-filter .w-filter-item.type_range_slider .ui-slider {
	color: #876333;
	--inputs-border-color: rgba(43, 29, 20, 0.16);
	--inputs-background: #ece6df;
	--inputs-checkbox-size: 18px;
}
.pooq-shop-filter .w-filter-item.type_range_slider .ui-slider-handle {
	border-color: #876333;
	background: #fff;
	box-shadow: 0 1px 4px rgba(60, 40, 20, 0.2);
	cursor: grab;
}
.pooq-shop-filter .w-filter-item-slider-result {
	font-size: 13px;
	color: #7a6a5a;
	margin-top: 10px;
}
.pooq-shop-filter .w-filter-item.has_value .w-filter-item-slider-result {
	color: #2b1d14;
}
/* Sort control: the same pill, with a chevron */
.wpb_wrapper:has(> .pooq-shop-filter) > .product_ordering select {
	width: auto;
	min-width: 250px;
	max-width: 100%;
	padding-inline-end: 40px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232b1d14' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='.7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 10px 6px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.no-touch .wpb_wrapper:has(> .pooq-shop-filter) > .product_ordering select:hover {
	border-color: rgba(43, 29, 20, 0.36);
	box-shadow: 0 2px 8px rgba(60, 40, 20, 0.08);
}
/* Under 1024px the filter collapses to the "Φίλτρα" opener: same pill */
.pooq-shop-filter.state_mobile .w-filter-opener {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 1px solid rgba(43, 29, 20, 0.16);
	border-radius: 999px;
	background: #fff;
	color: #2b1d14;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05);
}
.pooq-shop-filter.state_mobile .w-filter-opener i {
	color: #876333;
	margin-right: 0.5em;
}

/* Card */
.layout_175 .w-grid-item-h {
	height: 100%;
}
.layout_175 .usg_vwrapper_1 {
	height: 100%;
	box-shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 0 0 1px rgba(135, 99, 51, 0.10);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.layout_175 .w-grid-item:hover .usg_vwrapper_1 {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(60, 40, 20, 0.13), 0 0 0 1px rgba(135, 99, 51, 0.14);
}
.layout_175 .post_image {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.layout_175 .post_image img {
	transition: transform 0.35s ease;
}
.layout_175 .w-grid-item:hover .post_image img {
	transform: scale(1.04);
}
.layout_175 .post_title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
	min-height: 2.6em;
}
.layout_175 .post_taxonomy {
	font-size: 12px;
	line-height: 1.3;
	color: #7a6a5a;
	min-height: 1.3em;
}
.layout_175 .post_taxonomy a,
.layout_175 .post_taxonomy b {
	color: inherit;
	font-weight: 400;
}
.layout_175 .product_field.price {
	font-size: 1.05rem;
}
.layout_175 .product_field.price del {
	font-size: 0.85rem;
	opacity: 0.6;
	margin-right: 0.35em;
}

/* "Νέο" badge (class added by the mu-plugin for products under 30 days old) */
.layout_175 .pooq-new .post_image::after {
	content: "Νέο";
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	background: #2f6b3a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.45em 0.7em;
	border-radius: 4px;
	pointer-events: none;
}
.layout_175 .pooq-new:has(.sale_badge) .post_image::after {
	top: 30px;
}
.layout_175 .product_field.sale_badge {
	z-index: 2;
	line-height: 1;
	padding-top: 0.45em;
	padding-bottom: 0.45em;
}

/* Add to cart: desktop reveals it on hover or keyboard focus */
@media (hover: hover) and (min-width: 1025px) {
	.layout_175 .usg_add_to_cart_1 {
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	.layout_175 .w-grid-item:hover .usg_add_to_cart_1,
	.layout_175 .w-grid-item:focus-within .usg_add_to_cart_1,
	.layout_175 .usg_add_to_cart_1:has(.added),
	.layout_175 .usg_add_to_cart_1:has(.loading) {
		opacity: 1;
		transform: none;
	}
}

/* Load more button */
.pooq-products .g-loadmore {
	margin-top: 1.5rem;
}

/* Phone: two columns, tighter card */
@media (max-width: 600px) {
	.layout_175 .usg_vwrapper_1 {
		padding: 8px 8px 10px !important;
	}
	/* the theme prints ".layout_175 .usg_post_title_1 {font-size !important}" after this sheet, so out-specify it */
	.layout_175 .w-grid-item .post_title.usg_post_title_1 {
		font-size: 0.85rem !important;
		margin-top: 0.5rem !important;
		-webkit-line-clamp: 3;
		min-height: 3.9em;
	}
	.layout_175 .post_taxonomy {
		font-size: 11px;
	}
	.layout_175 .product_field.price {
		font-size: 0.95rem;
	}
	.layout_175 .usg_add_to_cart_1 .button {
		font-size: 0.75rem !important;
		padding: 0.6em 0.8em !important;
		width: 100% !important;
		white-space: nowrap !important;
	}
	.layout_175 .usg_add_to_favs_1 {
		top: 6px !important;
		right: 6px !important;
	}
	.layout_175 .usg_add_to_favs_1 .w-btn {
		font-size: 0.8rem;
	}
	.layout_175 .product_field.sale_badge {
		left: 6px !important;
		top: 6px !important;
	}
	.layout_175 .pooq-new .post_image::after {
		font-size: 10px;
	}
	/* v1.2.0: "Φίλτρα" and the sort pill share one row. The column is 279px on a 375px phone; the old 50vw cap cut
	   the label off and the pair wrapped onto two rows. The sort pill takes the rest of the row instead. */
	.wpb_wrapper:has(> .pooq-shop-filter) > .product_ordering {
		flex: 1 1 auto;
		min-width: 0;
	}
	.wpb_wrapper:has(> .pooq-shop-filter) > .product_ordering select {
		width: 100%;
		min-width: 0;
		max-width: none;
		font-size: 13px;
		padding-inline-start: 14px;
		padding-inline-end: 32px;
		background-position: right 12px center;
		text-overflow: ellipsis;
	}
}

/* Out-of-stock card button (v1.2.0): WooCommerce links to the product with the theme's grey-blue secondary colours.
   Same secondary family as the cart add-on button (20-pooq-device-match dm.css): cream, heading ink, brown hairline.
   The hairline is an inset shadow so the button keeps exactly the size of the "Στο καλάθι" buttons beside it. */
.layout_175 .usg_add_to_cart_1 a.button:not(.add_to_cart_button) {
	background: #F3EFEA !important;
	color: #35415B !important;
	box-shadow: inset 0 0 0 1px rgba(135, 99, 51, 0.45) !important;
}
.no-touch .layout_175 .usg_add_to_cart_1 a.button:not(.add_to_cart_button):hover,
.layout_175 .usg_add_to_cart_1 a.button:not(.add_to_cart_button):focus-visible {
	background: #FFFFFF !important;
	color: #876333 !important;
	box-shadow: inset 0 0 0 1px #876333 !important;
}
