@import url("/assets/css/christmas-theme.css?v=20261128-1");

.gift-ideas {
	--gift-paper: #f7f2ed;
	--gift-ink: #28151b;
	--gift-muted: #655159;
	--gift-accent: var(--christmas-action);
	--gift-rule: #e7d9db;
	margin: 0;
	color: var(--gift-ink);
	background: var(--gift-paper);
	font: 400 1rem/1.55 "Open Sans", system-ui, sans-serif;
}

.gift-ideas *, .gift-ideas *::before, .gift-ideas *::after { box-sizing: border-box; }
.gift-wrap { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.gift-ideas a { color: var(--gift-accent); text-underline-offset: .23em; }
.gift-ideas :focus-visible { outline: 3px solid var(--christmas-action); outline-offset: 4px; }
.gift-site-header {
	color: #fff;
	background: var(--christmas-hero), url("/assets/images/parallax1.jpg") center 44% / cover;
}
.gift-bar, .gift-bar nav { display: flex; align-items: center; justify-content: space-between; column-gap: 1rem; }
.gift-bar { min-height: 4.25rem; border-bottom: 1px solid #ffffff40; }
.gift-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.gift-bar a:hover { text-decoration: underline; }
.gift-brand { letter-spacing: -.025em; }
.gift-language { padding: .28rem .6rem; border: 1px solid #ffffff76; border-radius: .35rem; }
.gift-hero { padding-top: clamp(2.7rem, 7vw, 5.5rem); padding-bottom: clamp(4.4rem, 9vw, 7rem); }
.gift-hero h1 { margin: 0; font-size: clamp(2.7rem, 7.2vw, 5.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.063em; }
.gift-hero p { max-width: 35rem; margin: 1rem 0 0; color: #fff3ec; font-size: clamp(1rem, 2.2vw, 1.18rem); }

.gift-ideas-filter {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 1rem;
	align-items: end;
	margin-top: -2.1rem;
	padding: 1.15rem;
	border: 1px solid var(--gift-rule);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 12px 25px var(--christmas-shadow);
}
.gift-ideas-filter label { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .87rem; }
.gift-ideas-filter select, .gift-button {
	width: 100%;
	min-height: 2.7rem;
	border-radius: .4rem;
	font: inherit;
}
.gift-ideas-filter select {
	color-scheme: dark;
	border: 1px solid var(--christmas-action-hover);
	padding: .45rem .55rem;
	color: #fff;
	background: var(--christmas-action-hover);
}
.gift-ideas-filter option { color: #fff; background: var(--christmas-action-hover); }
.gift-button { padding: .45rem 1rem; border: 1px solid var(--gift-accent); color: #fff; background: var(--gift-accent); font-weight: 700; cursor: pointer; }
.gift-button:hover { background: var(--christmas-action-hover); }

.gift-results { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 2.4rem 0 1.1rem; scroll-margin-top: 1rem; }
.gift-results h2 { margin: 0; letter-spacing: -.03em; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.15; }
.gift-results p { margin: .25rem 0 0; color: var(--gift-muted); font-size: .92rem; }
.gift-results a { font-size: .9rem; font-weight: 700; }
.gift-ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.gift-ideas-ad { grid-column: 1 / -1; min-width: 0; }
.gift-ideas-item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gift-rule); border-radius: .9rem; background: #fff; }
.gift-photo { display: grid; place-items: center; aspect-ratio: 16/10; border-bottom: 1px solid var(--gift-rule); color: var(--gift-muted); background: #fcfaf8; text-align: center; }
.gift-photo img { display: block; max-width: 100%; width: 100%; height: auto; }
.gift-photo img { aspect-ratio: 16/10; object-fit: contain; background: #fff; }
.gift-ideas-item-content { display: flex; flex-direction: column; flex: 1; gap: .5rem; padding: 1.05rem 1.15rem 1.2rem; overflow-wrap: anywhere; }
.gift-ideas-item h3 { margin: 0; font-size: 1.22rem; line-height: 1.28; letter-spacing: -.025em; }
.gift-ideas-item p { margin: 0; }
.gift-age-label { color: var(--gift-accent); font-size: .84rem; font-weight: 700; }
.gift-ideas-description { color: var(--gift-muted); font-size: .92rem; }
.gift-rating { color: var(--gift-muted); font-size: .85rem; }
.gift-rating span { color: var(--gift-accent); }
.gift-purchase { display: grid; gap: .45rem; margin-top: auto; padding-top: .5rem; }
.gift-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; }
.gift-price strong { font-size: 1.16rem; }
.gift-ideas-date { color: var(--gift-muted); font-size: .82rem; }
.gift-store { width: fit-content; color: var(--gift-accent); font-size: .9rem; font-weight: 700; }
[data-gift-gallery] [hidden], .gift-photo-dialog [hidden] { display: none; }
.gift-photo-link { display: block; width: 100%; cursor: zoom-in; }
.gift-photo-link:focus-visible { outline-offset: -4px; }
.gift-photo-nav { display: flex; justify-content: center; align-items: center; gap: .85rem; padding: .35rem; }
.gift-photo-nav button, .gift-dialog-header button {
	display: grid;
	place-items: center;
	width: 2.45rem;
	height: 2.45rem;
	border: 1px solid var(--gift-rule);
	border-radius: 50%;
	background: #fff;
	color: var(--gift-accent);
	font: 700 1.5rem/1 "Open Sans", sans-serif;
	cursor: pointer;
}
.gift-photo-nav button:hover, .gift-dialog-header button:hover { background: var(--gift-paper); }
.gift-photo-nav span { font-size: .85rem; color: var(--gift-muted); font-variant-numeric: tabular-nums; }
.gift-photo-dialog {
	width: min(55rem, calc(100% - 1.5rem));
	max-height: calc(100dvh - 1.5rem);
	padding: 0;
	border: 1px solid var(--gift-rule);
	border-radius: .85rem;
	color: var(--gift-ink);
	background: #fff;
}
.gift-photo-dialog::backdrop { background: #28151bce; }
.gift-dialog-inner { padding: .85rem; }
.gift-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.gift-dialog-header h2 { margin: 0; font-size: clamp(1rem, 3vw, 1.2rem); line-height: 1.3; }
.gift-dialog-header button { flex: 0 0 auto; }
.gift-photo-dialog img { display: block; width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; }
.gift-empty { padding: 1.15rem; border: 1px solid var(--gift-rule); border-radius: .75rem; background: #fff; }
.gift-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 2rem 0 0; }
.gift-pagination a { padding: .45rem .6rem; border: 1px solid var(--gift-rule); border-radius: .4rem; background: #fff; font-weight: 700; }
.gift-footer { margin-top: 3.4rem; padding-block: 1.45rem; border-top: 1px solid var(--gift-rule); }
.gift-footer a { font-weight: 700; }

@media (max-width: 64rem) {
	.gift-ideas-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gift-ideas-filter .gift-button { grid-column: 1 / -1; }
}
@media (max-width: 51rem) {
	.gift-ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
	.gift-wrap { width: calc(100% - 1.5rem); }
	.gift-bar { min-height: 3.45rem; font-size: .82rem; }
	.gift-bar, .gift-bar nav { column-gap: .55rem; }
	.gift-ideas-filter, .gift-ideas-grid { gap: .75rem; }
	.gift-ideas-filter { padding: .85rem; }
	.gift-ideas-filter select { font-size: .9rem; }
	.gift-ideas-item-content { padding: .75rem; }
	.gift-ideas-item h3 { font-size: 1.03rem; }
}
@media (max-width: 23rem) {
	.gift-ideas-grid { grid-template-columns: 1fr; }
}
