/* Shop page (shop.html) overrides */

.hm-shop__coffee-inner {
	max-width: 1760px;
	margin-left: auto;
	margin-right: auto;
}

/* Leaf decoration height (desktop; phone keeps its 100vw rule from home-v2.css) */
.hm-page-shop .for-leaft-section {
	height: 750px;
}

/* Leaf decoration image */
.for-leaft-section {
	background-image: url(../img/leaf-hm-f.png);
}

/* See detail: theme gold button with the shiny sweep on hover */
.hm-shop-card__detail {
	background: var(--hm-gold-grad);
	background-size: 200% auto;
	background-position: left center;
	color: #24180a;
	box-shadow: 0 6px 18px rgba(185, 145, 47, 0.32);
	transition: background-position 0.45s ease, transform 0.2s ease;
}

.hm-shop-card__detail:hover {
	background: var(--hm-gold-grad);
	background-size: 200% auto;
	background-position: right center;
	color: #24180a;
	transform: translateY(-1px);
}

/* Leaves always paint above the product band and sections (band keeps a solid background) */
.hm-page-shop .for-based-left {
	position: relative;
	z-index: 70;
}

.hm-page-shop .for-leaft-section {
	z-index: 70;
	pointer-events: none;
}


/* Leaves layered above the Our Coffee section background (z-index), text stays readable above the leaves */
.hm-page-shop .hm-shop__coffee {
	position: relative;
	isolation: isolate;
}

.hm-page-shop .hm-shop__coffee::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 190px;
	height: 100%;
	background: url('../img/leaf-hm-f.png') left top / 100% auto no-repeat;
	z-index: 1;
	pointer-events: none;
}

.hm-page-shop .hm-shop__coffee .hm-coffee__inner {
	position: relative;
	z-index: 2;
}

/* Page leaves paint above the product band and the drinks/snacks groups (was cut by them at z 70) */
.hm-page-shop .for-based-left {
	z-index: 90;
}

.hm-page-shop .for-leaft-section {
	z-index: 90;
}

/* Shop: wrapper has no stacking context so each element layers on the page: band below leaves, title/toolbar/tabs above leaves */
.hm-page-shop .hm-shop .hm-wrap {
	position: static;
	z-index: auto;
}

#hm-shop-grid {
	position: relative;
	z-index: 1;
}

.hm-page-shop .hm-shop__head,
.hm-page-shop .hm-shop__toolbar,
.hm-page-shop .hm-shop__count,
.hm-page-shop .hm-shop__empty {
	position: relative;
	z-index: 100;
}

/* Coffee section leaf decoration hidden on the shop page */
.hm-page-shop .hm-shop__coffee::before {
	display: none;
}

/* Shop card Add to basket: cart icon sized like the index buttons */
.hm-shop-card__add svg {
	width: 1rem;
	height: 1rem;
	flex: none;
}

/* Bundle card button: dark green pill matching the bundle price box */
.hm-bundle-card__add {
	width: 100%;
	justify-content: center;
	padding: 0.8rem 1.2rem;
	border-radius: 8px;
	background: #0f3a26;
	color: #fffaf0;
	font-size: 0.95rem;
	font-weight: 700;
}

.hm-bundle-card__add:hover {
	background: #1f5a3e;
}

/* Bundle image: same image element as try.html pack cards (contained, bottom-aligned) */
.hm-bundle-card__bottles {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	aspect-ratio: 261 / 143;
	margin: 0.8rem 0 0.6rem;
}

.hm-bundle-card__bottles img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Bundle card styling to match the reference: icon + title badge, bordered list, boxed prices */
.hm-bundle-card {
	border-color: #0f3a26;
	border-width: 2px;
	padding: 0 1.4rem 1.4rem;
}

.hm-bundle-card__badge {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-width: 62%;
	margin: 0 0 0;
	padding: 0.9rem 1.6rem 0.8rem;
	border-radius: 0 0 12px 12px;
}

.hm-bundle-card__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.15rem;
}

.hm-bundle-card__title {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-align: center;
}

.hm-bundle-card__sub {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
}

.hm-bundle-card__items li {
	font-size: 0.9rem;
	font-weight: 500;
	color: #161616;
}

.hm-bundle-card__price {
	flex-direction: row;
	gap: 0.6rem;
	margin-top: 0.2rem;
}

.hm-bundle-card__price strong {
	padding: 0.7rem 1.2rem;
	font-size: 1.35rem;
	border-radius: 8px;
}

.hm-bundle-card__normal {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 0.75rem;
	line-height: 1.2;
	color: #3d3b36;
}

.hm-bundle-card__normal s {
	font-size: 0.8rem;
	color: #6b6558;
}

.hm-bundle-card__price em {
	padding: 0.7rem 1rem;
	border-radius: 8px;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ── Bundle section (complete): 3-column grid, card, badge, numbered item list, boxed prices ── */
.hm-shop__group--bundle .hm-shop__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

@media (min-width: 1600px) {
	.hm-page-shop .hm-shop__group--drinks,
	.hm-page-shop .hm-shop__group--snacks,
	.hm-page-shop .hm-shop__group--bundle {
		max-width: 1750px;
		margin-left: auto;
		margin-right: auto;
	}

	.hm-page-shop .hm-shop__coffee-inner {
		max-width: calc(1750px - 2 * var(--hm-gutter));
	}
}

@media (max-width: 1599px) {
	.hm-page-shop .hm-shop__group--drinks,
	.hm-page-shop .hm-shop__group--snacks,
	.hm-page-shop .hm-shop__group--bundle {
		max-width: 1400px;
		margin-left: auto;
		margin-right: auto;
	}

	.hm-page-shop .hm-shop__coffee-inner {
		max-width: calc(1400px - 2 * var(--hm-gutter));
	}
}

.hm-page-shop .hm-shop__group--drinks .hm-shop__grid,
.hm-page-shop .hm-shop__group--snacks .hm-shop__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-bundle-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 1.4rem 1.4rem;
	border: 2px solid #0f3a26;
	border-radius: 18px;
	background: #fffaf0;
	box-shadow: 0 6px 22px rgba(120, 90, 40, 0.10);
	text-align: center;
	overflow: visible;
}

.hm-bundle-card__badge {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-width: 62%;
	margin: 0;
	padding: 0.9rem 1.6rem 0.8rem;
	border-radius: 0 0 12px 12px;
	background: #0f3a26;
	color: #fffaf0;
}

.hm-bundle-card__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.15rem;
}

.hm-bundle-card__title {
	font-family: var(--hm-sans);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #fffaf0;
}

.hm-bundle-card__sub {
	font-family: var(--hm-sans);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--hm-gold-soft);
}

.hm-bundle-card__bottles {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	aspect-ratio: 261 / 143;
	margin: 0.8rem 0 0.6rem;
}

.hm-bundle-card__bottles img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hm-bundle-card__items {
	display: flex;
	justify-content: space-around;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.hm-bundle-card__items li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--hm-sans);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	color: #161616;
}

.hm-bundle-card__qty {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
}

.hm-bundle-card__item--ruby .hm-bundle-card__qty { background: #9b1c2c; }
.hm-bundle-card__item--durian .hm-bundle-card__qty { background: #1e4fa0; }
.hm-bundle-card__item--kedondong .hm-bundle-card__qty { background: #3d8b3d; }

.hm-bundle-card__price {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	width: 100%;
	margin-top: 0.2rem;
	font-family: var(--hm-sans);
	color: #3d3b36;
}

.hm-bundle-card__price strong {
	padding: 0.7rem 1.2rem;
	border-radius: 8px;
	background: #0f3a26;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
}

.hm-bundle-card__normal {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 0.75rem;
	line-height: 1.2;
	color: #3d3b36;
}

.hm-bundle-card__normal s {
	font-size: 0.8rem;
	color: #6b6558;
}

.hm-bundle-card__price em {
	padding: 0.7rem 1rem;
	border-radius: 8px;
	background: #7a5c1e;
	color: #fff;
	font-style: normal;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.hm-bundle-card__add {
	width: 100%;
	justify-content: center;
	margin-top: 1rem;
	padding: 0.8rem 1.2rem;
	border-radius: 8px;
	background: #0f3a26;
	color: #fffaf0;
	font-size: 0.95rem;
	font-weight: 700;
}

.hm-bundle-card__add:hover {
	background: #1f5a3e;
}

@media (max-width: 1100px) {
	.hm-shop__group--bundle .hm-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (max-width: 640px) {
	.hm-shop__group--bundle .hm-shop__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Responsive: product grids step down 4 → 3 → 2 columns instead of jumping from 4 to 2 at 600px ── */
@media (max-width: 1100px) {
	.hm-page-shop .hm-shop__group:not(.hm-shop__group--bundle) .hm-shop__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.2rem;
	}
}

@media (max-width: 800px) {
	.hm-page-shop .hm-shop__group:not(.hm-shop__group--bundle) .hm-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Café header: the page-level flex row (higher specificity) must stack on tablet/phone, tabs scroll instead of overflowing */
@media (max-width: 900px) {
	.hm-page-shop .hm-shop__coffee .hm-coffee__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		margin-bottom: 2rem;
	}

	.hm-page-shop .hm-shop__coffee .hm-shop__group-tabs--main {
		flex-shrink: 1;
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.hm-page-shop .hm-shop__coffee .hm-shop__group-tabs {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.hm-page-shop .hm-shop__group-title {
		font-size: 1.35rem;
	}

	.hm-page-shop .hm-shop__group--drinks,
	.hm-page-shop .hm-shop__coffee,
	.hm-page-shop .hm-shop__group--bundle,
	.hm-page-shop .hm-shop__group--snacks {
		padding-top: 0;
		padding-left: var(--hm-gutter);
		padding-right: var(--hm-gutter);
	}

	.hm-page-shop .hm-shop__head {
		padding-top: calc(5vw * 0.85);
		margin-bottom: calc(15vw * 0.85);
	}
	.hm-shop__count{
		color: #0f3a26;
	}
	.hm-bundle-card__badge {
		min-width: 0;
		width: 82%;
		padding: 0.8rem 1rem 0.7rem;
	}

	.hm-bundle-card__price strong {
		font-size: 1.05rem;
		padding: 0.6rem 1rem;
	}
}

/* Mobile hero: dedicated banner image, sized to its own ratio and anchored at the top */
@media (max-width: 600px) {
	.hm-page-shop .hm-shop::before,
	.hm-page-shop .hm-shop::after {
		aspect-ratio: 1568 / 687;
	}

	.hm-page-shop .hm-shop::before {
		background-image: url('../img/section-responsive.png');
		background-position: center top;
	}

	.hm-page-shop .hm-shop::after {
		background: transparent;
	}
}

/* Bundle section container: same padding as the Snacks group */
.hm-page-shop .hm-shop__group--bundle {
	padding: 2rem var(--hm-gutter);
	padding-top: 0px;
}

.hm-shop__more {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.hm-shop__more-btn {
	padding: 0.2rem 0;
	border: 0;
	background: none;
	color: #0f3a26;
	font-family: var(--hm-sans);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.hm-shop__more-btn:hover {
	color: #7a5c1e;
}

.hm-page-shop .hm-shop__group--bundle {
	position: relative;
}

.hm-page-shop .hm-shop__group--bundle::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw + var(--hm-sbw, 0px) / 2);
	width: 160px;
	background: url('../img/leaf-hm-left.png') left top / 160px auto no-repeat;
	opacity: 0.9;
	pointer-events: none;
	z-index: 0;
}

.hm-page-shop .hm-shop__group--bundle > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 800px) {
	.hm-page-shop .hm-shop__group--bundle::before {
		display: none;
	}
}

.hm-page-shop .hm-shop__group--snacks {
	position: relative;
}

.hm-page-shop .hm-shop__group--snacks::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: calc(50% - 50vw + var(--hm-sbw, 0px) / 2);
	width: auto;
	aspect-ratio: 462 / 2871;
	background: url('../img/leaf-hm-shop-right.png') right top / 100% 100% no-repeat;
	transform: scale(1.5);
	transform-origin: right top;
	opacity: 0.9;
	pointer-events: none;
	z-index: 0;
}

.hm-page-shop .hm-shop__group--snacks > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 800px) {
	.hm-page-shop .hm-shop__group--snacks::after {
		display: none;
	}
}

.hm-page-shop .hm-shop {
	overflow: clip;
}
