/* =========================================================================
   Shudhta product page
   COLOUR LAW: this stylesheet names no colour of its own except #fff and
   neutral greys. Every hue is read from the seven custom properties printed
   on .sh by Shudhta_Palette: --accent --ink --soft --wash --line --band
   --band-soft. A hue literal below is a bug.
   ========================================================================= */

.sh {
	/* Two families, plus a mono reserved for small uppercase labels.
	   Self-hosted / system faces only: no Google Fonts request. */
	--font-display: "Cormorant Garamond", "EB Garamond", "Iowan Old Style",
		"Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system,
		"Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
		"Liberation Mono", monospace;

	/* Neutral greys — permitted by the colour law. */
	--paper: #fff;
	--muted: #6f6f6f;
	--muted-soft: #8a8a8a;
	--near-black: #1a1a1a;

	--gutter: 24px;
	--section: 96px;

	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

/* Fight parent-theme leaks without stripping the document. */
.sh :where(*, *::before, *::after) {
	box-sizing: border-box;
}
.sh :where(p, h1, h2, h3, ul, ol, li, dl, dd, dt, figure, blockquote) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.sh :where(ul, ol) {
	list-style: none;
}
.sh :where(img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.sh :where(a) {
	color: inherit;
}

.sh-wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sh-sec {
	margin-top: var(--section);
}

/* Every section heading sits above a full-width hairline rule. */
.sh-h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.sh-h3 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.25;
	color: var(--ink);
}

.sh-lede {
	max-width: 62ch;
	margin-top: 16px;
	color: var(--muted);
}

.sh-rule {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 16px 0;
}

/* Digits align in every column that holds them. */
.sh-now,
.sh-was,
.sh-card-price,
.sh-sticky-price,
.sh-qty input,
.sh-spec dd,
.sh-prog-row dd {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Focus is always drawn in accent. */
.sh :where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

/* --- 1. BREADCRUMB ------------------------------------------------- */

.sh-crumbs {
	padding-top: 24px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.sh-crumbs a {
	text-decoration: none;
}
.sh-crumbs a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}
.sh-crumbs span {
	margin: 0 6px;
}
.sh-crumbs [aria-current] {
	color: var(--ink);
	margin-left: 0;
}

/* --- 2. HERO -------------------------------------------------------- */

.sh-hero {
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: 48px;
	margin-top: 32px;
	align-items: start;
}

.sh-frame {
	position: relative;
	border: 1px solid var(--line);
	background: var(--soft);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.sh-slide {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 32px;
}
.sh-slide img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

.sh-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.sh-arrow svg {
	width: 20px;
	height: 20px;
}
.sh-arrow:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.sh-arrow--prev {
	left: 12px;
}
.sh-arrow--next {
	right: 12px;
}

.sh-counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: var(--band);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	padding: 5px 10px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.sh-rail {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.sh-thumb {
	width: 72px;
	height: 72px;
	padding: 4px;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	background: var(--soft);
	cursor: pointer;
}
.sh-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.sh-thumb.is-active {
	border-bottom-color: var(--accent);
}

/* Buy box ------------------------------------------------------------ */

.sh-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--muted);
}

.sh-title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(34px, 4.4vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: var(--ink);
	margin-top: 12px;
}

.sh-meta {
	margin-top: 12px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
}

.sh-summary {
	margin-top: 24px;
	max-width: 60ch;
	color: var(--ink);
}
.sh-summary p + p {
	margin-top: 12px;
}

/* Progression table: no outer box, hairline dividers only. */
.sh-prog-table {
	margin-top: 32px;
	border-top: 1px solid var(--line);
}
.sh-prog-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.sh-prog-row dt {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	padding-top: 2px;
}
.sh-prog-row dd {
	text-align: right;
	color: var(--ink);
}

/* The price panel is the ONLY boxed element in this column. */
.sh-price {
	margin-top: 32px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 24px;
}
.sh-price-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
}
.sh-was {
	text-decoration: line-through;
	color: var(--muted-soft);
	font-size: 16px;
}
.sh-now {
	font-family: var(--font-display);
	font-size: 40px;
	line-height: 1;
	color: var(--ink);
}
.sh-save {
	background: var(--band);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	padding: 5px 10px;
	border-radius: 999px;
}
.sh-tax {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}
.sh-stock {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: var(--ink);
}
.sh-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
	margin-top: 7px;
}
.sh-stock--out_of_stock .sh-dot {
	background: var(--muted-soft);
}

/* Quantity + buttons ------------------------------------------------- */

.sh-cart {
	margin-top: 24px;
}
.sh-cart-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
	/* The CTA drops to its own full-width line before it can be squeezed
	   off the edge on a narrow phone. */
	flex-wrap: wrap;
}

/* The parent theme styles WooCommerce quantity inputs with higher specificity
   than a bare class, which stretched this input to 163px and pushed the buy
   button past the viewport at 320px. Match its weight and pin the geometry. */
.sh .sh-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	flex: 0 0 auto;
	width: auto;
}
.sh .sh-qty button {
	width: 44px;
	min-width: 44px;
	flex: 0 0 44px;
	height: 52px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}
.sh .sh-qty input {
	width: 48px;
	min-width: 0;
	max-width: 48px;
	flex: 0 0 48px;
	height: 52px;
	padding: 0;
	margin: 0;
	border: 0;
	text-align: center;
	font: inherit;
	color: var(--ink);
	background: none;
	-moz-appearance: textfield;
}
.sh-qty input::-webkit-outer-spin-button,
.sh-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 4px;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease,
		border-color 0.15s ease;
}
.sh-btn--primary {
	flex: 1 1 150px;
	min-width: 0;
	background: var(--near-black);
	color: var(--paper);
	border: 1px solid var(--near-black);
}
/* The parent theme sets its own `color` and `border-color` on button:hover, and
   wins wherever we do not declare them. Leaving `color` to it put white text on
   the cream ground of the ghost button — 1.07:1, effectively invisible. Every
   hover state below pins background, border AND colour. */
.sh .sh-btn--primary:hover {
	background: var(--band);
	border-color: var(--band);
	color: var(--paper);
}
.sh-btn--ghost {
	width: 100%;
	margin-top: 12px;
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--accent);
}
/* The hover affordance is the border deepening from accent to ink, NOT a fill.
   Filling with --soft dropped the label to 4.31:1, because --ink is only
   guaranteed 4.5:1 against white and --soft is slightly darker than white.
   Keeping the ground white keeps that guarantee by construction. */
.sh .sh-btn--ghost:hover {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}
.sh-btn--sm {
	min-height: 44px;
	font-size: 11px;
	padding: 0 16px;
	margin-top: 0;
	width: auto;
}

/* --- 3. PROGRESSION SECTION ---------------------------------------- */

.sh-prog {
	text-align: center;
}
.sh-prog .sh-lede {
	margin-inline: auto;
}
.sh-prog-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-top: 40px;
	text-align: left;
}
.sh-prog-card {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 24px;
	background: var(--paper);
}
.sh-numeral {
	display: block;
	font-family: var(--font-display);
	font-size: 40px;
	line-height: 1;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}
.sh-prog-label {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	margin-top: 16px;
	font-weight: 400;
}
.sh-prog-value {
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1.3;
	color: var(--ink);
	margin-top: 8px;
}
.sh-prog-timing {
	font-size: 13px;
	color: var(--muted);
	margin-top: 8px;
}

/* --- 4. STORY ------------------------------------------------------- */

.sh-story-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	margin-top: 40px;
	align-items: start;
}
.sh-prose {
	max-width: 62ch;
	color: var(--ink);
}
.sh-prose p + p {
	margin-top: 16px;
}

.sh-spec {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 24px;
	position: sticky;
	top: 24px;
}
.sh-spec-head {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.sh-spec-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.sh-spec-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.sh-spec dt {
	color: var(--muted);
	font-size: 14px;
	flex: none;
}
.sh-spec dd {
	color: var(--ink);
	font-size: 14px;
	text-align: right;
}

/* --- 5. TRUST STRIP ------------------------------------------------- */

.sh-trust {
	background: var(--wash);
	padding: 56px 0;
	margin-top: var(--section);
}
.sh-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.sh-trust-title {
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1.25;
	color: var(--ink);
}
.sh-trust-detail {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
}

/* --- 6. RITUAL ------------------------------------------------------ */

.sh-ritual-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-top: 40px;
}
.sh-step {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.sh-step-num {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--accent);
	color: var(--ink);
	display: grid;
	place-items: center;
	font-family: var(--font-mono);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.sh-step-title {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--ink);
	font-weight: 500;
}
.sh-step-body {
	margin-top: 8px;
	color: var(--muted);
	max-width: 52ch;
}

/* --- 7. FAQ --------------------------------------------------------- */

.sh-acc {
	margin-top: 8px;
}
.sh-item {
	border-bottom: 1px solid var(--line);
}
.sh-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	cursor: pointer;
	list-style: none;
}
.sh-item summary::-webkit-details-marker {
	display: none;
}
.sh-q {
	font-family: var(--font-display);
	font-size: clamp(19px, 2vw, 23px);
	line-height: 1.3;
	color: var(--ink);
}
.sh-plus {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
}
.sh-plus::before,
.sh-plus::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1px;
	background: var(--accent);
	transition: transform 0.2s ease;
}
.sh-plus::after {
	transform: rotate(90deg);
}
.sh-item[open] .sh-plus::after {
	transform: rotate(0deg);
}
.sh-a {
	padding-bottom: 24px;
	max-width: 65ch;
	color: var(--muted);
}

/* --- 8. REVIEWS ----------------------------------------------------- */

.sh-reviews-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	margin-top: 40px;
	align-items: start;
}
.sh-review-summary,
.sh-review-empty {
	color: var(--muted);
}
.sh-review-items {
	margin-top: 24px;
}
.sh-review {
	padding: 24px 0;
	border-top: 1px solid var(--line);
}
.sh-review-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
}
.sh-review-author {
	color: var(--ink);
	font-weight: 600;
}
.sh-review-date {
	color: var(--muted);
}
.sh-stars {
	color: var(--ink);
	margin-top: 4px;
	letter-spacing: 0.1em;
}
.sh-review-body {
	margin-top: 8px;
	color: var(--muted);
}

.sh-review-form {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 24px;
}
.sh .sh-review-form :where(label) {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	margin-bottom: 6px;
}
.sh .sh-review-form :where(input[type="text"], input[type="email"], textarea, select) {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
.sh .sh-review-form :where(p) {
	margin-bottom: 16px;
}
/* WooCommerce renders a star widget (<a> links, no form control) and hides the
   real <select> with its own CSS, because its star script is meant to drive the
   select. That script is not loaded on this template, so the stars render as raw
   "1 of 5 stars" text and the actual field stays hidden. We keep the native
   select — it works with the keyboard and without JavaScript — and hide the
   widget. !important is needed to beat the plugin's own display:none. */
.sh .sh-review-form .stars,
.sh .sh-review-form #comment-form-rating-label {
	display: none;
}
.sh .sh-review-form select#rating {
	display: block !important;
	width: 100%;
	max-width: 260px;
}
.sh .sh-review-form :where(.comment-form-cookies-consent) {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
.sh .sh-review-form :where(.comment-form-cookies-consent input) {
	width: auto;
	min-height: 0;
}
.sh .sh-review-form :where(.comment-form-cookies-consent label) {
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--font-body);
	font-size: 13px;
	margin: 0;
}
.sh .sh-review-form :where(input[type="submit"]) {
	min-height: 52px;
	padding: 0 24px;
	border-radius: 4px;
	border: 1px solid var(--near-black);
	background: var(--near-black);
	color: var(--paper);
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	width: auto;
}

/* --- 9. RELATED ----------------------------------------------------- */

.sh-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
	align-items: stretch;
}
/* The cards themselves are Shudhta_Card (shudhta-card.css). This grid only
   provides the cells; the component owns everything inside them. */

/* --- 10. STICKY BAR (phones only) ----------------------------------- */

.sh-sticky {
	display: none;
}

/* --- RESPONSIVE ----------------------------------------------------- */

@media (max-width: 900px) {
	.sh {
		--section: 56px;
		--gutter: 16px;
	}
	.sh-hero {
		grid-template-columns: 1fr; /* gallery first, by source order */
		gap: 32px;
	}
	.sh-story-grid {
		grid-template-columns: 1fr; /* spec drops beneath the description */
		gap: 32px;
	}
	.sh-spec {
		position: static;
	}
	.sh-trust-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	.sh-ritual-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.sh-reviews-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.sh-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.sh-now {
		font-size: 34px;
	}

	.sh-sticky {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 8px 16px;
		background: var(--paper);
		border-top: 1px solid var(--line);
		box-shadow: 0 -4px 16px rgb(0 0 0 / 8%);
	}
	.sh-sticky[hidden] {
		display: none;
	}
	.sh-sticky-img {
		width: 44px;
		height: 44px;
		object-fit: cover;
		border: 1px solid var(--line);
		flex: none;
	}
	.sh-sticky-text {
		flex: 1;
		min-width: 0;
	}
	.sh-sticky-name {
		font-family: var(--font-display);
		font-size: 15px;
		line-height: 1.2;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.sh-sticky-price {
		font-size: 13px;
		color: var(--muted);
	}
	/* The buy-box CTA grows to fill its row; in the sticky bar it must not,
	   or it eats the space the product name needs. */
	.sh .sh-sticky .sh-btn {
		flex: 0 0 auto;
	}
}

@media (max-width: 560px) {
	/* Two small cards let people compare. One giant card makes browsing
	   feel long, so the related row never drops to a single column. */
	.sh-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.sh-slide {
		padding: 16px;
	}
	.sh-review-head {
		flex-direction: column;
		gap: 2px;
	}
}

/* Coarse pointers get real tap targets. */
@media (pointer: coarse) {
	.sh-thumb {
		width: 56px;
		height: 56px;
	}
	.sh-item summary {
		padding: 20px 0;
		min-height: 44px;
	}
	.sh-crumbs a {
		display: inline-block;
		padding: 4px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh *,
	.sh *::before,
	.sh *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/* --- 4b. BOTANICALS ---------------------------------------------------
   These products list twenty or thirty herbs. A comma-separated paragraph
   wastes that; naming each one is the product's whole argument. ------- */

.sh-bot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0 32px;
	margin-top: 32px;
	border-top: 1px solid var(--line);
}
.sh-bot-grid li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
}
.sh-bot-mark {
	flex: none;
	display: inline-flex;
	color: var(--accent);
}
.sh-bot-mark svg {
	width: 17px;
	height: 17px;
	display: block;
}
.sh-bot-name {
	font-size: 15px;
	color: var(--ink);
}

@media (max-width: 560px) {
	.sh-bot-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 0 20px;
	}
	.sh-bot-name {
		font-size: 14px;
	}
}
