/* ==========================================================================
   JOLI on Blocksy — brand layer over Blocksy.
   Colours also live in Blocksy's palette (Customizer → Colors); this file adds
   type, buttons, the home page sections and the product-line system.
   Written with logical properties (inline-start/end) so it works LTR and RTL.
   ========================================================================== */

:root {
	--pink: #FF43B8;
	--pink-logo: #DD2D78;
	--ink: #281827;
	--plum: #7C2273;
	--deep-plum: #4A1D43;
	--porcelain: #FBF7F4;
	--blush: #F7E4EA;
	--line-cleanse: #F2C4D4;
	--line-treat: #3E9E98;
	--line-hydrate: #9CCBEA;
	--line-protect: #F4A86E;
	--line-color: #B9A1DD;
	--muted: #6E5A6B;
	--hair: rgba(74, 29, 67, .14);

	--serif: 'Playfair Display', 'Cairo', Georgia, 'Times New Roman', serif;
	--sans: 'Manrope', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--arabic: 'Cairo', 'Manrope', sans-serif;

	--radius: 18px;
	--radius-lg: 32px;
	--shadow: 0 20px 50px -28px rgba(74, 29, 67, .35);
	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Blocksy variables → JOLI type (bold sans headings, Kiddy-style) */
:root { --heading: 'Manrope', 'Cairo', system-ui, sans-serif; --btn-radius: 10px; }
:root:root {
	--theme-font-family: var(--sans);
	--theme-button-border-radius: 10px;
	--theme-button-font-weight: 700;
	--theme-button-min-height: 50px;
	--theme-button-padding: 0 26px;
}
h1, h2, h3, h4, .entry-title, .page-title, .product_title, .woocommerce-loop-product__title,
.ct-header .site-title {
	--theme-font-family: var(--heading);
	--theme-font-weight: 700;
	font-family: var(--heading);
	font-weight: 700;
	letter-spacing: -.02em;
}
h1 em, h2 em, .display em { font-style: normal; color: var(--plum); }
[lang="ar"], .ar { font-family: var(--arabic); }

/* Arabic site: Cairo for everything (Playfair/Manrope have no Arabic glyphs),
   no letter-spacing (it breaks Arabic letter joining). */
.rtl {
	--serif: 'Cairo', 'Playfair Display', serif;
	--sans: 'Cairo', 'Manrope', system-ui, sans-serif;
	--heading: 'Cairo', 'Manrope', system-ui, sans-serif;
}
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl .product_title { font-weight: 700; letter-spacing: 0; }
.rtl .eyebrow, .rtl .line-badge, .rtl .line-pill, .rtl .pack__band, .rtl .pack__active,
.rtl .product-claim, .rtl .onsale { letter-spacing: 0; text-transform: none; }

/* ---------- Header: the logo already says JOLI Cosmetics — keep the title for screen readers only ---------- */
[data-id="logo"] .site-logo-container ~ .site-title-container {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
[data-id="logo"] .site-logo-container { --logo-max-height: 52px; }
@media (max-width: 999px) { [data-id="logo"] .site-logo-container { --logo-max-height: 40px; } }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: #4a3a48; max-width: 38em; }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin: 0 0 14px; }
.eyebrow--light { color: var(--line-cleanse); }
.dots { color: var(--muted); }
.pattern { background-image: url('../img/pattern-jc.svg'); background-size: 240px 240px; }

/* ---------- Buttons (home page) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 26px; border-radius: var(--btn-radius); border: 1px solid transparent;
	font-family: var(--sans); font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.1;
	transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.rtl .btn .icon, .rtl .link-arrow .icon { transform: scaleX(-1); }
.rtl .btn:hover .icon { transform: scaleX(-1) translateX(3px); }
.btn--primary { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn--primary:hover { background: var(--deep-plum); color: #fff; border-color: var(--deep-plum); box-shadow: 0 12px 28px -14px rgba(74, 29, 67, .6); transform: translateY(-1px); }
.btn--ghost, .btn--outline { background: #fff; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--deep-plum); color: #fff; border-color: var(--deep-plum); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow .icon { width: 18px; }

/* ---------- Home (Kiddy-style) ---------- */
.joli-front h1, .joli-front h2, .joli-front h3 { color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
.joli-front p { margin: 0 0 1em; }
.display { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; margin-bottom: 18px; }
.rtl .display { line-height: 1.25; }
.hero__ar { font-family: var(--arabic); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--plum); margin-bottom: 18px; }

.k-slider { position: relative; background: var(--blush); }
.k-slider__track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.k-slider__track::-webkit-scrollbar { display: none; }
.k-slide {
	position: relative; flex: 0 0 100%; display: grid; scroll-snap-align: start; scroll-snap-stop: always;
	min-height: clamp(520px, 41.667vw, 820px); overflow: hidden; background: var(--slide-bg, var(--blush));
}
.k-slide__media, .k-slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-slide__media img { object-fit: cover; }
/* Images are designed for the Arabic site (calm right side). English puts the text on the left, so flip them. */
html:not([dir="rtl"]) .k-slide--mirror .k-slide__media img { transform: scaleX(-1); }
/* Soft porcelain fade behind the text side (left in English, right in Arabic). */
.k-slide--image::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to right, rgba(251, 247, 244, .9) 0%, rgba(251, 247, 244, .65) 36%, rgba(251, 247, 244, 0) 60%);
}
.rtl .k-slide--image::after { background: linear-gradient(to left, rgba(251, 247, 244, .9) 0%, rgba(251, 247, 244, .65) 36%, rgba(251, 247, 244, 0) 60%); }
/* Slides whose image can't be flipped (logos): English text also on the right, fade on the right. */
html:not([dir="rtl"]) .k-slide--text-right .k-slide__inner { justify-content: flex-end; }
html:not([dir="rtl"]) .k-slide--text-right.k-slide--image::after { background: linear-gradient(to left, rgba(251, 247, 244, .9) 0%, rgba(251, 247, 244, .65) 36%, rgba(251, 247, 244, 0) 60%); }
.k-slide__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 56px; }
.k-slide__copy { max-width: 560px; padding-block: 48px; }
.k-slide .display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.k-slide .lead { color: #4a3a48; }
.k-slide .btn-row { margin-bottom: 0; }

/* Colour slides: a simple visual on the other side. */
.k-slide--color { background-image: url('../img/pattern-jc.svg'); background-size: 240px 240px; }
.k-slide__visual { flex: none; }
.k-slide__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.k-slide__lines li { display: flex; align-items: center; gap: 14px; padding-block: 10px; padding-inline: 10px 26px; min-width: 260px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); font-family: var(--heading); font-weight: 700; font-size: 1.1rem; }
.k-slide__lines span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--line); }
.k-slide__icons { display: flex; gap: 22px; }
.k-slide__icons span { width: clamp(120px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--plum); }
.k-slide__icons .icon { width: 44%; height: 44%; stroke-width: 1.2; }

/* Arrows + dots, bottom of the slide, aligned with the content. */
.k-slider__nav { position: absolute; inset-inline: 0; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 14px; pointer-events: none; }
.k-slider__nav > * { pointer-events: auto; }
.k-slider__arrow { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.k-slider__arrow:hover { border-color: var(--ink); }
.k-slider__arrow .icon { width: 18px; height: 18px; }
.k-slider__arrow[data-dir="prev"] .icon { transform: scaleX(-1); }
.rtl .k-slider__arrow[data-dir="prev"] .icon { transform: none; }
.rtl .k-slider__arrow[data-dir="next"] .icon { transform: scaleX(-1); }
.k-slider__dots { display: flex; gap: 8px; }
.k-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(74, 29, 67, .25); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.k-slider__dot[aria-current="true"] { width: 28px; background: var(--plum); }
.k-slider.is-single .k-slider__nav { display: none; }
.k-slider.is-single .k-slide__inner { padding-bottom: 0; }

.k-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.joli-front .k-head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.k-head--center { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.joli-front .k-head--center p { margin: 0; }

.k-products { padding-top: clamp(16px, 3vw, 40px); }
.k-lines { padding-top: 0; }
.k-pills { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1000px; }
.k-pills li { flex: 0 1 310px; }
.k-pill {
	display: flex; align-items: center; gap: 14px; padding-block: 12px; padding-inline: 14px 12px;
	border-radius: 999px; background: color-mix(in srgb, var(--line) 32%, #fff); color: var(--ink); text-decoration: none;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.k-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.k-pill__num { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-family: var(--heading); font-weight: 700; font-size: 1.05rem; }
.k-pill__text { flex: 1; display: grid; line-height: 1.3; }
.k-pill__text strong { font-family: var(--heading); font-size: 1.05rem; }
.k-pill__text span { font-size: .85rem; color: var(--muted); }
.k-pill__go { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.k-pill__go .icon { width: 18px; height: 18px; }
.rtl .k-pill__go .icon { transform: scaleX(-1); }

.k-banner-wrap { padding-top: 0; }
.k-banner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(24px, 5vw, 64px); background: var(--blush); border-radius: 28px; padding: clamp(32px, 5vw, 64px); }
.k-banner__mono { width: 100%; max-width: 300px; margin-inline: auto; }
.joli-front .k-banner__copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.k-banner__copy p { color: #4a3a48; margin-bottom: 22px; }
.k-banner .icon { width: 20px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 30px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--heading); font-weight: 700; font-size: 1.05rem; color: var(--plum); }

/* ---------- Line badge / pills / line archive ---------- */
.line-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.line-badge__num { font-family: var(--heading); font-size: .85rem; letter-spacing: 0; font-weight: 700; background: var(--line); color: var(--ink); border-radius: 999px; padding: 2px 9px; }
.line-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.line-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hair); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; background: #fff; }
.line-pill em { font-family: var(--heading); font-style: normal; font-weight: 700; }
.line-pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line, var(--pink)); }
.line-pill:hover, .line-pill.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.archive-sub { color: var(--muted); max-width: 40em; }
.line-hero { display: flex; gap: 22px; align-items: center; margin: 4px 0 8px; }
.line-hero__num { font-family: var(--heading); font-weight: 700; font-size: 4rem; line-height: 1; padding: 6px 18px; border-radius: var(--radius); background: var(--line); color: var(--ink); }
.line-hero .eyebrow { margin-bottom: 4px; }
.line-hero__ar { margin: 0; color: var(--muted); }

/* ---------- Product cards ---------- */
[data-products] .product .line-badge { margin-top: 4px; }
.card-meta { color: var(--muted); font-size: .84rem; margin: 2px 0 0; }
.woocommerce-loop-product__title { font-size: 1.2rem; }
[data-products] .product .ct-media-container, [data-products] .product figure { border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.onsale, .woocommerce span.onsale { background: var(--pink); color: var(--ink); border-radius: 999px; }

/* Branded stand-in "pack" for products without photography */
.pack { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(160deg, var(--porcelain) 0%, var(--blush) 100%); overflow: hidden; border-radius: var(--radius); }
.pack::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern-jc.svg'); background-size: 180px; }
.pack__label {
	position: relative; width: 44%; aspect-ratio: .62; background: #fff; border-radius: 22px 22px 14px 14px;
	box-shadow: 0 24px 40px -24px rgba(74, 29, 67, .45); display: flex; flex-direction: column; align-items: center;
	justify-content: center; text-align: center; padding: 14% 10% 24%; gap: 6px; overflow: hidden;
}
.pack__mono { width: 42%; height: auto; margin-bottom: 6px; }
.pack__name { font-family: var(--serif); font-size: clamp(.95rem, 1.6vw, 1.25rem); line-height: 1.1; color: var(--ink); }
.pack__active { font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--plum); text-transform: uppercase; }
.pack__benefit { font-size: .8rem; color: var(--muted); }
.pack__band { position: absolute; bottom: 0; inset-inline: 0; height: 18%; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.pack__band em { font-family: var(--serif); font-style: normal; font-size: .95rem; letter-spacing: 0; }
.pack--large { border-radius: var(--radius-lg); }
.pack--large .pack__label { width: 40%; }
.pack--large .pack__name { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.pack--large .pack__active { font-size: .85rem; }
.pack--card .pack__active { display: none; }
.joli-gallery--placeholder { width: 100%; }
.pack--card .pack__label { min-width: 0; }

/* ---------- Single product ---------- */
.product-name-en { font-family: 'Manrope', system-ui, sans-serif; font-weight: 600; color: var(--plum); font-size: 1.15rem; margin: 0 0 8px; text-align: start; }
.rtl .product-name-en { text-align: right; }
.product-name-ar { font-family: var(--arabic); font-weight: 600; color: var(--plum); font-size: 1.15rem; margin: 0 0 8px; }
.product-claim { font-weight: 600; letter-spacing: .03em; color: var(--ink); margin-bottom: 14px; }
.product-facts { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--hair); }
.product-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: .93rem; }
.product-facts span { color: var(--muted); }
.trust-row { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.trust-row li { display: inline-flex; gap: 8px; align-items: center; }
.trust-row .icon { color: var(--plum); width: 20px; }
.inci { font-size: .88rem; color: var(--muted); text-align: start; }
.rtl .inci { direction: ltr; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	/* Phones: square image on top, text below; colour slides hide their visual. */
	.k-slide { display: block; min-height: 0; }
	.k-slide--image { background: var(--porcelain); }
	.k-slide__media { position: relative; display: block; height: auto; }
	.k-slide__media img { position: relative; aspect-ratio: 1; height: auto; }
	.k-slide--image::after { display: none; }
	.k-slide__inner { padding-bottom: 72px; }
	.k-slide__copy { padding-block: 28px 0; }
	.k-slide__visual { display: none; }
	.k-slider { background: var(--porcelain); }
}
}
@media (max-width: 640px) {
	.k-banner { grid-template-columns: 1fr; text-align: center; }
	.k-banner__mono { max-width: 160px; }
	.k-pills li { flex-basis: 100%; }
	.pack--card .pack__label { width: 62%; padding: 12% 6% 26%; gap: 2px; }
	.pack--card .pack__name { font-size: .82rem; }
	.pack--card .pack__band { font-size: .52rem; letter-spacing: .08em; }
	.pack--card .pack__band em { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Cart / checkout lines: name, price and quantity only. The block trims the description
   mid-sentence ("…"), which also can't be matched to its English translation. */
.wc-block-cart-item__product .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none; }

/* ---------- One image shape for photos and placeholders ---------- */
/* Cards: the pack fills the same square frame Blocksy uses for photos. */
.joli-pack-frame { display: block; width: 100%; overflow: hidden; border-radius: var(--radius); }
.joli-pack-frame .pack { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
[data-products] .product figure .ct-media-container,
[data-products] .product figure .ct-media-container img { border-radius: var(--radius); }
[data-products] .product figure .ct-media-container img { width: 100%; height: 100%; object-fit: cover; }
/* Product page: photo gallery and placeholder share the square shape and corner radius. */
.single-product .woocommerce-product-gallery .ct-media-container,
.single-product .woocommerce-product-gallery .flexy-items .ct-media-container { border-radius: var(--radius-lg); overflow: hidden; }
.joli-gallery--placeholder .pack--large { aspect-ratio: 1; width: 100%; }

/* ==========================================================================
   Kiddy-style layer: cards, header, footer, shop, product page
   ========================================================================== */

/* ---------- Product cards: bordered, centred, "price | add to bag" bottom bar ---------- */
[data-products] .product {
	display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr auto;
	background: #fff; border: 1px solid var(--hair); border-radius: 16px;
	padding: 12px 12px 0; text-align: center; overflow: hidden;
	transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
[data-products] .product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
[data-products] .product > * { grid-column: 1 / -1; }
[data-products] .product > figure { grid-row: 1; margin: 0 0 14px; }
[data-products] .product > .line-badge { grid-row: 2; justify-self: center; margin: 0; }
[data-products] .product > .woocommerce-loop-product__title { grid-row: 3; margin: 10px 0 4px; font-size: 1.05rem; }
[data-products] .product > .card-meta { grid-row: 4; align-self: start; margin: 0 0 16px; padding-inline: 6px; }
[data-products] .product > .price,
[data-products] .product > .ct-woo-card-actions {
	grid-row: 5; grid-column: auto; align-self: stretch;
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	min-height: 56px; margin: 0; border-top: 1px solid var(--hair);
}
[data-products] .product > .price { margin-inline-start: -12px; border-inline-end: 1px solid var(--hair); font-weight: 700; font-size: .98rem; color: var(--ink); }
[data-products] .product > .ct-woo-card-actions { margin-inline-end: -12px; gap: 4px; }
[data-products] .product .ct-woo-card-actions .button {
	opacity: 1; visibility: visible; transform: none; width: auto; min-height: 0; padding: 6px 8px;
	background: none !important; border: 0; box-shadow: none; color: var(--plum) !important; font-weight: 700; font-size: .92rem;
}
[data-products] .product .ct-woo-card-actions .button:hover { color: var(--deep-plum) !important; text-decoration: underline; text-underline-offset: 4px; }
[data-products] .product .added_to_cart { font-size: .8rem; flex-basis: 100%; }
[data-products] .product figure .ct-media-container { background: #fff; }

/* ---------- Header: one compact row ---------- */
/* More specific than Blocksy's default row height rule ([data-header*="type-1"] … { --height: 120px }). */
body[data-header] .ct-header [data-row="middle"] { --height: 76px; border-bottom: 1px solid var(--hair); }
.ct-header [data-id="menu"] .menu > li > a,
.ct-header [data-id="menu-secondary"] .menu > li > a {
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.rtl .ct-header [data-id="menu"] .menu > li > a, .rtl .ct-header [data-id="menu-secondary"] .menu > li > a { font-size: 14px; letter-spacing: 0; }
.ct-header [data-id="menu"] .menu > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--ink); }
.ct-header [data-id="logo"] { margin-inline-end: 12px; }
.joli-account-link > a::before {
	content: ''; width: 16px; height: 16px; margin-inline-end: 6px; 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='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%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='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ct-header .joli-search {
	display: flex; align-items: center; width: clamp(170px, 18vw, 260px); height: 42px;
	background: #F5EFF2; border-radius: 10px; padding-inline: 18px 6px;
}
.ct-header .joli-search input[type="search"] {
	flex: 1; height: 100%; min-height: 0; padding: 0; border: 0 !important; background: transparent !important;
	box-shadow: none !important; font-size: .92rem; color: var(--ink);
}
.ct-header .joli-search button { width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ct-header .joli-search .icon { width: 18px; height: 18px; }
/* ---------- Footer: feature strip + columns ---------- */
.joli-footer { background: linear-gradient(to bottom, transparent 64px, #F6F1F3 64px); }
.joli-features {
	list-style: none; margin: 0 0 56px; padding: 28px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
	background: var(--deep-plum); border-radius: 20px; color: #E2CFDD;
}
.joli-features li { display: flex; gap: 14px; align-items: flex-start; }
.joli-features .icon { flex: none; width: 30px; height: 30px; color: var(--line-cleanse); }
.joli-features strong { display: block; color: #fff; font-family: var(--heading); font-size: .98rem; line-height: 1.3; margin-bottom: 4px; }
.joli-features span { font-size: .85rem; line-height: 1.5; }
.joli-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--hair); }
.joli-footer__brand { max-width: 470px; }
.joli-footer__brand img { height: 40px; width: auto; }
.joli-footer__brand p { color: var(--muted); margin: 14px 0 0; }
.joli-pill { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 6px 18px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.joli-pill:hover { border-color: var(--ink); color: var(--ink); }
.joli-pill__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--deep-plum); color: #fff; display: grid; place-items: center; }
.joli-pill__icon .icon { width: 18px; height: 18px; }
.joli-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 36px 28px; }
.joli-footer__cols h3 { font-family: var(--heading); font-size: 1rem; margin: 0 0 14px; color: var(--ink); letter-spacing: 0; }
.joli-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.joli-footer__cols a { color: #4a3a48; text-decoration: none; }
.joli-footer__cols a:hover { color: var(--plum); }
.ct-footer, .ct-footer [data-row] { background: #F6F1F3 !important; }
.ct-footer [data-row="bottom"] > .ct-container { border-top: 1px solid var(--hair); }
.ct-footer-copyright { color: var(--muted); font-size: .88rem; }

/* ---------- Shop / line pages ---------- */
.woocommerce-products-header, .hero-section[data-type="type-2"] { background: transparent !important; }
/* Page titles (shop, lines, pages): compact and aligned with the content, no tall band. */
.hero-section[data-type="type-2"] { --min-height: 0px; --container-padding: clamp(28px, 4vw, 48px) 0 0; --alignment: start; --vertical-alignment: flex-start; }
.hero-section[data-type="type-2"] > .ct-container-narrow { max-width: var(--theme-normal-container-max-width); }
.hero-section[data-type="type-2"] .page-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.line-pill { border-radius: 999px; background: color-mix(in srgb, var(--line, var(--blush)) 30%, #fff); border-color: transparent; font-weight: 600; }
.line-pill:hover, .line-pill.is-active { background: var(--deep-plum); border-color: var(--deep-plum); }

/* ---------- Product page ---------- */
.single-product .product_title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.single-product .entry-summary .price { font-weight: 700; color: var(--ink); }
.single-product .entry-summary form.cart .ct-cart-actions { display: flex; gap: 10px; width: 100%; }
.single-product .entry-summary form.cart .single_add_to_cart_button { flex: 1; }
.single-product .trust-row { justify-content: center; padding: 16px; border: 1px dashed var(--hair); border-radius: 14px; }

/* ---------- Responsive (Kiddy layer) ---------- */
@media (max-width: 1000px) {
	.joli-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.joli-features, .joli-footer__cols { grid-template-columns: 1fr; }
	[data-products] .product { padding: 8px 8px 0; }
	[data-products] .product > .price { margin-inline-start: -8px; }
	[data-products] .product > .ct-woo-card-actions { margin-inline-end: -8px; }
}

/* Line pages: the number block below already shows the purpose — no repeat under the title. */
.tax-product_cat .hero-section .page-description { display: none; }
.rtl .line-hero__ar { display: none; }

/* ---------- Cart & checkout (classic, Kiddy-style) ---------- */
/* Soft filled fields, no borders. */
.woocommerce-cart .woocommerce input.input-text,
.woocommerce-checkout .woocommerce form .form-row .input-text,
.woocommerce-checkout .woocommerce form .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-cart .coupon .input-text {
	background: #F5EFF2; border: 1px solid transparent; border-radius: 8px; min-height: 46px; box-shadow: none;
}
.woocommerce-checkout .select2-container .select2-selection--single { height: 46px; display: flex; align-items: center; }
.woocommerce-cart .woocommerce input.input-text:focus,
.woocommerce-checkout .woocommerce form .form-row .input-text:focus,
.woocommerce-checkout .woocommerce form .form-row select:focus {
	background: #fff; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(124, 34, 115, .1);
}
.woocommerce-checkout textarea.input-text { min-height: 130px; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading, .cart_totals > h2 { font-family: var(--heading); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; }

/* Summary boxes: white, thin border. */
.cart_totals, .ct-order-review {
	background: #fff; border: 1px solid var(--hair) !important; border-radius: 16px;
}
.cart_totals table th, .cart_totals table td, .woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { border-color: var(--hair) !important; }
.cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total td { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

/* Cart table: quiet header, thin dividers, small product thumbnails. */
.woocommerce-cart-form .shop_table { background: transparent; border: 0; }
.woocommerce-cart-form .shop_table thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--hair); }
.rtl .woocommerce-cart-form .shop_table thead th { letter-spacing: 0; font-size: .85rem; }
.woocommerce-cart-form .shop_table td { border-bottom: 1px solid var(--hair); }
.woocommerce-cart-form .product-thumbnail img, .joli-pack-thumb { display: block; width: 72px; border-radius: 10px; overflow: hidden; }
.joli-pack-thumb .pack { border-radius: 10px; }
.joli-pack-thumb .pack__name, .joli-pack-thumb .pack__band { display: none; }
.joli-pack-thumb .pack__label { width: 56%; padding: 18% 8% 24%; }
.joli-pack-thumb .pack__mono { width: 70%; margin: 0; }
.woocommerce-cart-form .product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce-cart-form .product-name a:hover { color: var(--plum); }

/* Main buttons: full width. */
.wc-proceed-to-checkout .checkout-button, #place_order { width: 100%; min-height: 54px; font-size: 1rem; }
.woocommerce-cart .coupon .button { min-height: 46px; }

/* Payment box. */
.woocommerce-checkout #payment { background: transparent; }
.woocommerce-checkout #payment ul.payment_methods { border: 1px solid var(--hair); border-radius: 12px; background: #FBF7F4; }
.woocommerce-checkout .woocommerce-privacy-policy-text { font-size: .85rem; color: var(--muted); }
