/* YourMoment gifts collection — Ceramora-style drawer facets */
.gifts-collection { direction: rtl; }

/* page wrapper — the WP page template is full-bleed, so the component
 * constrains itself; wrap intro copy + shortcode in .gifts-page */
.gifts-page,
.gifts-collection {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 20px;
}
.gifts-page .gifts-collection { padding-inline: 0; }
.gifts-page { direction: rtl; }
@media (max-width: 921px) {
	.gifts-page,
	.gifts-collection { padding-inline: 14px; }
	.gifts-page .gifts-collection { padding-inline: 0; }
}

/* ---- buttons: hardened against Astra global button CSS ----
 * Astra Customizer inline CSS on this site styles bare `button`
 * (background #f4bc33) and sets button:hover/:focus to a TRANSPARENT
 * background (renders white). Every button in this component carries
 * .gfbtn, and every variant pins background/color/border on ALL states
 * at specificity above the theme's `button:hover` (0,1,1). */
.gifts-collection button.gfbtn,
.gifts-collection button.gfbtn:hover,
.gifts-collection button.gfbtn:focus,
.gifts-collection button.gfbtn:active {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	color: #1a1a1a;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	padding: 0;
	margin: 0;
	width: auto;
	height: auto;
	min-height: 0;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.gifts-collection button.gfbtn:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

/* ---- typographic page header ---- */
.gifts-hero {
	text-align: center;
	padding: 44px 0 30px;
}
.gifts-hero__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: #b3a98e;
	margin: 0 0 14px;
}
.gifts-hero__title {
	font-size: 38px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: #1a1a1a;
	margin: 0 0 12px;
	line-height: 1.15;
}
.gifts-hero__sub {
	font-size: 15.5px;
	color: #8a8a8a;
	margin: 0 auto;
	max-width: 560px;
	line-height: 1.6;
}
@media (max-width: 921px) {
	.gifts-hero { padding: 26px 0 18px; }
	.gifts-hero__title { font-size: 26px; }
	.gifts-hero__sub { font-size: 14px; }
}

/* ---- shop-by-recipient icon strip ---- */
.who-strip {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 6px 0 20px;
}
.gifts-collection .who-tile.gfbtn,
.gifts-collection .who-tile.gfbtn:hover,
.gifts-collection .who-tile.gfbtn:focus,
.gifts-collection .who-tile.gfbtn:active {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: #1a1a1a;
	border: 0;
	padding: 6px 7px;
	font-size: 12.5px;
	font-weight: 600;
	width: 86px;
	animation: whoTileIn .45s cubic-bezier(.22, .9, .3, 1) both;
}
.who-tile:nth-child(2)  { animation-delay: .04s; }
.who-tile:nth-child(3)  { animation-delay: .08s; }
.who-tile:nth-child(4)  { animation-delay: .12s; }
.who-tile:nth-child(5)  { animation-delay: .16s; }
.who-tile:nth-child(6)  { animation-delay: .2s; }
.who-tile:nth-child(7)  { animation-delay: .24s; }
.who-tile:nth-child(8)  { animation-delay: .28s; }
.who-tile:nth-child(9)  { animation-delay: .32s; }
.who-tile:nth-child(10) { animation-delay: .36s; }
@keyframes whoTileIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
.who-tile__circle {
	display: grid;
	place-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #f7f6f4;
	border: 1px solid #eceae6;
	color: #1a1a1a;
	transition: transform .18s cubic-bezier(.22, .9, .3, 1), background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.who-tile:hover .who-tile__circle {
	transform: translateY(-3px);
	border-color: #1a1a1a;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}
.who-tile.is-active .who-tile__circle {
	background: #f4bc33;
	border-color: #f4bc33;
	color: #1a1a1a;
	box-shadow: 0 6px 16px rgba(244, 188, 51, .45);
}
.who-tile__label { line-height: 1.2; white-space: nowrap; }
.who-tile.is-active .who-tile__label { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
	.gifts-collection .who-tile.gfbtn { animation: none; }
	.who-tile:hover .who-tile__circle { transform: none; }
}

/* ---- toolbar ---- */
.collection__toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-bottom: 22px;
	min-height: 46px;
}
.collection__count { font-size: 13px; color: #777; white-space: nowrap; }
.collection__density { display: none; align-items: center; gap: 4px; }
.gifts-collection .density-btn.gfbtn,
.gifts-collection .density-btn.gfbtn:hover,
.gifts-collection .density-btn.gfbtn:focus,
.gifts-collection .density-btn.gfbtn:active {
	display: inline-grid;
	place-content: center;
	width: 30px;
	height: 30px;
	border-radius: 7px;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #b5b5b5;
}
.gifts-collection .density-btn.gfbtn.is-active { color: #1a1a1a; border-color: #1a1a1a; }

.gifts-collection .collection__filters-toggle.gfbtn,
.gifts-collection .collection__filters-toggle.gfbtn:hover,
.gifts-collection .collection__filters-toggle.gfbtn:focus,
.gifts-collection .collection__filters-toggle.gfbtn:active {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: transparent;
	color: #1a1a1a;
	border: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	margin-inline-start: auto;
	padding: 6px 2px;
}
.gifts-collection .collection__filters-toggle.gfbtn:hover { opacity: .65; }
.collection__filters-toggle svg { display: block; }

/* active filter pills in toolbar */
.collection__active { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.gifts-collection .facet-pill.gfbtn,
.gifts-collection .facet-pill.gfbtn:hover,
.gifts-collection .facet-pill.gfbtn:focus,
.gifts-collection .facet-pill.gfbtn:active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #ddd;
	background: #fafafa;
	color: #333;
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 12px;
	white-space: nowrap;
}
.gifts-collection .facet-pill.gfbtn:hover { border-color: #999; }
.facet-pill::after { content: "✕"; font-size: 10px; color: #888; }
.gifts-collection .facet-pill--clear.gfbtn,
.gifts-collection .facet-pill--clear.gfbtn:hover,
.gifts-collection .facet-pill--clear.gfbtn:focus,
.gifts-collection .facet-pill--clear.gfbtn:active {
	border: 0;
	background: transparent;
	color: #b00;
}
.facet-pill--clear::after { content: none; }

/* ---- drawer ---- */
.facets-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .38);
	z-index: 100000;
	opacity: 0;
	transition: opacity .25s;
}
.facets-backdrop.is-open { opacity: 1; }
.facets-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	width: min(340px, 88vw);
	background: #fff;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.32, .72, .34, 1);
	box-shadow: 0 0 40px rgba(0, 0, 0, .18);
	direction: rtl;
}
.facets-drawer.is-open { transform: translateX(0); }
.facets-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #eee;
}
.facets-drawer__header h2 {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	margin: 0;
}
.gifts-collection .facets-drawer__close.gfbtn,
.gifts-collection .facets-drawer__close.gfbtn:hover,
.gifts-collection .facets-drawer__close.gfbtn:focus,
.gifts-collection .facets-drawer__close.gfbtn:active {
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #1a1a1a;
	padding: 0 4px;
}
.gifts-collection .facets-drawer__close.gfbtn:hover { opacity: .6; }
.facets-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 22px;
	overscroll-behavior: contain;
}

/* accordion groups */
.facets__group { border-bottom: 1px solid #eee; }
.facets__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	cursor: pointer;
	padding: 16px 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #1a1a1a;
	user-select: none;
}
.facets__summary::-webkit-details-marker { display: none; }
.facets__summary-title { display: inline-flex; align-items: center; gap: 10px; }
.facets__summary-icon {
	display: inline-grid;
	place-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f7f6f4;
	color: #1a1a1a;
	transition: background .15s, color .15s;
}
.facets__group[open] > .facets__summary .facets__summary-icon,
.facets__summary:hover .facets__summary-icon { background: #f4bc33; color: #1a1a1a; }
.facets__summary svg { transition: transform .2s; color: #666; flex: 0 0 auto; }
.facets__group[open] > .facets__summary svg { transform: rotate(180deg); }
.facets__content { padding: 2px 0 16px; display: flex; flex-direction: column; gap: 10px; }

/* checkbox / radio option rows */
.facets__option { display: flex; align-items: center; gap: 10px; }
.facets__option input {
	appearance: none;
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	border: 1px solid #bbb;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	display: inline-grid;
	place-content: center;
	margin: 0;
	transition: all .12s;
}
.facets__option input[type="radio"] { border-radius: 50%; }
.facets__option input:checked { background: #1a1a1a; border-color: #1a1a1a; }
.facets__option input[type="checkbox"]:checked::before {
	content: "";
	width: 9px;
	height: 5px;
	border: 2px solid #fff;
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg) translateY(-1px);
}
.facets__option input[type="radio"]:checked::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
}
.facets__option label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	line-height: 1.3;
	margin: 0;
}
.facets__option-icon {
	display: inline-grid;
	place-content: center;
	color: #8a8a8a;
	flex: 0 0 auto;
	transition: color .15s;
}
.facets__option input:checked + label .facets__option-icon,
.facets__option label:hover .facets__option-icon { color: #1a1a1a; }
.facets__option-count { color: #999; font-size: 12px; }
.facets__option.is-empty { opacity: .35; }
.facets__option.is-empty label { cursor: default; }

/* drawer footer */
.facets-drawer__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px;
	border-top: 1px solid #eee;
	background: #fff;
}
.gifts-collection .facets-drawer__clear.gfbtn,
.gifts-collection .facets-drawer__clear.gfbtn:hover,
.gifts-collection .facets-drawer__clear.gfbtn:focus,
.gifts-collection .facets-drawer__clear.gfbtn:active {
	border: 0;
	background: transparent;
	color: #777;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
	padding: 0;
}
.gifts-collection .facets-drawer__clear.gfbtn:hover { color: #333; }
.gifts-collection .facets-drawer__apply.gfbtn,
.gifts-collection .facets-drawer__apply.gfbtn:hover,
.gifts-collection .facets-drawer__apply.gfbtn:focus,
.gifts-collection .facets-drawer__apply.gfbtn:active {
	flex: 1 1 auto;
	border: 0;
	background: #1a1a1a;
	color: #fff;
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	transition: opacity .15s;
}
.gifts-collection .facets-drawer__apply.gfbtn:hover { opacity: .85; }

/* ---- grid ---- */
.product-grid {
	display: grid;
	/* minmax(0,1fr): tracks may shrink below content min-size — prevents
	 * image-intrinsic-width blowout when toggling 1↔2 columns on mobile */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 14px;
	min-width: 0;
	max-width: 100%;
}
/* beat Astra's content-link underline on all states */
.gifts-collection a.grid-card,
.gifts-collection a.grid-card:hover,
.gifts-collection a.grid-card:focus,
.gifts-collection a.grid-card .card__title,
.gifts-collection a.grid-card:hover .card__title {
	text-decoration: none;
	border-bottom: 0;
}
.grid-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	min-width: 0;
	max-width: 100%;
}
.grid-card.is-hidden { display: none; }
.card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #f0efed;
}
.card__thumb img {
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform .25s;
}
.grid-card:hover .card__thumb img { transform: scale(1.04); }
.card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	background: #1a1a1a;
	color: #fff;
}
.card__badge--new {
	background: #fff;
	color: #1a1a1a;
	border: 1.5px solid #f4bc33;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.card__badge--oos { background: #999; top: auto; bottom: 8px; }
.card__fast {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 118px;
	z-index: 1;
	pointer-events: none;
}
.card__fast img { width: 100%; height: auto; display: block; background: none; }
@media (max-width: 921px) {
	.card__fast { width: 88px; }
}
.card__title {
	font-size: 14px;
	line-height: 1.35;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.card__price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__price { font-size: 14px; font-weight: 700; color: #111; }
.card__off {
	font-size: 11px;
	font-weight: 700;
	background: #1a1a1a;
	color: #fff;
	border-radius: 999px;
	padding: 2px 9px;
	direction: ltr;
}
.card__price del { color: #999; font-weight: 400; margin-inline-end: 5px; }
.card__price ins { text-decoration: none; }
.card__price .screen-reader-text {
	position: absolute !important;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.collection__more-wrap { text-align: center; margin: 26px 0 8px; }
.gifts-collection .collection__more.gfbtn,
.gifts-collection .collection__more.gfbtn:focus,
.gifts-collection .collection__more.gfbtn:active {
	border: 1px solid #1a1a1a;
	background: #fff;
	color: #1a1a1a;
	border-radius: 999px;
	padding: 10px 34px;
	font-size: 14px;
	font-weight: 600;
	transition: all .15s;
}
.gifts-collection .collection__more.gfbtn:hover {
	border: 1px solid #1a1a1a;
	background: #1a1a1a;
	color: #fff;
	border-radius: 999px;
	padding: 10px 34px;
	font-size: 14px;
	font-weight: 600;
}
.collection__empty { text-align: center; color: #777; padding: 30px 0; }

/* body scroll lock while drawer open */
body.facets-drawer-open { overflow: hidden; }

/* ---- mobile ---- */
@media (max-width: 921px) {
	.collection__density { display: inline-flex; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.product-grid.product-grid--single { grid-template-columns: minmax(0, 1fr); }
	.product-grid.product-grid--single .card__title { font-size: 15px; }
	.collection__toolbar { flex-wrap: wrap; gap: 8px 14px; }
	.collection__active { order: 3; flex-basis: 100%; }
	.card__title { font-size: 13px; }
	.who-strip {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-inline: -14px;
		padding-inline: 14px;
	}
	.who-strip::-webkit-scrollbar { display: none; }
	.gifts-collection .who-tile.gfbtn { width: 74px; flex: 0 0 auto; }
	.who-tile__circle { width: 54px; height: 54px; }
}
