/* ==========================================================
   TWENTY7SHOES — Sales page
   ========================================================== */

/* ============ PRODUCT GRID ============ */
.w27-sales ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.w27-sales ul.products::before,
.w27-sales ul.products::after { content: none; }

.w27-sales ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

@media (max-width: 1024px) {
	.w27-sales ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.w27-sales ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

/* ============ ΚΑΘΑΡΙΣΜΑ SIDEBAR CSS ============ */
.woof_sid_w27sales .woof_block_html_items {
	max-height: none;
	overflow: visible;
}
.woof_sid_w27sales ul li { right: 0; }

/* ============ FILTER LAYOUT ============ */
.woof_sid_w27sales .woof_container {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}
.woof_sid_w27sales .woof_container h4 {
	font-family: 'Manrope', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #717171;
	margin: 0 0 14px;
}
.woof_sid_w27sales .woof_list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: left;
}
.woof_sid_w27sales .woof_list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ============ PILL BASE ============ */
.woof_sid_w27sales .woof_checkbox_label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 11px;
	margin: 0;
	border-radius: 999px;
	background-color: #fff;
	color: #000;
	border: 1px solid #000;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.woof_sid_w27sales .woof_checkbox_label:hover {
	border-color: var(--mauro, #191B1F);
}

/* ============ ΚΑΤΗΓΟΡΙΕΣ ============ */
.woof_sid_w27sales .woof_container_product_cat {
    margin-top: 50px;
}

.woof_sid_w27sales .woof_container_product_cat h4 {
	display: none;
}
.woof_sid_w27sales .woof_container_product_cat .woof_checkbox_label {
	min-width: 200px;
	min-height: 58px;
	padding: 8px 26px 8px 8px;
	font-size: 15px;
}
.woof_sid_w27sales .woof_container_product_cat .woof_checkbox_label::before {
	content: '';
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #f2f2f2;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	display: inline-flex;
}

/* ============ CHECKED ============ */
.woof_sid_w27sales .icheckbox_square-blue.checked + .woof_checkbox_label {
	background-color: var(--mauro, #191B1F);
	border-color: var(--mauro, #191B1F);
	color: #fff;
}

/* ============ ΜΕΓΕΘΟΣ → DROPDOWN ============ */
.woof_sid_w27sales .woof_container_pa_megethos {
    margin-top: 60px;
}

.woof_sid_w27sales .woof_container_pa_megethos h4 {
	display: none;
}
.woof_sid_w27sales .woof_container_pa_megethos .woof_container_inner {
	display: flex;
	justify-content: flex-start;
}

.w27-dd {
	position: relative;
	display: inline-block;
	text-align: left;
}

/* --- Trigger --- */
.w27-dd__trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 170px;
	height: 52px;
	padding: 0 22px;
	border: 1px solid #000;
	border-radius: 0;
	background: #fff;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #000;
	line-height: 1;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
.w27-dd__trigger:hover,
.w27-dd.is-open .w27-dd__trigger {
	background: var(--mauro, #191B1F);
	color: #fff;
}

.w27-dd__text { flex: 1 1 auto; }

.w27-dd__badge {
	display: none;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mauro, #191B1F);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}
.w27-dd__badge.is-visible { display: inline-block; }
.w27-dd__trigger:hover .w27-dd__badge,
.w27-dd.is-open .w27-dd__badge {
	background: #fff;
	color: var(--mauro, #191B1F);
}

.w27-dd__arrow {
	flex: 0 0 auto;
	width: 12px;
	height: 8px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .2s ease;
}
.w27-dd.is-open .w27-dd__arrow { transform: rotate(180deg); }

/* --- Panel --- */
.w27-dd .woof_block_html_items {
	display: none !important;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	min-width: 260px;
	max-height: 300px;
	padding: 16px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.w27-dd.is-open .woof_block_html_items { display: block !important; }

.w27-dd .woof_list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 18px;
	justify-content: start;
}

/* --- Checkbox rows μέσα στο panel --- */
.woof_sid_w27sales .woof_container_pa_megethos .woof_checkbox_label {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	min-width: 0;
	min-height: 0;
	padding: 7px 4px;
	border: 0;
	border-radius: 8px;
	background: none;
	font-size: 14px;
	font-weight: 500;
	color: #000;
	white-space: nowrap;
}
.woof_sid_w27sales .woof_container_pa_megethos .woof_checkbox_label:hover {
	background: #f6f6f6;
	border: 0;
}
.woof_sid_w27sales .woof_container_pa_megethos .woof_checkbox_label::before {
	content: '';
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	background-color: #fff;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 11px 9px;
	transition: background-color .15s ease, border-color .15s ease;
}
.woof_sid_w27sales .woof_container_pa_megethos .icheckbox_square-blue.checked + .woof_checkbox_label {
	background: none;
	border: 0;
	color: #000;
}
.woof_sid_w27sales .woof_container_pa_megethos .icheckbox_square-blue.checked + .woof_checkbox_label::before {
	background-color: var(--mauro, #191B1F);
	border-color: var(--mauro, #191B1F);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.5l3 3 6-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.woocommerce span.onsale {
    width: fit-content;
}

/* ============ MOBILE ============ */
@media (max-width: 767px) {
	.woof_sid_w27sales .woof_container_product_cat .woof_list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		scrollbar-width: none;
		justify-content: flex-start;
	}
	.woof_sid_w27sales .woof_container_product_cat .woof_list::-webkit-scrollbar {
		display: none;
	}
	.woof_sid_w27sales .woof_container_product_cat .woof_list li {
		scroll-snap-align: start;
	}
	.woof_sid_w27sales .woof_container_product_cat .woof_checkbox_label {
		min-width: 0;
	}
	.woof_sid_w27sales .woof_container_pa_megethos .woof_container_inner {
		justify-content: flex-start;
	}
	
}