/**
 * Create your jewelry page (scoped).
 */

body.colibri-jewelry {
	--jewelry-ivory: #f5f1ea;
	--jewelry-warm: #faf9f6;
	--jewelry-champagne: #d8c8af;
	--jewelry-charcoal: #292723;
	--jewelry-muted: #77716a;
	--jewelry-line: #e4dcd2;
	--jewelry-accent: #b08a62;
	--jewelry-accent-hover: #966f4b;
	--jewelry-paper: #fffcf8;
	--jewelry-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--jewelry-sans: "Outfit", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
	--jewelry-shell: 1280px;
	--jewelry-pad: clamp(1.25rem, 4vw, 3.25rem);
	--jewelry-ease: cubic-bezier(0.22, 1, 0.36, 1);

	background:
		radial-gradient(1100px 480px at 6% -10%, rgba(255, 252, 248, 0.92), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(176, 138, 98, 0.07), transparent 48%),
		var(--jewelry-ivory);
	color: var(--jewelry-charcoal);
	font-family: var(--jewelry-sans);
}

body.colibri-jewelry .site-header {
	background: color-mix(in srgb, var(--jewelry-ivory) 94%, transparent);
	backdrop-filter: blur(12px);
}

.jewelry-shell {
	width: min(100% - (var(--jewelry-pad) * 2), var(--jewelry-shell));
	margin-inline: auto;
}

.jewelry-eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--jewelry-accent);
}

.jewelry-eyebrow--on-dark {
	color: var(--jewelry-champagne);
}

.jewelry-hero {
	padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.jewelry-hero__layout {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	align-items: center;
}

@media (min-width: 900px) {
	.jewelry-hero__layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

.jewelry-hero__title,
.jewelry-section__title,
.jewelry-cta__title,
.jewelry-intro__title {
	margin: 0;
	font-family: var(--jewelry-serif);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: var(--jewelry-charcoal);
}

.jewelry-hero__title {
	font-size: clamp(2.4rem, 5.5vw, 4rem);
}

.jewelry-hero__text,
.jewelry-section__text,
.jewelry-intro p,
.jewelry-cta__text {
	margin: 1rem 0 0;
	max-width: 38rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--jewelry-muted);
	font-weight: 300;
}

.jewelry-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.jewelry-hero__media {
	border-radius: 0;
	overflow: hidden;
	background: linear-gradient(160deg, #efe8dc, #f7f3ec);
	aspect-ratio: 4 / 3;
}

.jewelry-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jewelry-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.85rem;
	padding: 0.7rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--jewelry-sans);
	font-size: 0.84rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--jewelry-ease) 220ms, color var(--jewelry-ease) 220ms, border-color var(--jewelry-ease) 220ms;
}

.jewelry-btn--primary {
	background: var(--jewelry-charcoal);
	color: #fff;
}

.jewelry-btn--primary:hover {
	background: var(--jewelry-accent-hover);
	color: #fff;
}

.jewelry-btn--ghost {
	background: transparent;
	border-color: var(--jewelry-line);
	color: var(--jewelry-charcoal);
}

.jewelry-btn--ghost:hover {
	border-color: var(--jewelry-accent);
	color: var(--jewelry-accent-hover);
}

.jewelry-btn--light {
	background: var(--jewelry-paper);
	color: var(--jewelry-charcoal);
}

.jewelry-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 252, 248, 0.35);
	color: #fffcf8;
}

.jewelry-btn--ghost-light:hover {
	border-color: #fffcf8;
	color: #fff;
}

.jewelry-intro {
	padding-bottom: clamp(2rem, 5vw, 3rem);
}

.jewelry-intro__grid {
	display: grid;
	gap: 1.5rem 2.5rem;
	padding: 1.75rem 0;
	border-top: 1px solid var(--jewelry-line);
	border-bottom: 1px solid var(--jewelry-line);
}

@media (min-width: 760px) {
	.jewelry-intro__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.jewelry-intro__title {
	font-size: 1.55rem;
	margin-bottom: 0.65rem;
}

.jewelry-settings {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 6rem;
}

.jewelry-section__header {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
}

@media (min-width: 800px) {
	.jewelry-section__header {
		grid-template-columns: 1fr auto;
		align-items: end;
	}

	.jewelry-section__header--row {
		align-items: flex-end;
	}
}

.jewelry-section__title {
	font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.jewelry-metal__label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--jewelry-muted);
}

.jewelry-metal__select {
	min-width: 12rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--jewelry-line);
	background: var(--jewelry-paper);
	color: var(--jewelry-charcoal);
	font-family: var(--jewelry-sans);
	font-size: 0.95rem;
}

.jewelry-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: 0.55rem;
	margin-bottom: 1rem;
}

.jewelry-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	padding: 0.85rem 0.5rem;
	border: 1px solid var(--jewelry-line);
	background: var(--jewelry-paper);
	color: var(--jewelry-charcoal);
	cursor: pointer;
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.jewelry-cat:hover,
.jewelry-cat.is-active {
	border-color: var(--jewelry-accent);
	background: #fff;
}

.jewelry-cat.is-active {
	box-shadow: inset 0 -2px 0 var(--jewelry-accent);
}

.jewelry-cat__icon {
	display: block;
	width: 3.4rem;
	height: 1.55rem;
	color: var(--jewelry-charcoal);
}

.jewelry-cat__icon svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: currentColor;
}

.jewelry-cat__label {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-align: center;
}

.jewelry-cats__blurb {
	margin: 0 0 1.5rem;
	color: var(--jewelry-muted);
	font-size: 0.95rem;
	font-weight: 300;
}

.jewelry-mounts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 0.75rem;
}

@media (min-width: 700px) {
	.jewelry-mounts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem 1rem;
	}
}

@media (min-width: 1024px) {
	.jewelry-mounts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.jewelry-mount[hidden],
.jewelry-mount.is-collapsed {
	display: none !important;
}

.jewelry-mount__hit {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid transparent;
	background: var(--jewelry-paper);
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, transform 280ms var(--jewelry-ease);
}

.jewelry-mount__hit:hover,
.jewelry-mount.is-selected .jewelry-mount__hit {
	border-color: var(--jewelry-accent);
}

.jewelry-mount__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: linear-gradient(165deg, #f3eee6, #faf7f2);
}

.jewelry-mount__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8%;
	transition: opacity 220ms ease;
}

.jewelry-mount__img--next {
	opacity: 0;
}

.jewelry-mount__hit:hover .jewelry-mount__img--next {
	opacity: 1;
}

.jewelry-mount__hit:hover .jewelry-mount__img:not(.jewelry-mount__img--next) {
	opacity: 0;
}

.jewelry-mount__meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem 0.85rem 0.95rem;
}

.jewelry-mount__type {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jewelry-muted);
}

.jewelry-mount__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	font-size: 0.95rem;
	color: var(--jewelry-charcoal);
}

.jewelry-mount__was {
	text-decoration: line-through;
	color: var(--jewelry-muted);
	font-size: 0.85rem;
}

.jewelry-mount__vat {
	font-size: 0.72rem;
	color: var(--jewelry-muted);
}

.jewelry-mounts__empty {
	margin: 1.5rem 0 0;
	color: var(--jewelry-muted);
}

.jewelry-mounts__more {
	display: flex;
	justify-content: center;
	margin-top: 1.75rem;
}

.jewelry-tray {
	position: sticky;
	bottom: 0;
	z-index: 40;
	margin-top: 2rem;
	padding: 1rem 0;
	background: color-mix(in srgb, var(--jewelry-paper) 94%, transparent);
	border-top: 1px solid var(--jewelry-line);
	backdrop-filter: blur(10px);
	animation: jewelry-tray-in 320ms var(--jewelry-ease);
}

.jewelry-tray[hidden] {
	display: none !important;
}

@keyframes jewelry-tray-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jewelry-tray__inner {
	display: grid;
	gap: 1rem;
	align-items: center;
}

@media (min-width: 900px) {
	.jewelry-tray__inner {
		grid-template-columns: 1fr auto;
	}
}

.jewelry-tray__pair {
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.jewelry-tray__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.jewelry-tray__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: center;
}

.jewelry-tray__item[hidden] {
	display: none !important;
}

.jewelry-tray__preview {
	width: 4.5rem;
	height: 4.5rem;
	background: #f3eee6;
}

.jewelry-tray__preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jewelry-tray__type {
	margin: 0;
	font-family: var(--jewelry-serif);
	font-size: 1.15rem;
	line-height: 1.25;
}

.jewelry-tray__price {
	margin: 0.2rem 0 0;
	color: var(--jewelry-muted);
	font-size: 0.92rem;
}

.jewelry-tray__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.jewelry-tray__close {
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--jewelry-line);
	background: transparent;
	color: var(--jewelry-charcoal);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.jewelry-diamond {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.jewelry-diamond.is-selected {
	outline: 1px solid var(--jewelry-accent);
	outline-offset: 4px;
}

.jewelry-diamond .card {
	margin: 0;
}

.jewelry-diamond__pair {
	width: 100%;
}

.jewelry-pair-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	padding: 0.85rem 1rem;
	background: rgba(255, 252, 248, 0.96);
	border-top: 1px solid #e4dcd2;
	backdrop-filter: blur(10px);
	box-shadow: 0 -8px 24px rgba(41, 39, 35, 0.06);
}

.jewelry-pair-bar__inner {
	width: min(100%, 1280px);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	justify-content: space-between;
}

.jewelry-pair-bar__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #b08a62;
	font-family: Outfit, Inter, sans-serif;
}

.jewelry-pair-bar__text {
	margin: 0;
	color: #292723;
	font-size: 0.95rem;
	font-family: Outfit, Inter, sans-serif;
}

.jewelry-pair-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.jewelry-pair-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	border: 1px solid #e4dcd2;
	background: transparent;
	color: #292723;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	font-family: Outfit, Inter, sans-serif;
}

.jewelry-pair-bar__btn--primary {
	background: #292723;
	border-color: #292723;
	color: #fff;
}

.jewelry-pair-bar__btn--ghost:hover {
	border-color: #b08a62;
	color: #966f4b;
}

body.has-jewelry-pair-bar {
	padding-bottom: 5.5rem;
}

.jewelry-pair-inline {
	margin: 0.85rem 0 0;
}

.jewelry-pair-inline[hidden] {
	display: none !important;
}

.jewelry-diamonds {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
	background: linear-gradient(180deg, transparent, rgba(255, 252, 248, 0.7) 20%, transparent);
}

.jewelry-diamonds__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.jewelry-diamond-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.25rem;
}

.jewelry-diamond-grid .card {
	background: var(--jewelry-paper);
}

.jewelry-cta {
	padding: clamp(3.5rem, 8vw, 5.5rem) 0;
	background:
		linear-gradient(135deg, rgba(41, 39, 35, 0.96), rgba(70, 58, 46, 0.94)),
		var(--jewelry-charcoal);
	color: #fffcf8;
}

.jewelry-cta__title {
	color: #fffcf8;
	font-size: clamp(2rem, 4vw, 3rem);
}

.jewelry-cta__text {
	color: rgba(255, 252, 248, 0.72);
}

[data-jewelry-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 560ms var(--jewelry-ease), transform 560ms var(--jewelry-ease);
}

[data-jewelry-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-jewelry-reveal],
	.jewelry-tray,
	.jewelry-mount__img,
	.jewelry-btn {
		transition: none !important;
		animation: none !important;
	}

	[data-jewelry-reveal] {
		opacity: 1;
		transform: none;
	}
}
