/* ==========================================================================
   Avhoron – Shop by Budget (scoped to .avhoron-budget)
   ========================================================================== */
.avhoron-budget {
	--avb-serif: "Crimson Pro", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--avb-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--avb-side: clamp(16px, 3vw, 56px);

	position: relative;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	padding: var(--avb-pt) 0 var(--avb-pb);
	background-color: var(--avb-bg);
	/* Faint ornamental glow, as in the reference. */
	background-image:
		radial-gradient(circle at 6% 30%, rgba(176, 120, 60, .10) 0, rgba(176, 120, 60, 0) 22%),
		radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 38%);
	font-family: var(--avb-sans);
	-webkit-font-smoothing: antialiased;
}
.avhoron-budget *,
.avhoron-budget *::before,
.avhoron-budget *::after { box-sizing: inherit; }

/* ---------- Jewellery image ---------- */
.avhoron-budget .avhoron-budget__image {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: var(--avb-img-w);
	opacity: var(--avb-img-o);
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
	mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.avhoron-budget.is-image-left .avhoron-budget__image {
	right: auto;
	left: 0;
	-webkit-mask-image: linear-gradient(to left, transparent 0, #000 38%);
	mask-image: linear-gradient(to left, transparent 0, #000 38%);
}
.avhoron-budget .avhoron-budget__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

/* ---------- Content ---------- */
.avhoron-budget .avhoron-budget__content {
	position: relative;
	z-index: 1;
	padding: 0 var(--avb-side);
}
.avhoron-budget.has-image.is-image-right .avhoron-budget__items { padding-right: calc(var(--avb-img-w) * .92 - var(--avb-side)); }
.avhoron-budget.has-image.is-image-left .avhoron-budget__items { padding-left: calc(var(--avb-img-w) * .92 - var(--avb-side)); }

.avhoron-budget .avhoron-budget__header {
	display: table;
	margin: 0 auto clamp(2px, .45vw, 10px);
	padding: 2px clamp(18px, 2vw, 34px) 4px;
	text-align: center;
	/* Soft lighter "tab" behind the title, as in the reference. */
	background: radial-gradient(ellipse at center, rgba(255, 250, 240, .95) 0, rgba(255, 250, 240, .65) 55%, rgba(255, 250, 240, 0) 100%);
}
.avhoron-budget .avhoron-budget__heading {
	margin: 0;
	padding: 0;
	font-family: var(--avb-serif);
	font-size: max(17px, min(var(--avb-title-size), 1.6vw));
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--avb-title);
}
.avhoron-budget .avhoron-budget__subtitle {
	margin: 2px 0 0;
	padding: 0;
	font-family: var(--avb-serif);
	font-size: max(12px, min(var(--avb-subtitle-size), 1.05vw));
	font-weight: 600;
	line-height: 1.35;
	color: var(--avb-subtitle);
}

/* ---------- Cards ---------- */
.avhoron-budget .avhoron-budget__items {
	display: flex;
	justify-content: center;
	gap: min(var(--avb-gap), 3.1vw);
	margin: 0;
	padding: 4px 0 2px;
	list-style: none;
}
.avhoron-budget .avhoron-budget__item {
	flex: 0 1 min(var(--avb-card-w), 9vw);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.avhoron-budget .avhoron-budget__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .28em;
	width: 100%;
	aspect-ratio: 100 / 102;
	padding: 18% 6% 6%;
	color: var(--avb-card-text);
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	font-size: min(var(--avb-price-size), 1.6vw);
	isolation: isolate; /* keeps the arch shape behind the text but above the section */
	transition: transform .3s ease, filter .3s ease;
}
.avhoron-budget .avhoron-budget__shape {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.avhoron-budget .avhoron-budget__shape path { fill: var(--avb-card); }
.avhoron-budget .avhoron-budget__shape .avhoron-budget__shape-line {
	fill: none;
	stroke: rgba(240, 195, 74, .35);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}
.avhoron-budget .avhoron-budget__top {
	font-size: .64em;
	font-weight: var(--avb-weight);
	line-height: 1.1;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.avhoron-budget .avhoron-budget__price {
	font-size: 1em;
	font-weight: var(--avb-weight);
	line-height: 1.1;
	letter-spacing: .01em;
	white-space: nowrap;
}
.avhoron-budget .avhoron-budget__arrow {
	display: grid;
	place-items: center;
	width: max(20px, 1.1em);
	height: max(20px, 1.1em);
	margin-top: .3em;
	border-radius: 50%;
	background: var(--avb-arrow-bg);
	color: var(--avb-arrow);
	transition: transform .3s ease;
}
.avhoron-budget .avhoron-budget__arrow svg { width: 58%; height: 58%; }

@media (hover: hover) {
	.avhoron-budget .avhoron-budget__card:hover {
		transform: translateY(-4px);
		filter: drop-shadow(0 8px 12px rgba(74, 13, 18, .25));
	}
	.avhoron-budget .avhoron-budget__card:hover .avhoron-budget__arrow { transform: translateX(3px); }
}
.avhoron-budget .avhoron-budget__card:focus-visible {
	outline: 2px solid var(--avb-title);
	outline-offset: 4px;
	border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.avhoron-budget .avhoron-budget__card { font-size: max(15px, min(var(--avb-price-size), 1.6vw)); }
}

/* Tablet & mobile: image becomes optional backdrop, cards get the full width. */
@media (max-width: 921px) {
	.avhoron-budget .avhoron-budget__image { display: none; }
	.avhoron-budget.is-image-mobile .avhoron-budget__image {
		display: block;
		width: 55%;
		opacity: calc(var(--avb-img-o) * .35);
	}
	.avhoron-budget.has-image .avhoron-budget__content { padding-left: 0; padding-right: 0; }
	.avhoron-budget .avhoron-budget__header { padding-left: 16px; padding-right: 16px; margin-bottom: 10px; }

	/* Swipe mode */
	.avhoron-budget.is-mobile-scroll .avhoron-budget__items {
		justify-content: flex-start;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 8px 16px 10px;
		gap: 14px;
	}
	.avhoron-budget.is-mobile-scroll .avhoron-budget__items::-webkit-scrollbar { display: none; }
	.avhoron-budget.is-mobile-scroll .avhoron-budget__item {
		flex: 0 0 var(--avb-card-w-m);
		scroll-snap-align: start;
	}
	/* Centre when everything fits (e.g. few budgets on a tablet). */
	.avhoron-budget.is-mobile-scroll .avhoron-budget__item:first-child { margin-left: auto; }
	.avhoron-budget.is-mobile-scroll .avhoron-budget__item:last-child { margin-right: auto; }

	/* Grid mode */
	.avhoron-budget.is-mobile-grid .avhoron-budget__items {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
		padding: 8px 16px;
	}
	.avhoron-budget .avhoron-budget__card { font-size: 21px; }
	.avhoron-budget .avhoron-budget__heading { font-size: 21px; }
	.avhoron-budget .avhoron-budget__subtitle { font-size: 13px; }
	.avhoron-budget .avhoron-budget__arrow { width: 30px; height: 30px; }
	.avhoron-budget { padding-top: max(var(--avb-pt), 18px); padding-bottom: max(var(--avb-pb), 22px); }
	.avhoron-budget.has-image .avhoron-budget__items { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 544px) {
	.avhoron-budget.is-mobile-grid .avhoron-budget__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.avhoron-budget .avhoron-budget__card { font-size: 20px; }
	.avhoron-budget .avhoron-budget__heading { font-size: 20px; }
	.avhoron-budget .avhoron-budget__subtitle { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.avhoron-budget * { transition: none !important; }
}
