/* ==========================================================================
   Chamdon — Layout: header, navigation, footer, blog, pages
   ========================================================================== */

/* Announcement bar -------------------------------------------------------- */
.ch-topbar {
	background: var(--ch-noir);
	color: var(--ch-on-dark-soft);
	font-size: 0.75rem;
	line-height: 1;
	overflow: hidden;
	border-bottom: 1px solid rgba(250, 246, 240, 0.06);
}

.ch-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 38px;
}

.ch-topbar__group {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ch-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	white-space: nowrap;
}

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

.ch-topbar a.ch-topbar__item:hover {
	color: var(--ch-amber-soft);
}

.ch-topbar__marquee {
	flex: 1;
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ch-topbar__track {
	display: flex;
	gap: 48px;
	width: max-content;
	animation: ch-marquee 42s linear infinite;
}

.ch-topbar__track span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.ch-topbar__track .ch-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ch-amber);
	display: inline-block;
}

@keyframes ch-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(50%);
	}
}

html[dir="rtl"] .ch-topbar__track {
	animation-name: ch-marquee-rtl;
}

@keyframes ch-marquee-rtl {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(50%);
	}
}

@media (max-width: 900px) {
	.ch-topbar__inner {
		justify-content: center;
		min-height: 34px;
	}
	.ch-topbar__group--desktop {
		display: none;
	}
}

/* Header ------------------------------------------------------------------ */
.ch-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(250, 246, 240, 0.86);
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	border-bottom: 1px solid var(--ch-line);
	transition: box-shadow 0.3s var(--ch-ease), background 0.3s;
}

.ch-header.is-stuck {
	box-shadow: 0 10px 30px -18px rgba(26, 13, 15, 0.35);
	background: rgba(250, 246, 240, 0.95);
}

.admin-bar .ch-header {
	top: 32px;
}

.ch-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: var(--ch-header-h);
}

.ch-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	color: var(--ch-ink);
	text-decoration: none;
}

.ch-brand:hover {
	color: var(--ch-ink);
}

.ch-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient(145deg, var(--ch-wine), var(--ch-wine-deep));
	color: var(--ch-cream);
	display: grid;
	place-items: center;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--ch-shadow-sm);
	flex-shrink: 0;
}

.ch-brand__mark svg {
	width: 24px;
	height: 24px;
}

.ch-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ch-brand__name {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ch-wine);
}

.ch-brand__tag {
	font-family: var(--ch-font-mono);
	font-size: 0.5625rem;
	letter-spacing: 0.16em;
	color: var(--ch-muted);
	text-transform: uppercase;
}

.ch-brand img {
	max-height: 52px;
	width: auto;
}

/* Primary navigation ------------------------------------------------------ */
.ch-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ch-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Everything below is scoped to `.ch-nav` (the desktop bar). The mobile drawer
 * reuses the same walker markup — including `ch-nav__item` — so an unscoped
 * `:hover > .ch-submenu` / `.is-open > .ch-submenu` rule also matched inside the
 * drawer and dragged the panel 148px sideways with the desktop transform.
 */
.ch-nav .ch-nav__item {
	position: relative;
}

.ch-nav .ch-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: var(--ch-r-pill);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ch-ink-soft);
	white-space: nowrap;
	transition: color 0.2s, background 0.2s;
}

.ch-nav .ch-nav__link:hover,
.ch-nav .ch-nav__item:hover > .ch-nav__link,
.ch-nav .ch-nav__item.is-open > .ch-nav__link,
.ch-nav .ch-nav__item.current-menu-item > .ch-nav__link,
.ch-nav .ch-nav__item.current-menu-ancestor > .ch-nav__link {
	color: var(--ch-wine);
	background: rgba(114, 18, 36, 0.06);
}

.ch-nav .ch-nav__link .ch-caret {
	transition: transform 0.25s var(--ch-ease);
	opacity: 0.6;
}

.ch-nav .ch-nav__item:hover > .ch-nav__link .ch-caret,
.ch-nav .ch-nav__item.is-open > .ch-nav__link .ch-caret {
	transform: rotate(180deg);
}

.ch-nav__badge {
	font-size: 0.5625rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: var(--ch-r-pill);
	background: var(--ch-amber);
	color: var(--ch-noir);
	line-height: 1.5;
}

/* Dropdown / mega menu */
.ch-nav .ch-submenu {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-start: 50%;
	transform: translate(50%, 8px) scale(0.98);
	min-width: 236px;
	padding: 10px;
	margin: 0;
	list-style: none;
	background: var(--ch-white);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-lg);
	box-shadow: var(--ch-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s var(--ch-ease), transform 0.22s var(--ch-ease), visibility 0.22s;
	z-index: 20;
}

html[dir="ltr"] .ch-nav .ch-submenu {
	transform: translate(-50%, 8px) scale(0.98);
}

.ch-nav .ch-nav__item:hover > .ch-submenu,
.ch-nav .ch-nav__item:focus-within > .ch-submenu,
.ch-nav .ch-nav__item.is-open > .ch-submenu {
	opacity: 1;
	visibility: visible;
	transform: translate(50%, 0) scale(1);
}

html[dir="ltr"] .ch-nav .ch-nav__item:hover > .ch-submenu,
html[dir="ltr"] .ch-nav .ch-nav__item:focus-within > .ch-submenu,
html[dir="ltr"] .ch-nav .ch-nav__item.is-open > .ch-submenu {
	transform: translate(-50%, 0) scale(1);
}

.ch-nav .ch-submenu li {
	position: relative;
}

.ch-nav .ch-submenu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: var(--ch-r-sm);
	font-size: 0.8438rem;
	color: var(--ch-ink-soft);
	transition: background 0.18s, color 0.18s;
}

.ch-nav .ch-submenu a:hover {
	background: var(--ch-cream-2);
	color: var(--ch-wine);
}

.ch-nav .ch-submenu .ch-submenu {
	top: -8px;
	inset-inline-start: calc(100% + 6px);
	transform: translate(0, 6px);
}

.ch-nav .ch-nav__item:hover > .ch-submenu .ch-submenu {
	transform: translate(0, 0);
}

.ch-submenu__desc {
	display: block;
	font-size: 0.6875rem;
	color: var(--ch-muted);
	font-weight: 400;
	margin-top: 2px;
}

/* Mega menu variant: <li class="mega-menu"> */
.ch-nav .ch-nav__item.mega-menu {
	position: static;
}

.ch-nav .ch-nav__item.mega-menu > .ch-submenu {
	inset-inline: var(--ch-margin);
	transform: translate(0, 8px) scale(0.99);
	width: auto;
	padding: 26px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	border-radius: var(--ch-r-xl);
}

.ch-nav .ch-nav__item.mega-menu:hover > .ch-submenu,
.ch-nav .ch-nav__item.mega-menu.is-open > .ch-submenu {
	transform: translate(0, 0) scale(1);
}

.ch-nav .ch-nav__item.mega-menu > .ch-submenu > li > a {
	font-weight: 700;
	color: var(--ch-wine);
	background: transparent;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--ch-line);
	border-radius: 0;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.ch-nav .ch-nav__item.mega-menu > .ch-submenu > li > .ch-submenu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	padding: 6px 0 0;
	min-width: 0;
	background: transparent;
}

.ch-mega-promo {
	background: linear-gradient(160deg, var(--ch-noir), var(--ch-wine-deep));
	border-radius: var(--ch-r-lg);
	padding: 20px;
	color: var(--ch-on-dark);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	min-height: 180px;
}

.ch-mega-promo h4 {
	color: var(--ch-on-dark);
	font-size: 1rem;
	margin: 0;
}

.ch-mega-promo p {
	font-size: 0.75rem;
	color: var(--ch-on-dark-soft);
	margin: 0;
	line-height: 1.8;
}

/* Header actions ---------------------------------------------------------- */
.ch-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.ch-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 42px;
	height: 42px;
	border: 1px solid transparent;
	border-radius: var(--ch-r-pill);
	background: transparent;
	color: var(--ch-ink);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	text-decoration: none;
}

.ch-action:hover {
	background: var(--ch-white);
	border-color: var(--ch-line);
	color: var(--ch-wine);
}

.ch-action__count {
	position: absolute;
	top: -2px;
	inset-inline-end: -2px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: var(--ch-r-pill);
	background: var(--ch-wine);
	color: var(--ch-cream);
	font-family: var(--ch-font-mono);
	font-size: 0.625rem;
	font-weight: 700;
	display: grid;
	place-items: center;
	line-height: 1;
	border: 2px solid var(--ch-cream);
}

.ch-action--cart {
	width: auto;
	padding-inline: 16px 12px;
	gap: 10px;
	background: var(--ch-noir);
	color: var(--ch-cream);
	border-radius: var(--ch-r-pill);
}

.ch-action--cart:hover {
	background: var(--ch-wine);
	border-color: transparent;
	color: var(--ch-cream);
}

.ch-action--cart .ch-action__count {
	position: static;
	border: 0;
	background: var(--ch-amber);
	color: var(--ch-noir);
}

.ch-action--cart .ch-cart-total {
	font-family: var(--ch-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
}

.ch-burger {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: var(--ch-r-sm);
	border: 1px solid var(--ch-line);
	background: var(--ch-white);
	align-items: center;
	justify-content: center;
	color: var(--ch-ink);
}

@media (max-width: 1120px) {
	.ch-nav {
		display: none;
	}
	.ch-burger {
		display: inline-flex;
	}
	.ch-brand {
		flex: 1;
		justify-content: center;
	}
	.ch-header__inner {
		gap: 8px;
	}
	.ch-actions .ch-action--account,
	.ch-actions .ch-action--search-desktop {
		display: none;
	}
}

@media (max-width: 560px) {
	.ch-action--cart {
		width: 42px;
		padding: 0;
	}
	.ch-action--cart .ch-cart-total {
		display: none;
	}
	.ch-brand__tag {
		display: none;
	}
	.ch-brand__mark {
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}
	.ch-brand__name {
		font-size: 1.05rem;
	}
}

/* Mobile drawer ----------------------------------------------------------- */
.ch-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	pointer-events: none;
}

.ch-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(26, 13, 15, 0.55);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.3s var(--ch-ease);
}

.ch-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: min(360px, 88vw);
	background: var(--ch-cream);
	display: flex;
	flex-direction: column;
	transform: translateX(-102%);
	transition: transform 0.36s var(--ch-ease);
	box-shadow: 20px 0 60px -20px rgba(26, 13, 15, 0.5);
}

html[dir="rtl"] .ch-drawer__panel {
	transform: translateX(102%);
}

.ch-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.ch-drawer.is-open .ch-drawer__scrim {
	opacity: 1;
}

.ch-drawer.is-open .ch-drawer__panel,
html[dir="rtl"] .ch-drawer.is-open .ch-drawer__panel {
	transform: none;
}

.ch-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--ch-line);
}

.ch-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 16px 24px;
	overscroll-behavior: contain;
}

.ch-drawer__foot {
	padding: 16px 20px 24px;
	border-top: 1px solid var(--ch-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ch-mobile-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ch-mobile-nav > li {
	border-bottom: 1px solid var(--ch-line);
	position: relative;
}

.ch-mobile-nav li.has-children {
	position: relative;
}

/* Room for the 40px toggle so long labels never collide with it. */
.ch-mobile-nav li.has-children > a {
	padding-inline-end: 52px;
}

/* The desktop caret is replaced by the toggle button inside the drawer. */
.ch-mobile-nav .ch-caret {
	display: none;
}

.ch-mobile-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 6px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ch-ink);
}

.ch-mobile-nav a:hover {
	color: var(--ch-wine);
}

.ch-mobile-nav .ch-submenu {
	position: static;
	top: auto;
	inset-inline-start: auto;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	background: transparent;
	margin: 0;
	padding: 0 12px 8px;
	list-style: none;
	display: none;
	min-width: 0;
	width: auto;
}

/* Submenu rows read as a lighter, indented list inside the drawer. */
.ch-mobile-nav .ch-submenu a {
	padding: 9px 10px;
	border-radius: var(--ch-r-sm);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ch-ink-soft);
}

.ch-mobile-nav .ch-submenu a:hover {
	background: var(--ch-cream-2);
	color: var(--ch-wine);
}

.ch-mobile-nav .ch-submenu .ch-submenu {
	padding-inline-start: 10px;
}

.ch-mobile-nav li.is-open > .ch-submenu {
	display: block;
}

.ch-mobile-nav .submenu-toggle {
	position: absolute;
	inset-inline-end: 0;
	top: 5px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ch-line);
	background: var(--ch-white);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--ch-ink-soft);
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
	cursor: pointer;
}

.ch-mobile-nav .submenu-toggle:focus-visible {
	outline: 2px solid var(--ch-amber);
	outline-offset: 2px;
}

.ch-mobile-nav li.is-open > .submenu-toggle {
	background: var(--ch-wine);
	border-color: var(--ch-wine);
	color: var(--ch-cream);
	transform: rotate(180deg);
}

/* Desktop dropdowns keep the hover caret and never show the drawer toggle. */
.ch-nav .submenu-toggle {
	display: none;
}

.ch-drawer__meta {
	padding: 16px 6px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.8125rem;
	color: var(--ch-ink-soft);
}

/* Search overlay ---------------------------------------------------------- */
.ch-search {
	position: fixed;
	inset: 0;
	z-index: 210;
	visibility: hidden;
	pointer-events: none;
}

.ch-search__scrim {
	position: absolute;
	inset: 0;
	background: rgba(26, 13, 15, 0.6);
	backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.28s;
}

.ch-search__panel {
	position: relative;
	max-width: 760px;
	margin: 12vh auto 0;
	background: var(--ch-cream);
	border-radius: var(--ch-r-xl);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: var(--ch-shadow-lg);
	transform: translateY(-16px);
	opacity: 0;
	transition: transform 0.32s var(--ch-ease), opacity 0.32s;
	max-height: 76vh;
	overflow-y: auto;
}

.ch-search.is-open {
	visibility: visible;
	pointer-events: auto;
}

.ch-search.is-open .ch-search__scrim {
	opacity: 1;
}

.ch-search.is-open .ch-search__panel {
	transform: none;
	opacity: 1;
}

.ch-search__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.ch-search__head h3 {
	margin: 0;
	font-size: 1.1rem;
}

.ch-search__form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--ch-white);
	border: 1px solid var(--ch-line-amber);
	border-radius: var(--ch-r-pill);
	padding: 6px 6px 6px 18px;
	box-shadow: var(--ch-shadow-sm);
}

html[dir="rtl"] .ch-search__form {
	padding: 6px 18px 6px 6px;
}

.ch-search__form input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 10px 4px;
	font-size: 1rem;
	box-shadow: none;
}

.ch-search__form input:focus {
	box-shadow: none;
	background: transparent;
}

.ch-search__results {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ch-search__result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--ch-r-md);
	transition: background 0.18s;
}

.ch-search__result:hover {
	background: var(--ch-cream-2);
}

.ch-search__thumb {
	width: 52px;
	height: 52px;
	border-radius: var(--ch-r-sm);
	overflow: hidden;
	background: var(--ch-cream-3);
	flex-shrink: 0;
}

.ch-search__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ch-search__result strong {
	display: block;
	font-size: 0.875rem;
	color: var(--ch-ink);
	font-weight: 600;
}

.ch-search__result span {
	font-size: 0.75rem;
	color: var(--ch-wine);
	font-family: var(--ch-font-mono);
}

.ch-search__empty {
	padding: 24px 8px;
	text-align: center;
	color: var(--ch-muted);
	font-size: 0.875rem;
}

.ch-search__suggest {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.75rem;
	color: var(--ch-muted);
}

/* Cart drawer ------------------------------------------------------------- */
.ch-cart-drawer .ch-drawer__panel {
	inset-inline-start: auto;
	inset-inline-end: 0;
	width: min(420px, 92vw);
	transform: translateX(102%);
	background: var(--ch-cream);
}

html[dir="rtl"] .ch-cart-drawer .ch-drawer__panel {
	transform: translateX(-102%);
}

/*
 * The RTL offset rule above carries an extra type selector, so it outranks a
 * plain `.ch-cart-drawer.is-open .ch-drawer__panel`. Both variants are listed
 * here so the open state always wins.
 */
.ch-cart-drawer.is-open .ch-drawer__panel,
html[dir="rtl"] .ch-cart-drawer.is-open .ch-drawer__panel {
	transform: none;
}

.ch-cart-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ch-cart-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ch-line);
}

.ch-cart-item__img {
	width: 64px;
	height: 64px;
	border-radius: var(--ch-r-sm);
	overflow: hidden;
	background: var(--ch-cream-3);
}

.ch-cart-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ch-cart-item__title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ch-ink);
	display: block;
	line-height: 1.7;
}

.ch-cart-item__meta {
	font-size: 0.6875rem;
	color: var(--ch-muted);
}

.ch-cart-item__price {
	font-family: var(--ch-font-mono);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ch-wine);
	margin-top: 4px;
}

.ch-cart-item__remove {
	color: var(--ch-muted);
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--ch-line);
	background: transparent;
}

.ch-cart-item__remove:hover {
	color: var(--ch-danger);
	border-color: var(--ch-danger);
}

.ch-cart-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--ch-ink-soft);
}

.ch-cart-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ch-cart-summary__row--total {
	padding-top: 10px;
	margin-top: 4px;
	border-top: 1px dashed var(--ch-line-strong);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ch-wine);
}

.ch-cart-summary__row--total span:last-child {
	font-family: var(--ch-font-mono);
}

/* Page hero / breadcrumb -------------------------------------------------- */
.ch-page-hero {
	position: relative;
	background: linear-gradient(180deg, var(--ch-cream-2), var(--ch-cream));
	border-bottom: 1px solid var(--ch-line);
	padding-block: clamp(30px, 4vw, 56px);
	overflow: hidden;
}

.ch-page-hero::before {
	content: "";
	position: absolute;
	inset-inline-start: -120px;
	top: -160px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(200, 138, 62, 0.16), transparent 70%);
	pointer-events: none;
}

.ch-page-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	position: relative;
}

.ch-page-hero h1 {
	margin: 8px 0 6px;
	font-size: var(--ch-fs-h1);
}

.ch-page-hero__desc {
	max-width: 620px;
	color: var(--ch-ink-soft);
	margin: 0;
	font-size: 0.9375rem;
}

.ch-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.75rem;
	color: var(--ch-muted);
}

.ch-breadcrumb a {
	color: var(--ch-ink-soft);
}

.ch-breadcrumb a:hover {
	color: var(--ch-wine);
}

.ch-breadcrumb__sep {
	color: var(--ch-line-strong);
}

/* Blog / archive ---------------------------------------------------------- */
.ch-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.ch-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.ch-layout__aside {
	position: sticky;
	top: calc(var(--ch-header-h) + 24px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (max-width: 1024px) {
	.ch-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.ch-layout__aside {
		position: static;
	}
}

.ch-posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ch-gutter);
}

@media (max-width: 700px) {
	.ch-posts {
		grid-template-columns: 1fr;
	}
}

.ch-post-card {
	background: var(--ch-white);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s var(--ch-ease), box-shadow 0.3s var(--ch-ease), border-color 0.3s;
}

.ch-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ch-shadow-md);
	border-color: var(--ch-line-amber);
}

.ch-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ch-cream-3);
}

.ch-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ch-ease);
}

.ch-post-card:hover .ch-post-card__media img {
	transform: scale(1.04);
}

.ch-post-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.ch-post-card__cat {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ch-amber-deep);
}

.ch-post-card__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.ch-post-card__title a {
	color: var(--ch-ink);
}

.ch-post-card__title a:hover {
	color: var(--ch-wine);
}

.ch-post-card__excerpt {
	font-size: 0.8125rem;
	color: var(--ch-ink-soft);
	line-height: 1.9;
	margin: 0;
}

.ch-post-card__meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--ch-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.6875rem;
	color: var(--ch-muted);
}

.ch-post-card--list {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
}

.ch-post-card--list .ch-post-card__media {
	aspect-ratio: auto;
	height: 100%;
}

@media (max-width: 700px) {
	.ch-post-card--list {
		grid-template-columns: 1fr;
	}
}

.ch-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 0.75rem;
	color: var(--ch-muted);
	margin-bottom: 18px;
}

.ch-post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Single post */
.ch-entry {
	background: var(--ch-white);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-xl);
	overflow: hidden;
}

.ch-entry__hero {
	aspect-ratio: 16 / 8;
	background: var(--ch-cream-3);
	overflow: hidden;
}

.ch-entry__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ch-entry__body {
	padding: clamp(24px, 4vw, 56px);
}

.ch-prose {
	font-size: 1rem;
	line-height: 2.05;
	color: var(--ch-ink);
}

.ch-prose > * + * {
	margin-top: 1.2em;
}

.ch-prose h2 {
	margin-top: 1.8em;
	font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
}

.ch-prose h3 {
	margin-top: 1.6em;
	font-size: 1.25rem;
}

.ch-prose a {
	color: var(--ch-wine);
	text-decoration: underline;
	text-decoration-color: var(--ch-line-amber);
	text-underline-offset: 4px;
}

.ch-prose blockquote {
	margin: 1.8em 0;
	padding: 22px 26px;
	background: var(--ch-cream-2);
	border-inline-start: 3px solid var(--ch-amber);
	border-radius: 0 var(--ch-r-md) var(--ch-r-md) 0;
	font-size: 1.0625rem;
	color: var(--ch-ink-soft);
	font-style: normal;
}

html[dir="rtl"] .ch-prose blockquote {
	border-radius: var(--ch-r-md) 0 0 var(--ch-r-md);
}

.ch-prose ul,
.ch-prose ol {
	padding-inline-start: 1.4em;
}

.ch-prose ul {
	list-style: disc;
}

.ch-prose ol {
	list-style: decimal;
}

.ch-prose li::marker {
	color: var(--ch-amber-deep);
	font-weight: 600;
}

.ch-prose li {
	margin-bottom: 0.5em;
}

.ch-prose img {
	border-radius: var(--ch-r-md);
}

.ch-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.ch-prose th,
.ch-prose td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--ch-line);
	text-align: start;
}

.ch-prose th {
	background: var(--ch-cream-2);
	font-weight: 600;
}

.ch-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ch-line);
}

.ch-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.ch-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: var(--ch-white);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-lg);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ch-ink);
	transition: border-color 0.2s, transform 0.2s;
}

.ch-post-nav a:hover {
	border-color: var(--ch-amber);
	transform: translateY(-2px);
	color: var(--ch-wine);
}

.ch-post-nav span {
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--ch-muted);
}

/* Widgets */
.ch-widget {
	background: var(--ch-white);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-lg);
	padding: 22px;
}

.ch-widget__title {
	font-size: 0.9375rem;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ch-line);
	position: relative;
}

.ch-widget__title::after {
	content: "";
	position: absolute;
	bottom: -1px;
	inset-inline-start: 0;
	width: 44px;
	height: 2px;
	background: var(--ch-amber);
}

.ch-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.875rem;
}

.ch-widget ul li a {
	color: var(--ch-ink-soft);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ch-widget ul li a:hover {
	color: var(--ch-wine);
}

.ch-widget .ch-search__form {
	padding: 4px;
	border-radius: var(--ch-r-sm);
}

.ch-widget select {
	margin-top: 6px;
}

/* Pagination */
.ch-pagination,
.woocommerce-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.ch-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ch-pagination .page-numbers li,
.woocommerce-pagination .page-numbers li {
	list-style: none;
}

.ch-pagination .page-numbers,
.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--ch-r-pill);
	border: 1px solid var(--ch-line);
	background: var(--ch-white);
	color: var(--ch-ink-soft);
	font-size: 0.8125rem;
	font-weight: 600;
	transition: all 0.2s;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 6px;
	border: 0;
}

.woocommerce-pagination ul.page-numbers a:hover,
.ch-pagination .page-numbers:hover {
	border-color: var(--ch-amber);
	color: var(--ch-wine);
}

.woocommerce-pagination ul.page-numbers .current,
.ch-pagination .page-numbers.current {
	background: var(--ch-wine);
	border-color: var(--ch-wine);
	color: var(--ch-cream);
}

/* Comments */
.ch-comments {
	margin-top: 40px;
	background: var(--ch-white);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-xl);
	padding: clamp(22px, 3vw, 36px);
}

.ch-comments__title {
	font-size: 1.125rem;
	margin-bottom: 24px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.comment-list .children {
	list-style: none;
	padding-inline-start: 28px;
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.comment-body {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 14px;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--ch-ink);
}

.comment-metadata {
	font-size: 0.6875rem;
	color: var(--ch-muted);
	margin-bottom: 6px;
}

.comment-content {
	font-size: 0.875rem;
	line-height: 1.9;
	color: var(--ch-ink-soft);
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply a {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ch-wine);
}

.comment-respond {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ch-line);
}

.comment-reply-title {
	font-size: 1rem;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.comment-form p {
	margin: 0;
}

.comment-form .comment-form-comment,
.comment-form .form-submit,
.comment-form .comment-notes,
.comment-form .comment-form-cookies-consent {
	grid-column: 1 / -1;
}

.comment-form label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ch-ink-soft);
	margin-bottom: 6px;
}

.comment-form .submit {
	background: var(--ch-wine);
	color: var(--ch-cream);
	border: 0;
	border-radius: var(--ch-r-pill);
	padding: 12px 28px;
	font-weight: 600;
	cursor: pointer;
}

/* 404 */
.ch-404 {
	min-height: 62vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding-block: clamp(48px, 8vw, 100px);
}

.ch-404__code {
	font-family: var(--ch-font-latin);
	font-size: clamp(5rem, 16vw, 11rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	background: linear-gradient(160deg, var(--ch-wine), var(--ch-amber));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 8px;
}

/* Footer ------------------------------------------------------------------ */
.ch-footer {
	background: var(--ch-noir);
	color: var(--ch-on-dark);
	position: relative;
	overflow: hidden;
}

.ch-footer::before {
	content: "";
	position: absolute;
	inset-inline-start: -10%;
	top: -40%;
	width: 60%;
	height: 120%;
	background: radial-gradient(circle, rgba(114, 18, 36, 0.35), transparent 65%);
	pointer-events: none;
}

.ch-footer__top {
	position: relative;
	padding-block: clamp(44px, 5.5vw, 76px) 40px;
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: clamp(24px, 3vw, 48px);
}

@media (max-width: 1024px) {
	.ch-footer__top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.ch-footer__top {
		grid-template-columns: 1fr;
	}
}

.ch-footer__brand .ch-brand__name {
	color: var(--ch-on-dark);
}

.ch-footer__brand .ch-brand__tag {
	color: var(--ch-on-dark-soft);
}

.ch-footer__brand .ch-brand__mark {
	background: linear-gradient(145deg, var(--ch-wine-soft), var(--ch-wine-deep));
}

.ch-footer__about {
	font-size: 0.8125rem;
	line-height: 2;
	color: var(--ch-on-dark-soft);
	margin: 16px 0 20px;
	max-width: 340px;
}

.ch-footer__title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--ch-on-dark);
	margin: 0 0 18px;
	position: relative;
	padding-bottom: 12px;
}

.ch-footer__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 30px;
	height: 2px;
	background: var(--ch-amber);
}

.ch-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ch-footer__links a {
	color: var(--ch-on-dark-soft);
	font-size: 0.8125rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s, gap 0.2s;
}

.ch-footer__links a:hover {
	color: var(--ch-amber-soft);
	gap: 12px;
}

.ch-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.8125rem;
	color: var(--ch-on-dark-soft);
}

.ch-footer__contact div {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.9;
}

.ch-footer__contact .ch-icon {
	color: var(--ch-amber);
	margin-top: 3px;
	flex-shrink: 0;
}

.ch-footer__contact a {
	color: var(--ch-on-dark-soft);
}

.ch-footer__contact a:hover {
	color: var(--ch-amber-soft);
}

.ch-social {
	display: flex;
	gap: 8px;
}

.ch-social a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(250, 246, 240, 0.16);
	color: var(--ch-on-dark-soft);
	transition: all 0.2s;
}

.ch-social a:hover {
	background: var(--ch-wine);
	border-color: var(--ch-wine);
	color: var(--ch-cream);
	transform: translateY(-2px);
}

.ch-newsletter {
	background: rgba(250, 246, 240, 0.05);
	border: 1px solid var(--ch-line-dark);
	border-radius: var(--ch-r-lg);
	padding: 18px;
	margin-top: 20px;
}

.ch-newsletter p {
	font-size: 0.75rem;
	color: var(--ch-on-dark-soft);
	margin: 0 0 12px;
	line-height: 1.9;
}

.ch-newsletter__form {
	display: flex;
	gap: 6px;
}

.ch-newsletter__form input {
	background: rgba(250, 246, 240, 0.07);
	border-color: rgba(250, 246, 240, 0.14);
	color: var(--ch-on-dark);
	font-size: 0.8125rem;
	padding: 10px 14px;
}

.ch-newsletter__form input::placeholder {
	color: rgba(250, 246, 240, 0.4);
}

.ch-newsletter__form input:focus {
	background: rgba(250, 246, 240, 0.1);
	border-color: var(--ch-amber);
	color: var(--ch-on-dark);
}

.ch-newsletter__form button {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: var(--ch-r-sm);
	background: var(--ch-amber);
	color: var(--ch-noir);
	display: grid;
	place-items: center;
	transition: background 0.2s;
}

.ch-newsletter__form button:hover {
	background: var(--ch-amber-soft);
}

.ch-footer__bottom {
	position: relative;
	border-top: 1px solid rgba(250, 246, 240, 0.08);
	padding-block: 18px 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 0.75rem;
	color: rgba(250, 246, 240, 0.55);
}

.ch-footer__bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.ch-footer__bottom a {
	color: inherit;
}

.ch-footer__bottom a:hover {
	color: var(--ch-amber-soft);
}

.ch-payment {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ch-payment span {
	padding: 4px 10px;
	border-radius: var(--ch-r-xs);
	border: 1px solid rgba(250, 246, 240, 0.12);
	font-size: 0.625rem;
	letter-spacing: 0.04em;
}

/* Back to top */
.ch-to-top {
	position: fixed;
	bottom: 24px;
	inset-inline-start: 24px;
	z-index: 60;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--ch-line);
	background: var(--ch-white);
	color: var(--ch-wine);
	display: grid;
	place-items: center;
	box-shadow: var(--ch-shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.3s var(--ch-ease);
}

.ch-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ch-to-top:hover {
	background: var(--ch-wine);
	color: var(--ch-cream);
}

/* Toast */
.ch-toast {
	position: fixed;
	bottom: 24px;
	inset-inline-end: 24px;
	z-index: 300;
	background: var(--ch-noir);
	color: var(--ch-cream);
	padding: 13px 20px;
	border-radius: var(--ch-r-pill);
	font-size: 0.8125rem;
	box-shadow: var(--ch-shadow-lg);
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(16px);
	transition: all 0.3s var(--ch-ease);
	pointer-events: none;
	max-width: calc(100vw - 48px);
}

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

.ch-toast.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Mobile bottom tab bar
   --------------------------------------------------------------------------
   A fixed wine-coloured navigation strip for phones. The page reserves space
   for it so the footer is never covered, and it steps aside from `lg` up.
   ========================================================================== */
.ch-tabbar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2px;
	padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(180deg, #8a1628 0%, var(--ch-wine, #721224) 55%, #5d0e1d 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -10px 30px -12px rgba(26, 13, 15, 0.55);
	transition: transform 0.3s cubic-bezier(0.33, 0.66, 0.2, 1);
}

/*
 * Scroll-aware visibility (see main.js): the bar steps out of the way while
 * the reader scrolls down so it never covers buttons, sticky panels or the
 * footer, and slides back in the moment they scroll up.
 */
.ch-tabbar.is-hidden {
	transform: translateY(calc(100% + 20px));
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.ch-tabbar {
		transition-duration: 0.01ms;
	}
}

.ch-tabbar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 52px;
	border-radius: 12px;
	color: rgba(250, 246, 240, 0.62);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

.ch-tabbar__item:hover,
.ch-tabbar__item:focus-visible {
	color: var(--ch-cream, #faf6f0);
	background: rgba(255, 255, 255, 0.07);
	outline: none;
}

.ch-tabbar__item.is-active {
	color: var(--ch-amber, #c88a3e);
	background: rgba(200, 138, 62, 0.14);
}

.ch-tabbar__item.is-active::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 50%;
	transform: translateX(-50%);
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: var(--ch-amber, #c88a3e);
}

.ch-tabbar__icon {
	display: grid;
	place-items: center;
	height: 22px;
}

.ch-tabbar__icon svg {
	width: 21px;
	height: 21px;
}

.ch-tabbar__label {
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

/* Reserve room for the bar so it never hides page content or the footer.
   The space lives inside the dark footer rather than under #page, otherwise a
   pale band would be left behind whenever the bar slides away on scroll. */
@media (max-width: 1023px) {
	#ch-footer > div:last-child {
		padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
	}

	/* Floating chrome must clear the tab bar. */
	#ch-toast {
		bottom: calc(86px + env(safe-area-inset-bottom, 0px));
	}

	[data-ch-to-top] {
		bottom: calc(86px + env(safe-area-inset-bottom, 0px));
	}
}

/* The bar is phone-only. `display: grid` above would otherwise beat Tailwind's
   `lg:hidden` (same specificity, but this stylesheet loads last). */
@media (min-width: 1024px) {
	.ch-tabbar {
		display: none;
	}
}

/* Programmatic focus (drawer open) must not paint a ring on the brand link;
   keyboard users still get one via :focus-visible. */
.ch-drawer__head .ch-brand:focus:not(:focus-visible) {
	outline: none;
}
