/**
 * The Gift Guide (inc/gift-guide.php; Figma "Gift Guide V2 - Christmas 2026"
 * 3581:10301, Mobile 3581:14099): the header with the gift boxes, the
 * listing's heading and the gift card band. The listing itself, its sidebar
 * included, is the shop's (listing.css; the user, 2026-11-24).
 */

@font-face {
	font-family: "Isabella Grand";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/isabella-grand-italic.woff2) format("woff2");
}

/* The listing on soft ivory under a white header, its sidebar white
   (the user, 2026-11-24). */
.listing-page:has(> .gift-guide) {
	background: var(--color-surface);
}

@media (min-width: 1024px) {
	.listing-page:has(> .gift-guide) .listing-side {
		background: var(--color-page);
	}
}

/* ---- Header -------------------------------------------------------------- */

.gift-guide {
	overflow-x: clip;
	padding: 32px 0 40px;
	border-bottom: 1px solid var(--color-natural-oat);
	background: var(--color-page);
}

.gift-guide__breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-body-gray);
	font-size: var(--text-small);
	line-height: var(--leading-small);
}

.gift-guide__breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
}

.gift-guide__breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.gift-guide__breadcrumbs a:hover {
	color: var(--color-dark-sage);
	text-decoration: underline;
}

.gift-guide__head {
	margin-top: 10px;
}

.gift-guide__title {
	margin: 0;
	color: var(--color-dark-sage);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 46px;
	line-height: 56px;
}

.gift-guide__intro {
	margin: 10px 0 0;
	color: var(--color-deep-slate);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 22px;
	line-height: 26px;
}

/* ---- Gift boxes: 236 × 300 in Figma, 151 × 192 on phones; the chosen one
   with a gold ring and a shadow (the same size: the user, 2026-11-24).
   Everything is sized by --s. ---- */

.gift-guide__row {
	margin-top: 32px;
}

.gift-boxes {
	--s: 0.64;
	display: flex;
	align-items: center;
	gap: 12px;
	/* To the window's edges, the first box in line with the page. */
	margin: 0 calc(50% - 50vw);
	/* Room above for the chosen box, raised, and under the boxes for its
	   shadow (26px down, 25px blur). */
	padding: 24px calc(50vw - 50%) 64px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	/* The same edge as the padding (a percentage here would be of the row's
	   own width): the page's side margin. */
	scroll-padding: 0 max(var(--gutter), (100vw - 1280px) / 2);
	scrollbar-width: none;
	list-style: none;
}

.gift-boxes::-webkit-scrollbar {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.gift-boxes {
		scroll-behavior: smooth;
	}
}

.gift-box {
	/* Colours: the four of the design, in turn (inc/gift-guide.php). */
	--from: #e9dfcc;
	--to: #cdc4b4;
	--gold: #9c7a3c;
	--frame: rgba(156, 122, 60, 0.55);
	--ink: #2e3e33;
	--note: #7a5e2c;
	--bow: url(../images/gift-guide/bow-dark.svg);
	position: relative;
	flex: none;
	width: calc(236px * var(--s));
	height: calc(300px * var(--s));
	scroll-snap-align: start;
}

.gift-box--1,
.gift-box--2,
.gift-box--3 {
	--gold: #c6a15b;
	--frame: rgba(198, 161, 91, 0.55);
	--ink: #fff;
	--note: #c6a15b;
	--bow: url(../images/gift-guide/bow-light.svg);
}

.gift-box--1 {
	--from: #2e3e33;
	--to: #1c251f;
}

.gift-box--2 {
	--from: #6b1e27;
	--to: #401217;
}

.gift-box--3 {
	--from: #1f2b45;
	--to: #131a29;
}

/* The box: its gold inner frame is the outline, drawn inside. */
.gift-box__link {
	position: relative;
	display: block;
	box-sizing: border-box;
	height: 100%;
	overflow: hidden;
	border-radius: calc(18px * var(--s));
	outline: 1px solid var(--frame);
	outline-offset: calc(-10px * var(--s));
	background: linear-gradient(var(--from), var(--to));
	color: var(--ink);
	text-decoration: none;
}

/* The ribbon: down the middle and across. */
.gift-box__link::before,
.gift-box__link::after {
	content: "";
	position: absolute;
	background: var(--gold);
}

.gift-box__link::before {
	top: 0;
	left: 50%;
	width: calc(16px * var(--s));
	height: calc(108px * var(--s));
	transform: translateX(-50%);
}

.gift-box__link::after {
	top: calc(92px * var(--s));
	right: 0;
	left: 0;
	height: calc(16px * var(--s));
}

/* The bow, over the ribbon. */
.gift-box::after {
	content: "";
	position: absolute;
	top: calc(58px * var(--s));
	left: 50%;
	width: calc(96px * var(--s));
	height: calc(54px * var(--s));
	background: var(--bow) no-repeat center / contain;
	transform: translateX(-50%);
	pointer-events: none;
}

/* Where you are, more clearly (client, 2026-11-25): the box raised and its
   gold frame full and thicker; the same size as the others. */
.gift-box.is-current {
	transform: translateY(calc(-16px * var(--s)));
}

.gift-box.is-current .gift-box__link {
	outline: 2px solid #c6a15b;
	box-shadow: inset 0 0 0 5px #c6a15b, 0 6px 6px rgba(31, 23, 10, 0.1), 0 26px 25px rgba(31, 23, 10, 0.3);
}

.gift-box__label {
	position: absolute;
	right: 0;
	bottom: calc(52px * var(--s));
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 calc(12px * var(--s));
	font-family: "Isabella Grand", Georgia, serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.12px;
	text-align: center;
}

.gift-box__for {
	font-size: calc(26px * var(--s));
	line-height: calc(50px * var(--s));
}

/* One size in every box and language, at which the longest word fits
   (German "Yoga-Liebhaber", Dutch "Yogaliefhebber"); a few words
   ("Passionné de yoga") go on two lines. */
.gift-box__who {
	font-size: calc(32px * var(--s));
	line-height: calc(38px * var(--s));
}

.gift-box__note {
	position: absolute;
	right: 0;
	bottom: calc(22px * var(--s));
	left: 0;
	color: var(--note);
	font-family: var(--font-body);
	font-size: max(11px, calc(14px * var(--s)));
	line-height: calc(20px * var(--s));
	text-align: center;
}

/* Hover: the whole box, bow included, fades a little; its colours stay. */
.gift-box__link:hover {
	color: var(--ink);
}

.gift-box:hover {
	opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
	.gift-box {
		transition: opacity 0.2s ease;
	}
}

.gift-box__link:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 3px;
}

/* Page marks and arrows under the boxes. */
.gift-guide__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	/* Up into the shadow's room (the design's 44px under the boxes). */
	margin-top: -32px;
}

@media (min-width: 1024px) {
	.gift-guide__nav {
		margin-top: -20px;
	}
}

.gift-guide__nav .row-steps {
	margin-top: 0;
}

/* ---- The listing's heading ------------------------------------------------ */

.gift-guide__listing-head {
	padding-top: 40px;
}

/* The listing as on the shop (its sidebar too), closer to this heading. */
.gift-guide__listing-head + .listing-page__body {
	padding-top: 32px;
}

.gift-guide__heading {
	margin: 0;
	color: var(--color-deep-slate);
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-h2);
	line-height: var(--leading-h2);
}

/* ---- Gift card band --------------------------------------------------------- */

.gift-band {
	padding: 56px 0;
	background: #2e3e33;
	color: #fff;
}

.gift-band__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.gift-band__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #c6a15b;
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
}

.gift-band__eyebrow::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	background: url(../images/gift-guide/star.svg) no-repeat center / contain;
}

.gift-band__title {
	max-width: 560px;
	margin: 20px 0 0;
	color: #fff;
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-h2);
	line-height: var(--leading-h2);
}

.gift-band__text {
	max-width: 520px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--text-body-l);
	line-height: var(--leading-body-l);
}

.gift-band__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 24px;
}

/* a.: as strong as WooCommerce's ".woocommerce a.button", which comes earlier. */
.gift-band a.gift-band__button {
	background: #c6a15b;
	color: #2e3e33;
}

.gift-band a.gift-band__button:hover {
	background: #d4b36f;
	color: #2e3e33;
}

.gift-band__link {
	color: #fff;
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
}

.gift-band__link:hover {
	color: #fff;
	text-decoration: underline;
}

/* The card, with a gold line behind it, offset down and right. */
.gift-band__card {
	position: relative;
	display: block;
	align-self: flex-start;
	width: calc(100% - 14px);
	max-width: 520px;
	margin-bottom: 14px;
}

.gift-band__card::before {
	content: "";
	position: absolute;
	inset: 14px -14px -14px 14px;
	border: 1px solid rgba(198, 161, 91, 0.6);
}

.gift-band .gift-band__image {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 520 / 318;
	object-fit: cover;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

/* ---- Tablets and computers ----------------------------------------------------- */

@media (min-width: 768px) {
	.gift-boxes {
		--s: 0.8;
		gap: 20px;
	}

	.gift-guide__listing-head {
		padding-top: 56px;
	}
}

@media (min-width: 1024px) {
	.gift-guide {
		padding: 56px 0 64px;
	}

	.gift-guide__head {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 24px;
		margin-top: 28px;
		padding-bottom: 48px;
		border-bottom: 1px solid var(--color-natural-oat);
	}

	.gift-guide__title {
		font-size: 64px;
		line-height: 68px;
	}

	.gift-guide__intro {
		margin: 0;
		padding-bottom: 18px;
		font-size: 24px;
		line-height: 34px;
	}

	.gift-guide__row {
		margin-top: 16px;
	}

	.gift-boxes {
		--s: 1;
		gap: 24px;
	}

	.gift-band {
		padding: 88px 0;
	}

	.gift-band__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	.gift-band__copy {
		flex: 0 1 560px;
	}

	.gift-band__card {
		flex: 0 1 520px;
		align-self: center;
	}
}
