/* ZelosShop: σελίδα καταστήματος και κατηγοριών σε χρώματα Zelos. */
body.post-type-archive-product,
body.tax-product_cat {
	--zs-green: #53775a;
	--zs-deep: #385641;
	--zs-cream: #f6f1ea;
	--zs-paper: #fffdf8;
	--zs-ink: #1f2a1f;
	--zs-muted: #6a6a62;
	--zs-line: #e9e2b5;
	--zs-yellow: #fbff87;
	--zs-shadow: 0 8px 24px rgba(40, 60, 35, .08);
}

.post-type-archive-product .bwp-main,
.tax-product_cat .bwp-main {
	background: var(--zs-cream);
}


/* Οι κατηγορίες πάνω (καρουζέλ με κυκλάκια) φεύγουν εντελώς· οι κατηγορίες μένουν στα φίλτρα. */
.post-type-archive-product .page-title,
.tax-product_cat .woocommerce-product-subcategorie-content {
	display: none !important;
}

.post-type-archive-product .main-archive-product,
.tax-product_cat .main-archive-product {
	padding-top: 40px;
}

/* Πλαϊνή στήλη: φίλτρα πρώτα, μετά «είδατε πρόσφατα» */
.main-archive-product .bwp-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#bwp_ajax_filte-1 { order: 1; }
#woocommerce_recently_viewed_products-3 { order: 2; }
#woocommerce_products-2,
#bwp_feature_product_widget-1,
.bwp-filter-brand,
.bwp-filter-color {
	display: none !important;
}

.main-archive-product .bwp-sidebar aside.widget {
	margin: 0;
	padding: 22px 24px;
	background: #fffdf8;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(40, 60, 35, .08);
}

.main-archive-product .bwp-sidebar aside.widget h3,
.main-archive-product .bwp-sidebar aside.widget .widget-title {
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 1px solid #e9e2b5;
	font: 600 15px/1.3 var(--zs-head, 'Inter', sans-serif) !important;
	color: #1f2a1f;
	text-transform: none;
	letter-spacing: 0;
}

.bwp-filter { margin-bottom: 22px; }

.filter_category_product .item-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 4px;
	padding: 8px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.filter_category_product .item-category .name {
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	color: #1f2a1f;
}

.filter_category_product .item-category .count {
	min-width: 28px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f6f1ea;
	color: #6a6a62;
	font-size: 12px;
	text-align: center;
}

.filter_category_product .item-category:hover,
.filter_category_product .item-category.active,
.filter_category_product .item-category.checked {
	background: #53775a;
}

.filter_category_product .item-category:hover .name,
.filter_category_product .item-category.active .name,
.filter_category_product .item-category.checked .name {
	color: #fff;
}

/* Τιμή */
.bwp-filter-price .ui-slider {
	height: 6px;
	margin: 18px 10px 16px;
	border: 0;
	border-radius: 6px;
	background: #e9e2b5;
}

.bwp-filter-price .ui-slider-range {
	border-radius: 6px;
	background: #53775a;
}

.bwp-filter-price .ui-slider-handle {
	top: -8px;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border: 3px solid #53775a;
	border-radius: 50%;
	background: #fffdf8;
	box-shadow: 0 2px 6px rgba(40, 60, 35, .25);
}

.bwp-filter-price .price-input {
	display: flex;
	justify-content: center;
	gap: 4px;
	font-size: 14px;
	color: #6a6a62;
}

.bwp-filter-price .price-input > span:first-child { display: none; }

.zs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.zs-chip {
	padding: 7px 14px;
	border: 1px solid #e9e2b5;
	border-radius: 999px;
	background: #f6f1ea;
	color: #1f2a1f;
	font: 500 13px/1 var(--zs-head, 'Inter', sans-serif);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.zs-chip:hover,
.zs-chip.is-active {
	background: #53775a;
	border-color: #53775a;
	color: #fff;
}

.zs-chip:focus-visible { outline: 3px solid #fbff87; outline-offset: 2px; }

/* Μπάρα εργαλείων */
.post-type-archive-product .bwp-top-bar,
.tax-product_cat .bwp-top-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 28px;
	padding: 12px 18px;
	background: #fffdf8;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(40, 60, 35, .08);
}

.bwp-top-bar .woocommerce-result-count {
	margin: 0 auto 0 0;
	font-size: 14px;
	color: #6a6a62;
}

.bwp-top-bar .woocommerce-ordering .pwb-dropdown-toggle,
.bwp-top-bar .woocommerce-ordering .dropdown-toggle {
	padding: 9px 18px;
	border: 1px solid #e9e2b5;
	border-radius: 999px;
	background: #fffdf8;
	font: 500 14px/1.2 var(--zs-head, 'Inter', sans-serif);
	color: #1f2a1f;
}

/* Κάρτες προϊόντων */
.products-list.grid > li.product,
.products.products-list > li {
	margin-bottom: 28px;
}

.products-entry {
	overflow: hidden;
	background: #fffdf8;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(40, 60, 35, .08);
	transition: transform .2s ease, box-shadow .2s ease;
}

.products-entry:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(40, 60, 35, .14);
}

.products-entry .products-thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.products-entry .products-content {
	padding: 16px 18px 20px;
	text-align: center;
}

.products-entry .product-title,
.products-entry .product-title a {
	margin: 0 0 6px;
	font: 600 16px/1.35 var(--zs-head, 'Inter', sans-serif) !important;
	color: #1f2a1f;
}

.products-entry .price,
.products-entry .price .amount {
	font: 600 16px/1.2 var(--zs-head, 'Inter', sans-serif) !important;
	color: #385641;
}

/* Η ετικέτα «Εξαντλημένο» ζει πλέον στο badges.css (ισχύει σε όλο το site). */

.products-entry .product-button .button {
	border-radius: 999px;
	background: #53775a;
	color: #fff;
	border-color: #53775a;
}

.products-entry .product-button .button:hover {
	background: #385641;
	color: #fbff87;
}

@media (min-width: 1200px) {
	.main-archive-product .products-list.grid > li {
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
	}
}

@media (max-width: 767px) {
	.post-type-archive-product .bwp-top-bar { padding: 10px 12px; }
}

/* «Προϊόντα που είδατε πρόσφατα» ως slider: δεν μεγαλώνει προς τα κάτω όσο μαζεύονται προϊόντα. */
.widget_recently_viewed_products {
	container-type: inline-size;
}

.widget_recently_viewed_products .zs-slider {
	--zs-n: 1;
	position: relative;
}

@container (min-width: 420px) {
	.widget_recently_viewed_products .zs-slider { --zs-n: 2; }
}

@container (min-width: 640px) {
	.widget_recently_viewed_products .zs-slider { --zs-n: 3; }
}

.widget_recently_viewed_products ul.product_list_widget {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.widget_recently_viewed_products ul.product_list_widget::-webkit-scrollbar {
	display: none;
}

.widget_recently_viewed_products ul.product_list_widget > li {
	flex: 0 0 calc(100% / var(--zs-n, 1));
	box-sizing: border-box;
	margin: 0;
	padding: 0 6px;
	border: 0;
	list-style: none;
	text-align: center;
	scroll-snap-align: start;
}

.widget_recently_viewed_products ul.product_list_widget > li > a {
	display: block;
	text-decoration: none;
}

.widget_recently_viewed_products ul.product_list_widget img {
	display: block;
	float: none;
	width: 100%;
	height: auto;
	margin: 0;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
}

.widget_recently_viewed_products ul.product_list_widget .product-title {
	display: -webkit-box;
	margin: 12px 4px 4px;
	overflow: hidden;
	font: 600 14px/1.35 var(--zs-head, 'Inter', sans-serif);
	color: #1f2a1f;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.widget_recently_viewed_products ul.product_list_widget .amount {
	display: block;
	font: 600 15px/1.3 var(--zs-head, 'Inter', sans-serif);
	color: #385641;
}

.zs-slider-btn {
	position: absolute;
	top: calc(100cqw / var(--zs-n, 1) / 2 - 18px);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #e9e2b5;
	border-radius: 50%;
	background: rgba(255, 253, 248, .94);
	color: #385641;
	box-shadow: 0 4px 12px rgba(40, 60, 35, .18);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.zs-slider-btn.is-prev { left: 12px; }
.zs-slider-btn.is-next { right: 12px; }

.zs-slider-btn::before {
	content: '';
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	margin-right: 3px;
}

.zs-slider-btn.is-prev::before {
	transform: rotate(-135deg);
	margin: 0 0 0 3px;
}

.zs-slider-btn:hover:not(:disabled) {
	background: #53775a;
	border-color: #53775a;
	color: #fff;
}

.zs-slider-btn:focus-visible {
	outline: 3px solid #fbff87;
	outline-offset: 2px;
}

.zs-slider-btn:disabled {
	opacity: .35;
	cursor: default;
}

.zs-slider-count {
	margin-top: 10px;
	font: 500 12px/1 var(--zs-head, 'Inter', sans-serif);
	text-align: center;
	color: #6a6a62;
}

@media (prefers-reduced-motion: reduce) {
	.widget_recently_viewed_products ul.product_list_widget { scroll-behavior: auto; }
}
