/* =============================================================
   HPBS — Haitoglou PB Slider
   ============================================================= */

/* ---------------------------------------------------------------
   Wrapper
--------------------------------------------------------------- */
.hpbs-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}
.pin-spacer{
	margin-bottom: 0!important;
	background-color: #F79B96;
}

/* ---------------------------------------------------------------
   Track
--------------------------------------------------------------- */
.hpbs-track {
	display: flex;
	will-change: transform;
}

/* ---------------------------------------------------------------
   Slide — base (shared all breakpoints)
--------------------------------------------------------------- */
.hpbs-slide {
	position: relative;
	flex-shrink: 0;
	width: 100vw;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding-top: clamp(1rem, 2.5vh, 2.5rem);
}

/* ---------------------------------------------------------------
   TOP AREA — letters PNG (bg) + product image, both centered
--------------------------------------------------------------- */
.hpbs-top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Letters PNG — absolute, fills the top area */
.hpbs-bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	overflow: hidden;
}

.hpbs-bg-image img {
	width: auto !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
}

/* Product image — in front of the letters */
.hpbs-image {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hpbs-image img {
	object-fit: contain;
	display: block;
}

/* ---------------------------------------------------------------
   BOTTOM AREA — title, description, button
--------------------------------------------------------------- */
.hpbs-bottom {
	position: relative;
	z-index: 1;
	width: 100%;
	box-sizing: border-box;
}

.hpbs-title {
	font-family: inherit;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 0.6rem 0;
}

.hpbs-desc {
	font-family: inherit;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
}

/* Button — colors via inline style */
.hpbs-btn {
	display: inline-block;
	border-width: 2px;
	border-style: solid;
	border-color: transparent;
	font-family: inherit;
	font-weight: 700;
	/* letter-spacing: 0.1em; */
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 2px;
	transition: opacity 0.22s ease;
	white-space: nowrap;
	line-height: 1;
}

.hpbs-btn:hover,
.hpbs-btn:focus-visible {
	opacity: 0.72;
	outline: none;
}

.nutricion-icons{
	margin: 10px auto;    
    padding: 10px;
}
/* ---------------------------------------------------------------
   DESKTOP (≥ 1024px) — pin active, 2-column bottom
--------------------------------------------------------------- */
@media (min-width: 1024px) {
	/* Top takes 62% of viewport height */
	.hpbs-top {
		height: 62vh;
		flex-shrink: 0;
	}

	.hpbs-bg-image img {
		height: 100%;
	}

	.hpbs-image img {
		max-height: 50vh;
		max-width: 55vw;
		margin-top: 30px;
	}

	/* Bottom: 2 columns — info (left) | button (right) */
	.hpbs-bottom {
		flex: 1;
		display: flex;
		align-items: center;
		padding: 0 6vw 2vw;
		gap: 4vw;
		max-width: 1425px;
        align-self: center;
	}

	.hpbs-info {
		/* flex: 3 1 0%; */
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.hpbs-title {
		font-size: clamp(18px, 2vw, 32px)!important;
		line-height: 1.2 !important;
		margin-bottom: 0.5rem;
	}

	.hpbs-desc {
		font-size: clamp(14px, 1.1vw, 17px);
	}

	.hpbs-btn-wrap {
		/* flex: 2 0 auto; */
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.hpbs-btn {
		padding: 0.8em 2em;
		/* font-size: clamp(10px, 0.7vw, 12px); */
		font-size: clamp(14px, 1vw, 18px);
	}
}

/* ---------------------------------------------------------------
   TABLET & MOBILE (< 1024px) — scroll-snap, centered single column
--------------------------------------------------------------- */
@media (max-width: 1023px) {
	/* All slides share one height — the tallest slide's content height.
	   The flex row (.hpbs-track) stretches every slide to match it, so the
	   pinned box only reserves as much room as the tallest slide needs
	   instead of the full screen. Top/bottom padding (set per breakpoint
	   below) keeps content clear of the sticky menu bar overlapping from
	   above — and as a side effect, the extra height also narrows the
	   empty strip below the pinned box during the scroll. */
	.hpbs-slide {
		height: auto;
	}

	/* Top area: letters + image, fixed height, centered */
	.hpbs-top {
		height: 55vw;
		flex-shrink: 0;
	}

	.hpbs-bg-image img {
		height: 100%;
	}

	.hpbs-image img {
		max-width: 75vw;
		max-height: 50vw;
	}

	/* Bottom: single column, centered — flex:1 fills whatever height this
	   particular slide has left over (shorter slides get more of it), and
	   justify-content:center keeps the text+button centered in that space
	   instead of stuck at the top with empty room below the button. */
	.hpbs-bottom {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 1.5rem 1.5rem 2.5rem;
		gap: 1rem;
	}

	.hpbs-info {
		width: 100%;
	}

	.hpbs-title {
		font-size: clamp(20px, 5.5vw, 30px)!important;
		line-height: 1.2 !important;
		margin-bottom: 0.5rem;
	}

	.hpbs-desc {
		font-size: clamp(13px, 3.5vw, 16px)!important;
	}

	.hpbs-btn-wrap {
		width: auto;
	}

	.hpbs-btn {
		padding: 0.8em 1.8em;
		font-size: clamp(14px, 3vw, 16px);
	}
}

/* Tablet (768px–1023px) — taller top clearance for the menu bar */
@media (min-width: 768px) and (max-width: 1023px) {
	.hpbs-slide {
		padding-top: 120px;
		padding-bottom: 60px;
	}
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
	.hpbs-slide {
		padding-top: 100px;
		padding-bottom: 60px;
	}
}

/* ---------------------------------------------------------------
   Modals  —  z-index 9999999 (above Salient header + mobile menu)
--------------------------------------------------------------- */
.hpbs-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999999;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
}

.hpbs-modal.is-open {
	display: flex;
}

.hpbs-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

/* Inner box — bg-color set via inline style from PHP */
.hpbs-modal-inner {
	position: relative;
	z-index: 1;
	max-width: 540px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 3rem 2.5rem 2.5rem;
	border-radius: 20px;
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.hpbs-modal-inner::-webkit-scrollbar { width: 4px; }
.hpbs-modal-inner::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.4);
	border-radius: 4px;
}

/* Close button */
.hpbs-modal-close {
	position: absolute;
	top: 1.1rem;
	right: 1.1rem;
	width: 34px;
	height: 34px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 1.15rem;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	transition: background 0.18s, border-color 0.18s;
}

.hpbs-modal-close:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
}

/* Modal title + description */
.hpbs-modal-title {
	font-family: inherit;
	font-size: clamp(1.3rem, 3.5vw, 1.75rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0.5rem 1.25rem 0.5rem;
	line-height: 1.25;
	text-align: center;
}

.hpbs-modal-desc {
	font-family: inherit;
	font-size: clamp(0.8rem, 2vw, 0.88rem);
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.2;
	margin: 0 0 1.75rem 0;
	text-align: center;
}

/* ---------------------------------------------------------------
   Nutritional table — user-provided CSS classes
--------------------------------------------------------------- */
/* --- pinakas-diatrofi-new (used in modals) --- */
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new {
	border-spacing: 0;
	border: 0px;
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	font-family: inherit;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new * {
	position: relative;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td,
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new th {
	padding: 5px 10px;
	padding-left: 8px;
	padding-top: 3px;
	background-clip: padding-box;
	border:0px!important;
	border-bottom: 1px solid #fff!important;
	color: #fff;
	text-align: left;
	font-family: inherit;
	line-height: 1.2;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td.extra-padding-left {
	padding-left: 15px;
	/* color: rgba(255, 255, 255, 0.78); */
	font-size: 14px;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new thead tr {
	height: 30px;
	background: transparent;
	font-size: 0.85em;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new thead th {
	/* text-transform: uppercase; */
	letter-spacing: 0.04em;
	/* color: rgba(255, 255, 255, 0.7); */
	font-weight: 400;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new tbody tr,
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new tr:nth-child(2n+1) {
	height: 20px;
	background: transparent;
}
/* Value column (2nd) */
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td:nth-child(2),
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new th:nth-child(2) {
	text-align: center;
}
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td.l,
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new th.l { text-align: right; }
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td.c,
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new th.c { text-align: center; }
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td.r,
body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new th.r { text-align: center; }

/* Prevent body scroll when modal open */
body.hpbs-no-scroll {
	overflow: hidden !important;
}

/* ---------------------------------------------------------------
   Small screens
--------------------------------------------------------------- */
@media (max-width: 540px) {
	.hpbs-modal-inner {
		padding: 2.25rem 1.5rem 2rem;
		border-radius: 16px;
	}

	.hpbs-modal-title {
		font-size: 1.2rem;
	}

	body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new td,
	body:not(.woocommerce-cart) .main-content table.pinakas-diatrofi-new th {
		font-size: 0.8rem;
	}
}
