/* ==========================================================================
   Chamdon — Component layer.
   Shared building blocks used by the templates: buttons, badges, chips,
   section headings, the homepage hero, meters, the radar card and the
   cart's free-shipping progress bar.

   Loaded right after base.css so that layout.css / pages.css /
   woocommerce.css can still override individual pieces.
   ========================================================================== */

/* ---------------------------------------------------------------- shell */
.ch-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.ch-main {
	flex: 1 0 auto;
}

.ch-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--ch-gutter);
}

/* -------------------------------------------------------------- buttons */
.ch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--ch-r-pill);
	background: transparent;
	color: var(--ch-ink);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s var(--ch-ease), color 0.2s var(--ch-ease),
		border-color 0.2s var(--ch-ease), transform 0.2s var(--ch-ease),
		box-shadow 0.2s var(--ch-ease);
}

.ch-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--ch-shadow-md);
}

.ch-btn:active {
	transform: scale(0.98);
}

.ch-btn--primary {
	background: var(--ch-wine);
	color: var(--ch-cream);
}

.ch-btn--primary:hover {
	background: var(--ch-wine-soft);
	color: var(--ch-cream);
}

.ch-btn--ghost {
	border-color: var(--ch-line-amber);
	background: transparent;
	color: var(--ch-wine);
}

.ch-btn--ghost:hover {
	background: var(--ch-wine-tint);
	color: var(--ch-wine);
}

.ch-btn--block {
	width: 100%;
}

.ch-btn--sm {
	gap: 8px;
	padding: 8px 16px;
	font-size: 0.8125rem;
}

.ch-btn--lg {
	padding: 15px 32px;
	font-size: 1rem;
}

.ch-btn .ch-icon {
	flex: 0 0 auto;
}

/* --------------------------------------------------------------- badges */
.ch-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: var(--ch-r-xs);
	background: var(--ch-noir);
	color: var(--ch-amber-soft);
	font-family: var(--ch-font-mono);
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.ch-badge--amber {
	background: var(--ch-amber);
	color: var(--ch-noir);
}

.ch-badge--wine {
	background: var(--ch-wine);
	color: var(--ch-cream);
}

.ch-badge--cream {
	background: var(--ch-cream);
	color: var(--ch-wine);
}

/* ---------------------------------------------------------------- chips */
.ch-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-pill);
	background: var(--ch-cream-2);
	color: var(--ch-ink-soft);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.7;
	white-space: nowrap;
}

.ch-chip--amber {
	border-color: transparent;
	background: var(--ch-amber-tint);
	color: var(--ch-amber-deep);
}

/* --------------------------------------------------------------- misc */
.ch-cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ch-spec {
	display: inline-block;
	font-family: var(--ch-font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ch-muted);
}

.ch-small {
	font-size: 0.75rem;
	line-height: 1.9;
	color: var(--ch-muted);
}

.ch-mono {
	font-family: var(--ch-font-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.ch-text-amber {
	color: var(--ch-amber-deep);
}

.ch-mt-0 {
	margin-top: 0 !important;
}

.ch-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ch-wine);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: gap 0.2s var(--ch-ease), color 0.2s var(--ch-ease);
}

.ch-link-arrow:hover {
	gap: 12px;
	color: var(--ch-wine-soft);
}

.ch-money__unit {
	margin-inline-start: 3px;
	font-size: 0.6875rem;
	font-weight: 400;
	color: var(--ch-muted);
}

/* --------------------------------------------------------- eyebrow label */
.ch-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ch-font-mono);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ch-amber-deep);
}

.ch-eyebrow__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

/* ------------------------------------------------------- section heading */
.ch-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 32px;
}

.ch-section-head__main {
	max-width: 62ch;
}

.ch-section-head__title {
	margin: 8px 0 0;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--ch-ink);
}

.ch-section-head__desc {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	line-height: 2;
	color: var(--ch-ink-soft);
}

/* ------------------------------------------------------------ home hero */
.ch-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(200, 138, 62, 0.14), transparent 58%),
		linear-gradient(180deg, var(--ch-cream) 0%, #f7f1e9 100%);
}

.ch-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
}

.ch-hero__glow--a {
	width: 460px;
	height: 460px;
	top: -180px;
	inset-inline-start: -120px;
	background: rgba(114, 18, 36, 0.16);
}

.ch-hero__glow--b {
	width: 380px;
	height: 380px;
	bottom: -160px;
	inset-inline-end: 12%;
	background: rgba(200, 138, 62, 0.22);
}

.ch-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.ch-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.ch-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--ch-line-amber);
	border-radius: var(--ch-r-pill);
	background: rgba(255, 255, 255, 0.7);
	font-family: var(--ch-font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--ch-wine);
	backdrop-filter: blur(6px);
}

.ch-hero__title {
	margin: 0;
	font-size: clamp(2rem, 1.35rem + 3.2vw, 3.6rem);
	font-weight: 900;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: var(--ch-noir);
	text-wrap: balance;
}

.ch-hero__lead {
	margin: 0;
	max-width: 54ch;
	font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
	line-height: 2.1;
	color: var(--ch-ink-soft);
}

.ch-hero__actions {
	margin-top: 6px;
}

.ch-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.25rem, 0.5rem + 2vw, 2.75rem);
	margin: 18px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--ch-line);
	width: 100%;
}

.ch-hero__stats > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ch-hero__stats dt {
	margin: 0;
	font-family: var(--ch-font-mono);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ch-wine);
}

.ch-hero__stats dt span {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--ch-muted);
}

.ch-hero__stats dd {
	margin: 0;
	font-size: 0.75rem;
	color: var(--ch-muted);
}

.ch-hero__visual {
	position: relative;
}

.ch-hero__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--ch-r-xl);
	box-shadow: var(--ch-shadow-lg);
	aspect-ratio: 5 / 6;
	background: var(--ch-cream-3);
}

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

.ch-hero__stamp {
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 13px;
	border-radius: var(--ch-r-md);
	background: rgba(26, 13, 15, 0.82);
	color: var(--ch-cream);
	font-family: var(--ch-font-mono);
	font-size: 0.625rem;
	line-height: 1.35;
	letter-spacing: 0.06em;
	backdrop-filter: blur(8px);
}

.ch-hero__stamp .ch-icon {
	color: var(--ch-amber);
}

.ch-hero__stamp strong {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ch-amber-soft);
}

.ch-hero__card {
	position: absolute;
	bottom: -22px;
	inset-inline-end: -18px;
	width: min(290px, 82%);
	padding: 16px 18px;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-lg);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--ch-shadow-lg);
	backdrop-filter: blur(10px);
}

.ch-hero__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.ch-hero__card-title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.7;
	color: var(--ch-ink);
}

.ch-hero__card-rows {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 10px 0 12px;
	padding-top: 10px;
	border-top: 1px dashed var(--ch-line);
}

.ch-hero__card-rows > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.6875rem;
	color: var(--ch-muted);
}

.ch-hero__card-rows .ch-mono {
	font-size: 0.6875rem;
	color: var(--ch-ink-soft);
}

.ch-hero__card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ch-wine);
	text-decoration: none;
	transition: gap 0.2s var(--ch-ease);
}

.ch-hero__card-link:hover {
	gap: 10px;
}

/* ------------------------------------------------------------- pulse dot */
.ch-pulse {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2f6b4f;
	flex: 0 0 auto;
}

.ch-pulse::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid rgba(47, 107, 79, 0.5);
	animation: ch-pulse-ring 2s var(--ch-ease) infinite;
}

@keyframes ch-pulse-ring {
	0% {
		transform: scale(0.6);
		opacity: 0.9;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* ---------------------------------------------------------------- meters */
.ch-meter {
	position: relative;
	height: 6px;
	overflow: hidden;
	border-radius: var(--ch-r-pill);
	background: rgba(250, 246, 240, 0.16);
}

.ch-meter > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ch-amber-deep), var(--ch-amber-soft));
	transition: width 0.9s var(--ch-ease);
}

/* ----------------------------------------------------------- radar chart */
.ch-radar {
	display: block;
	width: 100%;
	height: auto;
	max-width: 360px;
	margin-inline: auto;
}

/* ------------------------------------------------------------ shop grids */
.ch-shop-wrap {
	position: relative;
}

.ch-shop-grid {
	display: grid;
}

/* ------------------------------------------------- free-shipping progress */
.ch-ship-progress {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ch-ship-progress__label {
	font-size: 0.75rem;
	line-height: 1.8;
	color: var(--ch-ink-soft);
}

.ch-ship-progress__bar {
	position: relative;
	height: 6px;
	overflow: hidden;
	border-radius: var(--ch-r-pill);
	background: var(--ch-cream-3);
}

.ch-ship-progress__bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ch-amber-deep), var(--ch-amber));
	transition: width 0.6s var(--ch-ease);
}

/* --------------------------------------------------------- inline select */
.ch-select-inline {
	appearance: none;
	padding: 7px 12px;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-sm);
	background: var(--ch-white);
	color: var(--ch-ink-soft);
	font-family: inherit;
	font-size: 0.75rem;
	cursor: pointer;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
	.ch-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ch-hero__visual {
		order: -1;
		max-width: 460px;
		margin-inline: auto;
		width: 100%;
	}

	.ch-hero__card {
		inset-inline-end: 0;
		bottom: -16px;
	}
}

@media (max-width: 639px) {
	.ch-hero__stats {
		gap: 1.25rem 1.75rem;
	}

	.ch-hero__stats dt {
		font-size: 1.25rem;
	}

	.ch-hero__card {
		position: static;
		width: 100%;
		margin-top: 16px;
	}
}
