/* Category tiles (crema). Styles: "photo" (full photo + gradient) and "quick" (tall photo + quick add panel). */
.syf-coffee-tiles {
	--syf-coffee-cols: 4;
	--syf-coffee-tile-zoom: 1.08;
	--syf-coffee-tile-shade: #0a1628;
	display: grid;
	grid-template-columns: repeat(var(--syf-coffee-cols), minmax(0, 1fr));
	gap: 18px;
}

.syf-coffee-tile {
	position: relative;
}

.syf-coffee-tile-img,
.syf-coffee-tile-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.syf-coffee-tile-img img {
	object-fit: cover;
	transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), opacity .16s;
}

.syf-coffee-tile-img img.syf-coffee-fade {
	opacity: 0;
}

.syf-coffee-tile:hover .syf-coffee-tile-img img {
	transform: scale(var(--syf-coffee-tile-zoom));
}

.syf-coffee-tile-badge {
	display: contents;
}

.syf-coffee-tile-num {
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-weight: 800;
	font-size: .78rem;
}

/* Theme sale/new labels go to the other corner so they never cover the chip */
.syf-coffee-tile .product-labels {
	top: 14px;
	inset-inline-start: auto;
	inset-inline-end: 14px;
	z-index: 3;
}

.syf-coffee .syf-coffee-tile-name {
	margin: 0;
	font-weight: 900;
	line-height: 1.35;
}

.syf-coffee-tile-name a,
.syf-coffee-tile-name a:hover {
	color: inherit;
}

.syf-coffee-tile .added_to_cart {
	display: none;
}

/* Cart icon buttons: grow on hover instead of the base "+" rotation */
.syf-coffee-tile .syf-coffee-add:hover {
	transform: scale(1.08);
}

.syf-coffee-tile .syf-coffee-add .syf-coffee-ic {
	width: 21px;
	height: 21px;
}

/* Options panel (variable products) */
.syf-coffee-tile-panel {
	position: relative;
	z-index: 3;
}

.syf-coffee-tile-opt {
	display: block;
	margin: 8px 0 5px;
	font-weight: 800;
	font-size: .74rem;
	opacity: .8;
}

.syf-coffee .syf-coffee-tile-chips {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 6px;
}

/* Small pills side by side (theme buttons are block-ish and tall by default) */
.syf-coffee .syf-coffee-tile-chip {
	display: inline-flex;
	flex: 0 0 auto;
	width: auto;
	min-width: 38px;
	min-height: 0;
	margin: 0;
	padding: 4px 12px;
	border: 1px solid var(--syf-coffee-line);
	border-radius: 999px;
	background: var(--bgcolor-white);
	box-shadow: none;
	color: var(--syf-coffee-ink);
	font-weight: 700;
	font-size: .78rem;
	line-height: 1.5;
	text-transform: none;
}

.syf-coffee .syf-coffee-tile-chip[aria-pressed="true"] {
	border-color: var(--wd-primary-color);
	background: var(--wd-primary-color);
	color: #fff;
}

.syf-coffee-tile-chip.syf-coffee-chip-out {
	opacity: .45;
}

/* Price of the chosen option: before and after the discount */
.syf-coffee-tile-panel-price {
	margin-top: 12px;
}

.syf-coffee .syf-coffee-tile .syf-coffee-tile-panel-price .syf-coffee-price {
	font-size: calc(var(--syf-coffee-price-size, 1.05rem) * 1.1);
}

.syf-coffee .syf-coffee-tile-buy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--wd-primary-color);
	color: #fff;
	font-weight: 800;
	font-size: .9rem;
	transition: transform .2s, background .2s, opacity .2s;
}

.syf-coffee .syf-coffee-tile-buy:hover {
	transform: translateY(-2px);
	color: #fff;
}

.syf-coffee .syf-coffee-tile-buy.loading {
	opacity: .6;
	pointer-events: none;
}

.syf-coffee .syf-coffee-tile-buy.added {
	background: var(--syf-coffee-good);
}

.syf-coffee .syf-coffee-tile-buy.syf-coffee-disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}

.syf-coffee-tile-buy .syf-coffee-ic {
	width: 16px;
	height: 16px;
}

/* ---------- Style "photo" ---------- */
.syf-coffee-tile-photo {
	overflow: hidden;
	aspect-ratio: 3 / 4.2;
	border-radius: 28px;
	background: var(--syf-coffee-deep);
	color: #fff;
	isolation: isolate;
}

.syf-coffee-tile-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, color-mix(in srgb, var(--syf-coffee-tile-shade) 90%, transparent), color-mix(in srgb, var(--syf-coffee-tile-shade) 20%, transparent) 55%, transparent);
	transition: background .3s;
	pointer-events: none;
}

.syf-coffee-tile-photo.syf-coffee-open::after {
	background: linear-gradient(to top, color-mix(in srgb, var(--syf-coffee-tile-shade) 96%, transparent), color-mix(in srgb, var(--syf-coffee-tile-shade) 60%, transparent) 70%, color-mix(in srgb, var(--syf-coffee-tile-shade) 25%, transparent));
}

.syf-coffee-tile-cc {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	z-index: 2;
	padding: 22px;
}

.syf-coffee-tile-photo .syf-coffee-tile-name {
	color: #fff;
	font-size: 1.3rem;
}

.syf-coffee-tile-cc p {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: .88rem;
}

.syf-coffee-tile-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
}

.syf-coffee-tile-row:empty {
	display: none;
}

/* Price: style controls set --syf-coffee-price-color / -old / -size on .syf-coffee-tiles */
.syf-coffee .syf-coffee-tile .syf-coffee-price {
	gap: 0 6px;
	color: var(--syf-coffee-price-color, var(--syf-coffee-ink));
	font-size: var(--syf-coffee-price-size, 1.05rem);
	line-height: 1.3;
}

.syf-coffee .syf-coffee-tile .syf-coffee-price del {
	color: var(--syf-coffee-price-old, var(--syf-coffee-mute));
	opacity: 1;
	font-size: .78em;
}

.syf-coffee .syf-coffee-tile-photo .syf-coffee-price {
	color: var(--syf-coffee-price-color, #fff);
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.syf-coffee .syf-coffee-tile-photo .syf-coffee-price del {
	color: var(--syf-coffee-price-old, rgba(255, 255, 255, .72));
}

.syf-coffee .syf-coffee-tile-go {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--syf-coffee-peach);
	font-weight: 800;
	font-size: .9rem;
}

.syf-coffee-tile-go .syf-coffee-ic {
	width: 16px;
	height: 16px;
	transition: translate .3s;
}

.syf-coffee-tile:hover .syf-coffee-tile-go .syf-coffee-arrow {
	translate: -5px 0;
}

body:not(.rtl) .syf-coffee-tile:hover .syf-coffee-tile-go .syf-coffee-arrow {
	translate: 5px 0;
}

.syf-coffee-tile-photo .syf-coffee-add {
	background: var(--syf-coffee-peach);
	color: var(--syf-coffee-peach-ink);
}

.syf-coffee-tile-photo .syf-coffee-add:hover {
	color: var(--syf-coffee-peach-ink);
}

.syf-coffee-tile-photo .syf-coffee-add.added {
	background: var(--syf-coffee-good);
	color: #fff;
}

/* Open: the panel shows price + add, so the row (price + options button) steps aside */
.syf-coffee-tile-photo.syf-coffee-open .syf-coffee-tile-row {
	display: none;
}

/* Panel slides open inside the photo */
.syf-coffee-tile-photo .syf-coffee-tile-panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows .35s, visibility .35s;
}

.syf-coffee-tile-photo .syf-coffee-tile-panel > div {
	overflow: hidden;
}

.syf-coffee-tile-photo.syf-coffee-open .syf-coffee-tile-panel {
	grid-template-rows: 1fr;
	visibility: visible;
}

.syf-coffee-tile-photo .syf-coffee-tile-opt {
	color: rgba(255, 255, 255, .75);
}

.syf-coffee-tile-photo .syf-coffee-tile-chip {
	border-color: rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.syf-coffee .syf-coffee-tile-photo .syf-coffee-tile-chip[aria-pressed="true"] {
	border-color: #fff;
	background: #fff;
	color: var(--syf-coffee-deep);
}

.syf-coffee .syf-coffee-tile-photo .syf-coffee-tile-buy {
	background: var(--syf-coffee-peach);
	color: var(--syf-coffee-peach-ink);
}

.syf-coffee .syf-coffee-tile-photo .syf-coffee-tile-buy.added {
	background: var(--syf-coffee-good);
	color: #fff;
}

/* ---------- Style "quick" ---------- */
/* Above the name's stretched link (z 1) for its buttons; clicks on the photo fall through to the link. */
.syf-coffee-tile-media {
	position: relative;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	background: var(--syf-coffee-bg2);
	isolation: isolate;
}

.syf-coffee-tile-quick .syf-coffee-tile-num {
	background: rgba(0, 0, 0, .35);
}

.syf-coffee-tile-fab,
.syf-coffee-tile-quick.syf-coffee-open .syf-coffee-tile-panel {
	pointer-events: auto;
}

.syf-coffee-tile-fab {
	position: absolute;
	bottom: 12px;
	inset-inline-end: 12px;
	z-index: 4;
}

.syf-coffee-tile-quick .syf-coffee-tile-go {
	color: #fff;
}

.syf-coffee-tile-quick .syf-coffee-tile-go .syf-coffee-ic {
	width: 20px;
	height: 20px;
}

.syf-coffee-tile-quick .syf-coffee-tile-panel {
	position: absolute;
	bottom: 8px;
	inset-inline: 8px;
	z-index: 5;
	overflow-y: auto;
	max-height: calc(100% - 16px);
	padding: 14px;
	border-radius: 22px;
	background: color-mix(in srgb, var(--bgcolor-white) 94%, transparent);
	box-shadow: 0 18px 44px var(--syf-coffee-shadow);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--syf-coffee-ink);
	visibility: hidden;
	opacity: 0;
	transform: translateY(calc(100% + 12px));
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility .35s;
}

.syf-coffee-tile-quick.syf-coffee-open .syf-coffee-tile-panel {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.syf-coffee-tile-quick .syf-coffee-tile-opt:first-of-type {
	margin-top: 0;
	padding-inline-end: 34px;
}

.syf-coffee .syf-coffee-tile-close {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--syf-coffee-bg2);
	box-shadow: none;
	color: var(--syf-coffee-ink);
	font-size: 1.1rem;
	line-height: 1;
}

.syf-coffee-tile-body {
	padding-top: 12px;
}

.syf-coffee-tile-quick .syf-coffee-tile-name {
	color: var(--syf-coffee-ink);
	font-size: 1.02rem;
}

.syf-coffee-tile-body p {
	margin: 2px 0 0;
	color: var(--syf-coffee-mute);
	font-size: .86rem;
}

.syf-coffee-tile-body .syf-coffee-price {
	margin-top: 4px;
}

@media (max-width: 640px) {
	.syf-coffee-tiles {
		gap: 12px;
	}

	.syf-coffee-tile-photo,
	.syf-coffee-tile-media {
		border-radius: 22px;
	}

	.syf-coffee-tile-num {
		top: 12px;
		inset-inline-start: 12px;
	}

	.syf-coffee-tile-cc {
		padding: 16px;
	}

	.syf-coffee-tile-photo .syf-coffee-tile-name {
		font-size: 1.08rem;
	}

	.syf-coffee-tile-cc p {
		display: none;
	}

	.syf-coffee-tile-row {
		flex-wrap: wrap;
	}

	.syf-coffee-sale-stamp {
		width: 48px;
		height: 48px;
		font-size: .82rem;
	}
}
