/**
 * hypro/product-showcase — styles (front end + editor).
 *
 * Same look as the product page hero (assets/css/product-detail.css, which
 * only loads on product pages), scoped to .hypro-showcase: sticky photo on
 * the left, buy box on the right. Keep both in step when one changes.
 */
.hypro-showcase.hypro-showcase {
	--showcase-sticky-top: 132px; /* announce bar (40) + nav bar (68) + breathing room */
	margin-block: 0;
	padding-block: clamp(48px, 7vw, 96px);
	background: #fff;
	color: var(--hypro-near-black, #0c0c0a);
	font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
}

.hypro-announce-dismissed .hypro-showcase { --showcase-sticky-top: 92px; }
.admin-bar .hypro-showcase { --showcase-sticky-top: 164px; }
.admin-bar.hypro-announce-dismissed .hypro-showcase { --showcase-sticky-top: 124px; }

/* Two columns that stretch to the taller (info) one, so the photo sticks
   while the info scrolls and is released when the section ends. */
.hypro-showcase__inner {
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	align-items: stretch;
	gap: clamp(32px, 5vw, 80px);
	max-width: var(--hypro-container-max, 1600px);
	margin-inline: auto;
	padding-inline: var(--hypro-container-pad, 24px);
}

.hypro-showcase__heading {
	grid-column: 1 / -1;
	margin: 0;
	text-align: center;
	font-family: var(--hypro-font-display, inherit);
	font-size: clamp(2rem, 7vw, 3.75rem);
	line-height: 0.98;
	text-transform: uppercase;
}

.hypro-showcase__media {
	min-width: 0;
}

/* Square photo, capped so it fits the viewport under the header. */
.hypro-showcase__frame {
	position: sticky;
	top: var(--showcase-sticky-top);
	width: min(100%, calc(100svh - var(--showcase-sticky-top) - 32px));
	aspect-ratio: 1;
	margin-inline: auto;
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--hypro-off-white, #f4f3ef);
}

.hypro-showcase__photo {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.hypro-showcase__photo.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease;
}

.hypro-showcase .hypro-showcase__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* A plain WooCommerce product shot (no showcase photo): don't crop it. */
.hypro-showcase .hypro-showcase__img--product {
	object-fit: contain;
}

.hypro-showcase__info {
	min-width: 0;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Product switcher (pills) ─────────────────────────────────────────────── */
.hypro-showcase .pd-flavors {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hypro-showcase .pd-flavors__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hypro-muted, #6b6b68);
}

.hypro-showcase .pd-flavors__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hypro-showcase .pd-flavors__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid rgba(12, 12, 10, 0.14);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--hypro-near-black, #0c0c0a);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.hypro-showcase .pd-flavors__pill:hover {
	border-color: var(--hypro-near-black, #0c0c0a);
}

.hypro-showcase .pd-flavors__pill[aria-selected='true'] {
	border-color: var(--hypro-near-black, #0c0c0a);
	background: var(--hypro-near-black, #0c0c0a);
	color: #fff;
}

.hypro-showcase .pd-flavors__pill:focus-visible {
	outline: 2px solid var(--hypro-blue, #1526be);
	outline-offset: 2px;
}

.hypro-showcase .pd-flavors__dot {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(12, 12, 10, 0.25);
}

.hypro-showcase .pd-flavors__pill[data-tone='lime'] .pd-flavors__dot { background: #7dc242; }
.hypro-showcase .pd-flavors__pill[data-tone='berry'] .pd-flavors__dot { background: #e8467c; }
.hypro-showcase .pd-flavors__pill[data-tone='mix'] .pd-flavors__dot { background: linear-gradient(135deg, #7dc242 50%, #e8467c 50%); }

/* ── Buy box ──────────────────────────────────────────────────────────────── */
.hypro-showcase .pd-buy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.hypro-showcase .pd-buy[hidden] {
	display: none;
}

.hypro-showcase .pd-buy__name {
	margin: 0;
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 900;
	line-height: 1.05;
	text-wrap: balance;
}

.hypro-showcase .pd-buy__name a {
	color: inherit;
	text-decoration: none;
}

.hypro-showcase .pd-buy__descriptor {
	margin: 0;
	max-width: 46ch;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--hypro-muted, #6b6b68);
}

.hypro-showcase .pd-highlights {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	font-weight: 600;
}

.hypro-showcase .pd-highlights li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hypro-showcase .pd-highlights svg {
	flex: 0 0 auto;
	color: var(--hypro-blue, #1526be);
}

.hypro-showcase .pd-price {
	margin-top: 6px;
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
}

.hypro-showcase .pd-price .woocommerce-Price-amount {
	color: inherit;
}

.hypro-showcase .pd-price .hypro-pack-price {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 14px;
	row-gap: 2px;
}

.hypro-showcase .pd-price .hypro-pack-price__unit,
.hypro-showcase .pd-price .hypro-pack-price__unit .woocommerce-Price-amount,
.hypro-showcase .pd-price .hypro-pack-price__unit .hypro-pack-price__unit-label {
	font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hypro-muted, #6b6b68);
}

.hypro-showcase .pd-cta-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	width: 100%;
	margin-top: 10px;
}

.hypro-showcase .pd-atc-btn {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
}

/* WooCommerce appends a "Ver carrito" link after an AJAX add; the mini-cart
   drawer already opens, so it only gets in the way here. */
.hypro-showcase .pd-cta-row .added_to_cart {
	display: none;
}

.hypro-showcase .pd-assurance {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: -4px 0 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--hypro-off-white, #f4f3ef);
}

.hypro-showcase .pd-assurance__ship {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.hypro-showcase .pd-assurance__ship svg {
	flex-shrink: 0;
	color: var(--hypro-blue, #1526be);
}

.hypro-showcase .pd-assurance__seals {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 0;
	padding: 10px 0 0;
	border-top: 1px solid rgba(12, 12, 10, 0.08);
	list-style: none;
	font-size: 0.75rem;
	color: var(--hypro-muted, #6b6b68);
}

.hypro-showcase .pd-assurance__seals li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hypro-showcase .pd-assurance__seals svg {
	flex-shrink: 0;
	color: var(--hypro-blue, #1526be);
}

.hypro-showcase .pd-meli-btn {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 0.5rem;
	background: transparent;
	color: var(--hypro-near-black, #111);
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hypro-showcase .pd-meli-btn:hover {
	border-color: #ffe600;
	background: #ffe600;
	color: #2d3277;
}

.hypro-showcase .pd-meli-btn__tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
	padding: 3px 8px 3px 6px;
	border-radius: 999px;
	background: #00a650;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ── Details accordion (hypro/product-details) ────────────────────────────── */
.hypro-showcase .pd-details {
	display: grid;
	gap: 10px;
	width: 100%;
	margin: 8px 0 0;
	padding: 0;
}

.hypro-showcase .pd-details .faq-details {
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: var(--hypro-off-white, #f4f3ef);
	padding: 0 20px;
}

.hypro-showcase .pd-details .faq-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.hypro-showcase .pd-details .faq-details summary::-webkit-details-marker {
	display: none;
}

.hypro-showcase .pd-details summary:focus {
	outline: none;
}

.hypro-showcase .pd-details summary:focus-visible {
	color: var(--hypro-blue, #1526be);
}

.hypro-showcase .pd-details .faq-details summary::after {
	content: '+';
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hypro-blue, #1526be);
	color: #fff;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1;
}

.hypro-showcase .pd-details .faq-details[open] summary::after {
	content: '\2212';
}

.hypro-showcase .pd-details .faq-details > p {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--hypro-muted, #6b6b68);
}

.hypro-showcase .pd-details .faq-details > :last-child:not(p) {
	margin-bottom: 20px;
}

.hypro-showcase .pd-details table {
	display: block;
	width: 100%;
	overflow-x: auto;
	margin: 0 0 12px;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.hypro-showcase .pd-details th {
	padding: 10px 12px;
	background: var(--hypro-blue, #1526be);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: left;
}

.hypro-showcase .pd-details td {
	padding: 9px 12px;
	border-bottom: 1px solid #e8e8e4;
	background: #fff;
}

.hypro-showcase .pd-details__note {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--hypro-muted, #6b6b68);
}

/* ── Stacked layout ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.hypro-showcase__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	/* Nothing to stick next to. */
	.hypro-showcase__frame {
		position: relative;
		top: auto;
		width: 100%;
		max-width: 640px;
	}

	.hypro-showcase__info {
		max-width: 640px;
		width: 100%;
		margin-inline: auto;
	}

	.hypro-showcase .pd-buy {
		align-items: stretch;
	}
}
