/*!
 * Kids Outlet Egypt — Components v2.0.0 (Parmagito Digital Services)
 * Homepage sections, product card, content pages. Scoped to .koe-scope roots; container queries respond to the
 * Elementor column width, not just the viewport. Usable with JS off; motion is progressive enhancement.
 */
/* Themes (WoodMart: `:is(ul,ol) li{margin-bottom:10px}` except :last-child) add list margins that stretch flex rows unevenly. Plugin lists own their spacing via gap. */
.koe-scope li { margin: 0; }


/* =================================================================== Root & primitives */
.koe-scope {
	box-sizing: border-box;
	font-family: var(--koe-font-text);
	font-size: var(--koe-fs-body);
	line-height: 1.7;
	color: var(--koe-text);
	text-align: start;
}
.koe-scope *, .koe-scope *::before, .koe-scope *::after { box-sizing: inherit; }
.koe-scope :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.koe-scope :where(ul, ol) { padding: 0; list-style: none; }
.koe-scope :where(a) { color: inherit; }
/* :any-link adds specificity so theme content-link underlines (e.g. .entry-content a) never leak into components */
.koe-scope a:any-link, .koe-scope a:any-link:hover, .koe-scope a:any-link:focus { text-decoration: none; }
.koe-scope :where(img) { display: block; max-width: 100%; height: auto; }
.koe-scope :where(a, button, summary):focus-visible { outline: 3px solid var(--koe-focus); outline-offset: 3px; border-radius: 6px; }
.koe-scope .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.koe-scope .koe-ico { width: 1.25em; height: 1.25em; flex: none; }
.koe-scope .koe-ico--arrow { transition: transform var(--koe-motion-fast) var(--koe-ease-standard); }

.koe-home {
	container: koe / inline-size;
	max-width: var(--koe-container);
	margin-inline: auto;
	padding: clamp(10px, 1.6vw, 20px) var(--koe-gutter) var(--koe-section);
	overflow-x: clip;
}
.koe-page { container: koe / inline-size; max-width: var(--koe-container); margin-inline: auto; }
.koe-section { margin-top: var(--koe-section); }

/* Kicker: Latin only, so letter-spacing never touches Arabic */
.koe-kicker {
	display: block;
	font-family: var(--koe-font-display);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--koe-primary);
	margin-bottom: .55rem;
	text-align: right;
	unicode-bidi: isolate;
}
.koe-h2 {
	font-family: var(--koe-font-display);
	font-weight: 800;
	font-size: var(--koe-fs-h2);
	line-height: 1.25;
	color: var(--koe-ink);
	text-wrap: balance;
}
.koe-h3 { font-family: var(--koe-font-display); font-weight: 800; font-size: var(--koe-fs-h3); color: var(--koe-ink); line-height: 1.35; }

.koe-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 32px); }
.koe-head__text { max-width: 46rem; }
.koe-head__lead { margin-top: .5rem; color: var(--koe-muted); font-size: 1.02em; text-wrap: pretty; }

.koe-link {
	display: inline-flex; align-items: center; gap: .45em;
	font-weight: 600; color: var(--koe-primary);
	padding-block: .45em; min-height: 44px;
	border-bottom: 1.5px solid transparent;
	transition: border-color var(--koe-motion-fast) ease;
}
.koe-link .koe-ico--facebook, .koe-link .koe-ico { width: 1.15em; height: 1.15em; }
@media (hover: hover) {
	.koe-link:hover { border-bottom-color: currentColor; }
	.koe-link:hover .koe-ico--arrow { transform: translateX(-4px); }
}

/* Buttons */
.koe-btn {
	--btn-bg: var(--koe-primary); --btn-fg: #fff; --btn-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .55em 1.35em;
	border: 1.5px solid var(--btn-bd); border-radius: 14px;
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--koe-font-text); font-weight: 600; font-size: 1rem; line-height: 1.3;
	text-align: center; cursor: pointer;
	transition: background-color var(--koe-motion-fast) ease, color var(--koe-motion-fast) ease, transform var(--koe-motion-fast) var(--koe-ease-standard), box-shadow var(--koe-motion-fast) ease;
}
.koe-scope a.koe-btn, .koe-scope a.koe-btn:visited { color: var(--btn-fg); }
.koe-btn--lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.05rem; }
.koe-btn--block { display: flex; width: 100%; }
.koe-btn--primary { --btn-bg: var(--koe-primary); --btn-fg: #fff; }
.koe-btn--line { --btn-bg: transparent; --btn-fg: var(--koe-ink); --btn-bd: var(--koe-ink); }
.koe-btn--light { --btn-bg: var(--koe-ivory); --btn-fg: var(--koe-ink); }
.koe-btn--sun { --btn-bg: var(--koe-sun); --btn-fg: var(--koe-ink); }
.koe-btn--soft { --btn-bg: var(--koe-sky-50); --btn-fg: var(--koe-navy); }
.koe-btn--ghost { --btn-bg: transparent; --btn-fg: var(--koe-muted); --btn-bd: var(--koe-line-strong); }
@media (hover: hover) {
	.koe-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(20, 33, 61, .55); }
	.koe-btn--primary:hover { --btn-bg: var(--koe-primary-hover); }
	.koe-btn--line:hover { --btn-bg: var(--koe-ink); --btn-fg: #fff; }
	.koe-btn--sun:hover { --btn-bg: var(--koe-sun-hover); }
	.koe-btn--soft:hover { --btn-bg: #d7eafc; }
	.koe-btn:hover .koe-ico--arrow { transform: translateX(-4px); }
}
.koe-btn:active { transform: translateY(0); }
/* WooCommerce AJAX states (class set by WooCommerce after the server answers) */
.koe-btn.loading { opacity: .75; pointer-events: none; }
.koe-btn.loading::after {
	content: ""; width: 1em; height: 1em; border-radius: 50%;
	border: 2px solid currentColor; border-inline-start-color: transparent;
	animation: koe-spin .7s linear infinite;
}
.koe-btn.added::after {
	content: ""; width: 1.05em; height: 1.05em; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes koe-spin { to { transform: rotate(360deg); } }

.koe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.koe-chips li, .koe-chips a {
	display: inline-flex; align-items: center; min-height: 36px; padding: .3em .95em;
	border-radius: 999px; background: var(--koe-white); border: 1px solid var(--koe-line);
	font-size: .92rem; font-weight: 600; color: var(--koe-ink);
}
.koe-chips--links li { padding: 0; border: 0; background: none; }
@media (hover: hover) { .koe-chips--links a:hover { border-color: var(--koe-primary); color: var(--koe-primary); } }

/* Badges */
.koe-badge {
	display: inline-flex; align-items: center; min-height: 26px; padding: .1em .7em;
	border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.koe-badge--sale { background: var(--koe-pink-700); color: #fff; }
.koe-badge--out { background: var(--koe-ink); color: #fff; }
.koe-badge--demo { background: var(--koe-sun-50); color: #6b4e00; border: 1px dashed #c69200; }
.koe-badge--inline { margin-top: 6px; }

/* =================================================================== Reveal (progressive) */
.koe-motion [data-koe-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, var(--koe-reveal-distance), 0); }
.koe-motion [data-koe-reveal] {
	transition: opacity var(--koe-motion-emphasis) var(--koe-ease-expressive), transform var(--koe-motion-emphasis) var(--koe-ease-expressive);
	transition-delay: calc(var(--i, 0) * 70ms);
}

/* =================================================================== 01 · Hero */
.koe-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(18px, 3vw, 40px);
	align-items: center;
	padding: clamp(14px, 3vw, 44px);
	border-radius: var(--koe-r-xl);
	background:
		radial-gradient(circle at 12% 18%, rgba(255, 194, 26, .18) 0 120px, transparent 121px),
		var(--koe-sand);
	isolation: isolate;
}
.koe-hero__copy { order: 2; min-width: 0; padding-inline: clamp(4px, 1vw, 12px); }
.koe-hero__visual { order: 1; position: relative; min-width: 0; padding: 0 0 14px 14px; }
.koe-hero__title {
	font-family: var(--koe-font-display);
	font-weight: 800;
	font-size: var(--koe-fs-h1);
	line-height: 1.16;
	color: var(--koe-ink);
	letter-spacing: 0;
	text-wrap: balance;
	margin: 0;
}
.koe-mark { position: relative; display: inline-block; color: var(--koe-primary); white-space: nowrap; }
.koe-mark__line {
	position: absolute; inset-inline: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible;
	fill: none; stroke: var(--koe-sun); stroke-width: 9; stroke-linecap: round; z-index: -1;
	stroke-dasharray: 320; stroke-dashoffset: 0;
	animation: koe-draw 1.1s var(--koe-ease-expressive) .35s both;
}
@keyframes koe-draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
.koe-hero__lead { margin-top: 1rem; max-width: 34rem; color: #3f4860; font-size: clamp(1rem, .95rem + .35vw, 1.18rem); text-wrap: pretty; }
.koe-hero__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 1.5rem; }
.koe-hero__facts {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
	margin-top: clamp(1.25rem, 2.4vw, 2rem); padding-top: 1.1rem; border-top: 1px solid var(--koe-line-strong);
	max-width: 34rem;
}
.koe-hero__facts li { display: flex; flex-direction: column-reverse; gap: 2px; padding-inline: 10px; border-inline-start: 1px solid var(--koe-line-strong); min-width: 0; }
.koe-hero__facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.koe-hero__facts b { font-family: var(--koe-font-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--koe-ink); line-height: 1.2; white-space: nowrap; }
.koe-hero__fact-label { font-size: .82rem; color: var(--koe-muted); line-height: 1.35; }

.koe-hero__block {
	position: absolute; inset: 14px 14px 0 0; border-radius: 26px;
	background: var(--koe-primary);
	z-index: -1;
}
.koe-hero__frame {
	position: relative; border-radius: 26px; overflow: hidden; background: var(--koe-sand-2);
	transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform var(--koe-motion-normal) var(--koe-ease-standard);
	box-shadow: var(--koe-shadow-sm);
	animation: koe-rise .9s var(--koe-ease-expressive) both;
}
.koe-hero__frame picture { display: block; }
.koe-hero__img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
@keyframes koe-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.koe-hero__badge {
	position: absolute; width: clamp(72px, 10cqi, 132px); height: auto; aspect-ratio: 1;
	left: -6px; bottom: -6px; color: var(--koe-ink); /* physical: the SVG is direction=ltr for its text path */
	animation: koe-turn 26s linear infinite;
	filter: drop-shadow(0 8px 16px rgba(20, 33, 61, .18));
}
.koe-hero__badge-bg { fill: var(--koe-sun); }
.koe-hero__badge text { font-family: var(--koe-font-display); font-weight: 800; font-size: 15.5px; letter-spacing: 2.4px; fill: var(--koe-ink); }
.koe-hero__badge-ico { fill: none; stroke: var(--koe-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes koe-turn { to { transform: rotate(-360deg); } }

.koe-confetti { position: absolute; pointer-events: none; animation: koe-float 7s ease-in-out infinite; }
.koe-confetti--a { width: 18px; height: 18px; border-radius: 50%; background: var(--koe-pink); top: 2px; inset-inline-end: 28%; }
.koe-confetti--b { width: 16px; height: 16px; border-radius: 4px; background: var(--koe-green); transform: rotate(18deg); bottom: 20%; inset-inline-start: -2px; animation-delay: -2.4s; }
.koe-confetti--c { width: 26px; height: 26px; border-radius: 50%; border: 4px solid var(--koe-sun); top: 30%; inset-inline-end: -6px; animation-delay: -4.2s; }
@keyframes koe-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@container koe (min-width: 900px) {
	.koe-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr); padding: clamp(28px, 3.4cqi, 56px); }
	.koe-hero__copy { order: 1; }
	.koe-hero__visual { order: 2; padding: 0 0 26px 26px; }
	.koe-hero__block { inset: 26px 26px 0 0; }
	.koe-hero__badge { left: -10px; bottom: -6px; }
	.koe-hero__title { font-size: clamp(2.6rem, 1rem + 4.2cqi, 4.6rem); }
}
@container koe (max-width: 420px) {
	.koe-hero { padding: 12px 12px 22px; border-radius: 24px; }
	.koe-hero__actions .koe-btn { flex: 1 1 100%; }
	.koe-hero__facts li { padding-inline: 8px; }
	.koe-hero__fact-label { font-size: .74rem; }
}

/* =================================================================== 02 · Brand marquee */
.koe-brandbar {
	position: relative;
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px;
	margin-top: clamp(16px, 2.4vw, 28px);
	padding: 12px clamp(12px, 2vw, 22px);
	border-radius: var(--koe-r-lg);
	background: var(--koe-white);
	border: 1px solid var(--koe-line);
}
.koe-brandbar__label { font-family: var(--koe-font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: var(--koe-ink); }
.koe-brandbar__label span { color: var(--koe-muted); font-family: var(--koe-font-text); font-weight: 400; font-size: .85rem; }
.koe-marquee {
	overflow: hidden; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.koe-marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 4px; }
/* Moves only when JS is active (pause/play button available); otherwise a static row of the real brands. */
.koe-home:not(.koe-marquee-on) .koe-marquee__item[aria-hidden="true"] { display: none; }
.koe-home:not(.koe-marquee-on) .koe-marquee { -webkit-mask-image: none; mask-image: none; }
.koe-marquee-on .koe-marquee__track { flex-wrap: nowrap; width: max-content; animation: koe-marquee 32s linear infinite; }
.koe-marquee:hover .koe-marquee__track,
.koe-marquee:focus-within .koe-marquee__track,
.koe-brandbar.is-paused .koe-marquee__track { animation-play-state: paused; }
@keyframes koe-marquee { to { transform: translateX(50%); } }
[dir="ltr"] .koe-marquee__track { animation-name: koe-marquee-ltr; }
@keyframes koe-marquee-ltr { to { transform: translateX(-50%); } }
.koe-marquee__item a {
	display: grid; place-items: center; height: 64px; min-width: 150px; padding: 10px 26px;
	border-radius: 16px; background: var(--koe-ivory); border: 1px solid var(--koe-line);
	transition: border-color var(--koe-motion-fast) ease, transform var(--koe-motion-fast) var(--koe-ease-standard);
}
.koe-marquee__logo { max-height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.koe-brand-word { font-family: var(--koe-font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--koe-navy); letter-spacing: .02em; }
@media (hover: hover) { .koe-marquee__item a:hover { border-color: var(--koe-primary); transform: translateY(-2px); } }
.koe-marquee__toggle {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--koe-sand); color: var(--koe-ink); border: 0; cursor: pointer; padding: 0;
}
.koe-marquee__toggle[hidden] { display: none; }
.koe-marquee__toggle .koe-ico--play, .koe-brandbar.is-paused .koe-marquee__toggle .koe-ico--pause { display: none; }
.koe-brandbar.is-paused .koe-marquee__toggle .koe-ico--play { display: block; }
@container koe (max-width: 620px) {
	.koe-brandbar { grid-template-columns: minmax(0, 1fr) auto; }
	.koe-brandbar__label { grid-column: 1 / -1; }
	.koe-brandbar__label br { display: none; }
	.koe-marquee__item a { height: 56px; min-width: 128px; padding-inline: 18px; }
}

/* =================================================================== 03 · Category experience */
.koe-cats__stage { position: relative; }
.koe-cats__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64%, 1fr); gap: 12px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding-bottom: 10px; margin-inline: calc(var(--koe-gutter) * -1); padding-inline: var(--koe-gutter);
	scrollbar-width: thin;
}
.koe-cats[data-count="1"] .koe-cats__list, .koe-cats__stage[data-count="1"] .koe-cats__list { grid-auto-columns: minmax(0, 1fr); }
.koe-cat { scroll-snap-align: start; min-width: 0; }
.koe-cat__link {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb thumb thumb" "num name go" "num count go";
	align-items: center; gap: 2px 10px; height: 100%;
	padding: 10px 10px 14px; border-radius: var(--koe-r-lg); background: var(--koe-white); border: 1px solid var(--koe-line);
}
.koe-cat__thumb { grid-area: thumb; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--koe-sand); margin-bottom: 10px; }
.koe-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.koe-cat__num { grid-area: num; font-family: var(--koe-font-display); font-weight: 800; font-size: .85rem; color: var(--koe-primary); align-self: start; padding-top: .35em; }
.koe-cat__name { grid-area: name; font-family: var(--koe-font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.25; color: var(--koe-ink); }
.koe-cat__count { grid-area: count; font-size: .85rem; color: var(--koe-muted); }
.koe-cat__go {
	grid-area: go; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--koe-sun); color: var(--koe-ink);
	transition: transform var(--koe-motion-normal) var(--koe-ease-expressive), background-color var(--koe-motion-fast) ease;
}
.koe-cats__figs { display: none; }

/* Fallback art for categories without an image */
.koe-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; overflow: hidden; }
.koe-art--blue { background: var(--koe-sky-50); color: var(--koe-primary); }
.koe-art--yellow { background: var(--koe-sun-50); color: #8a6500; }
.koe-art--pink { background: var(--koe-pink-50); color: var(--koe-pink-700); }
.koe-art--green { background: var(--koe-green-50); color: var(--koe-green-700); }
.koe-art__ico { width: 46%; height: auto; stroke-width: 1.1; position: relative; z-index: 1; }
.koe-art i { position: absolute; border-radius: 50%; background: currentColor; opacity: .12; }
.koe-art i:nth-of-type(1) { width: 38%; height: 38%; top: 8%; inset-inline-start: 10%; }
.koe-art i:nth-of-type(2) { width: 16%; height: 16%; bottom: 14%; inset-inline-end: 14%; opacity: .2; }
.koe-art i:nth-of-type(3) { width: 9%; height: 9%; top: 22%; inset-inline-end: 22%; opacity: .3; }

@container koe (min-width: 900px) {
	.koe-cats__stage {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4cqi, 64px); align-items: center;
	}
	.koe-cats__list { display: block; overflow: visible; margin: 0; padding: 0; border-top: 1px solid var(--koe-line-strong); }
	.koe-cat__link {
		grid-template-columns: 3.2rem minmax(0, 1fr) auto; grid-template-areas: "num name go" "num count go";
		padding: clamp(16px, 1.8cqi, 26px) 4px; border: 0; border-bottom: 1px solid var(--koe-line-strong); border-radius: 0; background: none;
		transition: padding var(--koe-motion-normal) var(--koe-ease-expressive);
	}
	.koe-cat__thumb { display: none; }
	.koe-cat__name { font-size: clamp(1.7rem, 1rem + 2.1cqi, 2.9rem); transition: color var(--koe-motion-fast) ease; }
	.koe-cat__num { font-size: 1rem; padding-top: .9em; }
	.koe-cat__go { background: transparent; border: 1.5px solid var(--koe-line-strong); width: 52px; height: 52px; }
	.koe-cat.is-active .koe-cat__link, .koe-cat__link:hover, .koe-cat__link:focus-visible { padding-inline-start: 18px; }
	.koe-cat.is-active .koe-cat__name, .koe-cat__link:hover .koe-cat__name { color: var(--koe-primary); }
	.koe-cat.is-active .koe-cat__go, .koe-cat__link:hover .koe-cat__go { background: var(--koe-sun); border-color: var(--koe-sun); transform: rotate(-12deg) scale(1.06); }

	.koe-cats__figs { display: grid; position: relative; }
	.koe-cats__fig {
		grid-area: 1 / 1; position: relative; aspect-ratio: 1; border-radius: var(--koe-r-xl); overflow: hidden; background: var(--koe-sand);
		opacity: 0; transform: scale(1.03) rotate(.6deg);
		transition: opacity var(--koe-motion-emphasis) var(--koe-ease-expressive), transform var(--koe-motion-emphasis) var(--koe-ease-expressive);
	}
	.koe-cats__fig.is-active { opacity: 1; transform: none; }
	.koe-cats__fig img { width: 100%; height: 100%; object-fit: cover; }
	.koe-cats__fig figcaption {
		position: absolute; bottom: 18px; inset-inline-start: 18px;
		padding: .35em 1em; border-radius: 999px; background: var(--koe-white); color: var(--koe-ink);
		font-family: var(--koe-font-display); font-weight: 800; font-size: 1.05rem; box-shadow: var(--koe-shadow-sm);
	}
}

/* =================================================================== Product card + grid */
.koe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--koe-gap); }
.koe-grid[data-count="1"] { grid-template-columns: minmax(0, 340px); justify-content: center; }
@container koe (min-width: 760px) {
	.koe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.koe-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
}
@container koe (min-width: 1100px) {
	.koe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.koe-grid[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.koe-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; }
}

.koe-card {
	container: card / inline-size;
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--koe-white); border: 1px solid var(--koe-line); border-radius: 22px;
	transition: box-shadow var(--koe-motion-normal) ease, transform var(--koe-motion-normal) var(--koe-ease-standard), border-color var(--koe-motion-fast) ease;
}
.koe-card__media {
	position: relative; display: block; aspect-ratio: 4 / 5; margin: 6px 6px 0;
	border-radius: 17px; overflow: hidden; background: var(--koe-sand);
}
.koe-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--koe-motion-emphasis) ease, transform var(--koe-motion-emphasis) var(--koe-ease-expressive); }
.koe-card__img--alt { opacity: 0; }
.koe-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--koe-line-strong); }
.koe-card__placeholder .koe-ico { width: 40%; height: auto; }
.koe-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.koe-card.is-out .koe-card__img { filter: grayscale(.35); opacity: .78; }

.koe-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.koe-card__row { min-height: 1.5rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
.koe-card__eyebrow { justify-content: space-between; }
.koe-card__brand { font-family: var(--koe-font-display); font-weight: 800; font-size: .82rem; color: var(--koe-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.koe-card__lining { flex: none; font-size: .72rem; font-weight: 600; padding: 0 .6em; border-radius: 999px; background: var(--koe-green-50); color: var(--koe-green-700); line-height: 1.7; }
.koe-card__title { font-family: var(--koe-font-text); font-weight: 600; font-size: .98rem; line-height: 1.5; min-height: 3em; color: var(--koe-ink); overflow-wrap: anywhere; }
.koe-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.koe-card__material { font-size: .8rem; color: var(--koe-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.5rem; }
.koe-card__options { min-height: 1.75rem; justify-content: space-between; flex-wrap: nowrap; }
.koe-card__price { min-height: 1.9rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .4em; font-weight: 600; color: var(--koe-ink); font-size: 1.05rem; line-height: 1.5; }
.koe-card__price del { color: var(--koe-muted); font-weight: 400; font-size: .86em; order: 2; }
.koe-card__price ins { text-decoration: none; color: var(--koe-pink-700); }
.koe-card__noprice { font-size: .86rem; color: var(--koe-muted); }
.koe-card__stock { min-height: 1.3rem; font-size: .78rem; font-weight: 600; color: #a1460e; }
.koe-card.is-out .koe-card__stock { color: var(--koe-muted); }
.koe-card__actions { margin-top: auto; padding-top: 4px; }
.koe-card__actions .koe-btn { min-height: 46px; font-size: .93rem; padding-inline: .6em; white-space: nowrap; }
.koe-card__actions .added_to_cart { display: none; }

.koe-sizes { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; flex: 1; height: 1.3rem; overflow: hidden; }
.koe-sizes li {
	flex: none; font-size: .72rem; font-weight: 600; line-height: 1.6; padding: 0 .45em;
	border: 1px solid var(--koe-line-strong); border-radius: 6px; color: var(--koe-ink); background: var(--koe-white); white-space: nowrap;
}
.koe-sizes li.is-off { color: #9aa0ab; text-decoration: line-through; border-style: dashed; }
.koe-sizes--narrow { display: none; }
.koe-sizes li.is-more { border-color: transparent; background: var(--koe-sand); }
.koe-swatches { display: flex; gap: 4px; flex: none; align-items: center; }
.koe-swatches li { width: 16px; height: 16px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(20, 33, 61, .18); }
.koe-swatches li.is-text { width: auto; height: auto; background: none; box-shadow: none; font-size: .72rem; color: var(--koe-muted); }
.koe-swatches li.is-more { width: auto; height: auto; background: none; box-shadow: none; font-size: .72rem; color: var(--koe-muted); }

@media (hover: hover) {
	.koe-card:hover { box-shadow: var(--koe-shadow-md); border-color: transparent; transform: translateY(-3px); }
	.koe-card:hover .koe-card__img { transform: scale(1.035); }
	.koe-card:hover .koe-card__img--alt { opacity: 1; }
	.koe-card:hover .koe-card__img--alt ~ .koe-card__img, .koe-card:has(.koe-card__img--alt):hover .koe-card__img:not(.koe-card__img--alt) { opacity: 0; }
}
@container card (max-width: 205px) {
	.koe-card__body { padding: 10px 10px 12px; gap: 5px; }
	.koe-card__title { font-size: .9rem; }
	.koe-card__lining { display: none; }
	.koe-card__actions .koe-btn { font-size: .84rem; min-height: 44px; }
	.koe-card__price { font-size: .98rem; }
	.koe-swatches { display: none; }
}
/* Compact cards: two size chips + "+n", and two reserved price lines so every card in the grid measures the same. */
@container card (max-width: 250px) {
	.koe-sizes--wide { display: none; }
	.koe-sizes--narrow { display: flex; }
	.koe-card__price { min-height: 3em; align-content: flex-start; }
}

/* =================================================================== 05 · Creative banners (bento) */
.koe-banners { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--koe-gap); }
@container koe (min-width: 860px) {
	.koe-banners[data-count="2"] { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.koe-banner {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
	min-height: clamp(280px, 30cqi, 380px); padding: clamp(22px, 3cqi, 40px);
	border-radius: var(--koe-r-xl); overflow: hidden; isolation: isolate;
	transition: transform var(--koe-motion-normal) var(--koe-ease-standard);
}
.koe-banner__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; max-width: 24rem; }
.koe-banner__title { text-wrap: balance; font-family: var(--koe-font-display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2cqi, 2.6rem); line-height: 1.2; }
.koe-banner__text { font-size: 1rem; line-height: 1.65; opacity: .92; max-width: 21rem; }
.koe-banner .koe-btn { margin-top: .6rem; }
.koe-banner__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.koe-banner__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.koe-banner.has-photo .koe-banner__copy { background: rgba(255, 251, 244, .94); color: var(--koe-ink); padding: 18px 20px; border-radius: 20px; }
.koe-banner.has-photo .koe-kicker { color: var(--koe-primary); }

.koe-banner--layers { background: var(--koe-navy); color: var(--koe-ivory); }
.koe-banner--layers .koe-kicker { color: var(--koe-sun); }
.koe-fold {
	position: absolute; inset-inline-end: clamp(18px, 6%, 70px); width: clamp(150px, 34%, 290px); height: 23%;
	border-radius: 18px 18px 22px 22px; box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .5);
	transition: transform var(--koe-motion-emphasis) var(--koe-ease-expressive);
}
.koe-fold::before { content: ""; position: absolute; inset: 22% 30% auto; height: 26%; border-radius: 0 0 40px 40px; border: 2px solid rgba(255, 255, 255, .35); border-top: 0; }
.koe-fold--1 { top: 16%; background: #f1e6d2; transform: rotate(-4deg); }
.koe-fold--1::before { border-color: rgba(20, 33, 61, .18); }
.koe-fold--2 { top: 37%; background: #6e7a4b; transform: rotate(3deg) translateX(-12px); }
.koe-fold--3 { top: 58%; background: #7a2b3c; transform: rotate(-2deg) translateX(6px); }
.koe-bow { position: absolute; top: 7%; inset-inline-end: calc(clamp(18px, 6%, 70px) + 11%); width: clamp(64px, 12%, 96px); fill: none; stroke: var(--koe-sun); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-8deg); animation: koe-float 6s ease-in-out infinite; }
@media (hover: hover) {
	.koe-banner:hover { transform: translateY(-3px); }
	.koe-banner--layers:hover .koe-fold--1 { transform: rotate(-7deg) translateY(-8px); }
	.koe-banner--layers:hover .koe-fold--2 { transform: rotate(5deg) translateX(-22px); }
	.koe-banner--layers:hover .koe-fold--3 { transform: rotate(-4deg) translateX(14px) translateY(6px); }
	.koe-banner:hover .koe-btn .koe-ico--arrow { transform: translateX(-4px); }
}

.koe-banner--size { background: var(--koe-sun); color: var(--koe-ink); }
.koe-banner--size .koe-kicker { color: var(--koe-navy); }
.koe-tape {
	position: absolute; top: 18%; inset-inline-end: -12%; width: 92%; height: 62px; border-radius: 14px;
	background: var(--koe-white); transform: rotate(-14deg); box-shadow: 0 16px 30px -18px rgba(20, 33, 61, .55); overflow: hidden;
}
.koe-tape i {
	position: absolute; inset: 0 -60px 0 0;
	background:
		repeating-linear-gradient(90deg, var(--koe-ink) 0 2px, transparent 2px 60px) 0 0 / 60px 38% no-repeat repeat-x,
		repeating-linear-gradient(90deg, var(--koe-ink) 0 1.5px, transparent 1.5px 12px) 0 0 / 12px 20% repeat-x;
	background-repeat: repeat-x;
	animation: koe-tape 9s linear infinite;
	opacity: .85;
}
.koe-tape--2 { top: 40%; inset-inline-end: -26%; width: 70%; height: 48px; background: var(--koe-pink); transform: rotate(8deg); }
.koe-tape--2 i { filter: invert(1); opacity: .5; animation-direction: reverse; }
@keyframes koe-tape { to { transform: translateX(-60px); } }
@container koe (max-width: 520px) {
	.koe-banner { min-height: 340px; align-items: end; }
	.koe-fold { width: 46%; height: 18%; }
	.koe-fold--1 { top: 8%; } .koe-fold--2 { top: 23%; } .koe-fold--3 { top: 38%; }
	.koe-bow { top: 2%; }
	.koe-tape { top: 10%; height: 50px; } .koe-tape--2 { top: 26%; height: 40px; }
}

/* =================================================================== 06 · Shop by brand */
.koe-brands__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--koe-gap); }
@container koe (min-width: 700px) { .koe-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .koe-brands__grid[data-count="1"] { grid-template-columns: minmax(0, 560px); justify-content: center; } }
@container koe (min-width: 1000px) { .koe-brands__grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .koe-brands__grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.koe-brandtile {
	display: flex; flex-direction: column; gap: 18px; padding: clamp(18px, 2.2cqi, 28px);
	border-radius: var(--koe-r-xl); background: var(--koe-white); border: 1px solid var(--koe-line);
	transition: box-shadow var(--koe-motion-normal) ease, transform var(--koe-motion-normal) var(--koe-ease-standard);
	perspective: 900px;
}
.koe-brandtile__logo { display: flex; align-items: center; height: 56px; }
.koe-brandtile__img { max-height: 42px; width: auto; max-width: 70%; object-fit: contain; }
.koe-brandtile__logo .koe-brand-word { font-size: 2rem; }
.koe-brandtile__thumbs { position: relative; display: flex; justify-content: center; height: clamp(150px, 15cqi, 200px); }
.koe-brandtile__thumbs:empty { display: none; }
.koe-brandtile__thumb {
	position: relative; width: 38%; max-width: 140px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--koe-sand);
	border: 4px solid var(--koe-white); box-shadow: var(--koe-shadow-md); margin-inline: -7%;
	transform-origin: 50% 100%; transition: transform var(--koe-motion-emphasis) var(--koe-ease-expressive);
}
.koe-brandtile__thumb img { width: 100%; height: 100%; object-fit: contain; }
.koe-brandtile__thumb:nth-child(1) { transform: rotate(6deg) translateY(8px); z-index: 1; }
.koe-brandtile__thumb:nth-child(2) { z-index: 2; }
.koe-brandtile__thumb:nth-child(3) { transform: rotate(-6deg) translateY(8px); z-index: 1; }
.koe-brandtile__thumb:only-child { transform: none; }
.koe-brandtile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--koe-line); }
.koe-brandtile__count { font-size: .9rem; color: var(--koe-muted); }
.koe-brandtile__cta { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--koe-primary); min-height: 44px; }
@media (hover: hover) {
	.koe-brandtile:hover { box-shadow: var(--koe-shadow-md); transform: translateY(-4px); }
	.koe-brandtile:hover .koe-brandtile__thumb:nth-child(1) { transform: rotate(12deg) translate(-14px, 4px) rotateY(-12deg); }
	.koe-brandtile:hover .koe-brandtile__thumb:nth-child(2) { transform: translateY(-10px) scale(1.04); }
	.koe-brandtile:hover .koe-brandtile__thumb:nth-child(3) { transform: rotate(-12deg) translate(14px, 4px) rotateY(12deg); }
	.koe-brandtile:hover .koe-ico--arrow { transform: translateX(-4px); }
}

/* =================================================================== 07 · Editorial story */
.koe-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 4cqi, 64px); }
.koe-story__title em { font-style: normal; color: var(--koe-pink-700); }
.koe-story__type {
	display: flex; flex-wrap: wrap; gap: 0 .3em; margin-top: 1.4rem;
	font-family: var(--koe-font-display); font-weight: 800; font-size: clamp(2.4rem, 1.2rem + 5cqi, 5.4rem); line-height: .98;
	direction: ltr; justify-content: flex-end; unicode-bidi: isolate;
}
.koe-story__type span:nth-child(1) { color: var(--koe-primary); }
.koe-story__type span:nth-child(2) { color: var(--koe-green-700); }
.koe-story__type span:nth-child(3) { color: var(--koe-pink); }
.koe-story__type span:nth-child(4) { color: var(--koe-ink); position: relative; }
.koe-story__type span:nth-child(4)::after { content: ""; position: absolute; inset-inline: 4% 8%; bottom: .08em; height: .14em; background: var(--koe-sun); z-index: -1; border-radius: 4px; }
.koe-story__media { margin-top: 1.4rem; border-radius: var(--koe-r-xl); overflow: hidden; }
.koe-story__steps { position: relative; display: grid; gap: 14px; counter-reset: step; }
.koe-step {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon num" "icon title" "icon text";
	gap: 2px 18px; padding: clamp(18px, 2.4cqi, 30px); border-radius: var(--koe-r-lg); background: var(--koe-white); border: 1px solid var(--koe-line);
	transition: border-color var(--koe-motion-normal) ease, background-color var(--koe-motion-normal) ease;
}
.koe-step__icon { grid-area: icon; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--koe-sky-50); color: var(--koe-primary); transition: background-color var(--koe-motion-normal) ease, transform var(--koe-motion-normal) var(--koe-ease-expressive); }
.koe-step__icon .koe-ico { width: 28px; height: 28px; }
.koe-step__num { grid-area: num; font-family: var(--koe-font-display); font-weight: 800; font-size: .9rem; color: var(--koe-muted); }
.koe-step__title { grid-area: title; font-family: var(--koe-font-display); font-weight: 800; font-size: var(--koe-fs-h3); color: var(--koe-ink); line-height: 1.35; }
.koe-step__text { grid-area: text; color: var(--koe-muted); margin-top: 4px; }
.koe-step.is-current { border-color: var(--koe-primary); }
.koe-step.is-current .koe-step__icon { background: var(--koe-sun); color: var(--koe-ink); transform: rotate(-6deg); }
@container koe (min-width: 900px) {
	.koe-story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
	.koe-story__intro { position: sticky; top: calc(var(--koe-sticky-top, 110px)); }
	.koe-story__steps { gap: 18px; padding-inline-start: 34px; }
	.koe-story__steps::before { content: ""; position: absolute; inset-block: 24px; inset-inline-start: 6px; width: 3px; border-radius: 3px; background: var(--koe-line); }
	.koe-story__steps::after {
		content: ""; position: absolute; top: 24px; inset-inline-start: 6px; width: 3px; height: calc(100% - 48px); border-radius: 3px;
		background: linear-gradient(var(--koe-primary), var(--koe-pink));
		transform-origin: top; transform: scaleY(var(--koe-progress, 1));
	}
	.koe-step::before { content: ""; position: absolute; inset-inline-start: -34px; top: 34px; width: 15px; height: 15px; border-radius: 50%; background: var(--koe-white); border: 3px solid var(--koe-line-strong); transition: border-color var(--koe-motion-normal) ease, background-color var(--koe-motion-normal) ease; }
	.koe-step.is-current::before, .koe-step.is-done::before { border-color: var(--koe-primary); background: var(--koe-sun); }
}

/* =================================================================== 08 · Product spotlight */
.koe-spot { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4cqi, 64px); align-items: center; padding: clamp(14px, 3cqi, 44px); border-radius: var(--koe-r-xl); background: var(--koe-sky-50); }
@container koe (min-width: 860px) { .koe-spot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.koe-spot__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--koe-r-lg); overflow: hidden; background: var(--koe-white); max-width: 520px; margin-inline: auto; width: 100%; }
.koe-spot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--koe-motion-normal) ease; }
.koe-spot__img.is-swapping { opacity: 0; }
.koe-spot__pct {
	position: absolute; top: 14px; inset-inline-end: 14px; width: 84px; height: 84px; border-radius: 50%;
	display: grid; place-content: center; text-align: center; background: var(--koe-pink-700); color: #fff; transform: rotate(-10deg);
	line-height: 1.05; box-shadow: var(--koe-shadow-md);
}
.koe-spot__pct b { font-family: var(--koe-font-display); font-weight: 800; font-size: 1.5rem; }
.koe-spot__pct span { font-size: .72rem; }
.koe-spot__thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.koe-spot__thumb { width: 64px; height: 64px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--koe-white); cursor: pointer; }
.koe-spot__thumb img { width: 100%; height: 100%; object-fit: cover; }
.koe-spot__thumb.is-active { border-color: var(--koe-primary); }
.koe-spot__brand { margin-bottom: .6rem; }
.koe-spot__logo { max-height: 30px; width: auto; max-width: 180px; }
.koe-spot__brand .koe-brand-word { font-size: 1.5rem; }
.koe-spot__title { font-size: clamp(1.45rem, 1rem + 1.6cqi, 2.3rem); }
.koe-spot__price { margin-top: .6rem; font-size: 1.4rem; font-weight: 600; display: flex; gap: .5em; align-items: baseline; flex-wrap: wrap; }
.koe-spot__price del { color: var(--koe-muted); font-weight: 400; font-size: .8em; order: 2; }
.koe-spot__price ins { text-decoration: none; color: var(--koe-pink-700); }
.koe-spot__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 1.4rem; }
.koe-spot__actions .koe-btn { width: auto; min-width: 220px; }
.koe-spot__actions .koe-btn--soft { --btn-bg: var(--koe-primary); --btn-fg: #fff; }
.koe-demo-note { margin-top: .8rem; font-size: .82rem; color: #6b4e00; }

.koe-facts { display: grid; gap: 0; margin-top: 1.2rem; border-top: 1px solid rgba(20, 33, 61, .12); }
.koe-facts > div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(20, 33, 61, .12); }
.koe-facts dt { font-size: .88rem; color: var(--koe-muted); }
.koe-facts dd { font-weight: 600; color: var(--koe-ink); min-width: 0; }
.koe-facts .koe-sizes { flex-wrap: wrap; overflow: visible; height: auto; }
.koe-facts .koe-sizes li { font-size: .82rem; padding: .1em .6em; }
.koe-facts__colors { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.koe-facts__colors .koe-swatches li { width: 20px; height: 20px; }

/* =================================================================== 09 · Benefits bento */
.koe-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--koe-gap); }
.koe-bento__item {
	display: flex; flex-direction: column; gap: 8px; min-width: 0;
	padding: clamp(16px, 2.2cqi, 28px); border-radius: var(--koe-r-lg); background: var(--koe-white); border: 1px solid var(--koe-line);
}
.koe-bento__item:nth-child(2) { background: var(--koe-sky-50); border-color: transparent; }
.koe-bento__item:nth-child(3) { background: var(--koe-pink-50); border-color: transparent; }
.koe-bento__item:nth-child(4) { background: var(--koe-green-50); border-color: transparent; }
.koe-bento__item:nth-child(5) { background: var(--koe-sun-50); border-color: transparent; }
.koe-bento__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--koe-white); color: var(--koe-ink); }
.koe-bento__icon .koe-ico { width: 26px; height: 26px; }
.koe-bento__title { font-family: var(--koe-font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.35; color: var(--koe-ink); }
.koe-bento__text { font-size: .9rem; color: var(--koe-muted); }
.koe-bento__item--hero { grid-column: 1 / -1; background: var(--koe-navy); color: var(--koe-ivory); border-color: transparent; justify-content: space-between; }
.koe-bento__item--hero .koe-bento__icon { background: var(--koe-sun); color: var(--koe-ink); }
.koe-bento__item--hero .koe-bento__title { color: #fff; font-size: clamp(1.4rem, 1rem + 1.6cqi, 2.2rem); max-width: 18ch; }
.koe-bento__item--hero .koe-bento__text { color: rgba(255, 251, 244, .82); }
.koe-bento__logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.koe-bento__chip { display: grid; place-items: center; height: 52px; min-width: 110px; padding: 0 16px; border-radius: 14px; background: var(--koe-white); }
.koe-bento__chip img { max-height: 26px; width: auto; max-width: 130px; object-fit: contain; }
.koe-bento__chip .koe-brand-word { font-size: 1.3rem; }
@container koe (min-width: 900px) {
	.koe-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); }
	.koe-bento__item--hero { grid-column: span 2; grid-row: span 2; }
	.koe-bento[data-count="4"] .koe-bento__item:last-child { grid-column: span 2; }
	.koe-bento[data-count="3"] .koe-bento__item:not(.koe-bento__item--hero) { grid-column: span 2; }
}

/* =================================================================== 10 · Reviews */
.koe-reviews__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--koe-gap); }
@container koe (min-width: 760px) { .koe-reviews__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.koe-review { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--koe-r-lg); background: var(--koe-white); border: 1px solid var(--koe-line); }
.koe-review__stars { display: flex; gap: 2px; color: #e5a000; }
.koe-ico--star { fill: currentColor; width: 18px; height: 18px; }
.koe-review__text { font-size: 1rem; color: var(--koe-ink); }
.koe-review__by { margin-top: auto; font-size: .86rem; color: var(--koe-muted); }
.koe-review__by a { color: var(--koe-primary); }

/* =================================================================== 11 · About */
.koe-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4cqi, 64px); align-items: center; }
.koe-about__mark { position: relative; width: min(100%, 360px); margin-inline: auto; aspect-ratio: 1; }
.koe-about__mark::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; border: 2px dashed var(--koe-line-strong); animation: koe-turn 60s linear infinite; }
.koe-about__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: var(--koe-white); box-shadow: var(--koe-shadow-md); }
.koe-about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.koe-about__copy > p { max-width: 40rem; color: #3f4860; }
@container koe (min-width: 860px) { .koe-about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

/* =================================================================== 12 · Messenger CTA */
.koe-cta {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center;
	margin-top: var(--koe-section); padding: clamp(26px, 4cqi, 56px);
	border-radius: var(--koe-r-xl); background: var(--koe-navy); color: var(--koe-ivory);
}
.koe-cta .koe-h2 { color: #fff; }
.koe-cta .koe-kicker { color: var(--koe-sun); }
.koe-cta__copy p:last-child { margin-top: .6rem; color: rgba(255, 251, 244, .85); max-width: 36rem; }
.koe-cta .koe-btn { justify-self: start; }
.koe-cta__bubbles { position: absolute; inset: 0; z-index: -1; }
.koe-cta__bubbles span { position: absolute; border-radius: 22px 22px 22px 6px; opacity: .9; animation: koe-float 8s ease-in-out infinite; }
.koe-cta__bubbles span:nth-child(1) { width: 130px; height: 70px; background: var(--koe-primary); inset-inline-end: 6%; top: -30px; }
.koe-cta__bubbles span:nth-child(2) { width: 70px; height: 42px; background: var(--koe-pink); inset-inline-end: 24%; bottom: -18px; border-radius: 18px 18px 6px 18px; animation-delay: -3s; }
.koe-cta__bubbles span:nth-child(3) { width: 46px; height: 30px; background: var(--koe-green); inset-inline-end: -16px; top: 38%; animation-delay: -5s; }
@container koe (min-width: 860px) { .koe-cta { grid-template-columns: minmax(0, 1fr) auto; } .koe-cta__copy { padding-inline-end: 6%; } }
@container koe (max-width: 859px) { .koe-cta__bubbles span:nth-child(2) { display: none; } .koe-cta .koe-btn { width: 100%; } }

/* =================================================================== 13 · Shipping & ordering */
.koe-ship { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--koe-gap); align-items: start; }
@container koe (min-width: 900px) { .koe-ship { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.koe-ship__how { padding: clamp(18px, 2.6cqi, 34px); border-radius: var(--koe-r-xl); background: var(--koe-sand); }
.koe-ship__steps { display: grid; gap: 14px; margin-top: 1.2rem; }
.koe-ship__steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.koe-ship__steps b { display: block; color: var(--koe-ink); font-weight: 600; }
.koe-ship__steps li > span:last-child { color: var(--koe-muted); font-size: .95rem; }
.koe-ship__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--koe-white); font-family: var(--koe-font-display); font-weight: 800; color: var(--koe-primary); border: 1.5px solid var(--koe-line-strong); }
.koe-ship__rates { padding: clamp(18px, 2.6cqi, 34px); border-radius: var(--koe-r-xl); background: var(--koe-white); border: 1px solid var(--koe-line); }
.koe-ship__rates-title { display: flex; align-items: center; gap: .5em; font-family: var(--koe-font-display); font-weight: 800; font-size: var(--koe-fs-h3); color: var(--koe-ink); margin-bottom: 1rem; }
.koe-ship__rates-title .koe-ico { color: var(--koe-primary); width: 1.3em; height: 1.3em; }

.koe-rates__list { display: grid; gap: 0; }
.koe-rates__item { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--koe-line-strong); }
.koe-rates__item:last-child { border-bottom: 0; }
.koe-rates__price { display: inline-flex; justify-content: center; padding: .25em .6em; border-radius: 10px; background: var(--koe-sun-50); color: var(--koe-ink); font-family: var(--koe-font-display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.koe-rates__item:nth-child(1) .koe-rates__price { background: var(--koe-sun); }
.koe-rates__areas { color: var(--koe-text); font-size: .95rem; line-height: 1.7; }
.koe-rates__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--koe-sky-50); font-size: .88rem; color: var(--koe-ink); }
.koe-rates__note .koe-ico { color: var(--koe-primary); margin-top: .2em; }
.koe-rates--compact .koe-rates__item { padding: 10px 0; }

/* =================================================================== Content pages */
.koe-page { padding-block: clamp(8px, 2vw, 20px) var(--koe-section); }
.koe-page--header { padding-bottom: 0; }
.koe-pagehead { padding: clamp(22px, 4cqi, 48px); border-radius: var(--koe-r-xl); background: var(--koe-sand); }
.koe-pagehead__title { font-family: var(--koe-font-display); font-weight: 800; font-size: var(--koe-fs-h1); line-height: 1.2; color: var(--koe-ink); }
.koe-pagehead__lead { margin-top: .6rem; max-width: 42rem; color: var(--koe-muted); font-size: 1.08rem; }
.koe-about--page { padding: clamp(18px, 3cqi, 40px); border-radius: var(--koe-r-xl); background: var(--koe-sand); }
.koe-brandrow__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--koe-gap); margin-top: 1rem; }
.koe-brandrow__list a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 18px; border-radius: var(--koe-r-lg); background: var(--koe-white); border: 1px solid var(--koe-line); text-align: center; }
.koe-brandrow__list span { font-size: .85rem; color: var(--koe-muted); }
.koe-brandrow__logo { max-height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.koe-values { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.koe-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--koe-gap); align-items: start; }
@container koe (min-width: 860px) { .koe-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.koe-contact__card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 3cqi, 40px); border-radius: var(--koe-r-xl); background: var(--koe-navy); color: var(--koe-ivory); }
.koe-contact__card .koe-h2 { color: #fff; }
.koe-contact__card .koe-kicker { color: var(--koe-sun); }
.koe-contact__card .koe-link { color: var(--koe-sun); }
.koe-contact__card .koe-btn--primary { --btn-bg: var(--koe-sun); --btn-fg: var(--koe-ink); }
.koe-contact__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--koe-primary); color: #fff; }
.koe-contact__icon .koe-ico { width: 32px; height: 32px; }
.koe-faq { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 3cqi, 34px); border-radius: var(--koe-r-xl); background: var(--koe-white); border: 1px solid var(--koe-line); }
.koe-faq__item { border-bottom: 1px solid var(--koe-line); }
.koe-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 600; color: var(--koe-ink); list-style: none; }
.koe-faq__item summary::-webkit-details-marker { display: none; }
.koe-faq__item summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--koe-sand); font-size: 1.2rem; transition: transform var(--koe-motion-fast) ease; }
.koe-faq__item[open] summary::after { transform: rotate(45deg); background: var(--koe-sun); }
.koe-faq__item p { padding-bottom: 14px; color: var(--koe-muted); }

.koe-policy { display: grid; gap: var(--koe-gap); }
.koe-policy__block { padding: clamp(18px, 3cqi, 34px); border-radius: var(--koe-r-xl); background: var(--koe-white); border: 1px solid var(--koe-line); }
.koe-policy__block > p { margin-top: .5rem; color: var(--koe-muted); }
.koe-policy__block .koe-rates { margin-top: 1rem; }
.koe-policy__help { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--koe-sand); border: 0; }
.koe-policy__help p { margin: 0; color: var(--koe-ink); font-weight: 600; }
.koe-policy__empty { padding: 14px; border-radius: 12px; background: var(--koe-sun-50); }

/* =================================================================== Store integrations (archives, product, cart) */
.koe-archivehead { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-bottom: 18px; padding: 16px 20px; border-radius: var(--koe-r-lg); background: var(--koe-white); border: 1px solid var(--koe-line); }
.koe-archivehead__logo { display: grid; place-items: center; min-width: 140px; height: 64px; padding: 8px 16px; border-radius: 14px; background: var(--koe-ivory); }
.koe-archivehead__img { max-height: 36px; width: auto; max-width: 170px; object-fit: contain; }
.koe-archivehead__logo .koe-brand-word { font-size: 1.6rem; }
.koe-archivehead__count { font-weight: 600; color: var(--koe-ink); margin: 0; }
.koe-archivehead__others { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; font-size: .9rem; color: var(--koe-muted); }
.koe-archivehead__others a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9em; border-radius: 999px; border: 1px solid var(--koe-line-strong); color: var(--koe-ink); font-weight: 600; }

.koe-catnav { margin-bottom: 18px; }
.koe-catnav ul { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0; list-style: none; scrollbar-width: thin; }
.koe-catnav li { flex: none; margin: 0; }
.koe-catnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 1.1em; border-radius: 999px; background: var(--koe-white); border: 1px solid var(--koe-line-strong); color: var(--koe-ink); font-weight: 600; text-decoration: none; }
.koe-catnav a span { font-size: .78rem; padding: 0 .5em; border-radius: 999px; background: var(--koe-sand); color: var(--koe-muted); line-height: 1.6; }
.koe-catnav a[aria-current="page"] { background: var(--koe-navy); border-color: var(--koe-navy); color: #fff; }
.koe-catnav a[aria-current="page"] span { background: rgba(255, 255, 255, .18); color: #fff; }

.koe-loopmeta { margin: 4px 0 6px; }
.koe-loopmeta__line { margin: 0 0 4px; font-size: .8rem; color: var(--koe-muted); }
.koe-loopmeta__brand { color: var(--koe-primary); font-weight: 600; }
/* One tidy row on shop cards: the leading "N مقاسات" chip tells the truth, chips that do not fit wrap out of view (equal card heights) */
.koe-loopmeta .koe-sizes { flex: none; width: 100%; flex-wrap: wrap; height: 1.45rem; overflow: hidden; align-items: center; }

.koe-pfacts { margin: 18px 0; padding: 16px 18px; border-radius: var(--koe-r-lg); background: var(--koe-ivory); border: 1px solid var(--koe-line); }
.koe-pfacts .koe-facts { margin-top: 0; border-top: 0; }
.koe-pfacts .koe-facts > div:last-child { border-bottom: 0; }
.koe-facts__logo { max-height: 26px; width: auto; max-width: 140px; }
.koe-facts__brand { display: inline-flex; align-items: center; min-height: 44px; }
.koe-pfacts__help { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; min-height: 48px; border-radius: 14px; background: var(--koe-sky-50); color: var(--koe-ink); text-decoration: none; }
.koe-pfacts__help .koe-ico { color: var(--koe-primary); width: 24px; height: 24px; }
.koe-pfacts__help b { color: var(--koe-primary); }

.koe-demo-banner { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--koe-sun-50); border: 1px dashed #c69200; color: #5a4100; font-size: .9rem; }
.koe-noship a { font-weight: 600; text-decoration: underline; }
.koe-carthelp { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--koe-sky-50); font-size: .92rem; }
.koe-carthelp .koe-ico { color: var(--koe-primary); }
.koe-carthelp a { font-weight: 600; color: var(--koe-primary); }

/* =================================================================== Reduced motion & print */
@media (prefers-reduced-motion: reduce) {
	.koe-scope *, .koe-scope *::before, .koe-scope *::after { animation-duration: 1ms; animation-iteration-count: 1; transition-duration: 1ms; scroll-behavior: auto; }
	.koe-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
	.koe-marquee__item[aria-hidden="true"] { display: none; }
	.koe-marquee { -webkit-mask-image: none; mask-image: none; }
	.koe-hero__frame { transform: none; }
	.koe-mark__line { stroke-dashoffset: 0; }
}
@media print {
	.koe-hero__badge, .koe-confetti, .koe-marquee__toggle, .koe-cta__bubbles, .koe-banner__art { display: none; }
}
.koe-brandrow__list .koe-brand-word { font-size: 1.7rem; }

/* =================================================================== v2.1 · Header top bar (WoodMart Header Builder → Text/HTML: [koe_topbar]) */
.koe-topbar { display: flex; align-items: center; justify-content: center; gap: 6px 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: .84rem; line-height: 1.4; color: var(--koe-ivory); }
.koe-topbar li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.koe-topbar .koe-ico { width: 18px; height: 18px; color: var(--koe-sun); }
.koe-topbar a:any-link { color: var(--koe-ivory); text-decoration: underline; text-decoration-color: rgba(255, 194, 26, .6); text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 767px) { .koe-topbar li.koe-topbar__more { display: none; } .koe-topbar { font-size: .8rem; flex-wrap: nowrap; white-space: nowrap; } }

/* =================================================================== v2.1 · Footer (WoodMart footer HTML Block: [koe_footer]) */
.koe-footer { color: rgba(255, 251, 244, .86); padding-block: clamp(36px, 5vw, 64px) 0; }
.koe-footer a:any-link { color: rgba(255, 251, 244, .86); }
@media (hover: hover) { .koe-footer a:any-link:hover { color: var(--koe-sun); } }
.koe-footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 768px) { .koe-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .koe-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .koe-footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .koe-footer__brand { grid-column: auto; } }
.koe-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.koe-footer__logo { display: block; width: 104px; height: 104px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 0 0 4px rgba(255, 194, 26, .9); }
.koe-footer__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.koe-footer__tag { margin: 0; max-width: 24rem; line-height: 1.8; }
.koe-footer__social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.koe-footer__social .koe-ico { width: 22px; height: 22px; }
.koe-footer__title { margin: 0 0 12px; font-family: var(--koe-font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.koe-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.koe-footer__col li { margin: 0; }
.koe-footer__col a { display: inline-flex; align-items: center; min-height: 40px; }
.koe-footer__ship { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 36px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); font-size: .9rem; }
.koe-footer__ship .koe-ico { color: var(--koe-sun); width: 22px; height: 22px; }
.koe-footer__rate { display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.koe-footer__rate b { color: var(--koe-sun); font-family: var(--koe-font-display); font-weight: 800; }
.koe-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-block: 18px 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; }
.koe-footer__bottom p { margin: 0; }
.koe-footer__credit a:any-link { color: var(--koe-sun); font-weight: 600; }
/* v2.1.2 · footer links must not override button colours (contrast fix: ink on sun) */
.koe-footer a.koe-btn:any-link, .koe-footer a.koe-btn:any-link:hover { color: var(--btn-fg); }
