/* Shop This That – Gift Guide. Everything is scoped under .stt-gg. */

.stt-gg {
	--stt-gg-font: var(--stt-title-font, var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif));
	--stt-gg-ink: #000;
	--stt-gg-cream: #f4f0ea;
	--stt-gg-band: #e3dbd1;
	--stt-gg-muted: #5c554b;
	--stt-gg-gold: #6e5d2f; /* small line above the title, and the string and bow */
	color: #1a1a1a;
	line-height: 1.5;
}
.stt-gg *,
.stt-gg *::before,
.stt-gg *::after { box-sizing: border-box; }
.stt-gg a { color: inherit; text-decoration: none; box-shadow: none; }
.stt-gg p,
.stt-gg h2,
.stt-gg h3 { margin: 0; }

/* ---------- Title with string and bow ---------- */
.stt-gg-hero { text-align: center; padding: 14px 16px 22px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stt-gg-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--stt-gg-gold); }
.stt-gg-title { font-family: var(--stt-gg-font); font-weight: 400; letter-spacing: -.02em; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--stt-gg-ink); }
.stt-gg-title-small { font-style: italic; font-size: clamp(24px, 3.4vw, 44px); line-height: 1; }
.stt-gg-title-main { position: relative; display: flex; align-items: center; gap: .22em; font-size: clamp(52px, 9vw, 112px); line-height: 1; white-space: nowrap; }
.stt-gg-title-main em { font-style: italic; }
.stt-gg-bow { display: block; width: clamp(150px, 22vw, 260px); height: auto; margin: 8px auto 6px; }
.stt-gg-intro { max-width: 520px; font-size: 17px; color: #4a453e; }

/* ---------- Filters ---------- */
.stt-gg-filters { border-top: 1px solid var(--stt-gg-ink); border-bottom: 1px solid var(--stt-gg-ink); padding: 14px 16px; display: flex; justify-content: center; align-items: center; gap: 12px 40px; flex-wrap: wrap; scroll-margin-top: 90px; }
.stt-gg-search { flex: 0 1 380px; max-width: 100%; display: flex; justify-content: center; gap: 0; }
.stt-gg-filter-for { flex: 1 1 100%; justify-content: center; }
.stt-gg-search-input { flex: 1 1 160px; min-width: 110px; min-height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--stt-gg-ink); border-right: 0; border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: var(--stt-gg-ink); -webkit-appearance: none; appearance: none; }
.stt-gg-search-btn { flex: none; white-space: nowrap; font-family: inherit; min-height: 40px; padding: 0 16px; border: 1px solid var(--stt-gg-ink); border-radius: 0; background: var(--stt-gg-ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.stt-gg-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stt-gg-filter-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--stt-gg-muted); margin-right: 6px; }
.stt-gg .stt-gg-chip {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
	font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
	color: var(--stt-gg-c, var(--stt-gg-ink)); background: #fff;
	border: 1px solid var(--stt-gg-c, var(--stt-gg-ink)); border-radius: 0;
}
.stt-gg .stt-gg-chip.is-active,
.stt-gg .stt-gg-chip:hover { background: var(--stt-gg-c, var(--stt-gg-ink)); color: #fff; }

/* ---------- Photo frame: same shape for every gift ---------- */
.stt-gg-frame { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--stt-gg-cream); overflow: hidden; }
.stt-gg-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; }
/* Cut-outs and plain white backgrounds: whole product shown, white blends into the cream */
.stt-gg-fit-contain img { object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
/* Full photos: fill the frame, cropped to fit */
.stt-gg-fit-cover img { object-fit: cover; }

/* ---------- Category tiles: small circles, all in one row ---------- */
.stt-gg-tiles { max-width: 1200px; margin: 0 auto; padding: 0 16px 28px; display: grid; grid-template-columns: repeat(var(--stt-gg-n, 5), minmax(0, 150px)); justify-content: center; gap: 20px 32px; }
.stt-gg-tile { display: flex; flex-direction: column; gap: 10px; text-align: center; min-width: 0; }
.stt-gg-disc { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 50%; }
.stt-gg-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--stt-gg-font); font-size: 64px; line-height: 1; color: #fff; }
.stt-gg-disc-full { overflow: hidden; background: #eee; }
.stt-gg-disc-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.stt-gg-disc-pic { position: absolute; right: -8%; bottom: -4%; width: 46%; height: 46%; object-fit: contain; }
.stt-gg-tile-name { font-family: var(--stt-gg-font); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1; color: var(--stt-gg-gold); }

/* ---------- Sections ---------- */
.stt-gg-section { max-width: 1200px; margin: 0 auto; padding: 64px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.stt-gg-heading { text-align: center; }
.stt-gg-section-title { font-family: var(--stt-gg-font); font-weight: 400; font-style: italic; font-size: clamp(44px, 6vw, 68px); line-height: 1; margin-top: 4px; }
.stt-gg-tabs { display: flex; gap: 8px 30px; flex-wrap: wrap; justify-content: center; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.stt-gg-tabs a { padding: 12px 4px; border-bottom: 2px solid transparent; }
.stt-gg-tabs a.is-active { border-bottom-color: var(--stt-gg-ink); font-weight: 600; }
.stt-gg-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.stt-gg-card { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.stt-gg-card-media { display: block; margin-bottom: 8px; }
.stt-gg-card-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stt-gg-muted); }
.stt-gg-card-title { font-family: var(--stt-gg-font); font-size: 25px; line-height: 1.1; }
.stt-gg-card-price { font-size: 14px; }
.stt-gg-card-price s { opacity: .7; margin-left: .25em; }
.stt-gg-card > :nth-last-child(2) { margin-bottom: 8px; } /* space above the button, which sits at the bottom so buttons line up across a row */
.stt-gg .stt-gg-btn {
	align-self: center; margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px;
	background: var(--stt-gg-btn-bg, transparent); color: var(--stt-gg-btn-color, #6b5d4f); border: 1px solid var(--stt-gg-btn-border, #6b5d4f); border-radius: 0;
	font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.stt-gg .stt-gg-btn:hover { opacity: .85; }
.stt-gg .stt-gg-btn:hover { background: var(--stt-gg-btn-hover, var(--stt-gg-btn-bg)); color: var(--stt-gg-btn-hover-text, var(--stt-gg-btn-color)); }
.stt-gg-seeall { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--stt-gg-font); font-style: italic; font-size: 24px; border-bottom: 1px solid var(--stt-gg-ink); }
.stt-gg-pager { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stt-gg-pager:empty { display: none; }
.stt-gg-empty { text-align: center; padding: 40px 16px; color: var(--stt-gg-muted); }

/* ---------- Shop by budget ---------- */
.stt-gg-budget { background: var(--stt-gg-band); margin-top: 88px; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.stt-gg-budget-title { font-family: var(--stt-gg-font); font-weight: 400; font-size: clamp(38px, 5vw, 52px); line-height: 1; text-align: center; }
.stt-gg-budget-grid { width: 100%; max-width: 1000px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stt-gg-budget-tile { background: #fff; border: 1px solid var(--stt-gg-ink); padding: 32px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stt-gg-budget-tile span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stt-gg-muted); }
.stt-gg-budget-tile strong { font-family: var(--stt-gg-font); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.stt-gg-budget-tile:hover { background: var(--stt-gg-ink); color: #fff; }
.stt-gg-budget-tile:hover span { color: #fff; }

/* ---------- Tablets ---------- */
@media (max-width: 900px) {
	.stt-gg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	.stt-gg-hero { padding: 0 12px 14px; gap: 8px; }
	.stt-gg-intro { font-size: 14px; }
	/* Filter buttons shrink so each row fits the screen with no sideways scrolling; they wrap only on very narrow phones */
	.stt-gg-filters { display: block; padding: 10px 8px; }
	.stt-gg-search { flex: 1 1 100%; margin-bottom: 4px; }
	.stt-gg-search-input { flex: 1 1 auto; }
	.stt-gg-filter-row { justify-content: center; gap: 4px; }
	.stt-gg-filter-row + .stt-gg-filter-row { margin-top: 6px; }
	.stt-gg-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
	.stt-gg .stt-gg-chip { font-size: 11px; letter-spacing: .03em; padding: 0 8px; }
	.stt-gg-tiles { grid-template-columns: repeat(var(--stt-gg-n-m, 5), minmax(0, 1fr)); gap: 14px 8px; padding: 0 12px 18px; }
	.stt-gg-tile { gap: 6px; }
	.stt-gg-tile-name { font-size: 15px; }
	.stt-gg-initial { font-size: 11vw; }
	.stt-gg-section { padding: 44px 12px 0; gap: 16px; }
	.stt-gg-tabs { gap: 4px 20px; font-size: 12px; }
	.stt-gg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.stt-gg-card { gap: 4px; }
	.stt-gg-card-label { font-size: 10px; }
	.stt-gg-card-title { font-size: 20px; }
	.stt-gg-card-price { font-size: 13px; }
	.stt-gg .stt-gg-btn { align-self: stretch; font-size: 11px; padding: 0 8px; }
	.stt-gg-seeall { font-size: 21px; }
	.stt-gg-budget { margin-top: 48px; padding: 40px 12px; gap: 20px; }
	.stt-gg-budget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.stt-gg-budget-tile { padding: 20px 8px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
	.stt-gg-filter-row { gap: 3px; }
	.stt-gg .stt-gg-chip { font-size: 10px; letter-spacing: 0; padding: 0 5px; }
	.stt-gg-tile-name { font-size: 14px; }
}

/* While a filter is loading */
.stt-gg.stt-gg-loading .stt-gg-grid,.stt-gg.stt-gg-loading .stt-gg-section,.stt-gg.stt-gg-loading .stt-gg-budget{opacity:.45;transition:opacity .15s}
