/* ==========================================================================
   Galleria De Rings: Shop by Category — Premium Bento
   Same bento layout (Necklaces tall left · Rings wide top-right ·
   Earrings + Bracelets bottom-right), refined:
   - Soft studio "spotlight" card backgrounds (products are transparent PNGs)
   - EB Garamond names, quiet uppercase "Explore Collection" with a hairline
     that extends on hover (no arrows, no underline)
   - Hover = gentle glow + deeper shadow only; images are never scaled or
     moved, so they stay sharp
   - Phones/tablets: 2x2 grid
   - Sits on a sapphire band that continues the fade at the bottom of the
     home video hero (hero-video.css), with a white heading
   ========================================================================== */

.shop-cats {
	--sc-ink: var(--g-navy, #0b132a);
	--sc-muted: #5c6070;
	--sc-radius: clamp(16px, 1.6vw, 22px);
	--sc-pad: clamp(24px, 2.6vw, 40px);

	/* Sapphire band: continues the fade at the bottom of the hero video. */
	background: linear-gradient(180deg, var(--g-sapphire, #1e3358) 0%, #182a4c 100%);
	padding: clamp(8px, 1.2vw, 16px) 0 clamp(48px, 6vw, 84px);
	width: 100%;
	box-sizing: border-box;
}

.shop-cats__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3.5vw, 40px);
	box-sizing: border-box;
}

.shop-cats__title {
	margin: 0 0 clamp(20px, 2.5vw, 36px);
	font-family: var(--g-font-heading, "EB Garamond", serif);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-align: center;
	color: var(--g-white, #fff);
}

/* Desktop bento --------------------------------------------------------------- */
.shop-cats__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 20px);
	width: 100%;
	aspect-ratio: 16 / 7;
}

/* Card ------------------------------------------------------------------------- */
.shop-cats__card {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--sc-radius);
	text-decoration: none;
	isolation: isolate;
	/* Studio spotlight: light pool where the piece sits, soft falloff to the edges. */
	background:
		radial-gradient(120% 95% at var(--sc-spot, 68% 62%), #fdfdfd 0%, #f4f5f7 42%, #eceef1 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 40px -26px rgba(4, 9, 22, 0.6);
	transition: box-shadow 0.35s ease, border-color 0.35s ease;
	box-sizing: border-box;
}

/* Hover glow (fades in; nothing moves). */
.shop-cats__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(70% 70% at var(--sc-spot, 68% 62%), rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.shop-cats__card:hover {
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 26px 52px -24px rgba(4, 9, 22, 0.75);
}

.shop-cats__card:hover::before {
	opacity: 1;
}

.shop-cats__card:focus-visible {
	outline: 2px solid var(--g-white, #fff);
	outline-offset: 3px;
}

/* Text block: always top-left */
.shop-cats__content {
	position: relative;
	z-index: 2;
	padding: var(--sc-pad) var(--sc-pad) 0;
}

.shop-cats__name {
	margin: 0;
	font-family: var(--g-font-heading, "EB Garamond", serif);
	font-size: clamp(24px, 2.2vw, 32px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--sc-ink);
}

.shop-cats__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: clamp(10px, 1vw, 14px);
	font-family: var(--g-font-body, "Source Sans 3", sans-serif);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sc-muted);
	transition: color 0.3s ease;
}

.shop-cats__cta-line {
	display: block;
	width: 20px;
	height: 1px;
	background: currentColor;
	transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shop-cats__card:hover .shop-cats__cta {
	color: var(--sc-ink);
}

.shop-cats__card:hover .shop-cats__cta-line {
	width: 34px;
}

/* Product image box (positioned per card). Images are never transformed. */
.shop-cats__media {
	position: absolute;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.shop-cats__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 18px 22px rgba(11, 19, 42, 0.14));
}

/* 1. Pendants & Necklaces — tall left */
.shop-cats__card--necklaces {
	grid-column: 1;
	grid-row: 1 / span 2;
	--sc-spot: 50% 72%;
}

.shop-cats__card--necklaces .shop-cats__name {
	font-size: clamp(30px, 2.9vw, 42px);
}

.shop-cats__card--necklaces .shop-cats__media {
	left: 12%;
	right: 12%;
	top: clamp(130px, 13vw, 170px);
	bottom: 6%;
	align-items: flex-end;
}

/* 2. Rings — wide top-right */
.shop-cats__card--rings {
	grid-column: 2 / span 2;
	grid-row: 1;
	--sc-spot: 72% 58%;
}

.shop-cats__card--rings .shop-cats__content {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 0;
}

.shop-cats__card--rings .shop-cats__name {
	font-size: clamp(28px, 2.7vw, 38px);
}

.shop-cats__card--rings .shop-cats__media {
	left: 42%;
	right: 5%;
	top: 12%;
	bottom: 12%;
}

/* 3 + 4. Earrings & Bracelets — bottom-right pair (text top-left, piece bottom-right) */
.shop-cats__card--earrings {
	grid-column: 2;
	grid-row: 2;
	--sc-spot: 66% 72%;
}

.shop-cats__card--earrings .shop-cats__media {
	left: 34%;
	right: 7%;
	top: 44%;
	bottom: 10%;
	justify-content: flex-end;
}

.shop-cats__card--bracelets {
	grid-column: 3;
	grid-row: 2;
	--sc-spot: 72% 62%;
}

/* Kept right of the text block so "Explore Collection" never overlaps the bracelet. */
.shop-cats__card--bracelets .shop-cats__media {
	left: 62%;
	right: 6%;
	top: 9%;
	bottom: 9%;
}

/* Tablet & phones: 2x2 grid ------------------------------------------------------- */
@media (max-width: 860px) {
	.shop-cats {
		--sc-pad: clamp(16px, 3.6vw, 24px);
		padding: clamp(4px, 1.5vw, 12px) 0 clamp(32px, 5vw, 52px);
	}

	.shop-cats__container {
		padding: 0 clamp(12px, 3.5vw, 24px);
	}

	.shop-cats__title {
		font-size: clamp(24px, 5.5vw, 34px);
		margin-bottom: clamp(16px, 3vw, 24px);
	}

	.shop-cats__grid {
		aspect-ratio: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto;
		gap: clamp(10px, 2.5vw, 16px);
	}

	.shop-cats__card,
	.shop-cats__card--necklaces,
	.shop-cats__card--rings,
	.shop-cats__card--earrings,
	.shop-cats__card--bracelets {
		grid-column: auto;
		grid-row: auto;
		min-height: clamp(220px, 56vw, 300px);
		--sc-spot: 50% 70%;
	}

	.shop-cats__card--rings .shop-cats__content {
		position: relative;
		inset: auto;
		display: block;
		padding-top: var(--sc-pad);
	}

	.shop-cats__card .shop-cats__name,
	.shop-cats__card--necklaces .shop-cats__name,
	.shop-cats__card--rings .shop-cats__name {
		font-size: clamp(18px, 4.6vw, 24px);
	}

	.shop-cats__cta {
		margin-top: 8px;
		gap: 8px;
		font-size: 10px;
		letter-spacing: 0.14em;
	}

	.shop-cats__cta-line {
		width: 14px;
	}

	/* Piece fills the lower part of each tile. */
	.shop-cats__card .shop-cats__media,
	.shop-cats__card--necklaces .shop-cats__media,
	.shop-cats__card--rings .shop-cats__media,
	.shop-cats__card--earrings .shop-cats__media,
	.shop-cats__card--bracelets .shop-cats__media {
		left: 10%;
		right: 10%;
		top: auto;
		bottom: 8%;
		height: 52%;
		align-items: center;
		justify-content: center;
	}

	.shop-cats__img {
		filter: drop-shadow(0 10px 14px rgba(11, 19, 42, 0.14));
	}
}

@media (max-width: 420px) {
	.shop-cats__container {
		padding: 0 10px;
	}

	.shop-cats__grid {
		gap: 8px;
	}

	.shop-cats__card,
	.shop-cats__card--necklaces,
	.shop-cats__card--rings,
	.shop-cats__card--earrings,
	.shop-cats__card--bracelets {
		min-height: 210px;
	}

	.shop-cats__card .shop-cats__name,
	.shop-cats__card--necklaces .shop-cats__name,
	.shop-cats__card--rings .shop-cats__name {
		font-size: 17px;
	}
}

/* Phones: keep "Explore Collection" on one line, clear of the piece. */
@media (max-width: 480px) {
	.shop-cats__cta {
		white-space: nowrap;
		font-size: 9.5px;
		letter-spacing: 0.1em;
	}

	.shop-cats__cta-line {
		display: none;
	}

	.shop-cats__card .shop-cats__media,
	.shop-cats__card--necklaces .shop-cats__media,
	.shop-cats__card--rings .shop-cats__media,
	.shop-cats__card--earrings .shop-cats__media,
	.shop-cats__card--bracelets .shop-cats__media {
		height: 48%;
		bottom: 7%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shop-cats__card,
	.shop-cats__card::before,
	.shop-cats__cta,
	.shop-cats__cta-line {
		transition: none;
	}
}
