/* Savernake Gifts category. Values from the product archive template
   (Elementor 824359) and the kit, scoped to .sav-gifts. */

.sav-gifts {
	--sav-text: #111111;
	--sav-cream: #FBF9F6;
	color: var(--sav-text);
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 26px;
}

/* Dark title band */
.sav-gifts__hero {
	position: relative;
	background-color: #111111;
	background-image:
		linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.82) 50%, rgba(17, 17, 17, 0.5) 100%),
		var(--sav-gifts-hero, none);
	background-size: cover;
	background-position: center 55%;
	padding: 80px 8% 72px;
}
.sav-gifts__hero-inner {
	max-width: 900px;
}
/* Scoped tightly: the kit's global h1 colour and WooCommerce's column
   widths otherwise win on this page. */
body .sav-gifts .sav-gifts__hero h1.sav-gifts__title {
	margin: 0 0 12px;
	font-family: "Newsreader", Georgia, serif;
	font-size: 72px;
	font-weight: 500;
	line-height: 76px;
	letter-spacing: -0.01em;
	color: var(--sav-cream) !important;
}
.sav-gifts__desc,
.sav-gifts__desc p {
	color: var(--sav-cream);
	font-size: 16px;
	font-weight: 300;
	line-height: 26px;
}
.sav-gifts__desc p {
	margin: 0 0 14.4px;
}
.sav-gifts__desc p:last-child {
	margin-bottom: 0;
}

/* Body */
.sav-gifts__body {
	padding: 58px 8%;
}
.sav-gifts__row {
	margin-top: 72px;
}
.sav-gifts__h2 {
	margin: 0 0 24px;
	font-family: "Newsreader", Georgia, serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 42px;
	letter-spacing: -0.01em;
	color: var(--sav-text);
}

/* Product grid: WooCommerce's own cards, laid out as the archive does */
body .sav-gifts ul.products {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 4px;
	row-gap: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body .sav-gifts ul.products.sav-gifts__grid--feature {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sav-gifts ul.products::before,
.sav-gifts ul.products::after {
	display: none;
}
body .sav-gifts ul.products li.product,
body .sav-gifts ul.products[class*="columns-"] li.product {
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
}
body .sav-gifts ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 0 16px;
	border: 0;
}
.sav-gifts ul.products li.product a {
	text-decoration: none;
	color: inherit;
}
/* Card text: Flame name, a touch larger; text inset narrower than the image */
body .sav-gifts ul.products li.product .woocommerce-loop-product__title,
body .sav-gifts ul.products li.product .product-short-description,
body .sav-gifts ul.products li.product .price {
	padding-left: 14px;
	padding-right: 14%;
}
body .sav-gifts ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 4px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	color: #FD4712;
}
body .sav-gifts ul.products li.product .product-short-description {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	color: var(--sav-text);
}
body .sav-gifts ul.products li.product .price {
	display: block;
	margin: 0 0 8px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: -0.01em;
	color: var(--sav-text);
}
.sav-gifts ul.products li.product .button {
	display: none;
}

@media (max-width: 1024px) {
	.sav-gifts__hero {
		padding: 72px 5% 64px;
	}
	.sav-gifts__body {
		padding: 48px 5%;
	}
	body .sav-gifts ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 40px;
	}
}

@media (max-width: 767px) {
	body .sav-gifts .sav-gifts__hero h1.sav-gifts__title {
		font-size: 32px;
		line-height: 36px;
	}
	.sav-gifts__desc,
	.sav-gifts__desc p {
		font-size: 14px;
		line-height: 28px;
	}
	.sav-gifts__hero {
		padding: 64px 20px 56px;
		background-image:
			linear-gradient(rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.78)),
			var(--sav-gifts-hero, none);
	}
	.sav-gifts__body {
		padding: 48px 20px;
	}
	body .sav-gifts ul.products li.product .woocommerce-loop-product__title,
	body .sav-gifts ul.products li.product .product-short-description,
	body .sav-gifts ul.products li.product .price {
		padding-left: 4px;
		padding-right: 8%;
	}
	body .sav-gifts ul.products,
	body .sav-gifts ul.products.sav-gifts__grid--feature {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}
	.sav-gifts__row {
		margin-top: 56px;
	}
}


/* ------------------------------------------------------------------------
 * Refinements
 * ------------------------------------------------------------------------ */

/* Hero: let the photograph show on the image side; keep the text side dark. */
.sav-gifts .sav-gifts__hero {
	background-image:
		linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.78) 38%, rgba(17, 17, 17, 0.3) 72%, rgba(17, 17, 17, 0.18) 100%),
		var(--sav-gifts-hero, none);
}
/* Intro at a readable measure, left-aligned under the heading. */
.sav-gifts .sav-gifts__desc {
	max-width: 68ch;
}

/* Featured pair: the gift card takes the wider column; no added furniture. */
body .sav-gifts ul.products.sav-gifts__grid--feature {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	column-gap: 24px;
	align-items: start;
}
body .sav-gifts ul.products.sav-gifts__grid--feature li.sav-gifts__card--giftcard {
	order: -1;
}

/* Orange titles only for the two principal routes; black elsewhere, orange on hover. */
body .sav-gifts ul.products:not(.sav-gifts__grid--feature) li.product .woocommerce-loop-product__title {
	color: var(--sav-text);
	transition: color 0.15s ease;
}
body .sav-gifts ul.products:not(.sav-gifts__grid--feature) li.product a:hover .woocommerce-loop-product__title,
body .sav-gifts ul.products:not(.sav-gifts__grid--feature) li.product a:focus-visible .woocommerce-loop-product__title {
	color: #FD4712;
}

/* A deliberate new chapter, not a margin token: about 22% tighter. */
.sav-gifts .sav-gifts__row {
	margin-top: 56px;
}

@media (max-width: 1024px) {
	body .sav-gifts ul.products.sav-gifts__grid--feature {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 20px;
	}
}
@media (max-width: 767px) {
	.sav-gifts .sav-gifts__hero {
		padding: 40px 20px 36px;
		background-image:
			linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)),
			var(--sav-gifts-hero, none);
	}
	body .sav-gifts ul.products.sav-gifts__grid--feature {
		grid-template-columns: minmax(0, 1fr);
	}
	.sav-gifts .sav-gifts__row {
		margin-top: 44px;
	}
}
@media (prefers-reduced-motion: reduce) {
	body .sav-gifts ul.products li.product .woocommerce-loop-product__title {
		transition: none;
	}
}
