/*
 * Kan section library (Kan Studio session 3B). Scoped to the .kan-section
 * classes of the plugin's section patterns. Colours and fonts come from the
 * active theme: tints are mixed from currentColor, so the sections follow any
 * block theme's palette and stay readable on light and dark themes. Rules use
 * :where() (zero specificity) so choices in the block settings always win.
 */

:where(.kan-section) {
	padding-block: clamp(48px, 7vw, 96px);
	padding-inline: 20px;
}

:where(.kan-section) > * {
	box-sizing: border-box;
}

:where(.kan-section--center) {
	text-align: center;
}

:where(.kan-section--tinted:not(.has-background)) {
	background: color-mix(in srgb, currentcolor 6%, transparent);
}

:where(.kan-section .kan-section__eyebrow) {
	margin-block-end: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

:where(.kan-section .kan-section__title) {
	margin-block: 0 16px;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	line-height: 1.15;
}

:where(.kan-section .kan-section__title--center),
:where(.kan-section .kan-section__lead--center),
:where(.kan-section .kan-section__note--center) {
	text-align: center;
}

:where(.kan-section .kan-section__lead) {
	margin-block: 0 24px;
	font-size: 1.125rem;
	line-height: 1.6;
	opacity: 0.85;
}

:where(.kan-section .kan-section__note),
:where(.kan-section .kan-section__fine) {
	margin-block-start: 24px;
	font-size: 0.8125rem;
	opacity: 0.7;
}

:where(.kan-section .wp-block-columns) {
	gap: clamp(20px, 3vw, 40px);
}

/* Titles beside other columns stay a size that fits the column. */
:where(.kan-section .wp-block-column .kan-section__title) {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	overflow-wrap: normal;
}

:where(.kan-section .kan-section__photo img),
:where(.kan-section .kan-section__product-image img) {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

:where(.kan-section .kan-section__product-image img) {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Cards (features, pricing, products, Q&A). */
:where(.kan-section .kan-section__card),
:where(.kan-section .kan-section__product),
:where(.kan-section .kan-section__panel) {
	height: 100%;
	border: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
	border-radius: 16px;
	text-align: start;
}

/*
 * Inner spacing with class specificity: it must beat the theme's root padding
 * (.has-global-padding) on these constrained groups. A padding chosen in the
 * block settings is an inline style and still wins.
 */
.kan-section .kan-section__card,
.kan-section .kan-section__panel {
	padding: clamp(20px, 2.5vw, 32px);
}

.kan-section .kan-section__product {
	padding: 12px 12px 20px;
}

:where(.kan-section .kan-section__panel) {
	height: auto;
	background: color-mix(in srgb, currentcolor 4%, transparent);
}

:where(.kan-section .kan-section__card-title) {
	margin-block: 12px 8px;
	font-size: 1.25rem;
	line-height: 1.3;
}

:where(.kan-section .kan-section__icon img) {
	width: 40px;
	height: 40px;
}

:where(.kan-section .kan-section__icon) {
	margin: 0;
}

:where(.kan-section .kan-section__qa) {
	padding-block: 16px;
	border-bottom: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
}

:where(.kan-section .kan-section__qa .kan-section__card-title) {
	margin-block-start: 0;
}

/* Key figures. */
:where(.kan-section .kan-section__stat) {
	margin-block: 24px 4px;
	font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
}

:where(.kan-section .kan-section__stat-label) {
	margin-block: 0;
	opacity: 0.75;
}

/* Lists with a check mark. */
:where(.kan-section .kan-section__checklist) {
	padding-inline-start: 0;
	list-style: none;
}

:where(.kan-section .kan-section__checklist li) {
	position: relative;
	margin-block: 8px;
	padding-inline-start: 28px;
}

:where(.kan-section .kan-section__checklist li)::before {
	position: absolute;
	inset-inline-start: 0;
	content: "✓";
	font-weight: 700;
}

/* Testimonial and team avatars. */
:where(.kan-section .kan-section__avatar img) {
	width: 88px;
	height: 88px;
	border-radius: 50%;
}

:where(.kan-section .kan-section__quote) {
	margin-inline: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
	line-height: 1.5;
}

:where(.kan-section .kan-section__quote cite) {
	display: block;
	margin-block-start: 16px;
	font-size: 1rem;
	font-style: normal;
	opacity: 0.8;
}

:where(.kan-section .kan-section__role) {
	margin-block: 0 8px;
	font-weight: 600;
	opacity: 0.75;
}

/* FAQ with expandable questions. */
:where(.kan-section .kan-section__faq-item) {
	padding-block: 16px;
	border-bottom: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
}

:where(.kan-section .kan-section__faq-item summary) {
	font-weight: 600;
	cursor: pointer;
}

:where(.kan-section .kan-section__faq-item p) {
	margin-block: 12px 0;
}

/* Pricing. */
:where(.kan-section .kan-section__plan--featured) {
	border-width: 2px;
	border-color: currentcolor;
}

:where(.kan-section .kan-section__badge) {
	display: inline-block;
	margin: 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, currentcolor 10%, transparent);
	font-size: 0.75rem;
	font-weight: 600;
}

:where(.kan-section .kan-section__price-big) {
	margin-block: 4px 12px;
	font-size: 1.75rem;
	font-weight: 700;
}

:where(.kan-section .kan-section__price) {
	margin-block: 0 12px;
	opacity: 0.8;
}

/* Footer. */
:where(.kan-section--footer) {
	padding-block: 48px 24px;
	font-size: 0.9375rem;
}

:where(.kan-section .kan-section__brand) {
	margin-block: 0 8px;
	font-size: 1.25rem;
	font-weight: 700;
}

:where(.kan-section .kan-section__footer-title) {
	margin-block: 0 8px;
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

:where(.kan-section .kan-section__links) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.kan-section .kan-section__links li) {
	margin-block: 6px;
}

:where(.kan-section .kan-section__rule) {
	margin-block: 32px 0;
	border-color: color-mix(in srgb, currentcolor 14%, transparent);
	opacity: 1;
}

/* Cover hero: light text on the darkened image, whatever the theme colours. */
:where(.kan-section--hero-cover) {
	color: #fff;
}

.kan-section--hero-cover .wp-block-cover__inner-container :is(h1, h2, h3, p) {
	color: inherit;
}

/* ==========================================================================
   Editorial Product Card (Image 1A) & Studio Product Card (Image 3A)
   ========================================================================== */

:where(.kan-section .kan-card-1a) {
	padding: 14px;
	border-radius: 22px;
	background: #f7f5f0;
	color: #1f1e1a;
	border: 1px solid rgba(31, 30, 26, 0.08);
	box-shadow: 0 12px 30px -22px rgba(24, 22, 18, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:where(.kan-section .kan-card-1a:hover),
:where(.kan-section .kan-card-3a:hover) {
	transform: translateY(-3px);
	box-shadow: 0 20px 38px -22px rgba(17, 20, 26, 0.32);
}

:where(.kan-section .kan-card-1a__media),
:where(.kan-section .kan-card-3a__media) {
	position: relative;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
}

:where(.kan-section .kan-card-1a__media .kan-section__product-image img),
:where(.kan-section .kan-card-3a__media .kan-section__product-image img) {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
}

:where(.kan-section .kan-card-1a__badges) {
	position: absolute;
	inset-block-start: 10px;
	inset-inline: 10px;
	gap: 6px;
	pointer-events: none;
}

:where(.kan-section .kan-card-1a__badge-group) {
	gap: 6px;
}

:where(.kan-section .kan-glass-pill) {
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	background: rgba(25, 24, 20, 0.44);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.24);
}

:where(.kan-section .kan-card__dots) {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(4px);
}

:where(.kan-section .kan-card__dot) {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.48);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

:where(.kan-section .kan-card__dot.is-active) {
	background: #fff;
	transform: scale(1.25);
}

:where(.kan-section .kan-card-1a__body) {
	padding: 14px 4px 4px;
}

:where(.kan-section .kan-card-1a__desc),
:where(.kan-section .kan-card-3a__desc) {
	margin-block: 0 14px;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.78;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

:where(.kan-section .kan-card-1a__footer),
:where(.kan-section .kan-card-3a__footer) {
	gap: 10px;
	margin-block-start: auto;
}

:where(.kan-section .kan-card-1a__price),
:where(.kan-section .kan-card-3a__price) {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
}

:where(.kan-section .kan-card-1a__cta .wp-block-button__link) {
	padding: 9px 18px;
	border-radius: 999px;
	background: #676c3d;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

/* Studio Product Card (Image 3A) */
:where(.kan-section .kan-card-3a) {
	padding: 0;
	border-radius: 20px;
	background: #fff;
	color: #141619;
	overflow: hidden;
	border: 1px solid rgba(20, 22, 25, 0.08);
	box-shadow: 0 14px 32px -24px rgba(17, 20, 26, 0.35);
}

:where(.kan-section .kan-card-3a__media) {
	border-radius: 0;
	background: #141619;
}

:where(.kan-section .kan-card-3a__media .kan-section__product-image img) {
	border-radius: 0;
}

:where(.kan-section .kan-card__wish) {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-end: 12px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

:where(.kan-section .kan-card__wish.kan-card__wish--light) {
	position: static;
	border-color: rgba(20, 22, 25, 0.12);
	background: #fff;
	color: #3c3a35;
}

:where(.kan-section .kan-card__wish.is-liked) {
	background: #e11d48;
	border-color: #e11d48;
	color: #fff;
}

:where(.kan-section .kan-card-3a__body) {
	padding: 16px 18px 18px;
}

:where(.kan-section .kan-card-3a__head) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-block-end: 6px;
}

:where(.kan-section .kan-card-3a__head .kan-section__card-title) {
	margin: 0;
}

:where(.kan-section .kan-card-3a__verified) {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #e7f8ef;
	color: #16a34a;
	font-size: 0.72rem;
	font-weight: 700;
}

:where(.kan-section .kan-card-3a__meta) {
	gap: 10px;
}

:where(.kan-section .kan-card-3a__rating) {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.75;
}

:where(.kan-section .kan-card-3a__cta .wp-block-button__link) {
	padding: 9px 16px;
	border-radius: 999px;
	background: #141824;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
}

/* WooCommerce Product Collection Parity for Image 1A & 3A */
:where(.kan-section .kan-wc-editorial .wc-block-product),
:where(.kan-section .kan-wc-studio .wc-block-product) {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:where(.kan-section .kan-wc-editorial .wc-block-product) {
	padding: 14px;
	background: #f7f5f0;
	color: #1f1e1a;
	border: 1px solid rgba(31, 30, 26, 0.08);
}

:where(.kan-section .kan-wc-studio .wc-block-product) {
	padding: 0 0 18px;
	background: #fff;
	color: #141619;
	border: 1px solid rgba(20, 22, 25, 0.08);
}

:where(.kan-section .kan-wc-studio .wc-block-product > :not(.wc-block-components-product-image)) {
	padding-inline: 18px;
}

:where(.kan-section .kan-wc-editorial .wc-block-components-product-image img) {
	border-radius: 14px;
}

:where(.kan-section .kan-wc-editorial .wp-block-button__link) {
	border-radius: 999px;
	background: #676c3d;
	color: #fff;
}

:where(.kan-section .kan-wc-studio .wp-block-button__link) {
	border-radius: 999px;
	background: #141824;
	color: #fff;
}

/* ==========================================================================
   Featured Products Carousel (Image 2 - Option B)
   ========================================================================== */

:where(.kan-section--products-carousel) {
	background: #f7f2eb;
	color: #2b231d;
}

:where(.kan-section .kan-carousel__heading) {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
}

:where(.kan-section .kan-carousel) {
	position: relative;
	margin-block-start: 28px;
}

:where(.kan-section .kan-carousel__track),
:where(.kan-section .kan-wc-carousel__collection .wc-block-product-template),
:where(.kan-section .kan-query-carousel .wp-block-post-template) {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 24px 12px 28px;
	scrollbar-width: none;
	list-style: none;
	margin: 0;
}

:where(.kan-section .kan-carousel__track::-webkit-scrollbar),
:where(.kan-section .kan-wc-carousel__collection .wc-block-product-template::-webkit-scrollbar),
:where(.kan-section .kan-query-carousel .wp-block-post-template::-webkit-scrollbar) {
	display: none;
}

:where(.kan-section .kan-carousel__card),
:where(.kan-section .kan-wc-carousel__collection .wc-block-product) {
	flex: 0 0 clamp(220px, 22vw, 270px);
	scroll-snap-align: center;
	padding: 16px;
	border-radius: 20px;
	background: #fdfbf8;
	color: #2b231d;
	border: 1px solid rgba(43, 35, 29, 0.08);
	box-shadow: 0 12px 26px -22px rgba(43, 35, 29, 0.28);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

:where(.kan-section .kan-query-carousel .wp-block-post) {
	flex: 0 0 clamp(250px, 26vw, 310px);
	scroll-snap-align: center;
}

:where(.kan-section .kan-carousel__card.is-active),
:where(.kan-section .kan-wc-carousel__collection .wc-block-product.is-active) {
	flex-basis: clamp(260px, 26vw, 310px);
	transform: scale(1.04);
	background: #fff;
	box-shadow: 0 24px 48px -24px rgba(43, 35, 29, 0.34);
	z-index: 2;
}

:where(.kan-section .kan-carousel__top) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-end: 10px;
}

:where(.kan-section .kan-carousel__badge) {
	padding: 4px 10px;
	border-radius: 999px;
	background: #efe3cf;
	color: #6b5335;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

:where(.kan-section .kan-carousel__image img) {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 14px;
}

:where(.kan-section .kan-carousel__title) {
	margin-block: 12px 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
}

:where(.kan-section .kan-carousel__desc) {
	margin-block: 0 8px;
	font-size: 0.85rem;
	line-height: 1.45;
	opacity: 0.75;
}

:where(.kan-section .kan-carousel__rating) {
	margin-block: 0 12px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #9e7332;
}

:where(.kan-section .kan-carousel__footer) {
	gap: 8px;
}

:where(.kan-section .kan-carousel__price) {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

:where(.kan-section .kan-carousel__cta .wp-block-button__link) {
	padding: 8px 14px;
	border-radius: 10px;
	background: #b99f7d;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
}

:where(.kan-section .kan-carousel__nav) {
	position: absolute;
	inset-block-start: 46%;
	transform: translateY(-50%);
	z-index: 4;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(43, 35, 29, 0.12);
	background: #fff;
	color: #2b231d;
	font-size: 1.4rem;
	line-height: 1;
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

:where(.kan-section .kan-carousel__nav--prev) {
	inset-inline-start: 6px;
}

:where(.kan-section .kan-carousel__nav--next) {
	inset-inline-end: 6px;
}

:where(.kan-section .kan-carousel__dots) {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-block-start: 6px;
}

:where(.kan-section .kan-carousel__dot) {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #b99f7d;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

:where(.kan-section .kan-carousel__dot.is-active) {
	background: #b99f7d;
	transform: scale(1.2);
}

/* ==========================================================================
   Storeco Storefront Sections (Image 4)
   ========================================================================== */

:where(.kan-section--storeco-header) {
	padding-block: 16px;
}

:where(.kan-section .kan-storeco-nav) {
	gap: 16px;
}

:where(.kan-section .kan-storeco-nav__brand) {
	gap: 8px;
}

:where(.kan-section .kan-storeco-nav__logo) {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #ebe2d6;
	color: #5c4938;
}

:where(.kan-section .kan-storeco-nav__name) {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
}

:where(.kan-section .kan-storeco-nav__name a),
:where(.kan-section .kan-storeco-nav__links a) {
	text-decoration: none;
	color: inherit;
}

:where(.kan-section .kan-storeco-nav__links) {
	gap: 20px;
	font-size: 0.92rem;
	font-weight: 500;
}

:where(.kan-section .kan-storeco-nav__links p) {
	margin: 0;
}

:where(.kan-section .kan-storeco-nav__actions) {
	gap: 12px;
}

:where(.kan-section .kan-storeco-nav__icon) {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
}

:where(.kan-section .kan-storeco-nav__badge) {
	position: absolute;
	inset-block-start: -2px;
	inset-inline-end: -2px;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding-inline: 4px;
	border-radius: 999px;
	background: #b08968;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
}

:where(.kan-section .kan-storeco-nav__cta .wp-block-button__link),
:where(.kan-section .kan-storeco-hero__cta .wp-block-button__link) {
	padding: 10px 20px;
	border-radius: 999px;
	background: #23201e;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

:where(.kan-section--storeco-hero) {
	padding-block: 12px 20px;
}

:where(.kan-section .kan-storeco-hero__box) {
	padding: clamp(24px, 4vw, 48px);
	border-radius: 26px;
	background: #ebe2d7;
	color: #23201e;
}

:where(.kan-section .kan-storeco-hero__pill) {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #dfd1c0;
	color: #6b533b;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

:where(.kan-section .kan-storeco-hero__title) {
	margin-block: 0 14px;
	font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
	line-height: 1.08;
	font-weight: 700;
}

:where(.kan-section .kan-storeco-hero__visual) {
	position: relative;
}

:where(.kan-section .kan-storeco-hero__img img) {
	border-radius: 20px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

:where(.kan-section .kan-storeco-hero__float) {
	position: absolute;
	inset-block-start: 16px;
	inset-inline-end: 16px;
	max-width: 210px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

:where(.kan-section .kan-storeco-hero__statcard) {
	padding: 16px;
	border-radius: 18px;
	background: #fff;
	color: #23201e;
	box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.25);
}

:where(.kan-section .kan-storeco-hero__statnum) {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.1;
}

:where(.kan-section .kan-storeco-hero__arrow) {
	margin: 0;
}

:where(.kan-section .kan-storeco-hero__arrow a) {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f3efe9;
	color: #23201e;
	text-decoration: none;
	font-size: 0.85rem;
}

:where(.kan-section .kan-storeco-hero__statlabel) {
	margin: 6px 0 10px;
	font-size: 0.78rem;
	line-height: 1.35;
	opacity: 0.75;
}

:where(.kan-section .kan-storeco-hero__avatars) {
	gap: 0;
}

:where(.kan-section .kan-storeco-hero__avatar) {
	margin: 0;
	margin-inline-end: -8px;
}

:where(.kan-section .kan-storeco-hero__avatar img) {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #fff;
}

:where(.kan-section .kan-storeco-hero__quicklinks) {
	gap: 8px;
}

:where(.kan-section .kan-storeco-hero__qpill) {
	margin: 0;
}

:where(.kan-section .kan-storeco-hero__qpill a) {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(6px);
	color: #23201e;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
}

/* Storeco 3 Category Cards */
:where(.kan-section--storeco-categories) {
	padding-block: 10px 20px;
}

:where(.kan-section .kan-storeco-cat) {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 22px;
	border-radius: 22px;
	color: #23201e;
}

:where(.kan-section .kan-storeco-cat--warm) {
	background: #e9dccb;
}

:where(.kan-section .kan-storeco-cat--sage) {
	background: #cdd2be;
}

:where(.kan-section .kan-storeco-cat--cool) {
	background: #e1e5eb;
}

:where(.kan-section .kan-storeco-cat__tag) {
	margin: 0 0 6px;
	font-size: 0.78rem;
	opacity: 0.75;
}

:where(.kan-section .kan-storeco-cat__title) {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.2;
}

:where(.kan-section .kan-storeco-cat__sub) {
	margin: 0 0 12px;
	font-size: 0.85rem;
	opacity: 0.8;
}

:where(.kan-section .kan-storeco-cat__btn .wp-block-button__link) {
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: #23201e;
	border: 1px solid rgba(35, 32, 30, 0.14);
	font-size: 0.8rem;
	font-weight: 600;
}

:where(.kan-section .kan-storeco-cat__img) {
	margin: 0;
}

:where(.kan-section .kan-storeco-cat__img img) {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 14px;
}

/* Storeco USP Bar */
:where(.kan-section--storeco-usp) {
	padding-block: 10px 40px;
}

:where(.kan-section .kan-storeco-usp__bar) {
	padding: 20px 24px;
	border-radius: 18px;
	background: #faf9f6;
	color: #23201e;
	border: 1px solid rgba(35, 32, 30, 0.08);
	gap: 16px;
}

:where(.kan-section .kan-storeco-usp__item) {
	gap: 12px;
}

:where(.kan-section .kan-storeco-usp__icon img) {
	width: 30px;
	height: 30px;
}

:where(.kan-section .kan-storeco-usp__title) {
	margin: 0 0 2px;
	font-size: 0.95rem;
	font-weight: 700;
}

:where(.kan-section .kan-storeco-usp__copy) {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.72;
}

@media (max-width: 781px) {

	:where(.kan-section .kan-storeco-hero__float) {
		position: static;
		max-width: none;
		margin-block-start: 14px;
	}

	:where(.kan-section .kan-storeco-cat) {
		grid-template-columns: 1fr;
	}
}

/* Kan Effects & Motion (Inspector -> Advanced -> Effects & Motion). */
@keyframes kan-fx-fade-in {

	from { opacity: 0; }

	to { opacity: 1; }
}

@keyframes kan-fx-fade-up {

	from { opacity: 0; transform: translateY(18px); }

	to { opacity: 1; transform: translateY(0); }
}

@keyframes kan-fx-zoom-in {

	from { opacity: 0; transform: scale(0.92); }

	to { opacity: 1; transform: scale(1); }
}

@keyframes kan-fx-zoom-out {

	from { opacity: 0; transform: scale(1.08); }

	to { opacity: 1; transform: scale(1); }
}

@keyframes kan-fx-slide-left {

	from { opacity: 0; transform: translateX(24px); }

	to { opacity: 1; transform: translateX(0); }
}

:where([class*="kan-fx-"]) {
	--kan-fx-duration: 0.6s;
	--kan-fx-delay: 0s;
	animation-duration: var(--kan-fx-duration);
	animation-delay: var(--kan-fx-delay);
	animation-fill-mode: both;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.kan-fx-fade-in { animation-name: kan-fx-fade-in; }

.kan-fx-fade-up { animation-name: kan-fx-fade-up; }

.kan-fx-zoom-in { animation-name: kan-fx-zoom-in; }

.kan-fx-zoom-out { animation-name: kan-fx-zoom-out; }

.kan-fx-slide-left { animation-name: kan-fx-slide-left; }

.kan-fx-dur-fast { --kan-fx-duration: 0.3s; }

.kan-fx-dur-normal { --kan-fx-duration: 0.6s; }

.kan-fx-dur-slow { --kan-fx-duration: 1s; }

.kan-fx-delay-100 { --kan-fx-delay: 0.1s; }

.kan-fx-delay-200 { --kan-fx-delay: 0.2s; }

.kan-fx-delay-400 { --kan-fx-delay: 0.4s; }

:where(.kan-hover-zoom, .kan-hover-lift, .kan-hover-shadow) {
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.kan-hover-zoom:hover { transform: scale(1.03); }

.kan-hover-lift:hover { transform: translateY(-4px); }

.kan-hover-shadow:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); }

@media (prefers-reduced-motion: reduce) {

	[class*="kan-fx-"] {
		animation: none !important;
	}

	.kan-hover-zoom:hover,
	.kan-hover-lift:hover {
		transform: none !important;
	}
}

/* Dynamic card block styles (core/post-template & woocommerce/product-template) */
:where(.is-style-kan-card-elevated > li, .is-style-kan-card-bordered > li, .is-style-kan-card-horizontal > li) {
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

:where(.is-style-kan-card-elevated > li) {
	background: color-mix(in srgb, currentcolor 3%, var(--wp--preset--color--background, #fff));
	border: 1px solid color-mix(in srgb, currentcolor 8%, transparent);
	box-shadow: 0 6px 20px color-mix(in srgb, currentcolor 7%, transparent);
}

:where(.is-style-kan-card-elevated > li:hover) {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px color-mix(in srgb, currentcolor 12%, transparent);
}

:where(.is-style-kan-card-bordered > li) {
	border: 1px solid color-mix(in srgb, currentcolor 16%, transparent);
	background: transparent;
}

:where(.is-style-kan-card-bordered > li:hover) {
	border-color: color-mix(in srgb, currentcolor 34%, transparent);
}

:where(.is-style-kan-card-minimal > li) {
	border: 0;
	background: transparent;
}

:where(.is-style-kan-card-minimal .kan-card__media img, .is-style-kan-card-minimal .wc-block-components-product-image img) {
	border-radius: 14px;
}

:where(.is-style-kan-card-elevated, .is-style-kan-card-bordered) :where(.kan-card__media, .wp-block-post-featured-image, .wc-block-components-product-image) {
	margin: 0;
}

:where(.is-style-kan-card-elevated, .is-style-kan-card-bordered, .is-style-kan-card-minimal, .is-style-kan-card-horizontal) :where(.kan-card__media img, .wp-block-post-featured-image img, .wc-block-components-product-image img) {
	display: block;
	width: 100%;
	object-fit: cover;
}

:where(.is-style-kan-card-elevated > li, .is-style-kan-card-bordered > li) .kan-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}

:where(.is-style-kan-card-minimal > li) .kan-card__body {
	padding: 14px 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

:where(.kan-card__terms) {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

:where(.kan-card__terms a) {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, currentcolor 9%, transparent);
	text-decoration: none;
}

:where(.kan-card__title) {
	margin-block: 0;
	font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
	line-height: 1.3;
}

:where(.kan-card__excerpt) {
	margin-block: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	opacity: 0.82;
}

:where(.kan-card__excerpt p) {
	margin-block: 0;
}

:where(.kan-card__meta) {
	margin-top: auto;
	padding-top: 8px;
	font-size: 0.875rem;
	opacity: 0.85;
}

:where(.kan-card__cta) {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
}

:where(.is-style-kan-card-horizontal > li) {
	border: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
	background: color-mix(in srgb, currentcolor 2%, var(--wp--preset--color--background, #fff));
}

:where(.is-style-kan-card-horizontal > li:hover) {
	border-color: color-mix(in srgb, currentcolor 30%, transparent);
}

:where(.is-style-kan-card-horizontal > li) .kan-card__body {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

@media (min-width: 640px) {

	:where(.is-style-kan-card-horizontal > li) {
		display: grid;
		grid-template-columns: minmax(140px, 38%) 1fr;
		align-items: stretch;
	}

	:where(.is-style-kan-card-horizontal > li) :where(.kan-card__media, .wp-block-post-featured-image, .wc-block-components-product-image) {
		height: 100%;
		margin: 0;
	}

	:where(.is-style-kan-card-horizontal > li) :where(.kan-card__media img, .wp-block-post-featured-image img, .wc-block-components-product-image img) {
		height: 100%;
	}
}

:where(.kan-magazine-layout) {
	gap: clamp(20px, 3vw, 32px);
	align-items: stretch;
}

:where(.kan-magazine-layout__list .is-style-kan-card-horizontal) {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 640px) {

	:where(.kan-magazine-layout__list .is-style-kan-card-horizontal > li) {
		grid-template-columns: minmax(110px, 32%) 1fr;
	}
}

@media (min-width: 900px) {

	:where(.is-style-kan-card-magazine) {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		gap: 20px;
		align-items: stretch;
	}

	:where(.is-style-kan-card-magazine > li:first-child) {
		grid-row: span 3;
	}

	:where(.is-style-kan-card-magazine > li:not(:first-child)) {
		display: grid;
		grid-template-columns: minmax(110px, 34%) 1fr;
		align-items: stretch;
	}
}

:where(.is-style-kan-card-magazine > li) {
	border: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
	background: color-mix(in srgb, currentcolor 2%, var(--wp--preset--color--background, #fff));
}

