/* Home-In Product Blocks — frontend */

:root {
	--hpb-accent: #b6d64d;
	--hpb-accent-2: #9ec436;
	--hpb-dark: #121b31;
	--hpb-bg: #fbfaf6;
	--hpb-ink: #23262d;
	--hpb-muted: #5d626a;
	--hpb-line: #e4e1d7;
	--hpb-card: #fffefb;
	--hpb-soft: #f2f6e4;
	--hpb-radius: 16px;
	--hpb-shadow: 0 8px 22px rgba(22, 30, 40, .06);
	--hpb-safe: env(safe-area-inset-bottom, 0px);
}

.hpb {
	box-sizing: border-box;
	color: var(--hpb-ink);
	font-size: 15px;
	line-height: 1.5;
}

.hpb *,
.hpb *::before,
.hpb *::after { box-sizing: border-box; }

.hpb-ico {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	color: var(--hpb-accent-2);
}

.hpb-ico--img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 34px;
	object-fit: contain;
}

/* Δοχεία εικονιδίων: σταθερό ύψος, ώστε τα λογότυπα να μεγαλώνουν
   χωρίς να μεγαλώνει το πλακίδιο γύρω τους. */
.hpb-trust__icon,
.hpb-help__btn .hpb-ico,
.hpb-auto__list .hpb-ico,
.hpb-shiplist__icon,
.hpb-features__icon { display: flex; align-items: center; justify-content: center; }

/* Πλακίδια εμπιστοσύνης — τα μεγαλύτερα */
.hpb-trust__icon { width: 100%; height: 46px; }
.hpb-trust__icon .hpb-ico { width: 34px; height: 34px; }
.hpb-trust__icon .hpb-ico--img { width: auto; height: auto; max-width: 92%; max-height: 46px; }

/* Κουμπιά κάρτας βοήθειας */
.hpb-help__btn .hpb-ico { width: 22px; height: 22px; }
.hpb-help__btn .hpb-ico--img { width: auto; height: auto; max-width: 74px; max-height: 26px; }

/* Αυτοματισμοί */
.hpb-auto__list .hpb-ico { width: 26px; height: 26px; }
.hpb-auto__list .hpb-ico--img { width: auto; height: auto; max-width: 100px; max-height: 30px; }

/* Accordion / λίστες */
.hpb-accordion summary .hpb-ico { width: 21px; height: 21px; }
.hpb-accordion summary .hpb-ico--img { width: auto; height: auto; max-width: 34px; max-height: 24px; }
.hpb-shiplist__icon .hpb-ico,
.hpb-features__icon .hpb-ico { width: 22px; height: 22px; }
.hpb-shiplist__icon .hpb-ico--img,
.hpb-features__icon .hpb-ico--img { width: auto; height: auto; max-width: 40px; max-height: 26px; }

/* Ταινία & sticky */
.hpb-ribbon .hpb-ico--img,
.hpb-sticky__lead .hpb-ico--img { width: auto; height: auto; max-width: 34px; max-height: 20px; }

/* Τίτλος προϊόντος: πράσινη γραμμή */
.hpb-single .product_title { position: relative; padding-bottom: 18px; letter-spacing: -.02em; }
.hpb-single .product_title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 62px;
	height: 5px;
	background: var(--hpb-accent);
}

/* --- Ταινία αποστολής --- */
.hpb-ribbon {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 10px 14px;
	background: var(--hpb-soft);
	border: 1px solid #e7edcf;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	color: #3a3d42;
}
.hpb-ribbon .hpb-ico { width: 20px; height: 20px; color: #55606b; }

/* --- Κατασκευή στα μέτρα σας --- */
.hpb-measure {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	padding: 14px 16px;
	background: #f0f5df;
	border: 1px solid #e4e9ce;
	border-radius: 12px;
}
.hpb-measure__icon .hpb-ico { width: 28px; height: 28px; }
.hpb-measure__text b { display: block; font-size: 15px; }
.hpb-measure__text small { display: block; margin-top: 3px; font-size: 13px; color: var(--hpb-muted); }

/* --- Πλέγμα εμπιστοσύνης --- */
.hpb-trust {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 18px 0;
	padding: 0;
	list-style: none;
}
.hpb-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 112px;
	padding: 14px 8px;
	text-align: center;
	background: #fff;
	border: 1px solid #e5e3dc;
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
}
.hpb-trust__item b { font-size: 14px; line-height: 1.2; }
.hpb-trust__item small { font-size: 12px; line-height: 1.25; color: #596069; }

/* --- Κάρτα βοήθειας --- */
.hpb-help {
	margin: 22px 0;
	padding: 16px;
	background: #fffdf8;
	border: 1px solid var(--hpb-line);
	border-radius: calc(var(--hpb-radius) + 2px);
	box-shadow: var(--hpb-shadow);
}
.hpb-help__intro { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.hpb-help--noimg .hpb-help__intro { grid-template-columns: 1fr; }
.hpb-help__media img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hpb-help__copy h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.12; letter-spacing: -.02em; }
.hpb-help__copy p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--hpb-muted); }

.hpb-help__buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hpb-help__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 66px;
	padding: 10px 6px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e4e2dc;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .04);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hpb-help__btn:hover { transform: translateY(-2px); border-color: #d5d2c8; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
.hpb-help__btn b { font-size: 12.5px; line-height: 1.2; }

.hpb-help__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding-bottom: 3px;
	font-size: 13px;
	font-weight: 800;
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid var(--hpb-accent);
}

/* --- Αυτοματισμοί --- */
.hpb-auto {
	margin: 22px 0;
	background: #fff;
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius);
	box-shadow: var(--hpb-shadow);
	overflow: hidden;
}
.hpb-auto__head { padding: 16px 18px; border-bottom: 1px solid #eee; }
.hpb-auto__head b { display: block; font-size: 19px; line-height: 1.2; }
.hpb-auto__head span { font-size: 13px; color: var(--hpb-muted); }
.hpb-auto__list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.hpb-auto__list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 86px;
	padding: 14px 8px;
	text-align: center;
	border-top: 1px solid #f0efe9;
	border-right: 1px solid #f0efe9;
}
.hpb-auto__list li .hpb-ico { color: #3a4049; }
.hpb-auto__list li b { font-size: 12px; line-height: 1.2; }
.hpb-auto__brand img { max-width: 110px; height: auto; }

/* --- Ενότητες / accordions --- */
.hpb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.hpb-section-head h2 { position: relative; margin: 0; padding-bottom: 10px; font-size: 22px; font-weight: 800; }
.hpb-section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--hpb-accent); }
.hpb-section-head a { font-size: 13px; font-weight: 700; color: #636871; text-decoration: none; }

.hpb-faq { margin: 26px 0; }
.hpb-basic { margin: 20px 0; }

.hpb-accordion { background: #fff; border: 1px solid #e4e2dc; border-radius: var(--hpb-radius); overflow: hidden; }
.hpb-accordion details + details { border-top: 1px solid #f0efe9; }
.hpb-accordion summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 17px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.hpb-accordion summary::-webkit-details-marker { display: none; }
.hpb-accordion summary .hpb-ico { color: #7d858e; }
.hpb-accordion summary::after {
	content: "";
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-right: 2px solid #9aa0a8;
	border-bottom: 2px solid #9aa0a8;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s ease;
}
.hpb-accordion details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.hpb-accordion details[open] summary { padding-bottom: 13px; }
.hpb-accordion__body {
	padding: 18px 18px 24px;
	border-top: 1px solid #f3f2ec;
	font-size: 14px;
	line-height: 1.65;
	color: #686e76;
}
.hpb-accordion__body > *:first-child { margin-top: 0; }
.hpb-accordion__body > *:last-child { margin-bottom: 0; }
.hpb-accordion__body p { margin: 0 0 12px; }
.hpb-accordion__body h2,
.hpb-accordion__body h3,
.hpb-accordion__body h4 { margin: 20px 0 8px; color: var(--hpb-ink); line-height: 1.3; }
.hpb-accordion__body ul,
.hpb-accordion__body ol { margin: 0 0 12px; padding-left: 20px; }
.hpb-accordion__body li { margin: 0 0 6px; }
.hpb-accordion__body img { max-width: 100%; height: auto; border-radius: 10px; }
.hpb-accordion__body table { width: 100%; border-collapse: collapse; }
.hpb-accordion__body th,
.hpb-accordion__body td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0efe9; }

/* --- Αξιολογήσεις & έργα --- */
.hpb-reviews, .hpb-projects {
	margin: 18px 0;
	padding: 18px;
	background: #fff;
	border: 1px solid #e4e2dc;
	border-radius: var(--hpb-radius);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}
.hpb-reviews__title, .hpb-projects__title { font-size: 18px; }
.hpb-stars { display: flex; gap: 2px; margin: 8px 0; }
.hpb-star .hpb-ico { width: 20px; height: 20px; color: #d8d8d0; }
.hpb-star.is-on .hpb-ico { color: var(--hpb-accent); fill: var(--hpb-accent); }
.hpb-reviews p { margin: 0 0 12px; font-size: 14px; color: var(--hpb-muted); }
.hpb-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid #dcdad2;
	border-radius: 999px;
}
.hpb-projects p { margin: 4px 0 12px; font-size: 13px; color: var(--hpb-muted); }
.hpb-projects__logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hpb-projects__logos li {
	display: grid;
	place-items: center;
	min-height: 76px;
	padding: 12px 8px;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	color: #747981;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
}
.hpb-projects__logos img { max-width: 100%; height: auto; filter: grayscale(1); opacity: .8; }

/* --- Sticky μπάρα --- */
.hpb-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 6px 10px calc(8px + var(--hpb-safe));
	background: linear-gradient(180deg, rgba(251, 250, 246, 0), rgba(251, 250, 246, .98) 22%, var(--hpb-bg));
}
.hpb-sticky[hidden] { display: none; }
.hpb-sticky__inner {
	display: grid;
	grid-template-areas: "lead price" "fields fields" "cta cta";
	gap: 10px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, .12);
}
.hpb-sticky__lead { grid-area: lead; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.hpb-sticky__lead .hpb-ico { width: 18px; height: 18px; }
.hpb-sticky__fields { grid-area: fields; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.hpb-sticky__fields label { display: block; }
.hpb-sticky__fields span { display: block; margin: 0 0 4px 2px; font-size: 11px; font-weight: 700; color: #59616b; }
.hpb-sticky__fields input {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px;
	font-weight: 700;
	border: 2px solid #172034;
	border-radius: 12px;
	background: #fff;
}
.hpb-sticky__x { align-self: center; padding-bottom: 8px; color: #8d949c; }
.hpb-sticky__price { grid-area: price; text-align: right; }
.hpb-sticky__price small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #717780; text-transform: uppercase; }
.hpb-sticky__price b, .hpb-sticky__price .price { font-size: 20px; font-weight: 800; color: var(--hpb-dark); }
.hpb-sticky__price del { display: none; }
.hpb-sticky__cta {
	grid-area: cta;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	background: var(--hpb-dark);
	border: 0;
	border-radius: 14px;
	cursor: pointer;
}
.hpb-sticky__cta:hover { filter: brightness(1.12); }

/* --- Desktop --- */
@media (min-width: 782px) {
	.hpb-trust { grid-template-columns: repeat(var(--hpb-trust-cols, 3), 1fr); }
	.hpb-auto__list { grid-template-columns: repeat(4, 1fr); }
	.hpb-auto__list li:last-child { border-right: 0; }
	/* Desktop: μία σειρά — εικόνα | κείμενο | κουμπιά, με τον σύνδεσμο κάτω από τα κουμπιά */
	.hpb-help {
		display: grid;
		grid-template-columns: 104px minmax(200px, 1fr) auto;
		grid-template-areas:
			"media copy buttons"
			"media copy link";
		align-items: center;
		column-gap: 24px;
		row-gap: 10px;
		padding: 18px;
	}

	/* Χωρίς εικόνα: καμία κενή στήλη — ο τίτλος ευθυγραμμίζεται με τις υπόλοιπες κάρτες */
	.hpb-help--noimg {
		grid-template-columns: minmax(200px, 1fr) auto;
		grid-template-areas:
			"copy buttons"
			"copy link";
	}
	.hpb-help__intro { display: contents; }
	.hpb-help__media { grid-area: media; }
	.hpb-help__copy { grid-area: copy; }
	.hpb-help__buttons { grid-area: buttons; grid-template-columns: repeat(3, 132px); margin: 0; align-self: end; }
	.hpb-help__link { grid-area: link; justify-self: end; align-self: start; margin: 0; }
	.hpb-help__copy h2 { font-size: 24px; }
	.hpb-projects__logos { grid-template-columns: repeat(4, 1fr); }


	.hpb-sticky__inner {
		grid-template-areas: "lead fields price cta";
		grid-template-columns: 1fr auto auto auto;
		align-items: center;
		gap: 18px;
		border-radius: 16px;
		margin-bottom: 10px;
	}
	.hpb-sticky__fields { grid-template-columns: 160px auto 160px; }
	.hpb-sticky__cta { width: auto; padding: 16px 28px; }
	.hpb-sticky--mobile { display: none; }
}

@media (max-width: 781px) {
	body.hpb-single { padding-bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
	.hpb *, .hpb *::after { transition: none !important; }
}

/* --- Τρόποι αποστολής & επιπλέον χαρακτηριστικά --- */
/* Group: διαδοχικές πτυσσόμενες ενότητες = μία ενιαία κάρτα.
   Το wrapper .hpb-group το παράγει το PHP, οπότε δεν εξαρτόμαστε από :has(). */
.hpb-group { margin: 20px 0; }
.hpb-group .hpb-basic { margin: 0; }

.hpb-group .hpb-accordion {
	border-top: 0;
	border-radius: 0;
}

.hpb-group .hpb-basic:first-child .hpb-accordion {
	border-top: 1px solid #e4e2dc;
	border-top-left-radius: var(--hpb-radius);
	border-top-right-radius: var(--hpb-radius);
}

.hpb-group .hpb-basic:last-child .hpb-accordion {
	border-bottom-left-radius: var(--hpb-radius);
	border-bottom-right-radius: var(--hpb-radius);
}

/* Η γραμμή ένωσης ίδια με τους εσωτερικούς διαχωριστές */
.hpb-group .hpb-basic:not(:last-child) .hpb-accordion { border-bottom-color: #f0efe9; }

.hpb-shipping__intro { margin: 0 0 14px; }
.hpb-shipping__note { margin: 12px 0 0; font-size: 13px; color: #8a9098; }

.hpb-shiplist, .hpb-features__list { margin: 0; padding: 0; list-style: none; }

.hpb-shiplist li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #f0efe9;
}
.hpb-shiplist li:first-child { border-top: 0; padding-top: 0; }
.hpb-shiplist__text { flex: 1; }
.hpb-shiplist__text b { display: block; font-size: 14px; color: var(--hpb-ink); }
.hpb-shiplist__text small { display: block; margin-top: 2px; font-size: 13px; color: var(--hpb-muted); }
.hpb-shiplist__cost {
	flex: 0 0 auto;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 800;
	color: #3f4a2a;
	background: var(--hpb-soft);
	border-radius: 999px;
	white-space: nowrap;
}

.hpb-features__list { display: grid; gap: 10px; }
.hpb-features__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	background: #fbfaf6;
	border: 1px solid #efece3;
	border-radius: 10px;
}
.hpb-features__text b { display: block; font-size: 14px; }
.hpb-features__text small { display: block; margin-top: 2px; font-size: 13px; color: var(--hpb-muted); }

@media (min-width: 782px) {
	.hpb-features__list { grid-template-columns: repeat(2, 1fr); }
	.hpb-shiplist__cost { min-width: 120px; text-align: center; }
}
