/* ==========================================================================
   Galleria De Rings: "Shop by Shape" — CLASSIC REFINED design
   Same layout as Classic (preview box left, 3x3 cuts right), polished:
   - Preview box in the ring photos' own #f7f7f7, softly rounded, balanced 5:4
     proportion; ring capped at 440px so it stays crisp on Retina.
   - Cuts sit box-less with no hover effect; a multiply blend lets the photos'
     white backdrop take the section colour. Preview box hidden on phones.
   - Refined uppercase labels. No transforms on images (they soften photos).
   (Original Classic styles: diamond-shapes.css — left untouched.)
   ========================================================================== */

.diamond-shapes--refined {
	--dsr-ink: var(--g-navy, #0b132a);
	--dsr-muted: #6b7080;
	--dsr-pool: #f7f7f7;   /* identical to the ring photos' backdrop */
	--dsr-bg: #f9f9fb;     /* soft cool white */
	--dsr-frame: #e9eaee;

	background: var(--dsr-bg);
	width: 100%;
	box-sizing: border-box;
	padding: clamp(28px, 3vw, 48px) clamp(20px, 4vw, 64px) clamp(48px, 5.5vw, 88px);
}

.diamond-shapes--refined .diamond-shapes__fullwidth-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

/* Section heading — same style as "Gifting Under Budget" for a consistent home page. */
.diamond-shapes--refined .diamond-shapes__title {
	margin: 0 auto clamp(28px, 3.5vw, 48px);
	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(--dsr-ink);
}

.diamond-shapes--refined .diamond-shapes__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

/* Preview box --------------------------------------------------------------- */
.diamond-shapes--refined .diamond-shapes__showcase-col {
	display: flex;
	justify-content: center;
}

.diamond-shapes--refined .diamond-shapes__card--interactive {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 5 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 3vw, 40px);
	box-sizing: border-box;
	background: var(--dsr-pool);
	border: 1px solid var(--dsr-frame);
	border-radius: 28px;
	box-shadow: 0 18px 40px -28px rgba(11, 19, 42, 0.22);
	overflow: hidden;
}

.diamond-shapes--refined .diamond-shapes__stage {
	position: relative;
	width: 100%;
	max-width: 440px;
	aspect-ratio: 2 / 1;
}

.diamond-shapes--refined .diamond-shapes__ring-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.32s ease;
	pointer-events: none;
	user-select: none;
}

.diamond-shapes--refined .diamond-shapes__ring-img.is-active {
	opacity: 1;
}

/* Cuts grid ----------------------------------------------------------------- */
.diamond-shapes--refined .diamond-shapes__grid-col {
	display: flex;
	justify-content: center;
}

.diamond-shapes--refined .diamond-shapes__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 36px) clamp(8px, 1.4vw, 20px);
	width: 100%;
	max-width: 600px;
	margin: 0;
	padding: 0;
}

.diamond-shapes--refined .diamond-shapes__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 4px 0;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	outline: none;
	touch-action: manipulation;
}

.diamond-shapes--refined .diamond-shapes__item:focus-visible {
	outline: 2px solid var(--dsr-ink);
	outline-offset: 4px;
	border-radius: 12px;
}

/* 160px photo, cropped to 120px tall to drop the mirror reflection. */
.diamond-shapes--refined .diamond-shapes__thumb {
	position: relative;
	width: 160px;
	max-width: 100%;
	aspect-ratio: 160 / 120;
	overflow: hidden;
	margin: 0 auto;
	/* Same colour as the section, so the photo's multiply blend always has it
	   to blend with, even while the scroll-in animation (motion.js) renders
	   the item as its own layer. Without this the white photo backdrop
	   showed until the animation ended. */
	background: var(--dsr-bg);
}

/* No hover / selected effect on the cuts (by request): the ring preview alone
   shows which cut is in focus. Keyboard focus ring above is kept for accessibility. */

.diamond-shapes--refined .diamond-shapes__thumb-img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	mix-blend-mode: multiply;   /* photo's white backdrop takes the section colour */
}

.diamond-shapes--refined .diamond-shapes__name {
	font-family: var(--g-font-body, "Source Sans 3", sans-serif);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--dsr-muted);
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 991px) {
	.diamond-shapes--refined .diamond-shapes__layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.diamond-shapes--refined .diamond-shapes__card--interactive {
		max-width: 640px;
		aspect-ratio: 16 / 10;
	}
}

/* Phones: no preview box, just the cuts (each tap opens the shop for that cut). */
@media (max-width: 767px) {
	.diamond-shapes--refined .diamond-shapes__showcase-col {
		display: none;
	}

	.diamond-shapes--refined .diamond-shapes__layout {
		gap: 0;
	}
}

@media (max-width: 640px) {
	.diamond-shapes--refined {
		padding: 24px 16px 36px;
	}

	.diamond-shapes--refined .diamond-shapes__title {
		font-size: clamp(24px, 5.5vw, 34px);
		margin-bottom: clamp(16px, 3vw, 24px);
	}

	.diamond-shapes--refined .diamond-shapes__card--interactive {
		border-radius: 20px;
		padding: 16px;
	}

	.diamond-shapes--refined .diamond-shapes__grid {
		gap: 22px 6px;
	}

	.diamond-shapes--refined .diamond-shapes__item {
		gap: 10px;
	}

	.diamond-shapes--refined .diamond-shapes__thumb {
		width: 104px;
	}

	.diamond-shapes--refined .diamond-shapes__name {
		font-size: 11px;
		letter-spacing: 0.1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.diamond-shapes--refined .diamond-shapes__ring-img {
		transition: none;
	}
}
