/**
 * Sundari design tokens — Option A (Playfair Display + Poppins, violet CTA).
 * Loaded last. Colour, type, focus and CTA only. Layout rem spacing is untouched.
 * html rem root stays 10px (Bootstrap). Font-size rem values in other files
 * were restored to the 16px-root intent (×1.6, floor 12px).
 */

:root {
	color-scheme: light;

	--sd-brand: #7b2d8e;
	--sd-brand-hover: #5a1f6a;
	--sd-brand-active: #4a1858;
	--sd-brand-tint: #f6ecf9;
	--sd-accent: #f8c8dc;
	--sd-accent-soft: #fde8f0;
	--sd-berry: #a3206f;
	--sd-cta: #7b2d8e;
	--sd-cta-hover: #5a1f6a;
	--sd-cta-active: #4a1858;
	--sd-on-cta: #ffffff;
	--sd-sale: #b4123f;
	--sd-sale-bg: #fde7ee;
	--sd-on-sale: #ffffff;
	--sd-success: #1b7a4b;
	--sd-success-bg: #e8f5ee;
	--sd-warning: #7a4b00;
	--sd-warning-bg: #fff4db;
	--sd-error: #b42318;
	--sd-error-bg: #fdecea;
	--sd-info: #5a1f6a;
	--sd-info-bg: #f6ecf9;
	--sd-text: #23142b;
	--sd-text-2: #4a3a52;
	--sd-text-muted: #5e4b63;
	--sd-placeholder: #75657b;
	--sd-link: #7b2d8e;
	--sd-link-hover: #5a1f6a;
	--sd-on-dark: #ffffff;
	--sd-on-dark-muted: #e4d6ea;
	--sd-bg: #ffffff;
	--sd-surface: #fbf7f9;
	--sd-surface-2: #f4ecf2;
	--sd-line: #e7dce4;
	--sd-border-input: #857090;
	--sd-focus: #7b2d8e;
	--sd-focus-on-dark: #f8c8dc;
	--sd-oos-bg: #ece6ef;
	--sd-oos-text: #4a3a52;
	--sd-disabled-bg: #ece6ef;
	--sd-disabled-text: #6b5c75;

	--sd-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--sd-font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sd-font-script: var(--sd-font-head);

	--sd-fs-display: 56px;
	--sd-fs-h1: 40px;
	--sd-fs-h2: 32px;
	--sd-fs-h3: 26px;
	--sd-fs-h4: 20px;
	--sd-fs-h5: 18px;
	--sd-fs-h6: 14px;
	--sd-fs-body: 16px;
	--sd-fs-sm: 14px;
	--sd-fs-meta: 13px;
	--sd-fs-eyebrow: 12px;
	--sd-fs-nav: 14.5px;
	--sd-fs-btn: 15px;
	--sd-fs-label: 14px;
	--sd-fs-input: 16px;
	--sd-fs-card-title: 15px;
	--sd-fs-card-price: 16px;
	--sd-fs-strike: 14px;
	--sd-fs-pdp-title: 32px;
	--sd-fs-pdp-price: 26px;
	--sd-fs-badge: 12px;
	--sd-lh-body: 1.65;
	--sd-radius-pill: 999px;
	--sd-measure: 68ch;

	/* Alias existing child-theme variables so old rules pick up the new ink. */
	--sundari-text: var(--sd-text);
	--sundari-text-muted: var(--sd-text-muted);
	--sundari-ink: var(--sd-text);
	--sundari-violet: var(--sd-brand);
	--sundari-violet-dark: var(--sd-brand-hover);
	--sundari-violet-deep: var(--sd-brand-active);
	--sundari-font-display: var(--sd-font-head);
	--sundari-font-body: var(--sd-font-body);
	--sundari-font-script: var(--sd-font-script);
}

@media (max-width: 767px) {
	:root {
		--sd-fs-display: 36px;
		--sd-fs-h1: 32px;
		--sd-fs-h2: 26px;
		--sd-fs-h3: 22px;
		--sd-fs-h4: 18px;
		--sd-fs-h5: 17px;
		--sd-fs-h6: 14px;
		--sd-fs-body: 16px;
		--sd-fs-sm: 14px;
		--sd-fs-meta: 12px;
		--sd-fs-eyebrow: 12px;
		--sd-fs-nav: 16px;
		--sd-fs-card-title: 14px;
		--sd-fs-card-price: 15px;
		--sd-fs-strike: 13px;
		--sd-fs-pdp-title: 26px;
		--sd-fs-pdp-price: 24px;
		--sd-fs-badge: 12px;
	}
}

/* -------------------------------------------------------------------------- */
/* Base type                                                                  */
/* -------------------------------------------------------------------------- */

body.sundari-theme {
	font-family: var(--sd-font-body);
	font-size: var(--sd-fs-body) !important;
	font-weight: 400 !important;
	line-height: var(--sd-lh-body) !important;
	color: var(--sd-text) !important;
}

body.sundari-theme h1,
body.sundari-theme h2,
body.sundari-theme h3,
body.sundari-theme .product_title,
body.sundari-theme .sundari-page-hero__title {
	font-family: var(--sd-font-head);
	color: var(--sd-text);
}

/* -------------------------------------------------------------------------- */
/* Focus — beats the outline:none !important resets                           */
/* -------------------------------------------------------------------------- */

body.sundari-theme :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sd-focus) !important;
	outline-offset: 2px !important;
	box-shadow: none !important;
}

body.sundari-theme .site-header :where(a, button, input, select, textarea, [tabindex]):focus-visible,
body.sundari-theme .site-footer :where(a, button, input, select, textarea, [tabindex]):focus-visible,
body.sundari-theme .sundari-announce :where(a, button, [tabindex]):focus-visible {
	outline-color: var(--sd-focus-on-dark) !important;
}

/* -------------------------------------------------------------------------- */
/* Announcement, hero, section heads                                          */
/* -------------------------------------------------------------------------- */

body.sundari-theme .sundari-announce,
body.sundari-theme .sundari-announce__item {
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0.06em !important;
}

body.sundari-theme.sundari-page-home .sundari-hero__title {
	font-family: var(--sd-font-head) !important;
	font-size: clamp(28px, 4vw, 48px) !important;
	font-weight: 600 !important;
	color: var(--sd-on-dark) !important;
}

@media (max-width: 767px) {
	body.sundari-theme.sundari-page-home .sundari-hero__title {
		font-size: 28px !important;
	}
}

body.sundari-theme .sundari-section-head__title {
	font-family: var(--sd-font-head) !important;
	font-size: var(--sd-fs-h2) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--sd-text) !important;
}

body.sundari-theme .sundari-section-head__eyebrow {
	font-size: var(--sd-fs-eyebrow) !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	color: var(--sd-berry) !important;
}

body.sundari-theme .sundari-section-head__link {
	min-height: 44px !important;
	align-items: center !important;
	box-sizing: border-box !important;
}

/* -------------------------------------------------------------------------- */
/* Product cards — Home, Shop, Search, related                                */
/* -------------------------------------------------------------------------- */

body.sundari-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.sundari-theme .woocommerce ul.products li.product h2,
body.sundari-theme .woocommerce ul.products li.product h3,
body.sundari-theme .sundari-search-suggest__grid > li.product .woocommerce-loop-product__title {
	font-family: var(--sd-font-body) !important;
	font-size: var(--sd-fs-card-title) !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: var(--sd-text) !important;
}

body.sundari-theme .woocommerce ul.products li.product .price,
body.sundari-theme .woocommerce ul.products li.product .price .amount {
	font-size: var(--sd-fs-card-price) !important;
	font-weight: 600 !important;
	color: var(--sd-text) !important;
}

body.sundari-theme .woocommerce ul.products li.product .price del,
body.sundari-theme .woocommerce ul.products li.product .price del .amount {
	font-size: var(--sd-fs-strike) !important;
	font-weight: 400 !important;
	color: var(--sd-text-muted) !important;
}

body.sundari-theme .woocommerce ul.products li.product .price ins,
body.sundari-theme .woocommerce ul.products li.product .price ins .amount {
	color: var(--sd-sale) !important;
	font-weight: 700 !important;
}

body.sundari-theme span.onsale,
body.sundari-theme .onsale,
body.sundari-theme .woocommerce span.onsale {
	background: var(--sd-sale) !important;
	background-color: var(--sd-sale) !important;
	color: var(--sd-on-sale) !important;
	font-size: var(--sd-fs-badge) !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
}

/* -------------------------------------------------------------------------- */
/* Product page                                                               */
/* -------------------------------------------------------------------------- */

body.sundari-theme .sundari-pdp__title,
body.sundari-theme.sundari-pdp-view .product_title {
	font-family: var(--sd-font-head) !important;
	font-size: var(--sd-fs-pdp-title) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	color: var(--sd-text) !important;
}

body.sundari-theme .sundari-pdp__price-now,
body.sundari-theme .sundari-pdp__price-now .amount,
body.sundari-theme .sundari-pdp__price .price {
	font-size: var(--sd-fs-pdp-price) !important;
	font-weight: 700 !important;
	color: var(--sd-text) !important;
}

body.sundari-theme .sundari-pdp__price-now.sale,
body.sundari-theme .sundari-pdp__price-now.sale .amount {
	color: var(--sd-sale) !important;
}

body.sundari-theme .sundari-pdp__price-mrp,
body.sundari-theme .sundari-pdp__price-mrp s,
body.sundari-theme .sundari-pdp__tax-note {
	color: var(--sd-text-muted) !important;
}

body.sundari-theme .sundari-pdp__tax-note {
	font-size: var(--sd-fs-meta) !important;
	font-weight: 400 !important;
}

body.sundari-theme .sundari-pdp__price-off {
	color: var(--sd-sale) !important;
	font-weight: 700 !important;
}

body.sundari-theme .sundari-pdp__label {
	font-size: var(--sd-fs-label) !important;
	font-weight: 600 !important;
	color: var(--sd-text) !important;
}

body.sundari-theme .sundari-pdp__eyebrow,
body.sundari-theme .sundari-pdp__brand {
	font-size: var(--sd-fs-eyebrow) !important;
	color: var(--sd-berry) !important;
}

body.sundari-theme .sundari-pdp__bag,
body.sundari-theme.sundari-pdp-view .sundari-pdp__bag.button {
	background: var(--sd-cta) !important;
	background-color: var(--sd-cta) !important;
	background-image: none !important;
	color: var(--sd-on-cta) !important;
	border-radius: var(--sd-radius-pill) !important;
	font-size: var(--sd-fs-btn) !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	min-height: 48px !important;
}

body.sundari-theme .sundari-pdp__bag:hover,
body.sundari-theme.sundari-pdp-view .sundari-pdp__bag.button:hover {
	background: var(--sd-cta-hover) !important;
	background-color: var(--sd-cta-hover) !important;
	color: var(--sd-on-cta) !important;
}

body.sundari-theme .sundari-pdp__bag-status.is-success {
	color: var(--sd-success) !important;
	background: var(--sd-success-bg) !important;
}

body.sundari-theme .sundari-pdp__bag-status.is-error {
	color: var(--sd-error) !important;
	background: var(--sd-error-bg) !important;
}

/* -------------------------------------------------------------------------- */
/* Cart / checkout CTAs                                                       */
/* -------------------------------------------------------------------------- */

body.sundari-theme .sundari-bag-place,
body.sundari-theme .sundari-checkout__continue,
body.sundari-theme.sundari-page-checkout #place_order,
body.sundari-theme.sundari-page-checkout .sundari-checkout__continue.button,
body.sundari-theme.sundari-page-checkout .woocommerce button.button.sundari-checkout__continue {
	background: var(--sd-cta) !important;
	background-color: var(--sd-cta) !important;
	background-image: none !important;
	color: var(--sd-on-cta) !important;
	border-radius: var(--sd-radius-pill) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	min-height: 48px !important;
}

body.sundari-theme .sundari-bag-place:hover,
body.sundari-theme .sundari-checkout__continue:hover,
body.sundari-theme.sundari-page-checkout #place_order:hover,
body.sundari-theme.sundari-page-checkout .sundari-checkout__continue.button:hover {
	background: var(--sd-cta-hover) !important;
	background-color: var(--sd-cta-hover) !important;
	color: var(--sd-on-cta) !important;
}

body.sundari-theme .sundari-bag-item__qty-btn,
body.sundari-theme button.sundari-bag-item__qty-btn,
body.sundari-theme .sundari-pdp__qty-btn,
body.sundari-theme button.sundari-pdp__qty-btn {
	min-width: 44px !important;
	min-height: 44px !important;
	width: 44px !important;
	height: 44px !important;
}

/* -------------------------------------------------------------------------- */
/* Forms, breadcrumbs, notices                                                */
/* -------------------------------------------------------------------------- */

body.sundari-theme input[type="text"],
body.sundari-theme input[type="email"],
body.sundari-theme input[type="tel"],
body.sundari-theme input[type="number"],
body.sundari-theme input[type="password"],
body.sundari-theme input[type="search"],
body.sundari-theme input.search-field,
body.sundari-theme select,
body.sundari-theme textarea,
body.sundari-theme .woocommerce form .form-row input.input-text,
body.sundari-theme .woocommerce form .form-row textarea,
body.sundari-theme .woocommerce form .form-row select {
	font-size: var(--sd-fs-input) !important;
	font-weight: 400 !important;
	color: var(--sd-text) !important;
	border-color: var(--sd-border-input) !important;
}

body.sundari-theme input::placeholder,
body.sundari-theme textarea::placeholder {
	color: var(--sd-placeholder) !important;
	opacity: 1;
}

body.sundari-theme .woocommerce-breadcrumb,
body.sundari-theme .sundari-pdp__crumb,
body.sundari-theme .sundari-pdp .woocommerce-breadcrumb {
	font-size: var(--sd-fs-meta) !important;
	font-weight: 400 !important;
	color: var(--sd-text-muted) !important;
}

body.sundari-theme .woocommerce-error,
body.sundari-theme .woocommerce-error li {
	color: var(--sd-error) !important;
	background: var(--sd-error-bg) !important;
	border-color: var(--sd-error) !important;
}

body.sundari-theme .woocommerce-message,
body.sundari-theme .woocommerce-info {
	color: var(--sd-text) !important;
}

body.sundari-theme .woocommerce-message {
	background: var(--sd-success-bg) !important;
	border-color: var(--sd-success) !important;
}

/* -------------------------------------------------------------------------- */
/* Shop chips + hero dots (hit area, same visual)                             */
/* -------------------------------------------------------------------------- */

body.sundari-theme .sundari-shop-chip,
body.sundari-theme .sundari-shop__chip,
body.sundari-theme .sundari-cats-filter a,
body.sundari-theme .sundari-shop-cats a {
	min-height: 40px !important;
	align-items: center !important;
}

body.sundari-theme .sundari-hero-rail__dot {
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	background: transparent !important;
	background-color: transparent !important;
	opacity: 1 !important;
	position: relative !important;
	transform: none !important;
}

body.sundari-theme .sundari-hero-rail__dot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: #fff;
	opacity: 0.5;
}

body.sundari-theme .sundari-hero-rail__dot:hover::after,
body.sundari-theme .sundari-hero-rail__dot:focus-visible::after {
	opacity: 0.85;
}

body.sundari-theme .sundari-hero-rail__dot.is-active::after,
body.sundari-theme .sundari-hero-rail__dot[aria-current="true"]::after {
	opacity: 1;
	transform: scale(1.4);
}

/* Script font is gone. Wordmarks use Playfair; UI eyebrows stay Poppins. */
body.sundari-theme .sundari-bag-totals__eyebrow,
body.sundari-theme .sundari-checkout__eyebrow,
body.sundari-theme .sundari-checkout-coupon__eyebrow,
body.sundari-theme .sundari-thankyou__status-eyebrow,
body.sundari-theme .sundari-thankyou__pay-eyebrow {
	font-family: var(--sd-font-body) !important;
	font-weight: 500 !important;
}
